.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.imagen-ampliada {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    transition: transform 0.5s ease; /* Efecto de deslizamiento */
    cursor: grab; /* Puntero para el arrastre */
}

.arrow2 {
    position: absolute;
    top: 50%;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transform: translateY(-50%);
}

.arrow2.prev {
    left: 10px; /* 10px de margen desde el borde izquierdo de la imagen */
}

.arrow2.next {
    right: 10px; /* 10px de margen desde el borde derecho de la imagen */
}

.arrow2 svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Miniaturas debajo de la imagen destacada */
.miniaturas-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.miniatura {
    width: 80px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
}

.miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease; /* Efecto de hover */
}

.miniatura img:hover {
    transform: scale(1.1); /* Zoom al pasar el mouse */
}

/* Cerrar imagen */
.cerrar-imagen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .imagen-ampliada {
        max-width: 90%;
        max-height: 90%;
    }

    .arrow2 {
        width: 60px;
        height: 60px;
    }

    .arrow2 svg {
        width: 24px;
        height: 24px;
    }

    .cerrar-imagen {
        font-size: 24px;
    }

    .miniatura {
        width: 60px;
        height: 45px;
    }
}

.ajustemapa {
    padding-top: 0px;
}
