﻿/* Gallery Container */
.gallery-container {
    width: 90%;
    margin: 0 auto;
    padding-top: 20px;
    position: relative; /* For positioning the arrows */
}

/* Horizontal Scroll Container */
.gallery-scroll {
    display: flex;
    overflow-x: hidden; /* Hide the scrollbar */
    padding: 10px 0;
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap scrolling */
    cursor: grab; /* Indicate the container can be dragged */
}

/* Gallery Item */
.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3; /* Maintain a uniform aspect ratio */
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: #f8f8f8;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .gallery-item img {
        width: 100%;
        height: 200px; /* Adjust height as needed */
        object-fit: cover; /* Ensures all images fill the box while maintaining aspect ratio */
        border-radius: 5px;
    }

        /* Hover effect on image */
        .gallery-item img:hover {
            transform: scale(1.05);
        }

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white;
    font-size: 30px;
    padding: 15px;
    cursor: pointer;
    border: none;
    border-radius: 50%; /* Make it round */
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Left Arrow */
.left-arrow {
    left: 10px;
}

/* Right Arrow */
.right-arrow {
    right: 10px;
}

/* Hover effect for the arrows */
.arrow:hover {
    background-color: #007bff; /* Change background to blue on hover */
    transform: scale(1.1); /* Slightly enlarge the arrow on hover */
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .lightbox img {
        max-width: 80%;
        max-height: 80vh;
        border-radius: 10px;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
        width: 200px; /* Adjust width for tablet */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 150px; /* Adjust width for mobile */
    }
}



.gallery-card {
    width: 100%;
    aspect-ratio: 4 / 3; /* Maintain a uniform aspect ratio */
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    background: #f8f8f8;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: cover; /* Ensures all images fill the box while maintaining aspect ratio */
    border-radius: 5px;
}

.img-name {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}
