@charset "UTF-8";

.modal {
    position: fixed;
    right: 0;
    top: 100px;
    display: none;
    width: 50%;
    height: calc(100vh - 100px);
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

#modal-content {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#modal-wrap {
    width: 100%;
    max-height: 100%;
    padding: 10px;
    background-color: rgb(28, 28, 28);
}

#modalBody {
    width: 100%;
    max-height: calc(100vh - 280px);
    display: flex;
    justify-content: center;
}

.pdf {
    width: 100%;
    height: calc(100vh - 80px);
}

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

.arrow-photo {
    width: 100%;
    height: calc(100vh - 300px);
}

.arrow-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    overflow: scroll;
    height: 100%;
}

.photo::after {
    display: block;
    content: "";
    width: 33%;
}

.photo img {
    width: 33%;
    aspect-ratio: 4.5/3;
    object-fit: contain;
}

#modalBody video {
    object-fit: contain;
}

.video-wide {
    width: 100%;
    height: auto;
}

.video-tall {
    width: auto;
    height: calc(100vh - 300px);
}

.close-btn {
    color: rgb(255, 255, 255);
    margin-left: auto;
    width: 20px;
    height: 20px;
    margin-bottom: 20px;

    transition: all 0.5s;
}

.close-btn:hover,
.close-btn:focus {
    color: rgb(164, 164, 164);
    cursor: pointer;
}

.nav-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    user-select: none;
}

#prev {
    left: 0;
}

#next {
    right: 0;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#imageIndex {
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-align: right;
    margin-top: 5px;
}

@media screen and (max-width:799px) {
    .modal {
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        height: -webkit-fill-available;
        height: calc(100% - 60px);
        z-index: 10000;
    }

    #modal-content {
        padding: 20px;

    }
}