/* ============================================
   Web de Boda JM & Pilar — Highlands + Navidad
   ============================================ */

:root {
    --red:        #8B1A1A;
    --red-deep:   #6B1212;
    --green:      #1C3A2A;
    --green-mid:  #2E5E42;
    --cream:      #F5F0E8;
    --brown:      #2C1810;
    --gold:       #C4A44A;
    --white:      #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--brown);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, .hero-names, .section-title, .monogram {
    font-family: 'Playfair Display', serif;
}

/* ---------- Tartán ---------- */

.tartan-bg {
    background-color: var(--red);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0, transparent 40px,
            rgba(28, 58, 42, 0.55) 40px, rgba(28, 58, 42, 0.55) 60px,
            transparent 60px, transparent 75px,
            rgba(196, 164, 74, 0.5) 75px, rgba(196, 164, 74, 0.5) 78px,
            transparent 78px, transparent 110px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0, transparent 40px,
            rgba(28, 58, 42, 0.55) 40px, rgba(28, 58, 42, 0.55) 60px,
            transparent 60px, transparent 75px,
            rgba(196, 164, 74, 0.5) 75px, rgba(196, 164, 74, 0.5) 78px,
            transparent 78px, transparent 110px
        );
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-inner {
    background: rgba(44, 24, 16, 0.45);
    min-height: 100%;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.monogram {
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.monogram span {
    color: var(--gold);
}

.sidebar-date {
    color: var(--gold);
    letter-spacing: 0.3em;
    font-size: 0.85rem;
}

.holly-divider {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0.5rem 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.sidebar-nav a {
    color: var(--cream);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(245, 240, 232, 0.15);
}

.sidebar-nav a.active {
    background: var(--cream);
    color: var(--red-deep);
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    color: var(--cream);
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}
.sidebar-admin {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.6;
    transition: opacity 0.15s;
    border-top: 1px solid rgba(245, 240, 232, 0.2);
    padding-top: 0.8rem;
}
.sidebar-admin::before { content: '🔒'; font-style: normal; font-size: 0.8rem; }
.sidebar-admin:hover { opacity: 1; }

/* ---------- Hamburger ---------- */

.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: var(--red-deep);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Main layout ---------- */

.main-content {
    margin-left: 240px;
    min-height: 100vh;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--green) 0%, var(--green-mid) 60%, var(--green) 100%);
    color: var(--cream);
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-emblem {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-names {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.15;
}

.hero-names .amp {
    color: var(--gold);
}

.hero-date {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

.scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint { animation: none; }
}

/* ---------- Countdown ---------- */

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(245, 240, 232, 0.1);
    border: 1px solid rgba(196, 164, 74, 0.5);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    min-width: 90px;
}

.countdown-item span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.countdown-item small {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}

.countdown-done {
    font-size: 1.4rem;
    color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-gold {
    background: var(--gold);
    color: var(--brown);
}

.btn-gold:hover {
    background: #d4b65e;
}

.btn-red {
    background: var(--red);
    color: var(--cream);
}

.btn-red:hover {
    background: var(--red-deep);
}

/* ---------- Sections ---------- */

.section {
    padding: 4rem 2rem;
    text-align: center;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

/* Sección con foto de fondo difuminada */
.section-photo {
    position: relative;
    overflow: hidden;
}

.section-photo::before {
    content: '';
    position: absolute;
    inset: -30px;                 /* desborda para que el blur no deje bordes claros */
    background-image: var(--section-bg);
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.97);
    transform: scale(1.05);
    z-index: 0;
}

/* Velo crema encima de la foto para legibilidad del texto */
.section-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 240, 232, 0.40);
    z-index: 0;
}

.section-photo > * {
    position: relative;
    z-index: 1;
}

.section-photo .section-title {
    text-shadow: 0 1px 2px rgba(245, 240, 232, 1), 0 2px 10px rgba(245, 240, 232, 0.9);
}

.section-photo .section-text {
    background: rgba(245, 240, 232, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(196, 164, 74, 0.45);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-style: italic;
    color: var(--red-deep);
}

.section-text {
    max-width: 560px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
}

.page-header {
    padding-top: 5rem;
}

.church-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 1rem auto 0.5rem;
    display: block;
}

.venue-logo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    margin: 1rem auto 0.5rem;
    display: block;
}

