/* =========================================================
   WINDAARO GALLERY
   PREMIUM DARK COLLECTION
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.gallery-page {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: #080808;
    color: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;

    min-height: 62vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(216, 170, 69, 0.055),
            transparent 30%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.88)
        ),
        #080808;
}


/* subtle architectural lines */

.gallery-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    opacity: 0.35;

    pointer-events: none;
}


/* right decorative glow */

.gallery-hero::after {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -250px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(216, 170, 69, 0.08);

    border-radius: 50%;

    box-shadow:
        0 0 0 50px rgba(216, 170, 69, 0.012),
        0 0 0 100px rgba(216, 170, 69, 0.008),
        0 0 0 150px rgba(216, 170, 69, 0.005);

    pointer-events: none;
}


.gallery-hero-content {
    position: relative;

    z-index: 2;

    width: min(1400px, 90%);

    margin: 0 auto;

    padding: 120px 0 80px;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.gallery-page .section-label {
    display: block;

    margin-bottom: 20px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #d8aa45;
}


/* =========================================================
   HERO TITLE
========================================================= */

.gallery-hero h1 {
    margin: 0;

    font-family: var(--font-heading);

    font-size: clamp(
        55px,
        7vw,
        110px
    );

    font-weight: 500;

    line-height: 0.9;

    letter-spacing: -5px;

    color: #ffffff;
}


.gallery-hero h1 span {
    color: rgba(255, 255, 255, 0.48);
}


.gallery-hero p {
    max-width: 560px;

    margin-top: 30px;

    font-size: 14px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.46);
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    position: relative;

    padding: 120px 0 150px;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(216, 170, 69, 0.025),
            transparent 25%
        ),
        #080808;
}


.gallery-wrapper {
    width: min(1400px, 90%);

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.gallery-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 430px);

    gap: 80px;

    align-items: end;

    margin-bottom: 65px;
}


.gallery-heading h2 {
    margin: 0;

    font-family: var(--font-heading);

    font-size: clamp(
        42px,
        5vw,
        76px
    );

    font-weight: 500;

    line-height: 0.92;

    letter-spacing: -3px;

    color: #ffffff;
}


.gallery-heading > p {
    margin: 0;

    font-size: 13px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.40);
}


/* =========================================================
   CATEGORY TOGGLE
========================================================= */

/* =========================================================
   GALLERY CATEGORY TOGGLE
========================================================= */

.gallery-toggle-wrapper {
    display: flex;
    justify-content: center;

    margin-bottom: 80px;
}


/* =========================================================
   TOGGLE CONTAINER
========================================================= */

.gallery-toggle {
    position: relative;

    display: flex;

    width: 420px;
    height: 54px;

    padding: 4px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.015);

    overflow: hidden;

    backdrop-filter: blur(10px);
}


/* =========================================================
   OPTIONS
========================================================= */

.gallery-toggle-option {
    position: relative;
    z-index: 2;

    flex: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.35);

    transition:
        color 0.35s ease,
        letter-spacing 0.35s ease;
}


/* ACTIVE TEXT */

.gallery-toggle-option.active {
    color: #080808;

    letter-spacing: 3.5px;
}


/* =========================================================
   SLIDER
========================================================= */

.gallery-toggle-slider {
    position: absolute;

    top: 4px;
    bottom: 4px;

    left: 4px;

    width: calc(33.333% - 4px);

    border-radius: 100px;

    background: #d8aa45;

    box-shadow:
        0 4px 18px rgba(216, 170, 69, 0.18);

    transition:
        left 0.45s cubic-bezier(.77, 0, .18, 1),
        width 0.45s ease;
}


/* =========================================================
   ALL
========================================================= */

.gallery-toggle-option:first-child.active
~ .gallery-toggle-slider {

    left: 4px;
}


/* =========================================================
   WINDOWS
========================================================= */

.gallery-toggle-option:nth-child(2).active
~ .gallery-toggle-slider {

    left: 33.333%;
}


/* =========================================================
   DOORS
========================================================= */

.gallery-toggle-option:nth-child(3).active
~ .gallery-toggle-slider {

    left: 66.666%;
}


