#images-section {
    display: flex;
    flex-wrap: wrap;
}
    #images-section::after {
        content: '';
        flex-grow: 999999999;
    }

div.img-wrapper {
    background-color: #DFDDDC;
    position: relative;
    margin: 0;
}
i.gallery-item-i{
    display: block;
}
img.gallery-item {
    position: absolute;
    top: 0;
    width: 100%;
    vertical-align: bottom;
}

/* img.gallery-item:hover {
    opacity: .75;
} */

@media (hover: hover) {
    .img-wrapper:hover .proj-mini-darken {
        opacity: 1;
    }
}

/* Photo Viewer Modal */
/* html.modal-active, body.modal-active {
    overflow: hidden;
} */

#modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 3000;
}

#modal-container.blowup {
    z-index: 3000;
    transform: scale(1);
}
#modal-container.blowup .modal-background-extend {
    position: fixed;
    height: 150%;
    width: 150%;
    left: -25%;
    top: -25%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.85);
}

#modal-container.blowup .modal-background .modal {
    animation: blowUpModal 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.blowup + .content {
    z-index: 3000;
    animation: blowUpContent 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.blowup.out {
    animation: blowUpModalTwo 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.blowup.out .modal-background {
    animation: blowUpModalTwo 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.blowup.out .modal-background .modal {
    animation: blowUpModalTwo 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#modal-container.blowup.out + .content {
    animation: blowUpContentTwo 0.375s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container .modal-background {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

@media only screen and (min-width: 768px){
    #modal-container .modal-background .modal {
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        display: -webkit-flex;
        vertical-align: middle;
        align-items: center;
        font-weight: 300;
        max-height: calc(100% - 160px);
        max-width: calc(100% - 160px);
        position: absolute;
        top: 80px;
        left: 80px;
        bottom: 80px;
        right: 80px;
        margin: auto;
    }
}

@media only screen and (max-width: 767px){
    #modal-container .modal-background .modal {
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        display: -webkit-flex;
        vertical-align: middle;
        align-items: center;
        font-weight: 300;
        max-height: calc(100% - 144px);
        max-width: 100%;
        position: absolute;
        top: 72px;
        left: 0;
        bottom: 72px;
        right: 0;
        margin: auto;
    }
}

#modal-container .modal-background .modal .modal-img-wrapper{
    display: contents;
}


#modal-container .modal-background .modal .modal-svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.content {
    min-height: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}

@keyframes blowUpContent {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    99.9% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(0);
    }
}
@keyframes blowUpContentTwo {
    0% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes blowUpModal {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes blowUpModalTwo {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.modal-close-button{
    color: #FFFFFF;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 3000;
    font-weight: 900;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
}

    @media (hover: hover) {
        .modal-close-button:hover{
            color: #86807A;
        }
    }

    .modal-close-button span {
        display: block;
        font-size: 27pt;
        font-weight: bold;
        user-select: none;
        -ms-user-select: none;
    }
    img.modal-img{
        max-width: 100%;
        max-height: 100%;
        margin: auto;
    }
        .hover-pointer{
            cursor: zoom-in;
        }

    .modal-prev-button, .modal-next-button {
        cursor: pointer;
        position: absolute;
        color: #FFFFFF;
        font-weight: 900;
        font-size: 27px;
        transition: all 0.1s ease-in-out;
        -moz-transition: all 0.1s ease-in-out;
        -webkit-transition: all 0.1s ease-in-out;
        -o-transition: all 0.1s ease-in-out;
        user-select: none;
        -webkit-user-select: none;
    }

    @media (hover: hover) {
        .modal-prev-button:hover, .modal-next-button:hover {
            color: #86807A;
        }
    }

    .modal-prev-button {
        left: 30px;
    }
    .modal-next-button {
        right: 30px;
    }

    @media only screen and (max-width: 767px) {
        .modal-prev-button, .modal-next-button{
            bottom: 24px;
            font-size: 27px;
        }
        .modal-close-button{
            font-size: 27px;
        }
    }