.gallery-page-hero {
    min-height: 355px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        url("image/gallery-top.jpg")
        center / cover
        no-repeat;
}

.gallery-page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(13, 36, 81, 0.96) 0%,
            rgba(22, 51, 107, 0.86) 50%,
            rgba(22, 51, 107, 0.46) 100%
        );
}

.gallery-page-hero-content {
    position: relative;
    z-index: 2;
    padding: 55px 0 60px;
}

.gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 500;
}

.gallery-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gallery-breadcrumb a:hover {
    color: var(--white);
}

.gallery-breadcrumb i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
}

.gallery-breadcrumb span {
    color: var(--accent);
}

.gallery-hero-label {
    margin-bottom: 12px;
}

.gallery-page-hero h1 {
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.gallery-page-hero-content > p {
    max-width: 700px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.75;
}

.gallery-section {
    position: relative;
    padding: 110px 0 120px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #ffffff 52%,
            #f7f9fc 100%
        );
}

.gallery-section::before {
    content: "";
    width: 300px;
    height: 300px;
    position: absolute;
    top: 70px;
    left: -170px;
    border-radius: 50%;
    background: rgba(22, 51, 107, 0.04);
    pointer-events: none;
}

.gallery-section::after {
    content: "";
    width: 250px;
    height: 250px;
    position: absolute;
    right: -140px;
    bottom: 80px;
    border-radius: 50%;
    background: rgba(245, 130, 32, 0.055);
    pointer-events: none;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}

.gallery-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.gallery-heading h2 {
    margin: 14px 0 16px;
    color: var(--primary);
}

.gallery-heading > p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.gallery-item {
    width: 100%;
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 6px solid var(--white);
    border-radius: 18px;
    outline: none;
    background: #dfe5ec;
    box-shadow:
        0 16px 38px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.gallery-item:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.45);
    outline-offset: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        filter 0.3s ease;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            180deg,
            rgba(13, 36, 81, 0.04) 0%,
            rgba(13, 36, 81, 0.62) 100%
        );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-zoom-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 18px;
    opacity: 0;
    transform: translateY(12px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 24px 55px rgba(15, 23, 42, 0.16);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.92);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

.gallery-empty {
    max-width: 500px;
    margin: 0 auto;
    padding: 55px 25px;
    border: 1px dashed #cbd1da;
    border-radius: 14px;
    background: var(--white);
    text-align: center;
}

.gallery-empty i {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 42px;
}

.gallery-empty h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

.gallery-empty p {
    margin: 0;
    color: var(--muted);
}

html.gallery-viewer-open,
body.gallery-viewer-open {
    overflow: hidden;
}

.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.gallery-viewer.open {
    display: flex;
}

.gallery-viewer-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(3, 10, 24, 0.94);
    cursor: zoom-out;
    backdrop-filter: blur(7px);
}

