/* CSS Document */

body {
    font-family: Arial, sans-serif;
}

.gallery-wrapper {
    /*position: ;*/
    padding: 0 0 0 10px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

.thumbnail {
    margin: 5px;
    width: auto;
}


@media only screen and (min-width: 960px) {
.gallery-wrapper .thumbnail img {
    width: 174px;
    height: 174px;
    object-fit: cover;
}
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
.gallery-wrapper .thumbnail img {
    width: 172px;
    height: 172px;
}
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
 .gallery-wrapper .thumbnail img {
    width: 180px;
    height: 180px;
} 
}

@media only screen and (max-width: 479px) {
 .gallery-wrapper .thumbnail img {
    width: 254px;
    height: 254px;
}
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.caption {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.close {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    top: 10px;
    right: 20px;
}

.arrow {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

