body{
  margin: 0;
  font-family: 'Josefin Sans', sans-serif;
}
.section{
  width: 80%;
  margin: auto;
}

/* class => header starts */

.header{
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.img-logo{
  width: 70px;
  height: 70px;
}
.menu{
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-top: 25px;
}
.menu li{
  display: inline;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 15pt;
}
.home a{
  text-decoration: none;
  color: black;
}
/* class => header ends */

.flex-box-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flex-box{
    height: auto;
    width: 48.5%;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.flex-box-col3{
    height: auto;
    width: 32%;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.flex-box-col4{
    height: auto;
    width: 23%;
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-wrapper{
  width: 523px;
  height: 352px;
}
.flex-box img{
    height: auto;
    width: 100%;
    transform: scale(1.2);
    will-change: transform;
    object-fit: cover;
} 
.flex-box-col3 img{
    height: auto;
    width: 100%;
    transform: scale(1.2);
    will-change: transform;
    object-fit: cover;
} 

.flex-box-col4 img{
    height: auto;
    width: 100%;
    transform: scale(1.2);
    will-change: transform;
    object-fit: cover;
} 

.middle {
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.2);
    color: blanchedalmond;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }
  
.flex-box:hover img{
    opacity: 0.5;
    transition: 2s;
    transform: scale(1.1);
  }
  
.flex-box-col3:hover img{
    opacity: 0.5;
    transition: 2s;
    transform: scale(1.1);
  }
  
.flex-box-col4:hover img{
    opacity: 0.5;
    transition: 2s;
    transform: scale(1.1);
  }
  
.flex-box:hover .middle {
    opacity: 1; 
  } 
  
.flex-box-col3:hover .middle {
    opacity: 1; 
  }

.flex-box-col4:hover .middle {
    opacity: 1; 
  }
.text {
    color: white;
    font-size: 24px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 2s;
  }

  .footer{
    text-align: center;
  }