* {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --taufe-blue-dark: #a98a4f;   /* warmes Gold - Haupttext/Akzent */
    --taufe-blue: #cba86e;        /* helleres Gold - Verlaufspartner */
    --taufe-blue-light: #f7ede0;  /* zartes Creme */
    --taufe-blue-pale: #e8d9bd;   /* blasses Gold - Rahmen */
    --taufe-gold: #c98a6e;        /* Rosé/Terrakotta - Akzentfarbe */
    --taufe-gold-light: #f0ddb8;  /* helles Gold */
    --taufe-cream: #fdf9f0;
    --taufe-text: #5a4a35;
}

body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #fdf9f0 0%, #f7ede0 100%);
    color: var(--taufe-text);
}

h1, h2, .section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Login ---------- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #f7ede0 0%, #fdf9f0 55%, #f3e6cd 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-body::after {
    content: "💧";
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    bottom: 10%;
    right: 12%;
}

.admin-entry {
    position: absolute;
    top: 8%;
    left: 10%;
    width: 64px;
    height: 64px;
    display: block;
    z-index: 2;
    text-decoration: none;
}

.admin-entry::before {
    content: "💧";
    font-size: 3rem;
    opacity: 0.15;
    transition: opacity 0.2s;
}

.admin-entry:hover::before,
.admin-entry:focus::before {
    opacity: 0.35;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 46px 36px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(169, 138, 79, 0.15);
    border: 1px solid var(--taufe-blue-pale);
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.login-box h1 {
    margin: 0 0 6px;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--taufe-blue-dark);
}

.subtitle {
    color: #7a8593;
    font-size: 0.95rem;
    margin-bottom: 26px;
    font-style: italic;
}

.login-box form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.login-box label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 14px;
    color: #5a6472;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-box input {
    padding: 12px 14px;
    border: 1.5px solid var(--taufe-blue-pale);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--taufe-blue);
}

.login-box button {
    margin-top: 26px;
    padding: 14px;
    background: linear-gradient(135deg, var(--taufe-blue-dark), var(--taufe-blue));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(169, 138, 79, 0.3);
}

.login-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(169, 138, 79, 0.4);
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.alert-error {
    background: #fdeaea;
    color: #c0392b;
}

/* ---------- Layout ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--taufe-blue-dark), var(--taufe-blue));
    padding: 22px 28px;
    box-shadow: 0 4px 16px rgba(169, 138, 79, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    font-size: 1.7rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.2s;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.site-footer {
    text-align: center;
    padding: 26px 16px 40px;
    color: #a8987a;
    font-size: 0.85rem;
    font-style: italic;
}

/* ---------- Gästebuch: Teaser-Banner ---------- */
.guestbook-teaser {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff, var(--taufe-blue-light));
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 12px rgba(169, 138, 79, 0.08);
}

.guestbook-teaser:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(169, 138, 79, 0.15);
}

.guestbook-teaser-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.guestbook-teaser-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guestbook-teaser-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--taufe-blue-dark);
}

.guestbook-teaser-sub {
    font-size: 0.85rem;
    color: #a8987a;
}

.guestbook-teaser-arrow {
    font-size: 1.4rem;
    color: var(--taufe-gold);
    flex-shrink: 0;
}

/* ---------- Gästebuch: Popup ---------- */
.guestbook-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(58, 45, 20, 0.55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.guestbook-modal-overlay.active {
    display: flex;
}

.guestbook-modal {
    background: #fdf9f0;
    border-radius: 20px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.guestbook-modal h2 {
    margin-top: 0;
}

.guestbook-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #a8987a;
    cursor: pointer;
}

.guestbook-modal-close:hover {
    color: var(--taufe-blue-dark);
}

.guestbook-intro {
    font-size: 0.9rem;
    color: #a8987a;
    font-style: italic;
    margin: -6px 0 18px;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.guestbook-form input,
.guestbook-form textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--taufe-blue-pale);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--taufe-blue);
}