/* ---------- Mapas ---------- */

.map-card {
    max-width: 700px;
    margin: 1.75rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.map-frame {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 10px;
    border: 3px solid var(--gold);
}

.map-btn {
    align-self: center;
}

/* ---------- Oración ---------- */

.prayer-card {
    max-width: 620px;
    margin: 1.75rem auto 0;
    padding: 2.25rem 2rem;
    background: var(--cream);
    border: 1px solid rgba(196, 164, 74, 0.5);
    border-radius: 12px;
    position: relative;
}

.prayer-card::before,
.prayer-card::after {
    content: '✦';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.9rem;
}

.prayer-card::before { top: 0.85rem; }
.prayer-card::after { bottom: 0.85rem; }

.prayer-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--red-deep);
    font-size: 1.25rem;
    margin: 0.5rem 0 1.25rem;
}

.prayer-card p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--brown);
    margin-bottom: 1rem;
}

.prayer-amen {
    text-align: center;
    color: var(--green-mid) !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.prayer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 24, 16, 0.78);
    padding: 1.5rem;
    overflow-y: auto;
    animation: prayer-fade 0.4s ease;
}

.prayer-modal.hidden {
    display: none;
}

@keyframes prayer-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.prayer-modal-box {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: auto;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    animation: prayer-rise 0.45s ease;
}

@keyframes prayer-rise {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.prayer-modal-box .prayer-card {
    margin-top: 1rem;
    border: none;
    background: var(--cream);
}

.prayer-intro {
    text-align: center;
    color: var(--green);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 0.5rem;
}

.prayer-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--cream);
    color: var(--red);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

.prayer-close:hover {
    background: var(--red);
    color: var(--cream);
}

/* ---------- Flash messages ---------- */

.flash {
    margin: 1.5rem 2rem 0;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
}

.flash-success {
    background: #e8f3ec;
    color: var(--green);
    border: 1px solid var(--green-mid);
}

.flash-error {
    background: #f9e9e9;
    color: var(--red-deep);
    border: 1px solid var(--red);
    text-align: left;
}

.flash-error ul {
    list-style-position: inside;
    font-weight: 400;
}

/* ---------- Forms ---------- */

.form-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
    background: var(--cream);
    border: 1px solid rgba(196, 164, 74, 0.4);
    border-radius: 10px;
    padding: 2rem;
}

.section-white .form-card { background: var(--cream); }
.section-cream .form-card { background: var(--white); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #c9bfae;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--brown);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--gold);
    border-color: var(--gold);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.radio-label,
.checkbox-label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

.field-hint {
    display: block;
    margin-top: 0.3rem;
    color: var(--green-mid);
    font-size: 0.85rem;
}

.form-section-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--red-deep);
    font-size: 1.25rem;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(196, 164, 74, 0.5);
}

.person-block {
    border: 1px solid rgba(196, 164, 74, 0.5);
    border-radius: 8px;
    padding: 1.25rem 1.25rem 0.25rem;
    margin-bottom: 1.25rem;
}

.person-block legend {
    font-weight: 700;
    color: var(--green-mid);
    padding: 0 0.5rem;
}

/* ---------- Music list ---------- */

.music-list {
    list-style: none;
    max-width: 620px;
    margin: 2rem auto 0;
    text-align: left;
}

.music-item {
    background: var(--white);
    border: 1px solid rgba(196, 164, 74, 0.4);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
}

.music-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 52px;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--green-mid);
    background: var(--white);
    color: var(--green-mid);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vote-btn .vote-arrow {
    font-size: 0.85rem;
    line-height: 1;
}

