/*----------flex box css for the images-----------*/
.sectioncss {
display: flex;
flex-wrap: wrap;
}
.fleximg{
flex-grow: 1;
margin: 4px;
height: 350px;
}
.imgcssflex{
height: 350px;
object-fit: cover;
max-width: 100%;
min-width: 100%;
vertical-align: bottom;
}

@media only screen and (max-width: 1800px) { /*first opt */
.fleximg {
  height: 270px;
}
.imgcssflex {
  height: 270px;
}
}
@media only screen and (max-width: 1330px) { /*Secound opt */
.fleximg {
  height: 240px;
}
.imgcssflex {
  height: 240px;
}
}

@media only screen and (max-width: 1000px) { /*Third opt */
.fleximg {
  height: 190px;
}
.imgcssflex {
  height: 190px;
}
}

@media only screen and (max-width: 420px) { /*Fourth opt */
  .fleximg {
    height: 220px;
  }
  .imgcssflex {
    height: 220px;
  }
  }
/*hover animation */
.imgcssflex {
  filter: brightness(100%);
  /*opasity animation when mouse leaves hovering state */
  transition: all 0.2s ease-in-out 0s; /* vendorless fallback */
-o-transition: all 0.2s ease-in-out 0s; /* opera */
-ms-transition: all 0.2s ease-in-out 0s; /* IE 10 */
-moz-transition: all 0.2s ease-in-out 0s; /* Firefox */
-webkit-transition: all 0.2s ease-in-out 0s; /*safari and chrome */
}

.imgcssflex::before {
  filter: brightness(100%);
}

/*css on hover of images to daken with ease */
.imgcssflex:hover {
  filter: brightness(70%);
  transition: all 0.2s ease-in-out 0s;
  cursor: pointer;
}

/*----css for hover action which shows text and an icon----- */

/*-----hover text on image css------*/
.vidcontainer {
  position: relative;
}
  /*This class goes on the video or photo */
.imganix {
  transition: .5s ease;
  backface-visibility: hidden;
}
  /*for text */
.middlex-img {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

    

.vidcontainer:hover .middlex-img {
  opacity: 1;
}

.text {
  color: rgb(223, 223, 223);
  font-size: 14px;
  font-weight: 500;
}

/*for icon */

.middlex-icon {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

    

.vidcontainer:hover .middlex-icon {
  opacity: 1;
}

@media only screen and (max-width: 1330px) {
  /*for icon */
.middlex-icon {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
 /*for text */
 .middlex-img {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
}

@media only screen and (max-width: 1000px) {
  /*for icon */
.middlex-icon {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
 /*for text */
 .middlex-img {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.text {
  color: rgb(223, 223, 223);
  font-size: 12px;
}
}