.lightbox{ 
    opacity: 0;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, .9); 
    z-index: 9001; 
    transform: scale(0);
    transform-origin: center;
    transition: all .5s ease-in-out;
}

.lightbox__thumbs__carousel,
.lightbox__thumbs__carousel .owl-stage-outer, 
.lightbox__thumbs__carousel .owl-item{
    height: 100%;
}

.lightbox__thumbs__carousel .owl-stage{
    height: 100%;
    margin: 0 auto;
} 

.lightbox *{ 
    background: transparent;
}   

.lightbox.active{ 
    transform: scale(1);
    opacity: 1; 
}

.lightbox__main{
    height:85%;
}

.lightbox__main__img{
    width: 100%;
    aspect-ratio: 16/9;
}

.lightbox__main__img img{
    width: 100%;
    height: 100%;
    /* object-fit: scale-down; */
    object-fit: contain;
}

.lightbox__thumbs{
    height:15%;
}

.lightbox__thumbs__thumb{
    width:100%;
    max-height:100%;
    aspect-ratio: 1/1;
    opacity: .5;
    background: #000;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.lightbox__thumbs__thumb.selected, .lightbox__thumbs__thumb:hover{
    opacity:1;
}

.lightbox__thumbs__thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox__img { 
    cursor: pointer; 
}

.lightbox__close { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    /* background-color: var(--primaryColor); */
    opacity: .75; 
    width: 30px; 
    height: 30px; 
    cursor: pointer; 
    border: 0;
    z-index: 9002; 
    transition:all .3s ease-in-out;
}

.lightbox__close:hover{
    opacity: 1;
}

.lightbox__close svg{
    fill: #fff;
    background: transparent;
}

.lightbox__next { 
    border: 0;
    position: absolute; 
    top: 50%; 
    right: 10px; 
    /* background-color: var(--primaryColor); */
    opacity: .75; 
    width: 30px; 
    height: 30px; 
    cursor: pointer; 
    -ms-transform: translateY(-50%); 
    -webkit-transform: translateY(-50%); 
    transform: translateY(-50%); 
    z-index: 9002; 
    transition:all .3s ease-in-out;
}

.lightbox__prev { 
    border: 0;
    position: absolute; 
    top: 50%; 
    left: 10px; 
    /* background-color: var(--primaryColor); */
    opacity: .75; 
    width: 30px; 
    height: 30px; 
    cursor: pointer; 
    -ms-transform: translateY(-50%); 
    -webkit-transform: translateY(-50%); 
    transform: translateY(-50%); 
    z-index: 9002; 
    transition:all .3s ease-in-out;
}

.lightbox__next:hover, .lightbox__prev:hover{
    opacity: 1;
}

.lightbox__next svg, .lightbox__prev svg {
    fill: #fff;
    background: transparent;
} 

.lightbox__legenda{
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
    color: #fefefe;
    text-transform: uppercase;
    padding: .25rem 1rem;
    background-color: rgba(0, 0, 0, .75);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    text-align: center;
}

.lightbox__main video{
    max-height: 100%;
}

.gallery__video{
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gallery__video video{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media only screen and (orientation: portrait) and (max-width:1200px){
    .lightbox__main__img{
        aspect-ratio: 11/9;
    }
}

@media only screen and (orientation: portrait) and (max-width:992px){
    .lightbox__main__img{
        aspect-ratio: 14/9;
    }
}

@media only screen and (orientation: portrait) and (max-width: 767px){
    .lightbox__main__img {
        aspect-ratio: 7/9;
    }
}