:root {
    --bg: #f8f3eb;
    --surface: #fff9f0;
    --ink: #1e1a16;
    --muted: #6e6255;
    --accent: #df5c39;
    --accent-soft: #f4b59f;
    --shadow: 0 14px 34px rgba(48, 30, 11, 0.16);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px circle at 10% 10%, #ffe7ca 0%, rgba(255, 231, 202, 0) 50%),
        radial-gradient(900px circle at 90% 18%, #ffd7c0 0%, rgba(255, 215, 192, 0) 45%),
        linear-gradient(180deg, #fbf7f2 0%, #f3ebdf 100%);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    min-height: 100dvh;
}

h1,
h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    letter-spacing: 0.02em;
    margin: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.48;
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: #ffc989;
    top: -56px;
    left: -70px;
}

.orb-2 {
    width: 340px;
    height: 340px;
    background: #ff9f8f;
    right: -90px;
    bottom: -140px;
}

.hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 52px 20px 24px;
    text-align: center;
    animation: fade-in-up 650ms ease both;
}

.eyebrow {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    margin-top: 8px;
}

.subtitle {
    margin: 10px auto 0;
    max-width: 560px;
    color: var(--muted);
}

.content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 20px 40px;
}

.empty-state {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 34px;
    text-align: center;
    box-shadow: var(--shadow);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.tile {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 650ms ease forwards;
}

.tile:nth-child(3n + 2) {
    animation-delay: 60ms;
}

.tile:nth-child(3n + 3) {
    animation-delay: 120ms;
}

.photo-btn {
    display: block;
    width: 100%;
    border: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
    cursor: zoom-in;
    text-align: left;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-btn:hover,
.photo-btn:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 32px rgba(48, 30, 11, 0.22);
}

.photo-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.photo-btn img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    background: #e8dac7;
}

.meta {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    padding: 12px 12px 14px;
}

.lightbox {
    border: 0;
    padding: 0;
    width: min(1040px, 94vw);
    border-radius: var(--radius-md);
    background: #12100d;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(13, 9, 5, 0.76);
    backdrop-filter: blur(4px);
}

.lightbox-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
}

.caption {
    margin: 0;
    font-size: 0.9rem;
    color: #f6d8c4;
}

.close {
    border: 1px solid #f2cab1;
    background: transparent;
    color: #f2cab1;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.lightbox-body {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: 0 8px 10px;
}

.lightbox-body img {
    width: 100%;
    max-height: min(76vh, 780px);
    object-fit: contain;
}

.nav {
    border: 0;
    border-radius: 10px;
    height: 44px;
    width: 44px;
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .hero {
        padding-top: 34px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .photo-btn img {
        height: 190px;
    }

    .lightbox-body {
        grid-template-columns: 36px 1fr 36px;
    }

    .nav {
        height: 34px;
        width: 34px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
