.gallery-main-section{
    display: flex;
    flex-direction: row;
    box-shadow: 0px 10px 30px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    height: 70vh;
}

.gallery-img{
    will-change: flex, filter;
    flex: 1;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    transition: flex 0.5s ease, filter 0.7s ease;
    text-align: center;
    display: grid;
    align-items: center;
    padding: 5px;
}

.gallery-img p{
    opacity: 0;
    color: #fff;
    transition: opacity 0.8s ease;
    filter: brightness(1.5);
    background: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
    backdrop-filter: blur(2px); /* Desenfoca el fondo detrás del elemento */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Bordes redondeados opcionales */
    margin: 0;
    padding: 10px;
}

.gallery-img:first-of-type{
    background-image: url('/images/gallery-section/img6.jpg');
}

.gallery-img:nth-of-type(2){
    background-image: url('/images/gallery-section/img2.jpg');
}

.gallery-img:nth-of-type(3){
    background-image: url('/images/gallery-section/img9.jpg');
}

.gallery-img:nth-of-type(4){
    background-image: url('/images/gallery-section/img4.jpg');
}

.gallery-img:nth-of-type(5){
    background-image: url('/images/gallery-section/img5.jpg');
}



.gallery-img:hover{
    flex: 2;
    box-shadow: -20px 0px 30px -10px rgba(0, 0, 0, 0.7), 20px 0px 30px -10px rgba(0, 0, 0, 0.7);
    z-index: 2;
    filter: brightness(0.9);
}

.gallery-img:hover p{
    opacity: 1;
}

@media(320px <= width <= 640px){
    .gallery-main-section{
        flex-direction: column;
        height: 100vh;
    }
    .gallery-img{
        width: 100%;
        flex: calc(20%);
    }
    .gallery-img:hover{
        flex: calc(60%);
    }
    .gallery-img p{
        font-size: 18px;
    }
}

@media(320px <= width <= 640px) and (orientation: landscape){
    .gallery-main-section{
        height: 10vh;
    }
    .gallery-img{
        width: 100%;
        flex: calc(20%);
    }
}