.guestbook-form button {
    align-self: flex-start;
    background: var(--taufe-blue-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.guestbook-form button:hover {
    background: #8f7340;
}

.guestbook-entries {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guestbook-entry {
    background: #fff;
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 12px;
    padding: 14px 18px;
}

.guestbook-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.guestbook-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--taufe-blue-dark);
}

.guestbook-date {
    font-size: 0.75rem;
    color: #a8987a;
    margin-left: auto;
}

.guestbook-message {
    margin: 0;
    font-size: 0.92rem;
    color: #5a4a35;
    line-height: 1.5;
    word-break: break-word;
}

.guestbook-reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--taufe-blue-pale);
}

.reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reaction-pill {
    background: var(--taufe-blue-light);
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.82rem;
    color: var(--taufe-blue-dark);
    font-weight: 600;
}

.reset-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.reset-btn:hover {
    opacity: 1;
    transform: rotate(-45deg);
}

.reset-all-btn {
    display: inline-block;
    background: #fff;
    border: 1.5px solid var(--taufe-blue-pale);
    color: var(--taufe-blue-dark);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.reset-all-btn:hover {
    background: var(--taufe-blue-light);
}

.reaction-picker {
    position: relative;
}

.reaction-trigger {
    background: #fff;
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 50px;
    padding: 4px 11px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s, border-color 0.2s;
}

.reaction-trigger:hover {
    transform: translateY(-1px) scale(1.06);
    background: var(--taufe-blue-light);
}

.reaction-trigger.reacted {
    background: var(--taufe-blue-light);
    border-color: var(--taufe-blue);
}

.reaction-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 16px;
    padding: 8px;
    gap: 2px;
    box-shadow: 0 6px 18px rgba(169, 138, 79, 0.2);
    z-index: 5;
    flex-wrap: wrap;
    width: 190px;
}

.reaction-menu.open {
    display: flex;
}

.reaction-menu-item {
    background: none;
    border: none;
    font-size: 1.3rem;
    padding: 4px 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s;
    line-height: 1;
}

.reaction-menu-item:hover {
    transform: scale(1.3);
    background: var(--taufe-blue-light);
}

@media (max-width: 480px) {
    .guestbook-teaser {
        padding: 14px 16px;
    }
    .guestbook-modal {
        padding: 24px 20px;
    }
    .guestbook-form button {
        align-self: stretch;
    }
    .guestbook-entry-header {
        flex-wrap: wrap;
    }
    .guestbook-date {
        margin-left: 0;
    }
}

/* ---------- Taufspruch & Taufpaten ---------- */
.verse-section {
    text-align: center;
    background: linear-gradient(160deg, #fff, var(--taufe-blue-light));
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 18px;
    padding: 36px 28px 30px;
    margin-bottom: 32px;
    box-shadow: 0 4px 18px rgba(169, 138, 79, 0.08);
}

.verse-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--taufe-blue-dark);
    max-width: 640px;
    margin: 0 auto 10px;
}

.verse-source {
    font-size: 0.85rem;
    color: #b79a6b;
    letter-spacing: 0.4px;
    margin: 0 0 4px;
}

.verse-divider {
    width: 56px;
    height: 1px;
    background: var(--taufe-blue-pale);
    margin: 24px auto;
}

.verse-intro {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #a8987a;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 18px;
}

.godparents-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--taufe-gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.godparents-names {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.godparent-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--taufe-blue-dark);
}

.godparents-divider {
    color: var(--taufe-gold);
    font-size: 1.2rem;
}

.godparents-of {
    font-size: 0.9rem;
    color: #a8987a;
    margin: 0 0 6px;
}

.godchild-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--taufe-blue-dark);
    margin: 0;
}

.godchild-dates {
    font-size: 0.9rem;
    color: #a8987a;
    margin: 0 0 4px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--taufe-blue-dark);
}

.zip-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.download-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff, #f4f9fd);
    color: #a98a4f;
    border: 1.5px solid #e8d9bd;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(169, 138, 79, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, border-color 0.2s;
}

.download-all-btn:hover {
    background: linear-gradient(135deg, #fdf9f0, #f0e0c0);
    border-color: #a9d3ec;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 138, 79, 0.18);
}

.download-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(169, 138, 79, 0.15);
}

.images-btn {
    color: #a98a4f;
    border-color: #e8d9bd;
}

