.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal__content {
    position: relative;
    width: 40%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.modal.open .modal__content {
    transform: translateY(0);
    opacity: 1;
}

/* The Close Button */
.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

/* Modal Buttons */
.modal__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.modal__btn-prev {
    left: 10px;
}

.modal__btn-next {
    right: 10px;
}

.modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional Styles */
.containerGalery {
    width: 100%;
    min-height: 100vh;
    padding-top: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.continer-silder {
    width: 50%;
    min-height: 60vh;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    margin: auto;
    width: 500%;
    height: 60vh;
    object-fit: cover;
    transition: all 0.5s;
    
}

.slider__section {
    width: 33.3333%;
    height: 100%;
}

.slider__img {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
}

.slider__btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s;
}

.slider__btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

.slider__btn-prev {
    left: 0;
}

.slider__btn-next {
    right: 0;
}

/* Title Galery */
.titleGalery {
    width: 70%;
    height: auto;
}

.titleGalery h1 {
    width: 100%;
    font-size: var(--font-size-display);
    color: var(--color);
}

.titleGalery p {
    width: 100%;
    font-size: var(--font-size-subencabezado);
    font-family: var(--font-family-body);
}

@media screen and (min-width:767px) and (max-width:1020px){

    .containerGalery{
        min-height: 50dvh;
        padding-bottom: 10rem;
    }

    .continer-silder{
        width: 70%;
        min-height: 30dvh;
    }

    .slider {
        display: flex;
        margin: auto;
        width: 500%;
        height: 40vh;
        transition: all 0.5s;
        object-fit: cover;
    }
    
    .titleGalery h1{
        width: 100%;
        font-size: var(--font-size-jumbo);
        color: var(--color); 
        text-align: center;   
    }
    
    .titleGalery p{
        width: 100%;
        font-size: var(--font-size-encabezado);
        font-family: var(--font-family-body);
        text-align: center;
    } 

    .modal__content {
        width: 70%;
        height: 50%;
        object-fit: cover;
        
    }

    .modal__btn{
        font-size: var(--font-size-encabezado);
    }

    .modal__close{
        font-size: var(--font-size-encabezado);
    }
      

}