/* =========================================================
   HOVER
========================================================= */

.gallery-toggle-option:not(.active):hover {

    color: rgba(255, 255, 255, 0.75);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .gallery-toggle-wrapper {
        margin-bottom: 55px;
    }

    .gallery-toggle {

        width: min(360px, 90vw);

        height: 50px;

    }

    .gallery-toggle-option {

        font-size: 8px;

        letter-spacing: 2px;

    }

    .gallery-toggle-option.active {

        letter-spacing: 2.5px;

    }

}

/* =========================================================
   COLLECTION TITLE
========================================================= */

.gallery-title-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 22px;

    margin-bottom: 25px;

    border-bottom: 1px solid rgba(
        255,
        255,
        255,
        0.08
    );
}


.gallery-title-row > div {
    display: flex;

    align-items: center;

    gap: 18px;
}


.gallery-number {
    font-family: var(--font-heading);

    font-size: 11px;

    letter-spacing: 3px;

    color: #d8aa45;
}


.gallery-name {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(
        255,
        255,
        255,
        0.55
    );
}


.gallery-count {
    font-size: 8px;

    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(
        255,
        255,
        255,
        0.30
    );
}


/* =========================================================
   GALLERY COLLAGE
========================================================= */

.gallery-collage {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    grid-auto-rows: 250px;

    gap: 12px;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {
    position: relative;

    display: block;

    min-width: 0;

    overflow: hidden;

    text-decoration: none;

    background: #111111;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.07
    );

    isolation: isolate;

    transition:
        border-color 0.5s ease,
        transform 0.5s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* =========================================================
   COLLAGE POSITIONS
========================================================= */


/* first image */

.gallery-card-1 {
    grid-column: span 2;
    grid-row: span 2;
}


/* second */

.gallery-card-2 {
    grid-column: span 1;
}


/* third */

.gallery-card-3 {
    grid-column: span 1;
}


/* fourth */

.gallery-card-4 {
    grid-column: span 2;
}


/* fifth */

.gallery-card-5 {
    grid-column: span 1;
    grid-row: span 2;
}


/* sixth */

.gallery-card-6 {
    grid-column: span 1;
}


/* seventh */

.gallery-card-7 {
    grid-column: span 2;
}


/* eighth */

.gallery-card-8 {
    grid-column: span 2;
}


/* =========================================================
   IMAGE
========================================================= */

.gallery-image {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background: #111111;
}


.gallery-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform:
        scale(1.001);

    filter:
        saturate(0.88)
        contrast(1.04);

    transition:
        transform 1.1s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        filter 0.7s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.gallery-card:hover
.gallery-image img {

    transform:
        scale(1.08);

    filter:
        saturate(1)
        contrast(1.06);
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.88) 100%
        );

    opacity: 0.82;

    transition:
        opacity 0.6s ease;
}


.gallery-card:hover
.gallery-overlay {

    opacity: 0.95;

}


/* =========================================================
   GOLD EDGE
========================================================= */

.gallery-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 0;
    height: 1px;

    z-index: 5;

    background: #d8aa45;

    transition:
        width 0.7s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.gallery-card:hover::before {
    width: 100%;
}


/* =========================================================
   CARD INFO
========================================================= */

.gallery-card-info {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 23px;

    z-index: 4;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;

    transform: translateY(7px);

    transition:
        transform 0.6s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.gallery-card:hover
.gallery-card-info {

    transform: translateY(0);

}


/* =========================================================
   CATEGORY
========================================================= */

.gallery-card-category {
    display: block;

    margin-bottom: 7px;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #d8aa45;
}


/* =========================================================
   TITLE
========================================================= */

.gallery-card-info h3 {
    margin: 0;

    font-family: var(--font-heading);

    font-size: clamp(
        18px,
        2vw,
        28px
    );

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -1px;

    color: #ffffff;
}


/* =========================================================
   ARROW
========================================================= */

.gallery-card-arrow {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.20
    );

    border-radius: 50%;

    font-size: 16px;

    color: #ffffff;

    opacity: 0;

    transform:
        translate(8px, 8px)
        rotate(-10deg);

    transition:
        opacity 0.45s ease,
        transform 0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        border-color 0.35s ease;
}


