
.portfolio{
  width: 100%;
  padding: 30px 8%;
  background-color: var(--body-clr);
}
.portfolio .section-head{
  max-width: 700px;
  margin: 0px auto 25px;
  text-align: center;
}
.section-head h1{
  position: relative;
  font-size: 32px;
  margin: 10px 0px 30px;
  color: var(--primary-clr);
}


div.gallery{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  
}
div.gallery .item{
  position: relative;
  margin: 4px;
  width: calc(33.33% - 8px);
  overflow: hidden;
  cursor: pointer;
}
.gallery .itemdesign img{
  height: 30px;
}
.item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s;
}
div.gallery .item:hover img{
  transform: scale(1.15);
}



@media(max-width: 1024px){
  div.gallery .item{
    width: calc(50% - 8px);
  }
}

@media(max-width: 600px){
  div.gallery .item{
    width: 100%;
    margin: 4px 0px;
  }
}


.container{
    width: 100%;
    margin: 50px auto;
}
.container h1{
    padding: 10px 0;
    color: #0e15a5;
    font-size: 44px;
    text-align: center;
}
.row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.col{
    flex-basis: 50%;
    min-width: 300px;
}
.feature-img{
    width: 90%;
    margin: auto;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.small-img-row{
    display: flex;
    background: #efefef;
    margin: 20px 0;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    width: 85%;
}
.small-img{
    position: relative;
}
.small-img img{
    width: 150px;
}
.small-img-row p{
    margin-left: 20px;
    color: #707070;
    line-height:35px;
    font-size: 18px;
}
.play-btn{
    width: 60px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    cursor: pointer;
}
.small-img .play-btn{
    width: 35px;
}
.video-player{
    width: 80%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    cursor: pointer;
    display: none;
}
video:focus{
    outline: none;
}
.close-btn{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    cursor: pointer;
}
@media only screen and (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: center;
    }

    .col {
        flex-basis: 100%;
    }

    .feature-img,
    .small-img-row {
        width: 95%;
    }

    .container h1 {
        font-size: 32px;
        padding: 5px 0;
    }

    .small-img-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .small-img img {
        width: 100%;
        max-width: 250px;
        margin: 5px auto;
        margin-left: 20px;
    }

    .small-img-row p {
        margin: 10px 0;
        font-size: 15px;
        line-height: 28px;
    }

    .play-btn {
        width: 45px;
    }

    .small-img .play-btn {
        width: 30px;
    }

    .video-player {
        width: 100%;
        height: auto;
        margin-top: 150%;
       
    }

    .close-btn {
        width: 25px;
        top: 5px;
        right: 5px;
    }
}
