.section-gallery{
    background-image: url("../media/jpg/bg-gallery3.jpg");
    background-size: cover;
    background-attachment: fixed;
    padding: 6vw 12vw;
}

.gallery {
    gap: 1vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;   
}
.section-gallery h1{
    font-size: 2.8vw;
    color: var(--red);
    padding: 3vw 0;
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.5s;
    object-fit: cover;
   
}
.lg {
    grid-column: span 2; 
    grid-row: span 2;   
}

.gallery-image:hover {
    transform: scale(1.03);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.modal-content {
    border-radius: 12px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 30vw;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@media (max-width: 996px) {
    .modal-content{
        max-width: 90vw;
    }
    .section-gallery h1{
        font-size: 6vw;
    }
    .section-gallery {
        padding: 18vw 6vw;
    }
    .gallery {
        gap: 3vw;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .section-gallery h1 {
        padding: 8vw 0;
    }
}