
.gallery {
    position: relative; 
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.gallery img {
    max-width: 100%;
    animation: fade;
    animation-duration: 0.5s;
}

.gallery button {
    width: 50px;
    height: 50%;   
    font-size: 3rem;
    text-align: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    background-color: white;
    color: hsl(0, 0%, 30%);
    padding: 0px;
    border-style: solid;
    border-width: 1px;
    border-color: lightgray;
}

.gallery button:hover {
    opacity: 1;
    cursor: pointer;
}

.prevImg {
    left: 0%;
    border-radius: 0px 10px 10px 0px;
}

.nextImg {
    right: 0%;
    border-radius: 10px 0px 0px 10px;
}

@keyframes fade {
    from {opacity: 0.5}
    to {opacity: 1}
}