/****************************************** VARIABLES ******************************************/
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gabarito&display=swap');

/************************************** LIGHTBOX STYLING **************************************/
.lightbox-scroll{
    overflow-y: hidden;
}

.lightbox-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10000;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000000f4; /* Black w/ opacity */
    font-family: 'Gabarito', cursive;
}

.lightbox-content{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    width: 100%;
}

.index-counter{
    top: 10px;
    color: white;
    z-index: 103;
    font-size: 16px;
    transition: 0.5s;
    height: max-content;
    text-align: center;
}

.lbTerm{
   font-weight:500;
}

.media-container{
    position: relative;
    z-index: 101;
    background-color: #eeeeee;
    max-height: 75vh;
    max-width: 95%;
    padding: 2px;
    margin-top: 10px;
    /* min-height: max-content; */
    min-width: 20%;
}

.media-container img, .media-container video{
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
}

.media-container iframe{
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 60vh;
    margin-bottom: -4px;
}

.desc{
    position: relative;
    color: white;
    padding: 5px 0 20px 0;
    font-size: 1rem;
    text-align: center;
    transition: 0.5s;
}

.desc a{
    color: #c5921a;
    text-decoration: none;
}

.desc a:hover{
    text-decoration: underline;
}

.lightbox-content .lightbox-loader {
    position: absolute;
    z-index: 102;
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    border: 10px solid #404040a2;
    border-top-color: #00a8df;
    animation: spin 1s linear infinite;
}
  
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/************************************** CUSTOM SCROLL BAR **************************************/
/* width */
.lightbox-overlay::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/*Tablet*/
@media screen and (max-width: 768px){
    .media-container iframe{
        min-height: 50vh;
    }
}

/*Mobile*/
@media screen and (max-width: 425px){
    .media-container iframe{
        min-height: 35vh;
    }
}

/*Mobile (landscape mode)*/
@media screen and (max-height: 340px){
    .lightbox-overlay {
        overflow-y: auto;
    }
}
/************************************* LIGHTBOX BUTTONS ************************************/
.close {
    background-color: transparent;
	border: none;
    color: #f8f9fa;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.5s;
    text-decoration: none;
    cursor: pointer;
}

.close:hover, .close:focus 
{
    color: #adb5bd;
}

/* Next & previous buttons */
.next, .prev{
    cursor: pointer;
    position: absolute;
    background-color: transparent;
    color: #f8f9fa;
    width: auto;
    padding: 16px;
    z-index: 102;
    font-weight: bold;
    font-size: 35px;
    transition: 0.3s ease;

    user-select: none;
    -webkit-user-select: none;
    border: none;
}

.next:hover, .prev:hover{
    background-color: hsla(208, 7%, 46%, 0.8);
    color: #f8f9fa;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev{
    left: 0;
    border-radius: 0 5px 5px 0;
}
