/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Gallery container */
.gallery {
    position: relative;
    max-width: 90%; /* Slightly wider for a more prominent gallery */
    margin: 40px auto;
    overflow: hidden; /* Hides extra images */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Gallery content wrapper */
.gallery-content {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth movement */
    will-change: transform; /* Optimize rendering */
}

/* Gallery item styling */
.gallery-item {
    flex: 0 0 33.33%; /* Show 3 items at a time */
    max-width: 33.33%; /* Ensure consistent sizing */
    transition: transform 0.5s ease-in-out; /* Smooth resizing if needed */
    padding: 5px;
}

.gallery-item img {
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow to images */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Set a maximum height to ensure consistency */
    object-fit: cover; /* Crop image to fill the container */
    border-radius: 5px; /* Optional: Rounded corners */
}

.gallery-item p {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 50%; /* Show 2 items at a time on smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%; /* Show 1 item at a time on mobile */
    }
}

/* Navigation arrows */
/* Navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0rem; /* Appropriate size for the arrow */
    display: flex; /* Ensures proper alignment of the icon */
    align-items: center; /* Vertically centers the arrow */
    justify-content: center; /* Horizontally centers the arrow */
    background: linear-gradient(135deg, #23223e, #55575b); /* Subtle gradient */
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 12px;
    width: 40px; /* Ensure the arrow is centered within a circular button */
    height: 40px; /* Ensure the arrow is centered within a circular button */
    border-radius: 50%; /* Circular button */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.arrow.left {
    left: 15px;
}

.arrow.right {
    right: 15px;
}

/* Hover effect for arrows */
.arrow:hover {
    background: linear-gradient(135deg, #3b82f6, #6c63ff); /* Reverse gradient on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Icon for left and right arrows (optional aesthetic upgrade) */
.arrow::before {
    content: '';
    display: inline-block;
    border: solid white;
    border-width: 0 4px 4px 0;
    padding: 6px;
}

.arrow.left::before {
    transform: rotate(135deg); /* Arrow pointing left */
}

.arrow.right::before {
    transform: rotate(-45deg); /* Arrow pointing right */
}


/* Optional: Add a fade-in effect when the gallery loads */
.gallery-content {
    animation: fadeIn 0.5s ease-out;
}


  

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
