/* Estilos del modal */
.modalimg {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1080;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
    padding: 1rem;
}

.modalimg-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    width: min(96vw, 720px);
    max-height: 88dvh;
    position: relative;
}

.modalimg img {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: calc(88dvh - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.closeimg {
    position: fixed;
    top: 0.85rem;
    right: 1rem;
    z-index: 1081;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .closeimg:hover,
    .closeimg:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }
