/* 
   =========================================================================
   HOCHZEITS-FOTOGALERIE - DESIGN DATEI (CSS)
   Design-Thema: Butterlemon & dezente Zitronen mit Salbeigrün-Akzenten
   Hochzeit von Max & Nadja - 26. August 2026
   =========================================================================
*/

:root {
    /* Color Palette: Butterlemon & Sage Green */
    --bg-color: #FDFCF7;                /* Weiche Vanille / Cremeweiß */
    --paper-white: #ffffff;             /* Kartenhintergrund */
    --color-primary: #1C241F;           /* Sehr dunkles Salbeigrün (fast schwarz, für maximalen Kontrast) */
    --color-primary-light: #3D4C41;     /* Gedecktes Salbeigrün */
    --color-primary-bg: #EAEFEA;        
    --color-lemon: #F3E89F;             /* Butterlemon Gelb */
    --color-lemon-light: #FAF8E5;       /* Zartes Zitronencreme */
    --color-lemon-hover: #E3D78A;       
    --color-rose: #D98D8F;              
    --color-rose-active: #C57B7D;
    
    --color-text-main: #1C241F;         /* Sehr kontrastreiches Dunkelgrün/Schwarz */
    --color-text-muted: #3D4C41;        /* Gut lesbares Mittelsalbei */
    --color-text-light: #ffffff;
    
    --color-success: #3D4C41;           
    --color-error: #B85A5A;
    
    /* Layout & Styling Tokens */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    
    --border-radius-sm: 4px;            
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-circle: 50%;
    
    --shadow-sm: 0 4px 10px rgba(53, 66, 56, 0.03);
    --shadow-md: 0 10px 25px rgba(53, 66, 56, 0.06);
    --shadow: 0 15px 35px rgba(53, 66, 56, 0.1);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 
   =========================================
   BASE STYLES & RESET
   =========================================
*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400; /* Erhöht auf normales Schriftgewicht */
}

/* 
   =========================================
   TYPOGRAPHY (Sehr gut lesbar, Playfair Display + Montserrat)
   =========================================
*/
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600; /* Etwas dicker für bessere Erkennbarkeit */
    line-height: 1.25;
    letter-spacing: 0.5px;
}

p {
    font-size: 0.95rem; /* Minimal vergrößert */
    font-weight: 400;   /* Kein dünnes 300er Gewicht mehr */
}

a {
    color: inherit;
    text-decoration: none;
}

/* 
   =========================================
   HERO / HEADER SECTION (Butterlemon Style)
   =========================================
*/
.hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-main);
    background-color: var(--color-lemon-light);
    border-bottom: 1px solid rgba(53, 66, 56, 0.1);
    padding: 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

/* Dezentes Zitronen-Blätter Motiv im Hintergrund */
.hero::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    opacity: 0.12;
    background-image: radial-gradient(circle at 50% 50%, var(--color-lemon) 30%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Monogramm-Siegel (Cremeweiß mit salbeigrüner Schrift und zartem Zitronenblatt-Design) */
.header-monogram {
    width: 76px;
    height: 76px;
    background: var(--paper-white);
    border: 1.5px solid var(--color-primary-light);
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-sm);
    letter-spacing: -1px;
    position: relative;
}

/* Kleiner dekorativer Zitronenblatt-Punkt */
.header-monogram::after {
    content: '🍃';
    position: absolute;
    bottom: -6px;
    right: -2px;
    font-size: 0.85rem;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeIn 1.2s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    padding: 0.4rem 0;
    display: inline-block;
    min-width: 200px;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--paper-white);
    border: 1px solid rgba(53, 66, 56, 0.12);
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-sm);
    min-width: 76px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.countdown-number {
    font-size: 1.4rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

/* 
   =========================================
   LAYOUT & CONTAINER
   =========================================
*/
.main-container {
    max-width: 1100px;
    margin: -2.5rem auto 4rem;
    padding: 0 1.25rem;
    position: relative;
    z-index: 5;
}

/* 
   =========================================
   KARTEN-DESIGN & FORMULARE
   =========================================
*/
.card {
    background-color: var(--paper-white);
    border: 1px solid rgba(53, 66, 56, 0.1);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.card-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Buttons (Salbeigrün & eckig im Einladungsstil) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-text {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--color-error);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-elastic);
}

.btn-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Eingabefelder */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #cccccc;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: var(--paper-white);
    outline: none;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(82, 102, 87, 0.08);
}

/* Drag & Drop Upload Zone (Zitronencreme-Hintergrund & Salbeirahmen) */
.drop-zone {
    position: relative;
    border: 1.5px dashed var(--color-primary-light);
    background-color: var(--color-lemon-light);
    border-radius: var(--border-radius-sm);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--color-primary);
    background-color: #FAF5D3; /* Wärmeres Zitronengelb */
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    transition: var(--transition-elastic);
}

