.img-gallery {
    position: relative;
    width:80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap:1rem;
}

.img-gallery img {
    cursor: pointer;
    aspect-ratio: 1 / 1;
    width:100%;
    object-fit: cover;
    border-radius: 1rem;
    
}

.img-gallery img:hover {
    transform: scale(0.95) rotate(-3deg);
    transition: transform 0.2s ease-in-out;
    box-shadow: -3px 5px 3px rgba(0, 0, 0, .5);
}
.full-img {
    width: 100%;
    height: 90vh;
    position: fixed;
    top: 6rem;
    left:0;
    display: none;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.6) 10%, rgba(0,0,0,0.6) 100%);
}

.full-img span {
    font-size: 5rem;
    font-weight: 700;
}

.full-img img {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    object-fit: contain;
}

.full-img #closeit {
    position: absolute;
    top: 5%;
    right: 5%; 
    color: #fff;
    cursor: pointer;
}

.full-img #nextImg {
    position: absolute;
    top: 50%;
    right: 5%;
    color: #fff;
    cursor: pointer;
}

.full-img #prevImg {
    position: absolute;
    top: 50%;
    left: 5%;
    color: #fff;
    cursor: pointer;
}

.full-img #photocaption {
    position: absolute;
    font-size: 1rem;
    bottom:5%;
}

#nextImg:hover, #closeit:hover, #prevImg:hover{
    color: orange;
    z-index: +1;
}

