/* Main Gallery Container */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Dynamic grid */
    gap: 25px; /* Space between cards */
    margin: 0 auto;
    width: 100%;
    border-radius: 20px; /* Rounded corners for softness */
}

/* Image Item Container */
.image-item {
    position: relative;
    border-radius: 16px; /* Smooth, modern edges */
    overflow: hidden;
    box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    height: 250px;
    background-color: #f8f8f8; /* Light background for the card */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom */
}

.video-item {
    position: relative;
    border-radius: 16px; /* Smooth, modern edges */
    overflow: hidden;
    box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    height: 148px;
    background-color: #f8f8f8; /* Light background for the card */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom */
}

/* Hover effect for image cards */
.image-item:hover, .video-item:hover {
    transform: translateY(-10px) scale(1.05); /* Slight lift and scale */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

/* Image Styling */
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover image properly */
    transition: transform 0.3s ease; /* Smooth transition */
    border-radius: 10px;
}

/* Zoom effect on image hover */
.image-item img:hover {
    transform: scale(1.1); /* Subtle zoom-in */
}

/* Text Overlay */
.image-item h3 {
    border-radius: 20px;
    padding: 6px 12px;
    background-color: #ff0016;
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    color: #fff; /* White text for contrast */
    font-family: 'Poppins', sans-serif; /* Modern font */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

/* Text show effect on hover */
.image-item:hover h3 {
    opacity: 1; /* Fade-in text */
    bottom: 30px; /* Slightly raised text for better effect */
}

/* Responsive Design */
@media (max-width: 900px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust grid for smaller screens */
        padding: 35px 20px;
    }
}

@media (max-width: 600px) {
    .image-gallery {
        grid-template-columns: 1fr; /* One column for mobile */
        padding: 20px 10px;
    }

    .image-item h3 {
        font-size: 20px; /* Smaller font for mobile screens */
    }
}
.home-video-slide-content{
 background-color: none;   
}