.snackbar {
    visibility: hidden;
    min-width: 250px;
    transform: translateX(-50%);
    background-color: rgba(104, 104, 104, 0.6);
    color: var(--white);
    text-align: center;
    border-radius: 3px;
    padding: 10px;
    position: fixed;
    z-index: -1;
    left: 50%;
    top: 100px;
    -webkit-animation: snackbar-fadeout 0.5s;
    animation: snackbar-fadeout 0.5s;
}

.snackbar.show {
    z-index: 999999;
    visibility: visible;
    -webkit-animation: snackbar-fadein 0.5s;
    animation: snackbar-fadein 0.5s;
}

@-webkit-keyframes snackbar-fadein {
    from {top: 0; opacity: 0;}
    to {top: 100px; opacity: 1;}
}

@keyframes snackbar-fadein {
    from {top: 0; opacity: 0;}
    to {top: 100px; opacity: 1;}
}

@-webkit-keyframes snackbar-fadeout {
    from {top: 100px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

@keyframes snackbar-fadeout {
    from {top: 100px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

.progress-bar{
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
    -webkit-flex-direction:column;
    -ms-flex-direction:column;
    flex-direction:column;
    -webkit-justify-content:center;
    -ms-flex-pack:center;
    justify-content:center;
    overflow:hidden;
    color:var(--white);
    text-align:center;
    white-space:nowrap;
    background-color:var(--primary);
    transition:width .6s ease;
    width: 100%;
    border: none;
}

#modal_photo .img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #eee;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*
#modal_photo .img-wrapper:before {
    content: "";
    display: block;
    padding-top: 75%;
}
*/
#modal_photo .img-wrapper img {
    /*
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    */
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    display: inline-block;
}
#modal_photo .img-wrapper a.leftward,
#modal_photo .img-wrapper a.rightward
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    opacity: 0.75;
    z-index: 2;
    background-color: #00000024;
    border-radius: 50%;
    display: inline-block;
    padding: 4px;
}
#modal_photo .img-wrapper a.leftward:hover,
#modal_photo .img-wrapper a.rightward:hover
{
    opacity: 1;
}
#modal_photo .img-wrapper a.leftward svg path,
#modal_photo .img-wrapper a.rightward svg path
{
    -webkit-filter: drop-shadow(2px 2px 4px #000);
    filter: drop-shadow(2px 2px 4px #000);
}
#modal_photo .img-wrapper a.leftward {
    left: 10px;
}
#modal_photo .img-wrapper a.rightward {
    right: 10px;
}

#modal_photo .comments-wrapper {
    max-height: 320px;
    overflow: auto;
}
#modal_photo .options {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -0.625rem;
}
#modal_photo .options .emotions.hover a,
#modal_photo .options .emotions:hover a,
#modal_photo .options .emotions a.e {
    padding: 0 4px 0 28px;
}
#modal_photo .options .comments {
    min-width: 34px;
}
#modal_photo .options .comments.hover > a,
#modal_photo .options .comments:hover > a,
#modal_photo .options .comments > a.e {
    padding: 0 4px 0 24px;
    margin: 4px 0;
}
#modal_photo .options .comments > a:before {
    width: 28px;
    left: -3px;
}
#modal_photo .options .share {
    min-width: 35px;
}
#modal_photo .options .share a.active {
    padding: 0 0 0 24px;
}
#modal_photo .actions a {
    margin-left: 10px;
}
#modal_photo .modal-photo-data {
    padding: 1rem;
}


@media (max-width: 768px){
    #modal_photo .modal-photo-data {
        padding: 0 1rem;
    }
    #modal_photo .img-wrapper {
        min-height: 320px;
    }
    #modal_photo .img-wrapper img {
        max-height: 320px;
    }
}