/* The Image Box */
div.img {
    border: 1px solid #ccc;
}
div.img:hover {
    border: 1px solid #777;
}
/* The Image */
div.img img {
    width: 100%;
    height: auto;
    cursor: pointer;
}
/* Description of Image */
div.desc {
    padding: 15px;
    text-align: center;
}
* {
    box-sizing: border-box;
}
/* Add Responsiveness */
.responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
}
/* The Modal (background) */
.modal {
    display: none;
   /* Hidden by default */
    position: fixed;
   /* Stay in place */
    z-index: 1;
   /* Sit on top */
    padding-top: 100px;
   /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
   /* Full width */
    height: 100%;
   /* Full height */
    overflow: auto;
   /* Enable scroll if needed */
    background-color: #000;
   /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
   /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}
/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
    from {
        transform: scale(0);
   }
    to {
        transform: scale(1);
   }
}
@keyframes zoom {
    from {
        transform: scale(0.1);
   }
    to {
        transform: scale(1);
   }
}
/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}






* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    font-family: sans-serif;
    text-align: center;
}

.image-container  {
    width: 100%;
    height: auto;
    max-width: 1440px;
    margin: 0 auto;
}

/* img {
    height: 277px;
    max-width: 100%;
    overflow: hidden;
} */

.buttons a {
    display: inline-block;
    padding: 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    width: 100px;
    text-align: center;
    margin-bottom: 50px;
}

.buttons a:nth-of-type(1) {
    background-color: cornflowerblue;
}

.buttons a:nth-of-type(2) {
    background-color: hotpink;
}

.buttons a:nth-of-type(3) {
    background-color: lightcoral;
}

.buttons a:nth-of-type(4) {
    background-color: rebeccapurple;
}

.hide {
  display: none;
}


/* * {
    box-sizing: border-box;
}
body {
    background-color: #ecf0f1;
} */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 8%;
}
.gallery-item {
    flex-basis: 19.7%;
    margin-bottom: 6px;
    opacity: .85;
    cursor: pointer;
}
.gallery-item:hover {
    opacity: 1;
}
.gallery-item img {
    width: 99%;
    height: 100%;
    object-fit: cover;
}
.gallery-content {
    font-size: .8em;
}

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;              
    overflow: auto;
    top: 0;
    left: 0;
}
.lightbox-content {
    position: relative;
    width: 70%;
    height: 70%;
    margin: 5% auto;
}
.lightbox-content img {
    border-radius: 7px;
    box-shadow: 0 0 3px 0 rgba(225, 225, 225, .25);
    width: 50%;
    height: auto;
    object-fit: cover;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 7px;
    top: 45%;
    cursor: pointer;
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: .8;
}

@media (max-width: 767px) {
    .gallery-container {
        width: 100%;
    }
    .gallery-item {
        flex-basis: 49.80%;
        margin-bottom: 3px;
    }
    .lightbox-content {
        width: 80%;
        height: 60%;
        margin: 15% auto;
    }
}
@media (max-width: 480px) {
    .gallery-item {
        flex-basis: 100%;
        margin-bottom: 1px;
    }
    .lightbox-content {
        width: 90%;
        margin: 20% auto;
    }
}