<style>
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background: #f4f4f4;
    padding: 20px 0;
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}

.marquee-content img {
    height: 150px; /* Set your desired row height */
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* The Animation */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause on hover so users can click easily */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border: 5px solid white;
}

.close-btn {
    position: absolute;
    top: 20px; right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
</style>




/* Container styling */
.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Grid System */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 15px;
    grid-auto-rows: 300px; /* Maintains consistent height */
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Image behavior */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    transition: transform 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.view-text {
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}