@charset "UTF-8";
/* CSS Document */


.gallerybox {
    width: 100%;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 60px 20px;
}


.gallery {
    display: grid;
    width: 99%;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 5px;
}

.gallery__item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    max-height:178px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s ease-in-out;
}

.gallery__item img:hover {
    transform: scale(1.1);
}

@media (max-width: 950px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}



/*Image modal*/

.modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    animation: zoom 0.3s ease-in-out;
    z-index:2000001;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}






@media (min-width: 875px) {
    .modal {
    margin: -1px -375px 0 -10px;
    }
}


.modal img {
    width: 50%;
    object-fit: cover;
}

.closeBtn {
    position: absolute;
    top: 2.1rem;
    right: 0;
    margin: 20px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    font-style: normal;
}

.closeBtn::before {
    content: "CLOSE \00D7"; 
    color: rgba(255, 255, 255, 0.87);
    font-size: 25px;
    text-decoration:none;
}

.closeBtn:hover::before {
    color: rgb(255, 255, 255);
}

@media (max-width: 760px) 
	{
		closeBtn{top:5rem}
}

.prevBtn {
    color: rgba(255, 255, 255, 0.87);
    font-size: 25px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    text-decoration:none;
    font-style: normal;
    margin:0 10px 0 0 ;
}

.prevBtn::before {
    content: "\25C0 "; 
}

.prevBtn:hover {
    color: rgb(255, 255, 255);
}


.nextBtn {
    color: rgba(255, 255, 255, 0.87);
    font-size: 25px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    text-decoration:none;
    font-style: normal;
    margin:0 0 0 10px ;
}

.nextBtn::before {
    content: " \25B6"; 
}

.nextBtn:hover {
    color: rgb(255, 255, 255);
}