/* Gallery Section Styles */
.gallery-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow for elegance */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    cursor: pointer;
    display: flex; /* Flexbox for better alignment */
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the area without distortion */
    display: block;
    transition: transform 0.3s ease; /* Zoom effect on hover */
}

.gallery-item:hover .gallery-image-container img {
    transform: scale(1.05);
}

.gallery-item div[style*="text-align:center"] {
    padding: 15px;
    font-size: 1.1em;
    color: #333;
    background-color: #f0f0f0; /* Light background for text */
    border-top: 1px solid #ddd; /* Separator line */
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .gallery-item {
        margin: 0 10px;
    }
}
