.image-container {
    width: 290px;
    height: 387px;
    overflow: hidden;
    position: relative;
    margin: auto;
    border-radius: 20px;
    margin-left: 20px; /* Add left margin */
    margin-bottom: 20px; /* Add bottom margin for mobile */
}

.image-container img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 100%;
    transition: left 1s, opacity 1s;
    object-fit: cover;
    z-index: 1;
    border-radius: 10px;

}
.image-container img.active {
    left: 0;
    z-index: 2;
}
.image-container img.previous {
    left: -100%;
    z-index: 1;
}


.footer { /* Propiedades de la transparencia */
    background-color: #5c8eb0;
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%);
    opacity: 0; /* esta condicion mantiene el texto oculto */
    position: absolute;
    padding: 20px; /* espacio entre texto y bordes */
    transition: opacity .5s;
    text-align: justify; /* texto justificado */
    font-size: small; /* tamaño de letra */
    color:#ffffff; /* color de texto */
    width: 100%; /* ancho */
    height: auto; /* alto */
    /* centrar verticalmente el contenido */
    align-content: center;
    z-index: 4;
    font-style: italic;
    
  }


.image-container:hover .footer { /* Efecto al pasar el mouse */
    opacity: 0.8;
    transition: opacity .5s;
  }

.image-info {
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    margin-bottom: 10px;
    color: #15222b;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 40;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    opacity: 1;
    transition: opacity .5s;
    border-radius: 10px;
  }

.image-container:hover .image-info {
    opacity: 0;
    transition: opacity .5s;
  }

@media (min-width: 768px) {
    .image-container {
        float: right;
        margin:0;
    }
}
@media (max-width: 768px) {
    .image-container {
        width: 250px; /* Adjust width for tablets */
        height: 340px; /* Adjust height for tablets */
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 150px; /* Adjust width for mobile */
        height: 210px; /* Adjust height for mobile */
    }
}

