﻿.photo-gallery-wrapper {
    padding: 60px 20px;
    background-color: #ffffff;
}

.photo-gallery-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.photo-gallery-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.photo-gallery-card {
    position: relative;
    width: 32%; /* Equal width for all items in a row */
    height: 250px; /* Fixed height for images */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire container */
    object-position: center; /* Centers the image */
    transition: transform 0.3s ease;
}

.photo-gallery-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

    .photo-gallery-card:hover .photo-gallery-image {
        transform: scale(1.1); /* Zoom-in effect on hover */
    }

.photo-gallery-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #368215;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition-duration: 0.3s;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    .photo-gallery-button:hover {
        background-color: #f8e446;
        text-decoration: none;
        color: black;
    }

/* Responsive design */
@media (max-width: 768px) {
    .photo-gallery-card {
        width: 48%; /* 2 items per row for tablets */
    }
}

@media (max-width: 576px) {
    .photo-gallery-card {
        width: 100%; /* 1 item per row for mobile devices */
    }
}
