:root {
    --saffron: #ff6b00;
    --deep-orange: #d94f00;
    --gold: #ffb300;
    --light-gold: #ffd966;
    --dark-brown: #3a1a00;
    --cream: #fff8ee;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    background: radial-gradient(circle at 10% 10%, rgba(255, 179, 0, 0.15), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.12), transparent 35%),
        linear-gradient(140deg, #1b0900 0%, #2a0e00 42%, #4a1f00 100%);
    color: var(--cream);
    min-height: 100vh;
}

.gallery-hero {
    position: relative;
    padding: 42px 0 26px;
    border-bottom: 1px solid rgba(255, 179, 0, 0.25);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -100px;
    top: -150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.25), rgba(255, 179, 0, 0));
    filter: blur(2px);
}

.hero-kicker {
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--light-gold);
    font-size: 0.72rem;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.5rem, 3.8vw, 2.7rem);
    color: var(--white);
}

.hero-copy {
    color: rgba(255, 230, 180, 0.9);
    max-width: 580px;
    font-size: 1.05rem;
}

.hero-back-link {
    border: 1px solid rgba(255, 179, 0, 0.65);
    background: rgba(255, 179, 0, 0.12);
    color: var(--light-gold);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.76rem;
    letter-spacing: 0.7px;
    transition: all 0.25s ease;
}

.hero-back-link:hover {
    color: var(--dark-brown);
    background: var(--gold);
}

.gallery-page-wrap {
    padding: 34px 0 46px;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-page-card {
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 7px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.gallery-page-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}

.gallery-page-card span {
    display: block;
    padding: 11px 12px;
    color: rgba(255, 232, 197, 0.95);
    font-size: 1.02rem;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.03), rgba(255, 107, 0, 0.2));
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 4, 0, 0.88);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-figure {
    margin: 0;
    width: min(88vw, 1000px);
    max-height: 90vh;
    text-align: center;
}

.gallery-figure img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(255, 179, 0, 0.5);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    background: #2b1507;
}

.gallery-figure figcaption {
    color: var(--light-gold);
    margin-top: 12px;
    font-size: 1.04rem;
    letter-spacing: 0.3px;
}

.gallery-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 0, 0.6);
    background: rgba(255, 179, 0, 0.15);
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 0, 0.65);
    background: rgba(255, 179, 0, 0.15);
    color: var(--white);
}

.gallery-prev {
    left: 18px;
}

.gallery-next {
    right: 18px;
}

@media (max-width: 767px) {
    .gallery-hero {
        padding-top: 30px;
    }

    .gallery-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }
}