.metaslider {
  display: none;
}
/* Gallery */
.gallery {
    height: 300px;
    width: 100%;
    background-color: #dad4d0;
    padding-right: 80px;
    padding-left: 80px;
    position: relative;
}
.gallery .items-container::-webkit-scrollbar { display: none; }
.gallery .items-container {
    height: 300px;
    margin: auto;
    white-space: nowrap;
    overflow: auto;
}
.gallery .gallery-item {
    height: 220px;
    margin: 20px;
    display: inline-block;
    position: relative;
    background-size: cover;
    background-position: center;
}
.gallery .gallery-item .item-caption {
    position: absolute;
    top: 225px;
    font-size: 11pt;
    color: #8f8f8a;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 1px;
    white-space: normal;
    overflow: hidden;
    text-align: left;
    margin-bottom: 0;
}
.gallery .control {
    position: absolute;
    top: 0;
    width: 80px;
    height: 30px;
}
.gallery .control-left { left: 0; }
.gallery .control-right { right: 0; }
.gallery .control span {
    font-size: 60px;
    color: #666;
    line-height: 300px;
}
@media (max-width: 530px) {
    .gallery .items-container {
        position: absolute;
        right: 60px;
        left: 60px;
    }
    .gallery .control { width: 60px; }
    .gallery .control span { font-size: 40px; }
}
@media (max-width: 400px) {
    .gallery .items-container {
        right: 0;
        left: 0;
    }
    .gallery .control {
        width: 55%;
        margin-top: 270px;
        height: 70px;
        background-color: #dad4d0;
    }
    .gallery .control span { line-height: inherit; }
    .gallery { margin-bottom: 40px; }
}

/* Modal Window */
#image-modal {
    border-radius: 5px;
    transition: 0.3s;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(50,50,50); /* Fallback color */
    background-color: rgba(50,50,50,0.9); /* Black w/ opacity */
}
#image-modal .control {
    position: absolute;
    top: 0;
    width: 130px;
    height: 100%;
    text-align: center;
}
#image-modal .control-left { left: 0; }
#image-modal .control-right { right: 0; }
#image-modal .control span {
    color: #ddd;
    top: 50%;
    transform: translateY(-50%);
}
#image-modal .close {
    color: #fff;
    z-index: 9999;
    opacity: 0.7;
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
#image-modal .close:hover,
#image-modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
#image-modal .modal-content {
    margin: auto;
    position: absolute;
    right: 10px;
    left: 10px;
    max-height: 85vh;
    max-width: 80vw;
    top: 40%;
    transform: translateY(-40%);
}
#image-modal .caption {
    margin: auto;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 50px;
    position: absolute;
}
#image-modal .n_images_teller {
    margin: auto;
    display: block;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 50px;
    right: 100px;
}

#image-modal .caption,
#image-modal .n_images_teller {
    color: #ddd;
    font-size: 11pt;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 1px;
}
@media (max-width: 1200px) {
    #image-modal .modal-content { max-width: 75vw; }
}
@media (max-width: 991px) {
    #image-modal .modal-content { max-width: 70vw; }
    #image-modal .control { width: 100px; }
}
@media (max-width: 767px) {
    #image-modal .control { width: 80px; }
}

@media (max-height: 900px) {
    #image-modal .modal-content { max-height: 80vh; }
}
@media (max-height: 600px) {
    #image-modal .modal-content {
        max-height: 75vh;
        top: 40%;
        transform: translateY(-40%);
    }
}
@media (max-height: 500px) {
    #image-modal .modal-content {
        top: 30%;
        transform: translateY(-30%);
    }
}
@media (max-height: 400px) {
    #image-modal .modal-content {
        top: 20%;
        transform: translateY(-20%);
    }
}

#image-modal .control span { font-size: 4vw; }

@media (max-width: 600px) {
    #image-modal .control span { font-size: 40px; }
}
@media (max-width: 400px) {
    #image-modal .control span { font-size: 36px; }
}
@media (max-width: 1200px) {
    #image-modal .control { width: 15vw; }
}

/* Controls Down */
@media (max-width: 450px) {
    #image-modal .control span /*,
    #image-modal .n_images_teller*/ {
        top: 80%;
        transform: translateY(-80%);
    }
    #image-modal .n_images_teller {
        left: auto;
        right: auto;
        width: 100%;
        bottom: 0;
    }
}
