*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #fff;
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   PAGE BANNER SECTION
============================================================ */

.page-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.52) saturate(0.75);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgb(9, 30, 36) 0%,
            rgba(9, 30, 36, 0.836) 35%,
            rgba(9, 30, 36, 0.18) 65%,
            rgba(9, 30, 36, 0.08) 100%);
}

.banner-content {
    position: absolute;
    bottom: 13vh;
    left: 80px;
    z-index: 10;
    max-width: 680px;
}

.banner-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.banner-eyebrow-line {
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #4ecdc4);
    flex-shrink: 0;
}

.banner-eyebrow-label {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.32em;
    color: #4ecdc4;
    text-transform: uppercase;
}

.banner-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.18;
    color: #ffffff;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(20px);
    animation: bannerTitleIn 0.9s ease 0.2s forwards;
}

@keyframes bannerTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-scroll-indicator {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6));
    margin-bottom: 10px;
    animation: lineFlicker 2.8s ease-in-out infinite;
}

@keyframes lineFlicker {
    0% {
        opacity: 0;
        transform: scaleY(0.3);
        transform-origin: top;
    }

    30% {
        opacity: 1;
        transform: scaleY(1);
    }

    70% {
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        opacity: 0;
        transform: scaleY(0.3);
        transform-origin: bottom;
    }
}

.scroll-text {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    animation: scrollTextFade 2.8s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes scrollTextFade {
    0% {
        opacity: 0;
        transform: rotate(180deg) translateY(-8px);
    }

    25% {
        opacity: 1;
        transform: rotate(180deg) translateY(0);
    }

    75% {
        opacity: 1;
        transform: rotate(180deg) translateY(0);
    }

    100% {
        opacity: 0;
        transform: rotate(180deg) translateY(8px);
    }
}

@media (max-width: 900px) {
    .banner-content {
        left: 48px;
        max-width: calc(100% - 80px);
    }
}

@media (max-width: 600px) {
    .banner-content {
        left: 24px;
        right: 40px;
        max-width: 100%;
        bottom: 12vh;
    }

    .banner-scroll-indicator {
        right: 8px;
    }

    .scroll-line {
        height: 56px;
    }
}


/* ============================================================
   SCROLL REVEAL
============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   GALLERY SECTION
============================================================ */

.gallery-section {
    width: 100%;
    padding: 80px 72px 100px;
    overflow: hidden;
}

.gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-heading-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gallery-eyebrow-line {
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(to left, transparent, #4ecdc4);
    flex-shrink: 0;
}

.gallery-eyebrow-line:nth-child(1) {
    background: linear-gradient(to right, transparent, #4ecdc4);
}

.gallery-eyebrow-label {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: #4ecdc4;
    text-transform: uppercase;
}

.gallery-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 52px);
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gallery-desc {
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    max-width: 800px;
    margin: 0 auto 48px;
}


/* ── Masonry Grid ──
   JS sets grid-column: span N and grid-row: span N on each item.
   grid-auto-rows defines the base row height.              */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
}


/* ── Gallery Item ── */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(4, 12, 16, 0.85) 0%,
            rgba(4, 180, 160, 0.1) 50%,
            rgba(4, 12, 16, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-item-overlay::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(78, 205, 196, 0.6);
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.gallery-expand-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.gallery-expand-icon svg {
    width: 20px;
    height: 20px;
    stroke: #4ecdc4;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-item-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-overlay::before {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover .gallery-expand-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover .gallery-item-title {
    opacity: 1;
    transform: translateY(0);
}


/* ── Lightbox ── */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.gallery-lightbox.active .gallery-lightbox-content {
    transform: scale(1) translateY(0);
}

.gallery-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: block;
}

.gallery-lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

.gallery-lightbox-title {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
}

.gallery-lightbox-counter {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 50%;
    background: rgba(8, 22, 30, 0.9);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lightbox-close:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    transform: rotate(90deg);
}

.gallery-lightbox-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 50%;
    background: rgba(8, 22, 30, 0.8);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.gallery-lightbox-nav:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-nav svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-lightbox-prev {
    left: -80px;
}

.gallery-lightbox-next {
    right: -80px;
}


/* ── Responsive ── */

@media (max-width: 900px) {
    .gallery-section {
        padding: 64px 32px 80px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }

    /* Reset JS spans and reflow naturally on tablet */
    .gallery-item[style*="grid-column: span 2"] {
        grid-column: span 2;
    }

    .gallery-item[style*="grid-column: span 1"] {
        grid-column: span 1;
    }

    .gallery-lightbox-prev {
        left: 20px;
    }

    .gallery-lightbox-next {
        right: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-section {
        padding: 52px 16px 64px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 8px;
    }

    /* Single column — all spans reset to 1 */
    .gallery-item {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .gallery-heading {
        font-size: 28px;
    }

    .gallery-desc {
        font-size: 13px;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        top: auto;
        bottom: -70px;
        transform: none;
    }

    .gallery-lightbox-prev:hover,
    .gallery-lightbox-next:hover {
        transform: scale(1.1);
    }

    .gallery-lightbox-prev {
        left: calc(50% - 60px);
    }

    .gallery-lightbox-next {
        right: calc(50% - 60px);
    }

    .gallery-lightbox-info {
        bottom: -50px;
    }

    .gallery-lightbox-title {
        font-size: 16px;
    }
}