/* Stylowanie galerii na froncie */

.photo-gallery-container {
    margin: 20px 0;
}

/* Stylowanie dla wyświetlania wszystkich zdjęć */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.gallery-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.gallery-item:hover a::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Ikona powiększalnika - użyj ::after gdy nie ma Font Awesome */
.gallery-item a::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Ukryj ::after gdy jest ikona HTML */
.gallery-item .gallery-icon ~ a::after {
    display: none;
}

/* Fallback dla przypadku gdy Font Awesome nie załaduje się */
.gallery-item a::after {
    content: '\f002' / '🔍';
}

/* Ikona HTML Font Awesome (preferowana metoda) */
.gallery-item .gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

.gallery-item:hover a::after,
.gallery-item:hover .gallery-icon {
    opacity: 1;
}

/* Stylowanie dla jednego zdjęcia */
.single-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
}

.single-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.single-gallery-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-gallery-item:hover .single-gallery-image {
    transform: scale(1.02);
}

.single-gallery-item a {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.single-gallery-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.single-gallery-item:hover a::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Overlay z ikoną Font Awesome dla pojedynczego zdjęcia */
.single-gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}

.single-gallery-overlay i {
    font-size: 18px;
}

.single-gallery-item:hover .single-gallery-overlay {
    opacity: 1;
}

/* Responsywność */
@media (max-width: 768px) {
    .gallery-thumbnail {
        height: 150px;
    }
    
    .single-gallery-image {
        max-height: 300px;
    }
    
    .gallery-item a::after {
        font-size: 20px;
    }
    
    .single-gallery-overlay {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .single-gallery-overlay i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-thumbnail {
        height: 120px;
    }
    
    .single-gallery-image {
        max-height: 250px;
    }
    
    .photo-gallery-container {
        margin: 15px 0;
    }
}

/* Niestandardowe style dla lightbox */
.lightbox .lb-data .lb-details {
    width: 100%;
}

.lightbox .lb-data .lb-caption {
    font-size: 14px;
    color: #fff;
    padding: 10px 0;
}

.lightbox .lb-data .lb-number {
    color: #ccc;
    font-size: 12px;
}