.videos-btn {
    color: #8a6a3a;
    border-color: #f0ddb8;
    background: linear-gradient(135deg, #ffffff, #f7ede0);
}

.videos-btn:hover {
    background: linear-gradient(135deg, #fbf1dc, #f7e8c9);
    border-color: #e6cb8e;
}

@media (max-width: 480px) {
    .download-all-btn {
        width: 100%;
    }
}

.count {
    color: #a8987a;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

/* ---------- Upload ---------- */
.upload-section {
    margin-bottom: 44px;
    background: #fff;
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(169, 138, 79, 0.08);
}

.video-add-heading {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #f0f3f6;
}

/* ---------- Statistiken ---------- */
.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.stats-card {
    background: var(--taufe-blue-light);
    border: 1px solid var(--taufe-blue-pale);
    border-radius: 14px;
    padding: 18px 24px;
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.stats-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--taufe-blue-dark);
}

.stats-label {
    font-size: 0.8rem;
    color: #8a93a0;
}

.upload-section h3 {
    font-size: 1.05rem;
    color: var(--taufe-blue-dark);
    margin: 26px 0 10px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.85rem;
}

.stats-table th,
.stats-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f3f6;
}

.stats-table th {
    background: var(--taufe-blue-light);
    color: var(--taufe-blue-dark);
    font-weight: 700;
}

.stats-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

@media (max-width: 480px) {
    .stats-table {
        font-size: 0.75rem;
    }
    .stats-thumb {
        width: 32px;
        height: 32px;
    }
}

.dropzone {
    border: 2px dashed var(--taufe-blue-pale);
    border-radius: 14px;
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--taufe-blue-light);
    transition: background 0.2s, border-color 0.2s;
}

.dropzone p {
    margin: 0;
    color: #5a6472;
}

.dropzone.dragover {
    background: #f0e0c0;
    border-color: var(--taufe-blue);
}

.upload-list {
    margin-top: 12px;
}

.progress-container {
    margin-top: 14px;
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8ee;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--taufe-blue-dark), var(--taufe-blue));
    transition: width 0.2s ease;
}

.progress-bar-fill.error {
    background: #c0392b;
}

.progress-text {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}

.progress-text.error-text {
    color: #c0392b;
    font-weight: 600;
}

.upload-status {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    background: #eee;
}

.upload-status.ok {
    background: #e6f7ec;
    color: #1e7e42;
}

.upload-status.fail {
    background: #fdeaea;
    color: #c0392b;
}

/* ---------- Gallery ---------- */
.mobile-hint {
    background: var(--taufe-blue-light);
    color: var(--taufe-blue-dark);
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--taufe-blue-pale);
    margin: 0 0 20px;
    line-height: 1.5;
}

.media-category {
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(169, 138, 79, 0.06);
}

.media-category h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 18px;
}

.empty-state-small {
    color: #a8987a;
    font-size: 0.9rem;
    padding: 16px 0;
    text-align: center;
}

.empty-state {
    color: #a8987a;
    text-align: center;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(169, 138, 79, 0.1);
    border: 1px solid #f0f3f6;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 138, 79, 0.16);
}

.thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    background: #000;
}

.gallery-item[data-type="video"] .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* ---------- YouTube-Video-Einbettung ---------- */
.add-video-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.add-video-form input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1.5px solid var(--taufe-blue-pale);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
}

.add-video-form input[type="text"]:focus {
    outline: none;
    border-color: var(--taufe-blue);
}

.add-video-form button {
    background: var(--taufe-blue-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.add-video-form button:hover {
    background: #8f7340;
}

.video-hint {
    margin-top: 0;
}

.video-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.video-embed-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(169, 138, 79, 0.1);
    border: 1px solid #f0f3f6;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 480px) {
    .add-video-form {
        flex-direction: column;
    }
    .add-video-form button {
        width: 100%;
    }
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    gap: 6px;
}

.item-name {
    font-size: 0.75rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.download-btn {
    text-decoration: none;
    background: var(--taufe-blue-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 0.85rem;
    font-family: inherit;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #8f7340;
}

.delete-btn {
    text-decoration: none;
    background: #c97a6f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 0.85rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #b25e52;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-footer {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.4);
    padding: 8px 16px;
    border-radius: 20px;
}

.lightbox-footer .download-btn {
    padding: 6px 12px;
}

@media (max-width: 600px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .thumb {
        height: 110px;
    }
}
