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

.gallery-hero *,
.gallery-filter *,
.gallery-showcase *,
.gallery-lightbox * {
    box-sizing: border-box;
}


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

.gallery-hero {
    position: relative;
    overflow: hidden;

    padding: 82px 0;

    background:
        linear-gradient(135deg,
            #f8fafc 0%,
            #edf4fb 100%);
}

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

    position: absolute;

    width: 370px;
    height: 370px;

    top: -230px;
    right: -110px;

    border-radius: 50%;

    background:
        rgba(247, 147, 0, .08);
}

.gallery-hero__grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr) minmax(320px, .85fr);

    align-items: center;

    gap: clamp(45px, 7vw, 95px);
}

.gallery-hero__content {
    min-width: 0;
}

.gallery-hero__eyebrow,
.gallery-filter__eyebrow {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;

    color: var(--naksh-orange);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.gallery-hero__eyebrow span,
.gallery-filter__eyebrow span {
    width: 29px;
    height: 2px;

    flex: 0 0 29px;

    background: var(--naksh-orange);
}

.gallery-hero h1 {
    max-width: 790px;

    margin: 0;

    color: var(--naksh-navy);

    font-size:
        clamp(38px, 4.8vw, 65px);

    line-height: 1.04;

    letter-spacing: -1.8px;
}

.gallery-hero__content>p {
    max-width: 650px;

    margin: 21px 0 0;

    color: var(--naksh-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* BREADCRUMB */

.gallery-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 24px;

    font-size: 10px;
    font-weight: 700;
}

.gallery-hero__breadcrumb a {
    color: var(--naksh-navy);

    text-decoration: none;
}

.gallery-hero__breadcrumb span {
    color: var(--naksh-orange);
}

.gallery-hero__breadcrumb span:last-child {
    color: var(--naksh-muted);
}


/* HERO VISUAL */

.gallery-hero__visual {
    min-width: 0;

    display: flex;
    justify-content: flex-end;
}

.gallery-hero__visual-box {
    position: relative;

    width: min(100%, 410px);
    min-height: 300px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin-left: auto;

    padding: 30px;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(145deg,
            var(--naksh-navy),
            var(--naksh-navy-dark));

    box-shadow:
        0 25px 55px rgba(7, 54, 109, .17);
}

.gallery-hero__visual-box::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -70px;
    right: -70px;

    border-radius: 50%;

    background:
        rgba(247, 147, 0, .10);
}

.gallery-hero__icon {
    position: relative;
    z-index: 2;

    width: 54px;
    height: 54px;

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

    border-radius: 12px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 24px;
}

.gallery-hero__visual-content {
    position: relative;
    z-index: 2;
}

.gallery-hero__visual-content small,
.gallery-hero__visual-content strong,
.gallery-hero__visual-content p {
    display: block;
}

.gallery-hero__visual-content small {
    margin-bottom: 7px;

    color: var(--naksh-orange);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.1px;
}

.gallery-hero__visual-content strong {
    color: #fff;

    font-size: 25px;

    line-height: 1.2;
}

.gallery-hero__visual-content p {
    margin: 10px 0 0;

    color:
        rgba(255, 255, 255, .62);

    font-size: 8px;

    line-height: 1.6;
}

.gallery-hero__watermark {
    position: absolute;

    right: 20px;
    bottom: 13px;

    color:
        rgba(255, 255, 255, .035);

    font-size: 44px;
    font-weight: 900;

    pointer-events: none;
}


/* =========================================================
   FILTER
========================================================= */

.gallery-filter {
    padding: 70px 0 35px;

    background: #fff;
}

.gallery-filter__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.gallery-filter__heading h2 {
    margin: 0;

    color: var(--naksh-navy);

    font-size:
        clamp(28px, 3vw, 40px);

    line-height: 1.1;
}

.gallery-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 8px;
}