.gallery-card:hover
.gallery-card-arrow {

    opacity: 1;

    transform:
        translate(0, 0)
        rotate(0deg);

    border-color:
        rgba(216, 170, 69, 0.45);
}


/* =========================================================
   EMPTY GALLERY
========================================================= */

.gallery-empty {
    grid-column: 1 / -1;

    min-height: 430px;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 45px;

    overflow: hidden;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.08
    );

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(216, 170, 69, 0.09),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #141414,
            #080808
        );
}


.gallery-empty::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.022) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    opacity: 0.4;
}


.gallery-empty::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -210px;

    border: 1px solid rgba(
        216,
        170,
        69,
        0.15
    );

    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(
            216,
            170,
            69,
            0.012
        ),
        0 0 0 90px rgba(
            216,
            170,
            69,
            0.008
        );
}


.gallery-empty > * {
    position: relative;

    z-index: 2;
}


.gallery-empty-number {
    margin-bottom: 8px;

    font-family: var(--font-heading);

    font-size: 12px;

    letter-spacing: 4px;

    color: #d8aa45;
}


.gallery-empty-label {
    margin-bottom: 15px;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 4px;

    color: rgba(
        255,
        255,
        255,
        0.35
    );
}


.gallery-empty h3 {
    margin: 0 0 14px;

    font-family: var(--font-heading);

    font-size: clamp(
        30px,
        4vw,
        55px
    );

    font-weight: 500;

    line-height: 0.9;

    letter-spacing: -2px;
}


.gallery-empty p {
    max-width: 480px;

    margin: 0;

    font-size: 12px;

    line-height: 1.7;

    color: rgba(
        255,
        255,
        255,
        0.35
    );
}


/* =========================================================
   PAGINATION
========================================================= */

.gallery-pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    margin-top: 60px;
}


.gallery-pagination-pages {
    display: flex;

    gap: 6px;
}


.gallery-pagination-page,
.gallery-pagination-arrow {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.08
    );

    font-size: 9px;

    color: rgba(
        255,
        255,
        255,
        0.42
    );

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}


.gallery-pagination-page:hover,
.gallery-pagination-arrow:hover {

    color: #ffffff;

    border-color:
        rgba(216, 170, 69, 0.30);

}


.gallery-pagination-page.active {

    color: #ffffff;

    border-color:
        rgba(216, 170, 69, 0.40);

    background:
        rgba(216, 170, 69, 0.08);
}


.gallery-pagination-arrow {

    font-size: 16px;
}


.gallery-pagination-arrow.disabled {

    opacity: 0.20;

    pointer-events: none;
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    position: relative;

    min-height: 60vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding: 100px 5%;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(216, 170, 69, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #111111,
            #070707
        );
}


.gallery-cta::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.4;
}


.gallery-cta > div {
    position: relative;

    z-index: 2;

    width: min(1400px, 100%);

    margin: 0 auto;
}


.gallery-cta h2 {
    margin: 0;

    font-family: var(--font-heading);

    font-size: clamp(
        55px,
        7vw,
        105px
    );

    font-weight: 500;

    line-height: 0.87;

    letter-spacing: -5px;
}


.gallery-cta h2 span {
    color: rgba(
        255,
        255,
        255,
        0.40
    );
}


/* =========================================================
   CTA BUTTON
========================================================= */

.gallery-cta-button {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    margin-top: 40px;

    padding: 15px 0;

    border-bottom: 1px solid
        rgba(216, 170, 69, 0.55);

    text-decoration: none;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 3px;

    color: #ffffff;

    transition:
        gap 0.4s ease,
        border-color 0.4s ease;
}


.gallery-cta-button span {
    font-size: 17px;

    color: #d8aa45;
}


.gallery-cta-button:hover {

    gap: 35px;

    border-color: #d8aa45;
}


/* =========================================================
   IMAGE LOAD ANIMATION
========================================================= */

.gallery-card {

    animation:
        galleryCardReveal
        0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        both;
}


