html,
body {
    margin: 0px;
    padding: 0px;
    box-sizing: content-box;
}

a {
    text-decoration: none;
    border: none;
    color: black;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #d6d6d6;
}

#site-wrapper {
    width: 100%;
    max-width: 1600px;
    height: auto;
    background-color: #fbfbfb;
}

#site-wrapper div {
    /*    border: 1px red solid;*/
}

#main-content {
    height: 100%;
    display: flex;
    flex-direction: row;
    padding-left: 2%;
    padding-right: 2%;
    flex-wrap: wrap;
    padding-bottom: 15%;
    /*    justify-content: center;*/
}

.overlay-drape {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.1s ease-out;
    padding: 40px;
    box-sizing: border-box;
}

.overlay-drape img {
    /*    width: calc(100% - 80px);*/
    /*    max-width: 1920px;*/
/*    transition: */
    opacity: 1;
/*    transform: scale(0.95, 0.95);*/
}

.full-screen-img-box {
    position: relative;
    width: 100%;
    /* desired width */
    box-sizing: border-box;
}

.full-screen-img-box.wide:before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* initial ratio of 1:1*/
}

.full-screen-img-box.tall:before {
    content: "";
    display: block;
    padding-top: 177%;
    /* initial ratio of 1:1*/
}

.full-screen-img-box>div {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.full-screen-img-box.wide img {
    width: 100%;
    max-width: 1920px;
}

.full-screen-img-box.tall img {
    height: 100%;
    max-height: 1080px;
}

img[data-full-size-url] {
    cursor: zoom-in;
}

@media screen and (max-width: 500px) {
    #site-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    #main-content {
        flex-direction: column;
        padding-left: 0%;
        padding-right: 0%;
    }
    .full-screen-img-box>div{
        padding: 0;
    }
}
