*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#wrapper{
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}
.container{
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    max-width: 1200px;
}
.container h1{
    margin: 20px 100px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
}
.gallery{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px,1fr));;
    grid-template-rows: repeat(3,1fr);
    gap: 20px;
    /* justify-content:space-between; */
}
.avenger{
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.avenger img{
    width: 100%;
    height: 100%;
    filter:grayscale(100%);
    box-shadow: 0 0 20px #333;
    /* object-fit: cover; */
}
.avenger:hover{
    transform: scale(1.04);
    transition: 0.26s;
    filter: drop-shadow(0 0 10px dimgray); 
}
.avenger img:hover{
    filter: grayscale(0%);
}
.avenger figcaption{
    position: absolute;
/*     top:150px; */
    bottom: 20px;
    left: 0;
    padding: 25px;
    width: 100%;
    height: 20%;
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    transition: 0.26s;
}
.avenger:hover figcaption{
    opacity: 1;
    transform: scale(1.04);
}