.drop-zone:hover .upload-icon {
    transform: scale(1.08) translateY(-2px);
}

.drop-zone-text {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.drop-zone-subtext {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* Vorschau & Queue */
.upload-preview-container {
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--color-lemon-light);
    border: 1px solid rgba(53, 66, 56, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: var(--bg-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.preview-progress-bar {
    height: 100%;
    background-color: var(--color-success);
    width: 0%;
    transition: width 0.2s ease;
}

.preview-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.6rem;
}

.preview-status.success {
    background-color: var(--color-success);
}
.preview-status.error {
    background-color: var(--color-error);
}

/* Hilfsklasse zum Ausblenden */
.hidden {
    display: none !important;
}

/* 
   =========================================
   DYNAMIC PHOTO GALLERY
   =========================================
*/
.gallery-section {
    margin-top: 4rem;
}

.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: center;
    text-align: center;
}

.gallery-header h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.gallery-header h2::after {
    content: '🍋';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    background: var(--bg-color);
    padding: 0 10px;
    z-index: 10;
}

.gallery-header::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--color-primary-light);
    margin-top: -5px;
    opacity: 0.3;
}

/* Filter buttons */
.gallery-filters {
    display: flex;
    gap: 0.75rem;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-primary-light);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Masonry Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 10px;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    grid-row-end: span 20;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(53, 66, 56, 0.1);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    background-color: var(--paper-white);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Grid Overlay Info */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(37, 45, 39, 0.9) 0%, rgba(37, 45, 39, 0.2) 75%, transparent 100%);
    padding: 1.25rem 1rem 1rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 75%;
}

.gallery-item-author {
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.gallery-item-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-item-like {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.gallery-item-like svg {
    transition: var(--transition-elastic);
}

.gallery-item-like:hover svg {
    color: var(--color-rose);
    transform: scale(1.2);
}

.gallery-item-like.liked svg {
    fill: var(--color-rose);
    color: var(--color-rose);
}

/* Skeletons */
.skeleton-card {
    border-radius: var(--border-radius-sm);
    background: linear-gradient(90deg, #eaeaea 25%, #f2f2f2 50%, #eaeaea 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    grid-row-end: span 25;
}

.skeleton-card:nth-child(2n) {
    grid-row-end: span 30;
}
.skeleton-card:nth-child(3n) {
    grid-row-end: span 18;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* 
   =========================================
   LIGHTBOX MODAL
   =========================================
*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(37, 45, 39, 0.97); /* Salbeischwarz */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 102;
    padding: 0.5rem;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 102;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 101;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

.lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lightbox-author {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.lightbox-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox-actions {
    display: flex;
    gap: 0.75rem;
}

.love-btn.liked svg {
    fill: var(--color-rose);
    color: var(--color-rose);
}

/* 
   =========================================
   TOAST NOTIFICATION SYSTEM
   =========================================
*/
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
}

.toast {
    background: var(--paper-white);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-main);
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.info { border-left-color: var(--color-primary); }

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* 
   =========================================
   ANIMATIONS
   =========================================
*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 
   =========================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   =========================================
*/

/* Mobile Adjustments (320px - 412px) */
@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 360px;
        padding: 1.5rem 1rem;
    }
    
    .header-monogram {
        width: 64px;
        height: 64px;
        font-size: 1.15rem;
        margin-bottom: 1rem;
        padding-top: 4px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    
    .hero-date {
        font-size: 1.1rem;
        min-width: 150px;
        margin-bottom: 1.5rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.5rem 0.6rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .main-container {
        margin-top: -1.5rem;
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--border-radius-sm);
        margin-bottom: 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.35rem;
    }
    
    .drop-zone {
        padding: 2.25rem 1rem;
    }
    
    .gallery-section {
        margin-top: 2rem;
    }
    
    .gallery-header h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .gallery-item {
        border-radius: var(--border-radius-sm);
    }
    
    .gallery-item-overlay {
        opacity: 1; /* Always visible on mobile */
        padding: 0.5rem;
        background: linear-gradient(to top, rgba(37, 45, 39, 0.9) 0%, rgba(37, 45, 39, 0.1) 85%, transparent 100%);
    }
    
    .gallery-item-author {
        font-size: 0.7rem;
    }
    
    .gallery-item-time {
        font-size: 0.55rem;
    }
    
    .gallery-item-like {
        font-size: 0.7rem;
        gap: 0.15rem;
    }
    
    .gallery-item-like svg {
        width: 14px;
        height: 14px;
    }
    
    /* Lightbox Mobile */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-nav.prev { left: 0.5rem; }
    .lightbox-nav.next { right: 0.5rem; }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .lightbox-content img {
        max-height: 55vh;
    }
    
    .lightbox-details {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        text-align: center;
    }
    
    .lightbox-actions {
        justify-content: center;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

/* Tablet viewports */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}
