/* Page banner */
.page-banner {
    position: relative;
    z-index: 3;
    padding-top: calc(var(--header-h) + 76px);
    padding-bottom: 56px;
    text-align: center;
    overflow: hidden;
}

/* Soft glow behind the banner text */
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(245, 166, 58, .14) 0%, transparent 68%),
        linear-gradient(180deg, rgba(28, 9, 6, .1), transparent 60%);
}

.page-banner-inner {
    max-width: 780px;
    margin: 0 auto;
    animation: heroFadeUp 1s cubic-bezier(.2, .8, .25, 1) both;
}

/* Entrance animation for the banner content */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(45px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cormorant Garamond', 'Poppins', serif;
    font-size: clamp(15px, 1.8vw, 19px);
    font-style: italic;
    letter-spacing: 3px;
    color: #ffe6c9;
    opacity: .9;
}

/* Gradient text title */
.page-title {
    margin-top: 10px;
    font-family: 'Playfair Display', 'Poppins', serif;
    font-weight: 900;
    font-size: clamp(46px, 7vw, 80px);
    line-height: 1.25;
    background: linear-gradient(100deg, #fff 0%, #ffe6c9 30%, var(--orange-2) 60%, var(--red-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    text-shadow: 0 6px 30px rgba(240, 85, 60, .3);
}

.page-divider {
    width: 84px;
    height: 3px;
    margin: 18px auto 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange-2), var(--red-1));
    box-shadow: 0 0 14px rgba(245, 136, 59, .55);
}

.page-lead {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 239, 223, .88);
    font-size: clamp(14.5px, 1.6vw, 17.5px);
    line-height: 1.8;
}

/* Breadcrumb navigation */
.breadcrumb {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 239, 223, .7);
}

.breadcrumb a {
    color: rgba(255, 239, 223, .85);
    text-decoration: none;
    transition: color .25s ease;
}

.breadcrumb a:hover {
    color: #ffd27a;
}

.crumb-sep {
    opacity: .55;
}

.crumb-current {
    color: #f7b24a;
    font-weight: 600;
}

/* Filter Tabs */
.filter-section {
    position: relative;
    z-index: 3;
    padding-bottom: 30px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-tab {
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-fill);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    color: rgba(255, 255, 255, .85);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, transform .25s ease, box-shadow .3s ease;
}

.filter-tab:hover {
    color: #fff;
    transform: translateY(-2px);
}

.filter-tab.active {
    color: #fff;
    background: linear-gradient(120deg, var(--orange-2), var(--red-1));
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(240, 85, 60, .4);
}

/* Gallery Grid */
.gallery-section {
    position: relative;
    z-index: 3;
    padding: 10px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
    transition: transform .5s cubic-bezier(.2, .8, .25, 1), box-shadow .5s ease, opacity .35s ease;
    animation: cardFadeUp .7s cubic-bezier(.2, .8, .25, 1) both;
}

.gallery-item.hide {
    display: none;
}

/* Staggered entrance so cards fade up */
.gallery-item:nth-child(1) {
    animation-delay: .05s;
}

.gallery-item:nth-child(2) {
    animation-delay: .13s;
}

.gallery-item:nth-child(3) {
    animation-delay: .21s;
}

.gallery-item:nth-child(4) {
    animation-delay: .29s;
}

.gallery-item:nth-child(5) {
    animation-delay: .37s;
}

.gallery-item:nth-child(6) {
    animation-delay: .45s;
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout variants for a varied */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .25, 1), filter .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.09);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(240, 85, 60, .28);
}

/* Dark gradient at the bottom of each card */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(0deg, rgba(8, 3, 2, .88) 0%, rgba(8, 3, 2, .25) 55%, transparent 85%);
    opacity: .92;
    transition: opacity .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1a0a06;
    background: linear-gradient(120deg, var(--orange-2), #ffd27a);
}

.gallery-item h3 {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.gallery-zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .25, 1);
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox (fullscreen image viewer) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(56, 14, 10, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
    transform: scale(.92);
    transition: transform .4s cubic-bezier(.2, .8, .25, 1);
}

.lightbox.open .lightbox-inner {
    transform: scale(1);
}

.lightbox-inner img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.lightbox-caption {
    margin-top: 20px;
}

.lightbox-caption .gallery-tag {
    margin-bottom: 10px;
}

.lightbox-caption h3 {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* Close / prev / next controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-fill);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    color: #fff;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, .22);
}

.lightbox-close {
    top: -54px;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.lightbox-prev,
.lightbox-next {
    top: 45%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: -20px;
}

.lightbox-next {
    right: -20px;
}

/* Standard Responsive Design */
@media (max-width: 980px) {
    nav.main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (max-width: 640px) {
    .page-banner {
        padding-top: calc(var(--header-h) + 50px);
        padding-bottom: 42px;
    }

    .scroll-top-btn {
        bottom: 10px;
        right: 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item.tall,
    .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .filter-tab {
        padding: 9px 18px;
        font-size: 13px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-prev {
        left: 4px;
        top: 38%;
    }

    .lightbox-next {
        right: 4px;
        top: 38%;
    }

    .lightbox-close {
        top: -46px;
        right: 4px;
    }
}

/* Respect the user's OS-level reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .blob,
    header,
    .hamburger span,
    .mobile-menu,
    .mobile-menu nav a,
    .scroll-top-btn.show,
    footer,
    .yellow-ring,
    .logo svg,
    .page-banner-inner,
    .gallery-item,
    .gallery-item img,
    .lightbox,
    .lightbox-inner {
        animation: none !important;
        transition: none !important;
    }
}