/* =========================================
   GALERÍA BIBLIOTECA VASCONCELOS
========================================= */

.bv-galeria {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}


/* IMAGEN PRINCIPAL */

.bv-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.bv-slide {
    display: none;
    width: 100%;
}

.bv-slide.activo {
    display: block;
    animation: bvFade 0.7s ease;
}

.bv-slide img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
}


/* EFECTO */

@keyframes bvFade {

    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }

}


/* FLECHAS */

.bv-anterior,
.bv-siguiente {

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

    width: 45px;
    height: 60px;

    border: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;

    font-size: 28px;

    cursor: pointer;

    transition: background 0.3s ease;
}

.bv-anterior {
    left: 0;
}

.bv-siguiente {
    right: 0;
}

.bv-anterior:hover,
.bv-siguiente:hover {

    background: rgba(0,0,0,0.75);

}


/* =========================================
   MINIATURAS
========================================= */

.bv-miniaturas {

    display: flex;
    gap: 8px;

    margin-top: 10px;

    overflow-x: auto;

    scrollbar-width: thin;
}


.bv-miniatura {

    flex: 0 0 150px;

    height: 90px;

    cursor: pointer;

    opacity: 0.55;

    border: 3px solid transparent;

    transition:
        opacity 0.3s ease,
        border 0.3s ease;
}


.bv-miniatura img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.bv-miniatura:hover {

    opacity: 0.85;

}


.bv-miniatura.activa {

    opacity: 1;

    border-color: #7b1e3a;

}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 768px) {

    .bv-slide img {

        height: 350px;

    }


    .bv-miniatura {

        flex: 0 0 110px;

        height: 70px;

    }

}


@media (max-width: 480px) {

    .bv-slide img {

        height: 260px;

    }


    .bv-miniatura {

        flex: 0 0 90px;

        height: 60px;

    }


    .bv-anterior,
    .bv-siguiente {

        width: 38px;
        height: 50px;

        font-size: 22px;

    }

}
/* ==========================================
   SUBMENU SEGUNDO NIVEL
   Biblioteca Vasconcelos
========================================== */

.dropdown-submenu {
    position: relative;
}

/* Segundo nivel */

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none;
}

/* Mostrar al pasar el mouse */

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}


/* Flecha hacia la derecha */

.dropdown-submenu > a {
    position: relative;
    padding-right: 30px !important;
}

.dropdown-submenu > a .submenu-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -4px;

    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #777;
    border-right: 0;
}


/* Evitar que el submenu quede oculto */

.navbar .dropdown-menu {
    overflow: visible !important;
}

.navbar {
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}


/* El menú debe quedar encima del contenido */

.sub-navbar {
    z-index: 1050;
}

.sub-navbar .dropdown-menu {
    z-index: 1060;
}


/* ==========================================
   MÓVILES
========================================== */

@media (max-width: 767px) {

    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin: 0;
        padding-left: 15px;
        box-shadow: none;
        border: 0;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }

    .dropdown-submenu.open > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a .submenu-caret {
        border-top: 5px solid #777;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 0;
    }
}