.gallery-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e4fae5;
}
.container-photo {
    max-width: 1200px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 4rem auto;
}
.gallery-grid img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}

.gallery-text h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.gallery-text h2::before {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    background: #2c3e50;
    margin: 0 auto 10px 0;
    border-radius: 5px;
}

.gallery-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.more-photos-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #2c3e50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: background-color 0.3s ease-in-out;
}
.more-photos-button:hover {
    background-color: #1a242f;
}



/* Mobile Styles */
@media (max-width: 768px) {
    .gallery-section {
        gap: 20px;
        text-align: center;
        padding: 40px 20px;
    }

    .container-photo {
        flex-direction: column;
      
    }

    .gallery-grid {
        margin: 0;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-content: center; 
    }

    .gallery-grid img {
        width: 100%;
        max-width: 100px;
    }

    .gallery-text {
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .gallery-text h2 {
        font-size: 24px;
        margin-top: 20px;
    }

    .gallery-text h2::before {
        content: "";
        display: block;
        width: 80px;
        height: 5px;
        background: #2c3e50;
        margin: 0 auto 10px auto; /* Center horizontally */
        border-radius: 5px;
    }

    .gallery-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .more-photos-button {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; 
        gap: 5px;
    }

    .gallery-grid img {
        max-width: 100%;
    }

    .gallery-text h2 {
        font-size: 20px;
    }

    .gallery-text p {
        font-size: 12px;
    }

    .more-photos-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}