 
 /* REPRODUCTOR DE VIDEOS */
 .back{
    text-align: left;
        padding: 1.5rem 0 0 1.5rem;
        text-transform: uppercase;
        letter-spacing: 5px;
        text-decoration: underline;
        text-decoration-color: #e7dac2;
        font-size: 1.4rem;
        font-family: sans-serif;
 }

 .back a {
    text-decoration: none;
    color: black;
 }
 .container{
    position: relative;
    min-height: 10vh;
    background-color: rgba(207, 206, 206, 0.514);
    padding: 0 0 45px 0;
 }

.container .video-container{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px;
}

.container .video-container .video {
    height: 250px;
    width: 350px;
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,.7);
    cursor: pointer;
    overflow: hidden;
}

.container .video-container .video video{
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .2s linear;
}

.container .video-container .video:hover video{
    transform: scale(1.1);
}

.container .popup-video {
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    background: rgba(0,0,0,.8);
    height: 100%;
    width: 100%;
    display: none;
}

.container .popup-video video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 450px;
    border-radius: 5px;
    border: 3px solid #fff;
    object-fit: cover;
}

.container .popup-video span{
    position: absolute;
    top: 5px; right: 20px;
    font-size: 50px;
    color: #fff;
    font-weight: bolder;
    z-index: 100;
    cursor: pointer;
}

/* AJUSTE PARA VIDEOS */

@media (max-width: 768px) {
    .container .popup-video video {
        width: 95%;
    }
}

/* AJUSTE PARA PANTALLA DE LA GALERIA DE VIDEOS */
 @media screen and (max-width: 1099px) {
    .container .video-container{
        padding-bottom: 100px;
    }
 }

 @media screen and (max-width: 550px) {
     .container{
        position: relative;
        min-height: 30vh;
     }
 }
 
 
 /* GALERIA DE IMAGANES */

 *,
 *::before,
 *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: capitalize;
 }

 img{
    width: 100%;
    height: 100%;object-fit: cover;
 }

 .gallery-title{
    text-align: center;
    padding: 2.5rem 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-decoration: underline;
    text-decoration-color: #e7dac2;
    font-size: 2.4rem;
    font-family: sans-serif;
 }

 .gallery {
    width: 85%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, 133px);
    grid-auto-rows: 200px;
    justify-content: center;
    gap: 1rem;
 }

 .gallery__item{
    clip-path:polygon(50% 0%, 100% 25% , 100% 75% , 50% 100%, 0% 75%, 0% 25%);
    grid-column: span 2; /* 266px + 17px = 283px */
    height: 283px;
    transition: 300ms filter;
 }

 .gallery__item:hover{
    filter: brightness(0.3);
 }

 .gallery__item:first-of-type{
    grid-column: 2 / span 2;

 }

 /* AJUSTE A PANTALLAS DE LA GALERIA */

 @media  screen and (min-width: 270px) and (max-width: 504px) {
    .gallery__item:first-of-type {
            grid-column: 1 / span 2;
    
        }
    .gallery{
        grid-auto-rows: 283px ;
    }
 }

 @media screen and (min-width: 505px) and (max-width: 685px) {
     .gallery__item:nth-of-type(odd){
        grid-column: 2 / span 2;
     }
 }

 @media screen and (min-width: 686px) and (max-width: 862px) {
    .gallery__item:nth-of-type(3n +1){
        grid-column: 2 / span 2;
    }
 }

@media screen and (min-width: 863px) and (max-width: 1038px) {
      .gallery__item:nth-of-type(4n +1) {
          grid-column: 2 / span 2;
      }
}

@media screen and (min-width: 1039px) and (max-width: 1215px) {
     .gallery__item:nth-of-type(5n +1) {
         grid-column: 2 / span 2;
     }
}

@media screen and (min-width: 1216px) and (max-width: 1391px) {
    .gallery__item:nth-of-type(6n +1) {
        grid-column: 2 / span 2;
    }
}

@media screen and (min-width: 1392px) {
    .gallery__item:nth-of-type(7n +1) {
        grid-column: 2 / span 2;
    }
}