h1 {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #ececec;
    font-weight: 300;
    padding-bottom: 10px;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-size: clamp(0.5rem, 2vw, 1rem);
    color: #F5F5F5;
    font-weight: 500;
    padding-top: 20px;
    border-top: 0.1px dashed #f5f5f5;
    margin: 0 -20px;
}

.header-imagenes {
    background: linear-gradient(90deg, rgba(0, 0, 13, 1) 4%,  rgba(125, 6, 7, 1) 58%, rgba(0, 0, 13, 1) 95%);
    padding: 1.0rem;
    margin-top: 0px;
    border-bottom: 0px solid #fff;
}

img {
    width: 100%;
    object-fit: cover;
    box-shadow: 2px 10px 10px rgba(2, 1, 32, .5);
}

header {
    z-index: 1100;
}

/*
.container {
    display: flex;
}

.card {
    height: 500px;
    margin: 50px;
    box-shadow: 5px 5px 20px black;
    overflow: hidden;
}

img {
   height: 500px;
   width: 350px;
   border-radius: 3px;
   object-fit: cover;
   transition: .5s;
}

.intro {
    height: 115px;
    width: 350px;
    padding: 6px;
    box-sizing: border-box;
    position: absolute;
    bottom: 69px;
    background: rgba(0, 0, 0, 0.65);
    color: white;

    transition: .5s;
}

h1 {
    margin: 20px;
    font-size: 23px;
    font-family: 'Open Sans', sans-serif;
}

p {
    font-size: 16px;
    margin: 20px;
    visibility: hidden;
    opacity: 0;
}

span {
    font-weight: bold;
}

.card:hover {
    cursor: pointer;
}

.card:hover .intro {
    height: 200px;
    bottom: 69px;
    background: black;
}

.card:hover p {
    opacity: 1;
    visibility: visible;
}

.card:hover img {
    transform: scale(1.1) rotate(0deg);

}
*/




#pelicula  img {
    width: 100%;
    height: 100%;
    position: relative;

    max-width: 100%;
    margin-bottom: 1em;
    display: block;
    outline: 1px solid #940c0c;
    outline-offset: -10px;
    cursor: pointer;
    transition: all 300ms;
    border-radius: 3px;
    box-shadow: 0px 10px 10px rgba(0, 0,0, 0.5);

    transition: all 300ms ease-in-out;
}


.gallery {
    padding-top: 50px;
    padding-bottom: 50px;
    columns: 5 200px;
    column-gap: 1em;  
    /*overflow: hidden; ------> oculta la parte de la imagen que no coincide con el contenedor*/
    width: 100%;
}


#pelicula img:hover {
    transform: scale(1.5);
    opacity: 100%;
    rotate: 0deg;
    z-index: 100;
}


#pelicula p {
    background: rgba(0, 0,0, 0.5);
    font-family: 'Open Sans', sans-serif;
    
    color: #fff;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    justify-content: center;
}













.gallery .imagenes .overlay {
    
    position: relative;
    left: 0; /* a) coloca el overlay de texto por encima de la imagen */
    bottom: 0; /*b) coloca el overlay de texto por encima de la imagen */
    transform: scale(0.8);
    background: rgba(2, 1, 32, .5);
    width: 100%;
    height: 100%;
    padding: 10px;
    transition: 1s all ease;
    text-align: center;
    opacity: 0;
}

.gallery .imagenes .overlay p {
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-top: 15%;
    padding: 0 15px;
}

.gallery .imagenes:hover .overlay {
    opacity: 1;
    transform: scale(1);
}


@media screen and (max-width: 1000px) {

    #pelicula img:hover {
        transform: scale(1.1);
    }

}












.gallery {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
}

.gallery .imagen {
    cursor: pointer;
    display: inline-block;
    width: 29%;
    margin: 10px 20px;
    position: relative;
    transition: 0.4s all ease-in;
    box-shadow: 2px 10px 10px rgba(2, 1, 32, .5);
}

.gallery img {
    width: 100%;
    vertical-align: top; /* elimina algunos de los márgenes generados por defecto POR LAS IMAGENES */
}