.gallery-filter__button {
    appearance: none;

    padding: 10px 15px;

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

    border-radius: 30px;

    background: #fff;

    color: var(--naksh-navy);

    font: inherit;

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

    cursor: pointer;

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

.gallery-filter__button:hover {
    transform: translateY(-1px);

    border-color: var(--naksh-orange);

    color: var(--naksh-orange);
}

.gallery-filter__button.active {
    border-color: var(--naksh-orange);

    background: var(--naksh-orange);

    color: #fff;
}


/* =========================================================
   GALLERY SHOWCASE
========================================================= */

.gallery-showcase {
    padding: 35px 0 95px;

    background: #fff;
}

.gallery-showcase__grid {
    display: grid;

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

    gap: 18px;
}


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

.gallery-card {
    min-width: 0;

    overflow: hidden;

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

    border-radius: 13px;

    background: #fff;

    box-shadow:
        0 7px 25px rgba(15, 23, 42, .045);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(247, 147, 0, .28);

    box-shadow:
        0 18px 38px rgba(7, 54, 109, .10);
}

.gallery-card[hidden] {
    display: none !important;
}


/* IMAGE BUTTON */

.gallery-card__image-button {
    position: relative;

    width: 100%;
    height: 270px;

    display: block;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: #edf2f7;

    cursor: zoom-in;
}

.gallery-card__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform .45s ease;
}

.gallery-card:hover .gallery-card__image {
    transform: scale(1.045);
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(5, 38, 80, 0) 35%,
            rgba(5, 38, 80, .52) 100%);

    pointer-events: none;
}

.gallery-card__category {
    position: absolute;

    left: 13px;
    bottom: 13px;

    max-width:
        calc(100% - 70px);

    padding: 7px 10px;

    border-radius: 25px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .5px;
    text-transform: uppercase;
}

.gallery-card__zoom {
    position: absolute;

    right: 13px;
    bottom: 13px;

    width: 33px;
    height: 33px;

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

    border:
        1px solid rgba(255, 255, 255, .35);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .14);

    backdrop-filter: blur(8px);

    color: #fff;

    font-size: 18px;
}


/* CARD BODY */

.gallery-card__body {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 17px;
}

.gallery-card__number {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

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

    border-radius: 8px;

    background:
        rgba(247, 147, 0, .10);

    color: var(--naksh-orange);

    font-size: 8px;
    font-weight: 900;
}

.gallery-card__content {
    min-width: 0;
}

.gallery-card h2 {
    margin: 0;

    overflow-wrap: anywhere;

    color: var(--naksh-navy);

    font-size: 13px;

    line-height: 1.4;
}

.gallery-card__project {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 7px;

    color: var(--naksh-muted);

    font-size: 8px;
    font-weight: 700;

    text-decoration: none;
}

a.gallery-card__project:hover {
    color: var(--naksh-orange);
}

.gallery-card__project span {
    color: var(--naksh-orange);
}

.gallery-card__project--plain {
    cursor: default;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.gallery-showcase__empty,
.gallery-showcase__filter-empty {
    max-width: 600px;

    margin: auto;

    padding: 55px 25px;

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

    border-radius: 14px;

    background: #f8fafc;

    text-align: center;
}

.gallery-showcase__empty>span,
.gallery-showcase__filter-empty>span {
    color: var(--naksh-orange);

    font-size: 39px;
}

.gallery-showcase__empty h3,
.gallery-showcase__filter-empty h3 {
    margin: 10px 0 0;

    color: var(--naksh-navy);

    font-size: 21px;
}

.gallery-showcase__empty p,
.gallery-showcase__filter-empty p {
    margin: 8px 0 0;

    color: var(--naksh-muted);

    font-size: 10px;

    line-height: 1.7;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    z-index: 99999;

    inset: 0;

    display: none;

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

    padding: 25px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(2, 16, 35, .88);

    backdrop-filter: blur(5px);
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 2;

    width: min(100%, 1050px);
    max-height:
        calc(100vh - 50px);

    overflow: auto;

    border:
        1px solid rgba(255, 255, 255, .12);

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .35);
}

.gallery-lightbox__close {
    position: absolute;
    z-index: 5;

    top: 13px;
    right: 13px;

    width: 40px;
    height: 40px;

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

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:
        rgba(5, 38, 80, .86);

    color: #fff;

    font-size: 24px;

    cursor: pointer;
}

