/* ==========================================
   GALERIE ÜBERSICHT (Album-Liste)
   ========================================== */

.gallery-wrapper {
    max-width: 1200px;
    margin: -3px auto 0;
    padding: 0 20px 20px;
}

.info-section {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    border-radius: 10px;
    padding: 5px 20px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/*
.info-section img {
    vertical-align: middle;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}
*/

.info-section .orange {
    color: #ffa726;
    font-weight: bold;
}

.info-section .red {
    color: #ef5350;
    font-weight: bold;
}

.info-section .green {
    color: #66bb6a;
    font-weight: bold;
}

.albums-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.album-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.album-thumb {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-info {
    padding: 12px;
}

.album-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    line-height: 1.3;
}

.album-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.album-date {
    font-size: 13px;
    color: #999;
}

/* ==========================================
   ALBUM-ANSICHT (Bilder-Grid)
   ========================================== */

.album-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    color: white;
    margin-bottom: 20px;
    border-radius: 10px;
}

.album-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

#gallery_container {
    padding: 20px;
    max-width: 100%;
}

#gallery_container .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#gallery_container .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

#gallery_container .gallery-item:hover {
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#gallery_container .gallery-item img,
#gallery_container .gallery-item picture {
    width: 100%;
    height: 100%;
}

#gallery_container .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#gallery_container .gallery-item:hover img {
    transform: scale(1.08);
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-counter {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-swiper {
    width: 100%;
    height: 100%;
}

.lightbox-swiper .swiper-wrapper {
    align-items: center;
}

.lightbox-swiper .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 100px;
    box-sizing: border-box;
}

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: imageZoomIn 0.4s ease;
    margin: auto;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-swiper .swiper-button-next,
.lightbox-swiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-swiper .swiper-button-next:after,
.lightbox-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

.lightbox-swiper .swiper-button-next:hover,
.lightbox-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-swiper .swiper-button-next:active,
.lightbox-swiper .swiper-button-prev:active {
    transform: scale(0.95);
}

.lightbox-swiper .swiper-pagination {
    bottom: 30px !important;
}

.lightbox-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.lightbox-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
    transform: scale(1.3);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-album {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-album img {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-album p {
    font-size: 18px;
    margin: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .albums-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .albums-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .album-thumb {
        height: 150px;
    }
    
    #gallery_container .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .lightbox-swiper .swiper-slide {
        padding: 80px 30px !important;
    }
    
    .lightbox-swiper .swiper-button-next,
    .lightbox-swiper .swiper-button-prev {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-swiper .swiper-button-next:after,
    .lightbox-swiper .swiper-button-prev:after {
        font-size: 20px;
    }
    
    .lightbox-counter {
        font-size: 16px;
        padding: 8px 16px;
        top: 20px;
    }
    
    .lightbox-close {
        width: 45px;
        height: 45px;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .albums-container {
        grid-template-columns: 1fr;
    }
    
    .album-thumb {
        height: 200px;
    }
    
    #gallery_container .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }
    
    .lightbox-swiper .swiper-slide {
        padding: 70px 20px !important;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .lightbox-close::before,
    .lightbox-close::after {
        width: 25px;
        height: 2px;
    }
    
    .lightbox-swiper .swiper-button-next,
    .lightbox-swiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-swiper .swiper-button-next:after,
    .lightbox-swiper .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .lightbox-counter {
        font-size: 14px;
        padding: 6px 12px;
        top: 15px;
    }
    
    .lightbox-swiper .swiper-pagination {
        bottom: 20px !important;
    }
}