

#modalBackground{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.829);
}


#modalWrapper{
    border-radius: 1.5em;
    position: fixed;
    top: 0px; left: 0px;
    height: 90vh;
    width: 100vw;
    margin: 5vh 5px 5vh 0px;
    background-color: white;
    display: flex; flex-direction: column; justify-content: start;
}

#closeX{
    position: absolute;
    right: .25em; 
    top: .25em; 
    height: 2.2em;
    border-radius: 1.1em;
    border: 1px solid rgb(185, 185, 185);
    background-color: rgb(201, 244, 248);
    font-size: 1.8em;
    width: 1.2em; height: 1.2em;
    padding: 0px;
    margin: 0px;
    text-align: center;
    display: flex; flex-direction: column; justify-content: center;
    cursor: pointer;
}

#contentWrapper{
    border-radius: 1.5em;
    padding: 1em 0px 0px 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 70vh;
}

#modalLeftArrow{
    padding: 5vw;
    width: max-content;
    font-size: 7em;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    cursor: pointer;
}

#modalRightArrow{
    padding: 5vw;
    width: max-content;
    font-size: 7em;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    cursor: pointer;
}

.arrowInactive{
    /* color: gray; */
    cursor: not-allowed;
    opacity: 0.2;
}


#contentWrapper{
    display: flex; flex-direction: row; justify-content: center;
    text-align: center;
    width: 100%;
    height: 70vh;

}
#articleWrapper{
    max-width:60vw;
    width: max-content;
    text-align: center;
    display: flex; flex-direction: row; justify-content: center;
}
#modalEmbed{
    border: 1px solid black;
    min-width: 55vw;
    max-width:90%;
    text-align: center;
    /* display: flex; flex-direction: row; justify-content: center; */
}
#modalImg{
    border: 1px solid black;
    padding: 11px;
    width: max-content;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.contentWrapper embed{
    height: 100%;
    width: 100%;
}

#modalTxtTitle{
    padding: 0px 2em;
    width: 90%;
    margin: 0px auto;
    height: 2.2em;
    font-size: 1.3em;
    font-weight: bold;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
}


#modalTxtFilename{
    width: 100%;
    height: 2.2em;
    position: absolute;
    bottom: 0px;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
}


#modalTxtCaption{
    width: 100%;
    height: 2.2em;
    position: absolute;
    bottom: 2.5em;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
}






.documentBox {
    overflow: auto;
    max-width: 90vw;
    /* max-height: 333px; */
    /* border: 1px solid rgb(85, 85, 85); */
    overflow-y: scroll;
}
.imgWrapper{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0px 0px 13px 10px;
}
.documentBox img {
    cursor: pointer;
    max-height: 150px;
    max-width: 150px;
    width: auto;
    height: auto;
    border: 1px solid gray;
    margin: 0.5rem;
}
.textInDocBox{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin: auto;
    min-width: 100px;
    width: 95%;
}






.visibleBox{
    transform: scale(1);
    opacity: 1;
    transition:0.25s;
    z-index: 11;
}

.invisibleBox{
    transform: scale(0);
    opacity: 0;
    transition:0.25s;
    z-index: -11;
}



.showBG{
    display: block;
    visibility: visible;
    transition:0.25s;
    opacity: 1;
    z-index: 10;
}

.hideBG{
    transform: scale(0);
    animation: 5s ease-in fadeout;
    opacity: 0;
    transition:0.25s;
    z-index: -10;
}

.showContent{
    display: block;
    visibility: visible;
}
.hideContent{
    display: none;
    visibility: hidden;
}





/* Extra Small Devices */
@media (max-width: 575px) {
    
    .documentBox img {
        max-height: 20vw;
        max-width: 20vw;
        height: auto;
        width: auto;
    }
}

/* Small Devices */
@media (min-width: 576px) and (max-width: 767px) {
    
    .documentBox img {
        max-height: 10vw;
        max-width: 15vw;
        height: auto;
        width: auto;
    }
    
}

/* Medium Devices */
@media (min-width: 768px) and (max-width: 991px) {
    
    .documentBox img {
        max-height: 10vw;
        max-width: 15vw;
        height: auto;
        width: auto;
    }
}

