/* ================================
   GALERIE PAGE STYLES
   ================================ */

body.lightbox-open {
    overflow: hidden;
}

.galerie-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f0e0d 0%, #1a1814 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.galerie-header {
    text-align: center;
    margin-bottom: 3rem;
}

.galerie-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #f4ead5;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.galerie-header .subtitle {
    color: #c9c4b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter */
.galerie-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(26, 20, 16, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #e8e3d9;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Galerie Grid */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.galerie-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(18, 17, 15, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.1);
}

.galerie-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galerie-item:hover img {
    transform: scale(1.1);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(15, 13, 10, 0.9) 0%,
        rgba(15, 13, 10, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    width: 100%;
}

.overlay-content i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.image-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin: 0;
    color: #f4ead5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Empty State */
.empty-galerie {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #c9c4b8;
}

.empty-galerie i {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
}

.empty-galerie h3 {
    font-family: 'Cinzel', serif;
    color: #f4ead5;
    margin-bottom: 1rem;
}

/* ================================
   LIGHTBOX STYLES
   ================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 6, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #f4ead5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-close:hover {
    background: rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 20, 16, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #f4ead5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

/* Lightbox Content */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.lightbox-info {
    text-align: center;
    margin-top: 2rem;
    color: #f4ead5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #f4d03f;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(244, 208, 63, 0.4);
}

.lightbox-info p {
    color: #c9c4b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lightbox-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(201, 166, 107, 0.7);
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .galerie-header h1 {
        font-size: 2.2rem;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .image-wrapper {
        height: 200px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-nav.prev {
        left: 1rem;
    }
    
    .lightbox-nav.next {
        right: 1rem;
    }
    
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    .galerie-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}