
/* .galery .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
  }
  .galery .box-container .box {
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
   
  }

  .galery .box-container .box img {
    height: 20rem;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
  } */

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

.gallery {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}
.gallery__item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease-in-out;
}
.gallery__item img:hover {
    transform: scale(1.1);
}
/*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.733);
    margin-top: -1px;
    animation: zoom 0.3s ease-in-out;
    z-index: 100;
}
.modal .imagebox{
    position: relative;
  }


.modal .imagebox img {
    width:100%;
    object-fit: contain;
}

.modal .imagebox .nextBtn, .prevBtn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 4rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    
}
.modal .imagebox .fas:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal .imagebox .nextBtn{
    right: 0;
}

.modal .imagebox .closeBtn{
    cursor: pointer;
    position: absolute;
    top: 15%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: rgb(78, 71, 71);
    font-weight: bold;
    font-size: 4rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    right: 3%;
    
}


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


}

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