*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}

.container {
    position: relative;
    max-width: 1170px;
    width: 100%;
    display : flex;
    justify-content: center;
    flex-wrap: wrap;
}

.container img{
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: bottom;
    padding: 20px;
    transition: all 1.3s ease;
    cursor: pointer;
}

.container img:hover{
    transform: scale(1.04);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}   

.modal {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.9); 
    justify-content: center;
    align-items: center;
    opacity: 0;
    display: none;
    z-index: -1;
    transition: all .5s ease;  
}

.modal.active{
    opacity: 1;
    z-index: 1;
    display: flex;
    transition: all .5s ease;  
}

.modal img{
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: bottom;
    padding: 20px;
    transition: all 0.3s ease;
    color : white;
}

.close{
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 24px;
    z-index: 2;
    color: white;
    cursor: pointer;
}   
