/* gallery.css */

#gallery {
    width: 100%;
    overflow: hidden; /* Hides the scrollbar */
    padding: 40px 0;
    position: relative;
    background-color: transparent; /* Blends with your black background */
}

.gallery-viewport {
    width: 90%; /* Width of the gallery on screen */
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Hides images outside the "view" */
    border-radius: 10px;
    border: 1px solid #48785d;
}

.gallery-track {
    display: flex; /* Lines images up in a row */
    transition: transform 0.8s ease-in-out; /* Smooth sliding animation */
    width: 100%;
}

.gallery-item {
    /* calculation: 100% / 3 = 33.333% width per item */
    min-width: 33.333%; 
    padding: 10px; /* Space between images */
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops image to fill the box without distorting */
    border-radius: 5px;
    display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Mobile: Show 1 image at a time on small screens */
@media (max-width: 768px) {
    .gallery-item {
        min-width: 100%; 
    }
}
