.row > .column {
    padding: 0 8px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 25%;
}
/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 300;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
    user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: auto;
    padding: 120px 0 50px 0;
    width: 90%;
    /* max-width: 1200px; */
    height: 100%;
}

/* The Close Button */
.close {
    z-index: 99999;
    color: white;
    position: absolute;
    top: 75px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
    position: relative;
    height: 100%;
    overflow: hidden;
    z-index: 20;
}
.mySlides img{
    max-height: 100%;
    max-width: 100%;
    width: auto;
    position: absolute;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

/* Next & previous buttons */
.prev_modal{
    left: -53px;
}
.prev_modal,
.next_modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 52px;
    z-index: 88;
    color: #fff;
    font-size: 50px;
    transition: 0.6s ease;
    -o-transition: 0.6s ease;
    -ms-transition: 0.6s ease;
    -moz-transition: 0.6s ease;
    -webkit-transition: 0.6s ease;
    user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next_modal{
    right: -53px!important;
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #aaa;
    font-size: 12px;
    position: absolute;
    top: 0;
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}

img.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}

img.hover-shadow {
    transition: 0.3s
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}


@media screen and (max-width: 769px){

    .modal-content{
        padding: 80px 0 50px 0;
    }
    .close{
        top: 65px;
        right: 15px;
        width: 30px;
        height: 30px;
        line-height: 28px;
        text-align: center;
    }
    .mySlides{
        height: auto;
    }
    .mySlides img{
        position: relative;
        top: 0;
        margin: 30px 0 0 0;
        transform: translate(-50%, 0%);
        -o-transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
        -moz-transform: translate(-50%, 0%);
        -webkit-transform: translate(-50%, 0%);
    }
    .prev_modal, .next_modal{
        position: absolute;
        width: 50%;
        top: initial;
        bottom: 0;
        text-align: center;
        padding: 30px;
        transition: 0s ease;
        -o-transition: 0s ease;
        -ms-transition: 0s ease;
        -moz-transition: 0s ease;
        -webkit-transition: 0s ease;
    }
    .prev_modal{
        left: 0;
    }
    .next_modal{
        right: 0 !important;
    }
    .prev_modal:hover, .next_modal:hover{
        color: #fff;
    }

}