/* Poptrox Popup */

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    /* Color inicial con menos opacidad */
    backdrop-filter: blur(5px);
    /* Aplica un desenfoque */
    -webkit-backdrop-filter: blur(5px);
    /* Soporte para Safari */
    z-index: 19999;
    /* Justo debajo del popup */
    opacity: 0;
    /* Inicialmente invisible */
    transition: opacity 0.6s ease-in-out, backdrop-filter 0.6s ease-in-out;
    /* Suavidad */
    pointer-events: none;
    /* Evita que interfiera cuando está oculto */
}

.poptrox-popup .caption {
    background: rgba(0, 0, 0, 0.9); 
    /* Fondo semitransparente */
    text-align: center;
}

.poptrox-popup .caption h3 {
    margin-bottom: 0;
    color: #f3bc44;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.poptrox-popup .caption p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #fff;
}

#poptrox_main a h3,
#poptrox_main a p {
    display: none;
    /* Oculta los títulos y descripciones en la miniatura */
}


/* Overlay general */
.poptrox-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease-in-out;
}


.poptrox-popup {
    background: rgba(31, 34, 36, 0.925);
    box-shadow: 0 1em 3em 0.5em rgba(0, 0, 0, 0.25);
    cursor: default;
}

.poptrox-popup:before {
    -moz-transition: opacity 0.2s ease-in-out;
    -webkit-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    background-image: -moz-linear-gradient(to left, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0)), -moz-linear-gradient(to right, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0));
    background-image: -webkit-linear-gradient(to left, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0)), -webkit-linear-gradient(to right, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0));
    background-image: -ms-linear-gradient(to left, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0)), -ms-linear-gradient(to right, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0));
    background-image: linear-gradient(to left, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0)), linear-gradient(to right, rgba(31, 34, 36, 0.35), rgba(31, 34, 36, 0) 10em, rgba(31, 34, 36, 0));
    content: '';
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    opacity: 1;
}

.poptrox-popup .closer {
    -moz-transition: opacity 0.2s ease-in-out;
    -webkit-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    background-image: url("images/close_mrg.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2em;
    height: 7em;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 7em;
    z-index: 2;
}

.poptrox-popup .nav-previous,
.poptrox-popup .nav-next {
    -moz-transition: opacity 0.2s ease-in-out;
    -webkit-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    background-image: url("images/arrow_mrg.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2em;
    cursor: pointer;
    height: 10em;
    margin-top: -4em;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 8em;
    z-index: 2;
}

.poptrox-popup .nav-previous {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    transform: scaleX(-1);
    left: 0;
}

.poptrox-popup .nav-next {
    right: 0;
}

.poptrox-popup .caption {
    padding: 2em 2em 0.1em 2em;
    background-image: -moz-linear-gradient(to top, rgba(16, 16, 16, 0.45) 25%, rgba(16, 16, 16, 0) 100%);
    background-image: -webkit-linear-gradient(to top, rgba(16, 16, 16, 0.45) 25%, rgba(16, 16, 16, 0) 100%);
    background-image: -ms-linear-gradient(to top, rgba(16, 16, 16, 0.45) 25%, rgba(16, 16, 16, 0) 100%);
    background-image: linear-gradient(to top, rgba(16, 16, 16, 0.45) 25%, rgba(16, 16, 16, 0) 100%);
    bottom: 0;
    cursor: default;
    left: 0;
    position: absolute;
    text-align: left;
    width: 100%;
    z-index: 2;
}

.poptrox-popup .caption h2,
.poptrox-popup .caption h3,
.poptrox-popup .caption h4,
.poptrox-popup .caption h5,
.poptrox-popup .caption h6 {
    margin: 0 0 0.5em 0;
}

.poptrox-popup .caption p {
    color: #ffffff;
}

.poptrox-popup .loader {
    -moz-animation: spinner 1s infinite linear !important;
    -webkit-animation: spinner 1s infinite linear !important;
    -ms-animation: spinner 1s infinite linear !important;
    animation: spinner 1s infinite linear !important;
    background-image: url("images/spinner.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    font-size: 2em;
    height: 2em;
    left: 50%;
    line-height: 2em;
    margin: -1em 0 0 -1em;
    opacity: 0.25;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 2em;
}

.poptrox-popup:hover .closer,
.poptrox-popup:hover .nav-previous,
.poptrox-popup:hover .nav-next {
    opacity: 0.5;
}

.poptrox-popup:hover .closer:hover,
.poptrox-popup:hover .nav-previous:hover,
.poptrox-popup:hover .nav-next:hover {
    opacity: 1.0;
}

.poptrox-popup.loading:before {
    opacity: 0;
}

body.touch .poptrox-popup .closer,
body.touch .poptrox-popup .nav-previous,
body.touch .poptrox-popup .nav-next {
    opacity: 1.0 !important;
}

@media screen and (max-width: 980px) {

    .poptrox-popup .closer {
        background-size: 3em;
    }

    .poptrox-popup .nav-previous,
    .poptrox-popup .nav-next {
        background-size: 4em;
    }

}

@media screen and (max-width: 736px) {

    .poptrox-popup:before {
        display: none;
    }

    .poptrox-popup .caption {
        display: none !important;
    }

    .poptrox-popup .closer,
    .poptrox-popup .nav-previous,
    .poptrox-popup .nav-next {
        display: none !important;
    }

}