.gallery-loading {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
}

.gallery-grid {
    animation: fadeIn 0.5s ease;
}

.gallery-item {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.gallery-item:after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Thumbnail effect - shadow overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 0.4;
}

/* Lightbox styles */
.gallery-lightbox {
    backdrop-filter: blur(5px);
}

.gallery-lightbox img {
    object-fit: contain !important; /* Maintain original aspect ratio */
    border-radius: 3px;
}

/* Lightbox animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .gallery-lightbox button {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}