/* Large Devices */
@media (min-width: 992px) and (max-width: 1199px) {
    
    .documentBox img {
        max-height: 12.5rem;
        max-width: 150px;
        height: auto;
        width: auto;
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    
    .documentBox img {
        max-height: 15rem;
        max-width: 150px;
        height: auto;
        width: auto;
    }
}



.gallery {
    overflow: auto;
    margin: 0 0 7rem 0;
    position: relative;
}
.gallery img{
    max-width: 150px;
    max-height: 150px;
    padding: 0.75rem;
    margin: .5rem;
    border: 1px solid blue;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.904);
    flex-direction: column;

    z-index: 5555;
}


#modalBackground{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.637);
    visibility: hidden;
    display: none;
}
#modalBackground.visible {
    visibility: visible;
    display: block;
}
#modalContentWrapper {
    max-width: 95%;
    max-height: 85vh;
    width: auto;
    height: auto;
    
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    margin: auto;
    text-align: center;

    overflow-y: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    position: relative;
    
    /* Firefox */
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #00d4ff #2a2a2a; /* Cyan thumb, dark track */
}

#modalContentWrapper.has-zoomed-image {
    overflow: auto;
    align-items: flex-start;
}

/* WebKit scrollbar styling for modal content */
#modalContentWrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#modalContentWrapper::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 5px;
}

#modalContentWrapper::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 5px;
}

#modalContentWrapper::-webkit-scrollbar-thumb:hover {
    background: #00ffea;
}







#fullSizedModalImage {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

#fullSizedModalImage.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform-origin: center center;
}

.oneFullSizeImageForMultiModal {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto;
    object-fit: contain;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.oneFullSizeImageForMultiModal.zoomed {
    max-width: none;
    cursor: zoom-out;
    transform-origin: center center;
}

.close {
    color: rgb(0, 255, 255);
    font-size: 2.2em;
    position: absolute;
    top: 20px;
    right: 25px;
    width: 1.2em;
    height: 1.2em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin: 0px;
    cursor: pointer;
    border: 2px solid rgb(0, 255, 255);
    background-color: rgba(8, 48, 0, 0.8);
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.close:hover {
    background-color: rgba(238, 255, 0, 0.651);
    /* color: black; */
    transform: scale(1.1) rotate(90deg);
    /* box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); */
    /* background-color: rgba(106, 114, 0, 0.568); */
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 25px rgba(0, 0, 0, 0.9);
    background-color: rgba(0, 104, 114, 0.568);
}

.arrow {
    color: rgba(0, 255, 255, 1);
    font-size: 3.5em;
    position: absolute;
    top: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 0, 0, 0.8);
    user-select: none;
    z-index: 10;
    padding: 0px 12px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0.7;
    height: 6rem;
}

.arrow:hover {
    color: rgb(0, 255, 255);
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 25px rgba(0, 0, 0, 0.9);
    opacity: 1;
    background-color: rgba(0, 104, 114, 0.568);
}

.arrow.left {
    left: 0.5rem;
    top: 50%;
}

.arrow.right {
    right: 0.5rem;
    top: 50%;
}

.grayArrow {
    color: rgba(128, 128, 128, 0.5);
    cursor: not-allowed;
    text-shadow: none;
    opacity: 0.4;
}

.grayArrow:hover {
    transform: none;
    color: rgba(128, 128, 128, 0.5);
    text-shadow: none;
    opacity: 0.4;
}

.info {
    color: rgb(0, 255, 255);
    text-align: center;
    margin-top: 15px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.info h2 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.info p {
    font-size: 1.2em;
    margin: 8px 0;
    line-height: 1.5;
}

.sourceLine {
    font-style: italic;
    font-size: 0.95em;
    color: rgba(0, 255, 255, 0.85);
    margin-top: 12px;
}






/* Firefox */
.div-container {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Thumb color, Track color */
}

/* WebKit Browsers: Chrome, Safari, Edge */
.div-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.div-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.div-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.div-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}





@media (max-width: 768px) {
    .arrow {
        top: auto;
        bottom: 20px;
        height: 4.25rem;
    }
    .modal img {
        /* max-width: 100%; */
    }
    #modalPdfEmbed{
        width: 100%;
    }
}