
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #05070d;
    --surface: #0c101b;
    --text: #ffffff;
    --muted: #aeb5c5;
    --gold: #e5b84b;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.recap-header {
    min-height: 400px;
    padding: 30px 8% 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(61, 77, 125, 0.32), transparent 65%),
        linear-gradient(145deg, #101629, #05070d 75%);
    border-bottom: 1px solid var(--border);
}

.back-link {
    align-self: flex-start;
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--gold);
}

.header-label,
.eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-label {
    margin-top: 55px;
}

.recap-header h1 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
}

.header-subtitle {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1rem;
}

.intro,
.recap-section {
    width: min(1100px, 88%);
    margin: 0 auto;
}

.intro {
    padding: 85px 0 45px;
    text-align: center;
}

.intro h2,
.section-heading h2 {
    margin-top: 12px;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.3;
}

.intro > p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted);
}

.recap-section {
    padding: 35px 0 90px;
}

.section-heading {
    margin-bottom: 35px;
    text-align: center;
}

.section-heading > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.photo-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}

.gallery-note {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

.closing {
    padding: 75px 8%;
    text-align: center;
    background: linear-gradient(145deg, #11182a, #080a12);
    border-top: 1px solid var(--border);
}

.closing h2 {
    margin: 12px 0;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 8px;
}

.closing > p:not(.eyebrow) {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
}

.home-button {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 25px;
    color: #080a10;
    background: var(--gold);
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.3s, opacity 0.3s;
}

.home-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.recap-footer {
    padding: 22px;
    color: var(--muted);
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .recap-header {
        min-height: 340px;
        padding-bottom: 65px;
    }
}

@media (max-width: 520px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .intro,
    .recap-section {
        width: 90%;
    }

    .intro {
        padding-top: 60px;
    }

    .closing {
        padding: 60px 6%;
    }

    .closing h2 {
        letter-spacing: 4px;
    }
}

/* Full-screen photo viewer */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
    padding: 65px 70px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 14px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 125px);
    object-fit: contain;
    border-radius: 5px;
}

#lightboxCounter {
    color: #ffffff;
    font-size: 0.9rem;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(229, 184, 75, 0.8);
    color: #080a10;
}

.lightbox-close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 55px;
    border-radius: 8px;
    font-size: 1.3rem;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .lightbox {
        padding: 60px 42px;
    }

    .lightbox-arrow {
        width: 34px;
        height: 45px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }
}

/* Official Cave Adullam logo */
.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px auto 20px;
}

.header-logo img {
    display: block;
    width: 260px;
    height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.18));
}

@media (max-width: 600px) {
    .header-logo {
        margin: 24px auto 16px;
    }

    .header-logo img {
        width: 200px;
        height: 200px;
    }
}

/* Premium finishing touches */
.photo-gallery img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-gallery img:hover {
    filter: brightness(1.08);
}

.photo-gallery > * {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery > *:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12);
}

.home-button,
.back-link {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.back-link:hover {
    color: #d4af37;
}

@media (prefers-reduced-motion: reduce) {
    .photo-gallery img,
    .photo-gallery > *,
    .home-button,
    .back-link {
        transition: none;
    }
}

/* Final spacing and polish */

/* Keep the logo prominent without excessive header spacing */
.header-label {
    margin-top: 25px;
}

/* Refined gallery cards */
.photo-card {
    border-radius: 14px;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 184, 75, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.photo-card img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

/* Balanced spacing on smaller screens */
@media (max-width: 600px) {
    .recap-header {
        padding-top: 24px;
        padding-bottom: 55px;
    }

    .header-label {
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .header-subtitle {
        max-width: 300px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .photo-gallery {
        gap: 14px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .photo-card,
    .photo-card img {
        transition: none;
    }

    .photo-card:hover {
        transform: none;
    }

    .photo-card:hover img {
        transform: none;
    }
}
