.hide-overflow {
    overflow-y: hidden;
}

.photo-modal {
    --user-image-length: 40px;
    --user-image-margin-right: 10px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 1049;
    background-color: rgba(0, 0, 0, 0.9);
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    visibility: hidden;
}

.photo-modal--open {
    visibility: visible;
    overflow-y: auto;
    overflow-x: hidden;
}

/* .photo-modal--overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
} */

.photo-modal--exit {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 300%;
}

.photo-modal--content-exit,
.photo-modal--browse-inline {
    display: none;
}

.photo-modal--browse {
    background-color: transparent;
    border: none;
    width: 60px;
    height: 60px;
    top: 250px;
}
.photo-modal--browse svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.8);
}
.photo-modal--browse:hover svg {
    transition: fill 0.2s;
    fill: rgba(255, 255, 255, 1);
}
.photo-modal--previous {
    position: absolute;
    left: 0;
    transform: translateX(-125%);
}

.photo-modal--next {
    position: absolute;
    right: 0;
    transform: translateX(125%);
}

.photo-modal--content {
    position: relative;
    margin-top: 20px;
    padding: 20px;
    /* min-height: 1000px; */
    max-width: 1200px;
    width: calc(100vw - 80px*2);
    background-color: #ffffff;
    border-radius: 6px;
    margin-left: auto;
    margin-right: auto;
}

.photo-modal--photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.photo-modal--photo {
    max-height: 75vh;
    /* min-height: 300px; */
    max-width: 100%;
}


.photo-modal--action {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    font-size: 250%;
}

.photo-modal--action > * {
    border-radius: 50%;
    /* border: 2px solid #757779; */
    background-color: rgb(0, 0, 0, 0.6);
    /* color: white; */
    min-width: 50px;
    min-height: 50px;
    /* text-align: center; */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    margin: 5px;
}

.photo-modal--action i {
    color: white;
}


.photo-modal--photo-info {
    padding: 15px;
}
.photo-modal--user-info {
    display: flex;
    align-items: center;
}
.photo-modal--user-info img {
    width: var(--user-image-length);
    height: var(--user-image-length);
    object-fit: cover;
    border-radius: 50%;
    margin-right: var(--user-image-margin-right);
}
.photo-modal--photo-details {
    margin-left: calc(var(--user-image-length) + var(--user-image-margin-right));
}

@media only screen and (max-width: 850px) {
    .photo-modal--content {
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        min-height: 100%;
    }
    .photo-modal--content-exit {
        min-height: 50px;
        font-size: 180%;
        padding-left: 15px;
        display: flex;
        align-items: center;
    }
    .photo-modal--content {
        width: 100%;
    }
    .photo-modal--photo {
        max-height: 100%;
        width: 100%;
        height: auto;
    }
    .photo-modal--browse {
        display: none;
    }
    .photo-modal--browse-inline {
        display: inline-block;
        position: absolute;
        top: 70px;
        right: 20px;
        z-index: 1;
    }

    .photo-modal--browse-inline > button {
        width: 10vw;
        height: 10vw;
        border: none;
        background-color: rgba(255, 255, 255, 0.5);
    }
    .photo-modal--browse-inline > button > svg {
        width: 100%;
        height: 100%;
    }
    .photo-modal--previous {
        /* transform: translateX(150%); */
        transform: none;
        z-index: 1;
    }
    
    .photo-modal--next {
        /* transform: translateX(-150%); */
        transform: none;
        z-index: 1;
    }
}