.vote-btn .vote-count {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.vote-btn:hover {
    background: var(--cream);
}

.vote-btn.voted {
    background: var(--green);
    color: var(--gold);
    border-color: var(--green);
}

.vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-btn.vote-locked {
    background: var(--gold);
    color: var(--green);
    border-color: var(--gold);
    cursor: default;
}
.vote-btn.vote-locked:hover { background: var(--gold); }

.music-cover {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.music-artist {
    color: var(--green-mid);
}

.music-spotify {
    display: inline-block;
    margin-left: 0.5rem;
    color: #1DB954;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle;
}

.music-spotify:hover {
    text-decoration: underline;
}

/* ---------- Buscador Spotify ---------- */

.spotify-search {
    position: relative;
}

.spotify-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--white);
    border: 1px solid #c9bfae;
    border-radius: 0 0 6px 6px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.spotify-results.open {
    display: block;
}

.spotify-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: none;
    border-bottom: 1px solid #eee;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    font-family: 'Lato', sans-serif;
}

.spotify-result:hover {
    background: var(--cream);
}

.spotify-result img,
.spotify-result .no-cover {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--gold);
}

.result-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
}

.result-text small {
    color: var(--green-mid);
}

.spotify-chosen.hidden {
    display: none;
}

.spotify-chosen {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.spotify-chosen img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.chosen-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.3;
}

.chosen-info span {
    color: var(--green-mid);
    font-size: 0.9rem;
}

.chosen-clear {
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.music-genre {
    display: inline-block;
    background: var(--green);
    color: var(--cream);
    border-radius: 20px;
    padding: 0.1rem 0.7rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.music-note {
    font-style: italic;
    margin-top: 0.35rem;
    color: #5a4a3a;
}

.music-by {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--gold);
    font-weight: 700;
}

/* ---------- Photo grid ---------- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.photo-card {
    background: var(--white);
    border: 1px solid rgba(196, 164, 74, 0.4);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.photo-zoomable {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.photo-zoomable:hover {
    opacity: 0.9;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 24, 16, 0.92);
    padding: 2rem;
}

.lightbox.hidden {
    display: none;
}

.lb-figure {
    max-width: min(90vw, 1100px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.lb-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.lb-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    border: 3px solid var(--gold);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Ayuda de gestos en el visor */
.lb-hint {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 16, 12, 0.8);
    color: var(--cream);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-align: center;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
.lb-hint.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Animación de doble-tap (like/unlike) */
.lb-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: 6rem;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.lb-burst.show {
    animation: lb-burst-pop 0.7s ease-out;
}
@keyframes lb-burst-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    60%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

.lb-figure figcaption {
    color: var(--cream);
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}

.lb-close,
.lb-nav {
    position: fixed;
    border: none;
    background: rgba(245, 240, 232, 0.12);
    color: var(--cream);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.lb-close {
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 2rem;
    line-height: 1;
}

.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-close:hover,
.lb-nav:hover {
    background: var(--gold);
    color: var(--brown);
}

@media (max-width: 600px) {
    .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
}

.photo-card figcaption {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    text-align: left;
}

.photo-caption {
    font-weight: 700;
}

.photo-author {
    font-size: 0.85rem;
    color: var(--green-mid);
}

.like-btn {
    margin-top: 0.4rem;
    border: 1px solid var(--red);
    background: var(--white);
    color: var(--red);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.like-btn.liked {
    background: var(--red);
    color: var(--cream);
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Winner banner ---------- */

.winner-banner {
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.winner-figure {
    max-width: 560px;
    margin: 1.5rem auto 0;
}

.winner-figure img {
    width: 100%;
    border-radius: 10px;
    border: 4px solid var(--gold);
}

.winner-figure figcaption {
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--green);
    color: var(--cream);
    font-size: 0.9rem;
}

.footer-emblem {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 0.75rem;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.75;
}
.footer-copy a {
    color: var(--gold);
    text-decoration: none;
}
.footer-copy a:hover { text-decoration: underline; }

.gallery-jump {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin: -0.5rem auto 1.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--green);
    color: var(--cream);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 8px rgba(28, 58, 42, 0.2);
}
.gallery-jump:hover { background: var(--green-mid); }

.form-closed {
    text-align: center;
    color: var(--brown);
}
.form-closed .form-section-title {
    color: var(--red);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 0.75rem;
    }

    .countdown-item {
        min-width: 72px;
        padding: 0.75rem 0.9rem;
    }
}
