:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --accent-color: #a18cd1;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: 'Outfit', sans-serif;
}

.gallery-shell {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
}

.gallery-header {
    position: relative;
    padding: 34px 0 25px;
    text-align: center;
}

.back-link {
    position: absolute;
    top: 39px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link span {
    font-size: 1.1rem;
}

.eyebrow {
    margin: 21px 0 8px;
    color: #ae718e;
    font-size: 0.67rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.15rem);
    font-weight: 700;
}

.gallery-intro {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.photo-feature {
    width: min(600px, 100%);
    margin: 0 auto;
    padding: 10px 10px 0;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: arrive 600ms ease both;
}

.photo-feature img {
    width: 100%;
    max-height: min(70vh, 780px);
    display: block;
    border-radius: 12px 12px 0 0;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #fecfef, #a18cd1);
}

.photo-feature figcaption {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.gallery-footer {
    padding: 25px 0 35px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.love-note-label {
    margin: 0 0 8px;
    color: #b56c8e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.love-note {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
}

@keyframes arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .gallery-header {
        padding-top: 76px;
    }

    .back-link {
        top: 25px;
    }

    .photo-feature img {
        max-height: 68vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}