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

.gallery-page-hero {
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(3, 30, 51, 0.94) 0%,
            rgba(3, 30, 51, 0.75) 45%,
            rgba(3, 30, 51, 0.24) 100%
        ),
        url("../images/travel/meghalaya-waterfalls.webp")
        center center / cover
        no-repeat;
    color: #ffffff;
    display: flex;
    min-height: 650px;
    padding:
        calc(var(--header-height) + 70px)
        0
        90px;
    position: relative;
}

.gallery-page-hero-overlay {
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(3, 30, 51, 0.36) 100%
        );
    inset: 0;
    position: absolute;
}

.gallery-page-hero-container {
    position: relative;
    z-index: 2;
}

.gallery-page-hero-content {
    max-width: 820px;
}

.gallery-page-hero h1 {
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: clamp(3.6rem, 6vw, 6.4rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.gallery-page-hero-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 25px;
    max-width: 620px;
}

.gallery-page-hero-content > .button {
    margin-top: 32px;
}


/* =========================================================
   GALLERY COLLECTION
   ========================================================= */

.gallery-collection-section {
    background: #f7f9fa;
}

.gallery-page-heading {
    align-items: end;
    display: grid;
    gap: 70px;
    grid-template-columns: 1.1fr 0.9fr;
}

.gallery-page-heading > p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 520px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 45px;
}

.gallery-filter {
    background: #ffffff;
    border: 1px solid rgba(6, 47, 82, 0.1);
    border-radius: 999px;
    color: var(--navy-800);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 11px 18px;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.gallery-filter:hover {
    border-color: var(--gold-500);
    transform: translateY(-1px);
}

.gallery-filter.active {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: #ffffff;
}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.full-gallery-grid {
    display: grid;
    gap: 18px;
    grid-auto-flow: dense;
    grid-auto-rows: 250px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 34px;
}

.full-gallery-item {
    background: transparent;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    grid-column: span 1;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

.full-gallery-item.hidden {
    display: none;
}


/* Image */

.full-gallery-item img {
    height: 100%;
    object-fit: cover;
    transition:
        filter 500ms ease,
        transform 700ms ease;
    width: 100%;
}


/* Overlay */

.full-gallery-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(3, 30, 51, 0.02) 20%,
            rgba(3, 30, 51, 0.18) 52%,
            rgba(3, 30, 51, 0.9) 100%
        );
    inset: 0;
    position: absolute;
    transition: background 300ms ease;
}


/* Caption */

.full-gallery-content {
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding: 22px;
    position: absolute;
    right: 0;
    z-index: 2;
}

.gallery-item-large .full-gallery-content {
    padding: 30px;
}

.full-gallery-content span {
    color: var(--gold-500);
    display: block;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.full-gallery-content h3 {
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
}

.gallery-item-large .full-gallery-content h3 {
    font-size: 2.1rem;
}


/* Expand Icon */

.gallery-open-icon {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    height: 42px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    transform: translateY(-8px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    width: 42px;
    z-index: 3;
}


/* Hover */

.full-gallery-item:hover img {
    filter: brightness(0.9);
    transform: scale(1.055);
}

.full-gallery-item:hover .full-gallery-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(3, 30, 51, 0.05) 20%,
            rgba(3, 30, 51, 0.3) 52%,
            rgba(3, 30, 51, 0.95) 100%
        );
}

.full-gallery-item:hover .gallery-open-icon {
    opacity: 1;
    transform: translateY(0);
}


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

.gallery-cta-section {
    background: #ffffff;
    padding: 0 0 90px;
}

.gallery-cta {
    align-items: center;
    background:
        linear-gradient(
            110deg,
            var(--navy-950),
            #0a4a69
        );
    border-radius: 26px;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px;
    position: relative;
}

.gallery-cta::after {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    height: 350px;
    position: absolute;
    right: -80px;
    top: -180px;
    width: 350px;
}

.gallery-cta > div {
    max-width: 670px;
    position: relative;
    z-index: 2;
}

.gallery-cta span {
    color: var(--gold-500);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-cta h2 {
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    margin-top: 8px;
}

.gallery-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.75;
    margin-top: 10px;
    max-width: 580px;
}

.gallery-cta .button {
    flex-shrink: 0;
    margin-left: 35px;
    position: relative;
    z-index: 2;
}


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

.gallery-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 5000;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-backdrop {
    background: rgba(1, 15, 26, 0.94);
    inset: 0;
    position: absolute;
}


/* Dialog */

.gallery-lightbox-dialog {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    max-width: 1180px;
    position: relative;
    width: calc(100% - 100px);
    z-index: 2;
}


/* Image */

.gallery-lightbox-image-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 76vh;
    overflow: hidden;
}

.gallery-lightbox-image-wrap img {
    border-radius: 12px;
    display: block;
    max-height: 76vh;
    max-width: 100%;
    object-fit: contain;
}


/* Close */

.gallery-lightbox-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: -58px;
    width: 44px;
}


/* Previous / Next */

.gallery-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    transition:
        background 180ms ease,
        color 180ms ease;
    width: 48px;
    z-index: 3;
}

.gallery-lightbox-nav:hover {
    background: var(--gold-500);
    color: var(--navy-950);
}

.gallery-lightbox-prev {
    left: -70px;
}

.gallery-lightbox-next {
    right: -70px;
}


/* Caption */

.gallery-lightbox-caption {
    align-items: center;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
}

.gallery-lightbox-caption > div:first-child span {
    color: var(--gold-500);
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-lightbox-caption h2 {
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
    margin-top: 3px;
}

.gallery-lightbox-counter {
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    font-size: 0.73rem;
    gap: 5px;
}


/* Stop body scroll */

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


/* Active Nav */

.main-nav > a.active:not(.button) {
    color: var(--gold-500);
}