.gallery-lightbox__image-wrap {
    height:
        min(68vh, 650px);

    background: #061d38;
}

.gallery-lightbox__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.gallery-lightbox__content {
    padding: 19px 22px 22px;
}

.gallery-lightbox__category {
    display: block;

    margin-bottom: 5px;

    color: var(--naksh-orange);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .8px;
    text-transform: uppercase;
}

.gallery-lightbox__content h2 {
    margin: 0;

    color: var(--naksh-navy);

    font-size: 19px;

    line-height: 1.35;
}

body.gallery-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1150px) {

    .gallery-showcase__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


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

@media (max-width: 900px) {

    .gallery-hero {
        padding: 70px 0;
    }

    .gallery-hero__grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    /* .gallery-hero__visual-box {
        width: min(100%, 600px);

        margin-left: 0;
    } */


    .gallery-hero__visual {
        justify-content: flex-start;
    }

    .gallery-hero__image-wrap {
        width: min(100%, 650px);
        height: 390px;
    }

    .gallery-filter {
        padding-top: 55px;
    }

    .gallery-filter__inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 22px;
    }

    .gallery-filter__buttons {
        justify-content: flex-start;
    }

    .gallery-showcase__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 650px) {

    .gallery-hero {
        padding: 55px 0;
    }

    .gallery-hero h1 {
        font-size:
            clamp(35px, 11vw, 48px);

        letter-spacing: -1px;
    }

    .gallery-hero__content>p {
        font-size: 12px;
    }

    /* .gallery-hero__visual-box {
        min-height: 230px;

        padding: 23px;

        border-radius: 13px;
    } */

    .gallery-hero__image-wrap {
        width: 100%;
        height: 300px;

        border-radius: 13px;
    }

    .gallery-hero__image-badge {
        left: 14px;
        right: 14px;
        bottom: 14px;

        padding: 10px 11px;
    }

    .gallery-hero__image-badge-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .gallery-hero__image-badge strong {
        font-size: 11px;
    }

    .gallery-filter {
        padding:
            48px 0 25px;
    }

    .gallery-filter__buttons {
        width: 100%;
    }

    .gallery-filter__button {
        padding: 9px 13px;
    }

    .gallery-showcase {
        padding:
            25px 0 58px;
    }

    .gallery-showcase__grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .gallery-card__image-button {
        height: 310px;
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .gallery-lightbox__dialog {
        max-height:
            calc(100vh - 24px);

        border-radius: 12px;
    }

    .gallery-lightbox__image-wrap {
        height: 58vh;
    }

}


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

@media (max-width: 390px) {

    .gallery-card__image-button {
        height: 270px;
    }

    .gallery-lightbox__image-wrap {
        height: 52vh;
    }

    .gallery-lightbox__content {
        padding:
            16px 17px 18px;
    }

    .gallery-hero__image-wrap {
        height: 260px;
    }

}

/* =========================================================
   HERO RIGHT IMAGE
========================================================= */

.gallery-hero__image-wrap {
    position: relative;

    width: min(100%, 470px);
    height: 330px;

    overflow: hidden;

    border-radius: 18px;

    background: #e8eef5;

    box-shadow:
        0 25px 60px rgba(7, 54, 109, .18);
}


.gallery-hero__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform .6s ease;
}


.gallery-hero__image-wrap:hover .gallery-hero__image {
    transform: scale(1.035);
}


/* subtle bottom overlay */

.gallery-hero__image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(5, 38, 80, 0) 45%,
            rgba(5, 38, 80, .55) 100%);

    pointer-events: none;
}


/* bottom information badge */

.gallery-hero__image-badge {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 11px;

    background:
        rgba(5, 38, 80, .82);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.gallery-hero__image-badge-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 9px;

    background: var(--naksh-orange);

    color: #fff;

    font-size: 15px;
    font-weight: 900;
}


.gallery-hero__image-badge div {
    min-width: 0;
}


.gallery-hero__image-badge small {
    display: block;

    margin-bottom: 3px;

    color: var(--naksh-orange);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .8px;
}


.gallery-hero__image-badge strong {
    display: block;

    overflow-wrap: anywhere;

    color: #fff;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.35;
}