
.gallery_list_item{
    padding: 10px;
padding-left: 0px;
    background-color: #f9f9f9; /* Light background */
    border-radius: 10px;        /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;}
.gallery_list_item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
.gthumbnail{
width: 100%;
    height: auto;
    border-radius: 8px;
}
.tooltiptext{
font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 10px;}
.caption{
 display: none;}

 /* General Styles for the Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    
}

/* Styles for Small Gallery Items */
.gallery.small .gallery-item {
    width: calc(20% - 10px); /* Adjust width for five items per row */
    margin-bottom: 15px; /* Space between items */
    position: relative; /* For absolute positioning of overlay */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Prevent overflow */
    transition: transform 0.3s ease; /* Smooth scaling */
}

/* Image Styling */
.gallery.small .gallery-item img {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline spacing */
}

/* Overlay Styling */
.gallery.small .gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    color: white; /* Text color */
    opacity: 0; /* Start hidden */
    display: flex; /* Center content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* Show overlay on hover */
.gallery.small .gallery-item:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Hover effect for gallery item */
.gallery.small .gallery-item:hover {
    transform: scale(1.05); /* Slightly scale up */
}
