/* Modern Gallery Styles */

/* Container for the gallery */
#gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Individual gallery item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3; /* Enforce a consistent aspect ratio */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* Image styling */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Loading state */
#gallery-loader {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

/* SimpleLightbox Customization (optional overrides) */
.sl-wrapper .sl-close {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    #gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
}