.gallery-viewer-dialog {
    width: min(1180px, 100%);
    height: min(820px, calc(100vh - 56px));
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-viewer-content {
    width: calc(100% - 150px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-viewer-image-wrapper {
    min-height: 0;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.gallery-viewer-image-wrapper img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-viewer-image-wrapper img.is-loaded {
    opacity: 1;
}

.gallery-viewer-loading {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    color: #ffffff;
    font-size: 28px;
    pointer-events: none;
}

.gallery-viewer-loading.is-visible {
    display: grid;
}

.gallery-viewer-footer {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
}

.gallery-viewer-caption {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-viewer-caption strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
}

.gallery-viewer-caption span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.gallery-viewer-counter {
    position: static;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: none;
}

.gallery-viewer-close,
.gallery-viewer-navigation {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.gallery-viewer-close:hover,
.gallery-viewer-navigation:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.gallery-viewer-close:focus-visible,
.gallery-viewer-navigation:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.35);
    outline-offset: 3px;
}

.gallery-viewer-close {
    width: 46px;
    height: 46px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 19px;
}

.gallery-viewer-navigation {
    width: 54px;
    height: 54px;
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 18px;
    transform: translateY(-50%);
}

.gallery-viewer-navigation:hover {
    transform: translateY(-50%) scale(1.05);
}

.gallery-viewer-navigation[hidden] {
    display: none;
}

.gallery-viewer-previous {
    left: 0;
}

.gallery-viewer-next {
    right: 0;
}

@media (max-width: 820px) {

    .gallery-viewer {
        padding: 18px;
    }

    .gallery-viewer-dialog {
        height: calc(100vh - 36px);
    }

    .gallery-viewer-content {
        width: calc(100% - 110px);
    }

    .gallery-viewer-navigation {
        width: 45px;
        height: 45px;
    }

}

@media (max-width: 620px) {

    .gallery-viewer {
        padding: 10px;
    }

    .gallery-viewer-dialog {
        width: 100%;
        height: calc(100vh - 20px);
        display: block;
    }

    .gallery-viewer-content {
        width: 100%;
        height: 100%;
        padding: 54px 0 70px;
    }

    .gallery-viewer-image-wrapper {
        border-radius: 8px;
    }

    .gallery-viewer-close {
        width: 42px;
        height: 42px;
        top: 2px;
        right: 2px;
    }

    .gallery-viewer-navigation {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 5px;
        transform: none;
    }

    .gallery-viewer-navigation:hover {
        transform: scale(1.04);
    }

    .gallery-viewer-previous {
        left: 2px;
    }

    .gallery-viewer-next {
        right: 2px;
    }

    .gallery-viewer-footer {
        min-height: 58px;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 10px 55px 0;
        text-align: center;
    }

    .gallery-viewer-caption,
    .gallery-viewer-counter {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

}

.gallery-cta-section {
    padding: 90px 0;
    background: var(--accent);
    text-align: center;
}

.gallery-cta-content {
    max-width: 760px;
}

.gallery-cta-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-cta-section h2 {
    margin-bottom: 18px;
    color: var(--white);
}

.gallery-cta-section p {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

@media (max-width: 1000px) {

    .gallery-section {
        padding: 90px 0 100px;
    }

    .gallery-heading {
        margin-bottom: 45px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

}

@media (max-width: 800px) {

    .gallery-page-hero {
        min-height: 330px;
    }

    .gallery-page-overlay {
        background: rgba(13, 36, 81, 0.88);
    }

    .gallery-section {
        padding: 80px 0 90px;
    }

    .gallery-viewer {
        padding: 20px;
    }

    .gallery-viewer-dialog {
        height: calc(100vh - 40px);
    }

}

@media (max-width: 600px) {

    .gallery-page-hero-content {
        padding: 45px 0 50px;
    }

    .gallery-breadcrumb {
        margin-bottom: 28px;
    }

    .gallery-page-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.3rem);
    }

    .gallery-page-hero-content > p {
        font-size: 14px;
    }

    .gallery-section {
        padding: 70px 0 80px;
    }

    .gallery-heading {
        margin-bottom: 35px;
    }

    .gallery-heading h2 {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
        border-width: 4px;
        border-radius: 15px;
    }

    .gallery-zoom-icon {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .gallery-viewer {
        padding: 12px;
    }

    .gallery-viewer-dialog {
        height: calc(100vh - 24px);
    }

    .gallery-viewer-close {
        width: 42px;
        height: 42px;
        top: 8px;
        right: 8px;
    }

    .gallery-viewer-navigation {
        width: 43px;
        height: 43px;
        top: auto;
        bottom: 45px;
        transform: none;
    }

    .gallery-viewer-navigation:hover {
        transform: scale(1.05);
    }

    .gallery-viewer-previous {
        left: 10px;
    }

    .gallery-viewer-next {
        right: 10px;
    }

    .gallery-viewer-counter {
        bottom: 4px;
    }

    .gallery-cta-section {
        padding: 72px 0;
    }

}

.gallery-item-overlay {
    place-items: initial;
    background:
        linear-gradient(
            180deg,
            rgba(13, 36, 81, 0.03) 20%,
            rgba(13, 36, 81, 0.88) 100%
        );
}

.gallery-item-info {
    position: absolute;
    right: 78px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.55);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.gallery-item-category {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-item-info strong {
    display: block;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.gallery-item-info small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 600;
}

.gallery-item:hover .gallery-item-info,
.gallery-item:focus-visible .gallery-item-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-zoom-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: rgba(10, 29, 67, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(7px);
}