.gallery-card-1 {
    animation-delay: 0.05s;
}


.gallery-card-2 {
    animation-delay: 0.10s;
}


.gallery-card-3 {
    animation-delay: 0.15s;
}


.gallery-card-4 {
    animation-delay: 0.20s;
}


.gallery-card-5 {
    animation-delay: 0.25s;
}


.gallery-card-6 {
    animation-delay: 0.30s;
}


.gallery-card-7 {
    animation-delay: 0.35s;
}


.gallery-card-8 {
    animation-delay: 0.40s;
}


@keyframes galleryCardReveal {

    from {
        opacity: 0;
        transform:
            translateY(25px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .gallery-heading {

        grid-template-columns:
            1fr;

        gap: 30px;

    }


    .gallery-collage {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 230px;

    }


    .gallery-card-1 {

        grid-column: span 2;
        grid-row: span 2;

    }


    .gallery-card-2,
    .gallery-card-3 {

        grid-column: span 1;

    }


    .gallery-card-4 {

        grid-column: span 2;

    }


    .gallery-card-5 {

        grid-column: span 1;
        grid-row: span 2;

    }


    .gallery-card-6 {

        grid-column: span 1;

    }


    .gallery-card-7,
    .gallery-card-8 {

        grid-column: span 1;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .gallery-hero {

        min-height: 65vh;

    }


    .gallery-hero-content {

        width: 88%;

        padding:
            100px 0
            70px;

    }


    .gallery-hero h1 {

        font-size: clamp(
            48px,
            14vw,
            75px
        );

        letter-spacing: -3px;

    }


    .gallery-hero p {

        max-width: 90%;

        font-size: 12px;

        line-height: 1.7;

    }


    .gallery-section {

        padding:
            80px 0
            100px;

    }


    .gallery-wrapper {

        width: 88%;

    }


    .gallery-heading {

        margin-bottom: 45px;

    }


    .gallery-heading h2 {

        font-size: 44px;

        letter-spacing: -2px;

    }


    .gallery-heading > p {

        font-size: 11px;

    }


    .gallery-toggle-wrapper {

        overflow-x: auto;

        margin-bottom: 40px;

        padding-bottom: 5px;

    }


    .gallery-toggle {

        flex-shrink: 0;

    }


    .gallery-toggle-option {

        min-width: 90px;

        padding:
            12px 15px;

    }


    .gallery-title-row {

        margin-bottom: 18px;

    }


    .gallery-name {

        font-size: 8px;

        letter-spacing: 2px;

    }


    .gallery-count {

        font-size: 7px;

        letter-spacing: 2px;

    }


    .gallery-collage {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 190px;

        gap: 8px;

    }


    .gallery-card-1 {

        grid-column: span 2;

        grid-row: span 2;

    }


    .gallery-card-2,
    .gallery-card-3,
    .gallery-card-4,
    .gallery-card-5,
    .gallery-card-6,
    .gallery-card-7,
    .gallery-card-8 {

        grid-column: span 1;

        grid-row: span 1;

    }


    .gallery-card-4 {

        grid-column: span 2;

    }


    .gallery-card-info {

        left: 15px;
        right: 15px;
        bottom: 15px;

    }


    .gallery-card-category {

        font-size: 6px;

        letter-spacing: 2px;

    }


    .gallery-card-info h3 {

        font-size: 17px;

    }


    .gallery-card-arrow {

        width: 30px;
        height: 30px;

        font-size: 13px;

    }


    .gallery-empty {

        min-height: 360px;

        padding: 28px;

    }


    .gallery-empty h3 {

        font-size: 31px;

    }


    .gallery-empty p {

        font-size: 10px;

    }


    .gallery-pagination {

        gap: 12px;

        margin-top: 45px;

    }


    .gallery-pagination-page,
    .gallery-pagination-arrow {

        width: 35px;
        height: 35px;

    }


    .gallery-cta {

        min-height: 55vh;

        padding:
            80px 6%;

    }


    .gallery-cta h2 {

        font-size: 52px;

        letter-spacing: -3px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-hero-content {

        width: 90%;

    }


    .gallery-hero h1 {

        font-size: 48px;

    }


    .gallery-hero p {

        max-width: 100%;

        font-size: 11px;

    }


    .gallery-heading h2 {

        font-size: 38px;

    }


    .gallery-collage {

        grid-auto-rows: 160px;

    }


    .gallery-card-1 {

        grid-row: span 2;

    }


    .gallery-card-info {

        left: 12px;
        right: 12px;
        bottom: 12px;

    }


    .gallery-card-info h3 {

        font-size: 15px;

    }


    .gallery-card-arrow {

        display: none;

    }


    .gallery-empty {

        min-height: 330px;

        padding: 22px;

    }


    .gallery-empty h3 {

        font-size: 27px;

    }


    .gallery-empty p {

        max-width: 270px;

    }


    .gallery-cta h2 {

        font-size: 45px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-card,
    .gallery-card img,
    .gallery-card-info,
    .gallery-card-arrow,
    .gallery-toggle-option.active::before {

        animation: none;

        transition: none;

    }

}



/* =========================================================
   GALLERY IMAGE VIEWER
========================================================= */

.gallery-viewer {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    z-index: 99999;

    pointer-events: none;

    overflow: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =========================================================
   ACTIVE
========================================================= */

.gallery-viewer.active {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   BACKDROP
========================================================= */

.gallery-viewer-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(5, 6, 6, 0.97);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    cursor: pointer;
}


/* =========================================================
   VIEWER CONTAINER
========================================================= */

.gallery-viewer-container {
    position: relative;

    width: min(1300px, 94vw);
    height: min(850px, 92dvh);

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    overflow: visible;

    z-index: 10;

    background: #0b0b0b;

    border: 1px solid var(--border);

    transform: scale(0.96);
    opacity: 0;

    transition:
        transform 0.5s cubic-bezier(.22, .61, .36, 1),
        opacity 0.4s ease;
}


.gallery-viewer.active .gallery-viewer-container {
    transform: scale(1);
    opacity: 1;
}


/* =========================================================
   TOP BAR
========================================================= */

.gallery-viewer-top {
    position: relative;

    height: 65px;
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    flex-shrink: 0;

    z-index: 20;
}


/* =========================================================
   COUNTER
========================================================= */

.gallery-viewer-counter {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--muted);

    font-family: var(--font-main);

    font-size: 10px;

    letter-spacing: 3px;

    user-select: none;
}


.gallery-viewer-counter span:first-child {
    color: var(--gold);
}


.gallery-viewer-counter i {
    width: 30px;
    height: 1px;

    display: block;

    background: var(--border-light);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.gallery-viewer-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    flex-shrink: 0;

    border: 1px solid var(--border-light);

    background: rgba(11, 11, 11, 0.92);

    color: var(--white);

    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.gallery-viewer-close:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: #111;

    transform: rotate(90deg);
}


.gallery-viewer-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* =========================================================
   IMAGE AREA
========================================================= */

.gallery-viewer-image-area {
    position: relative;

    flex: 1;

    min-width: 0;
    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px 80px;

    overflow: hidden;

    z-index: 1;

    touch-action: pan-y;
}


/* =========================================================
   IMAGE
========================================================= */

.gallery-viewer-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55);

    opacity: 0;

    transform: scale(0.97);

    transition:
        opacity 0.35s ease,
        transform 0.5s cubic-bezier(.22, .61, .36, 1);
}


.gallery-viewer-image.loaded {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   NAVIGATION BUTTONS
========================================================= */

.gallery-viewer-nav {
    position: absolute;

    top: 50%;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border-light);

    background:
        rgba(15, 15, 15, 0.88);

    color: var(--white);

    font-family: var(--font-main);

    font-size: 18px;

    cursor: pointer;

    z-index: 10;

    transform: translateY(-50%);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* PREVIOUS */

.gallery-viewer-prev {
    left: 15px;
}


/* NEXT */

.gallery-viewer-next {
    right: 15px;
}


/* HOVER */

.gallery-viewer-nav:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: #111;
}


.gallery-viewer-prev:hover {
    transform:
        translate(-3px, -50%);
}


.gallery-viewer-next:hover {
    transform:
        translate(3px, -50%);
}


/* KEYBOARD / ACCESSIBILITY */

.gallery-viewer-nav:focus-visible {
    outline: 2px solid var(--gold);

    outline-offset: 3px;
}


/* =========================================================
   BOTTOM INFORMATION
========================================================= */

.gallery-viewer-bottom {
    min-height: 90px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding: 20px 22px;

    border-top: 1px solid var(--border);

    flex-shrink: 0;

    z-index: 5;
}


/* =========================================================
   CATEGORY
========================================================= */

.gallery-viewer-category {
    margin-bottom: 8px;

    color: var(--gold);

    font-family: var(--font-main);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.gallery-viewer-title {
    margin: 0;

    color: var(--white);

    font-family: var(--font-heading);

    font-size: 22px;

    font-weight: 400;

    letter-spacing: -0.5px;

    line-height: 1.2;
}


/* =========================================================
   HINT
========================================================= */

.gallery-viewer-hint {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-family: var(--font-main);

    font-size: 8px;

    letter-spacing: 2px;

    white-space: nowrap;
}


.gallery-viewer-hint span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 24px;

    padding: 0 7px;

    border: 1px solid var(--border-light);

    color: var(--white);

    font-size: 8px;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.gallery-viewer-open {
    overflow: hidden;

    width: 100%;

    touch-action: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .gallery-viewer-container {
        width: 94vw;

        height: 92dvh;
    }


    .gallery-viewer-image-area {
        padding: 25px 65px;
    }


    .gallery-viewer-nav {
        width: 46px;
        height: 46px;
    }


    .gallery-viewer-prev {
        left: 10px;
    }


    .gallery-viewer-next {
        right: 10px;
    }


    .gallery-viewer-bottom {
        padding: 18px;
    }

}



@media (max-width: 700px) {

    .gallery-viewer-close {

        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;

        font-size: 21px;

        background: rgba(15, 15, 15, 0.95);

        border-color: rgba(255, 255, 255, 0.18);
    }

}




/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {

    .gallery-viewer-container {
        width: 100vw;
        height: 100dvh;

        max-width: none;
        max-height: none;

        border: none;

        overflow: visible;
    }

    .gallery-viewer-top {
        height: 64px;
        min-height: 64px;

        padding: 0 70px 0 18px;

        box-sizing: border-box;
    }

    .gallery-viewer-image-area {
        padding: 60px 45px 30px;

        min-height: 0;
    }

    .gallery-viewer-image {
        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
    }

    .gallery-viewer-nav {
        width: 42px;
        height: 42px;
    }

    .gallery-viewer-prev {
        left: 8px;
    }

    .gallery-viewer-next {
        right: 8px;
    }

    .gallery-viewer-bottom {
        min-height: 80px;

        padding: 16px 18px;

        box-sizing: border-box;
    }

    .gallery-viewer-title {
        font-size: 17px;
    }

    .gallery-viewer-hint {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .gallery-viewer-top {

        height: 54px;

        min-height: 54px;
    }


    .gallery-viewer-close {

        width: 38px;
        height: 38px;
    }


    .gallery-viewer-image-area {

        padding: 10px 45px;
    }


    .gallery-viewer-nav {

        width: 38px;
        height: 38px;
    }


    .gallery-viewer-bottom {

        min-height: 72px;

        padding: 12px;
    }


    .gallery-viewer-title {

        font-size: 15px;

        max-width: 75vw;
    }

}


/* =========================================================
   VERY SMALL HEIGHT DEVICES
========================================================= */

@media (max-height: 600px) and (max-width: 700px) {

    .gallery-viewer-top {

        height: 48px;

        min-height: 48px;
    }


    .gallery-viewer-image-area {

        padding-top: 8px;

        padding-bottom: 8px;
    }


    .gallery-viewer-bottom {

        min-height: 62px;

        padding: 10px 14px;
    }


    .gallery-viewer-category {

        display: none;
    }


    .gallery-viewer-title {

        font-size: 14px;
    }

}