/* Gallery specific styles - working with contact.css header */
.gallery-main {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.gallery-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.gallery-item-col {
    padding-left: 10px;
    padding-right: 10px;
}

.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-zoom:hover {
    transform: scale(1);
    background-color: var(--primary);
    color: white;
}

/* Lazy loading animation */
img.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gallery-img-container {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .gallery-img-container {
        height: 200px;
    }
}
