/* =========================
   GALERÍA
========================= */

.gallery-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}


/* =========================
   MODAL
========================= */

#modalGaleria .modal-dialog {
    max-width: 1200px;
}

#modalGaleria .modal-content {
    background: #fff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
}


/* Header */

#modalGaleria .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    padding: 15px;
}


/* Visor */

.gallery-viewer {
    position: relative;
    width: 100%;
    height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
	margin-top: 20px;
}


/* Imagen grande */

.gallery-main-image {
    max-width: 100%;
    max-height: 80vh;

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;
	border-radius: 10px;
}


/* =========================
   BOTONES
========================= */

.gallery-control {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.2);

    color: #000;

    font-size: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    transition: all 0.3s ease;
}

.gallery-control:hover {
    background: rgba(255,255,255,0.4);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}


/* =========================
   CONTADOR
========================= */

.gallery-counter {
    text-align: center;

    color: #000;

    padding: 12px;

    font-size: 14px;
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 767px) {

    #modalGaleria .modal-dialog {
        margin: 0;
    }

    #modalGaleria .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .gallery-viewer {
        height: 90vh;
    }

    .gallery-main-image {
        max-width: 100%;
        max-height: 90vh;
    }

    .gallery-control {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

}