@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500&display=swap");

*{
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
}

.gallery-section{
    width: 100%;
    padding: 60px 0;
    background: #1d0e15;
}

.inner-width{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.gallery-section h1{
    text-align: center;
    text-transform: uppercase;
    color: #ff5421;
}

p{
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}



.gallery-section .gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image{
    position: relative;
    width: 400px;
    flex: 30%;
    overflow: hidden;
    cursor: pointer;
    margin: 10px;
    padding: 0;
    box-shadow: 5px 5px 15px #000;
 
}

.image__img{
    display: block;
    max-width:100%;
    max-height:100%;
    object-fit: cover;
 
}


.image__overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0,0.6);
    color: #ff5421;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image__overlay--blur{
    backdrop-filter: blur(5px);
}

.image__overlay > * {
    transform: translateY(20px);
    transition: transform 0.3s
}

.image__overlay:hover{
    opacity: 1;
}

.image__overlay:hover > * {
    transform: translateY(0px);
}

.image__title{
    font-size: 2em;
    font-weight: bold;
}

.image__description{
    font-size: 1.25em;
    margin-top:0.25em;
}




@media screen and (max-width:960px) {
    .gallery-section .image{
        flex: 33.33%
    }
}

@media screen and (max-width:768px) {
    .gallery-section .image{
        flex: 50%
    }
}

@media screen and (max-width:480px) {
    .gallery-section .image{
        flex: 100%
    }
}