:root{
  --verde-oscuro: #3d7438;
  --verde-medio: #598e41;
  --verde-poda: #88c663;
  --verde-claro: #c6e874;
  --amarillo: #d7df22;
  --gris-oscuro: #545554;
  --gris-claro: #d7d8d8;
  --blanco-claro: #f2f2f2;
  --blanco-puro: #ffffff;
}

.container{
  display: grid;
  grid-template-columns: 33% 33% 33%;
  grid-gap: 2px;
  justify-content: center;

}




.img-container{
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
}

.content{
  background: transparent;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out;
  color: #fff;
  opacity: 0;
  transition: all ease-in-out 300ms;
}

.img-container:hover .content{
  opacity: 1;
  /* background: tomato; */
  /* background-color: rgba(0, 0, 0, 0.5) ; */
  background-blend-mode: overlay;
  transition: all 200ms ease-in-out;
  
}


.img-container img{
  transition: all 300ms ease-in-out;
}

.img-container:hover img{
  transform: scale(1.1);
  transition: all 250ms ease-in-out;
  overflow: hidden;
  
}


.zoom-text{
  width: 80px;
  height: 80px;
  background-color: rgba(61, 116, 56, .75);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 250ms ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.45) 0 0 10px -5px;
  text-transform: capitalize;
}

.content h2{
  padding: 15px 0;
}

.zoom-text:hover{
  cursor: zoom-in;
  transform: scale(1.1);
  cursor: pointer;
  
}

/******** js related *******/

.image-view{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  width: 100%;
  display: none;
  z-index: 99999999;
}

.image-box{
  max-width: 60%;
  max-height: 70%;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*background: tomato;*/
  display: none;
  z-index: 999999999;
}

#prev-btn, #next-btn{
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.5s ease;
  cursor: pointer;
}

#prev-btn{
  border-right: 40px solid var(--verde-claro);
  left: -50px;
}

#next-btn{
  border-left: 40px solid var(--verde-claro);
  right: -50px;
}

#next-btn:hover, #prev-btn:hover{
  opacity: 0.6;
}


/****** media queries *******/

@media(max-width: 900px){
  .container{
    grid-template-columns: 45% 45%;
    width: 100% !important;
  }

  

  /* .image-view{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
    display: none;
    z-index: 99999999;
  } */
  
  .image-box{
    max-width: 80%;
    max-height: 50%;
    width: 100%;
    height: 100%;
  }
}

@media(max-width: 678px){
  .image-box{
    max-width: 80%;
    max-height: 50%;
    width: 100%;
    height: 100%;
  }
}

@media(max-width: 400px){

  .container{
    grid-template-columns: 100%;
  }

  .image-box{
    max-width: 80%;
    max-height: 50%;
    width: 100%;
    height: 100%;
  }
  #prev-btn{
    border-right: 20px solid var(--verde-claro);
    left: -30px;
  }
  
  #next-btn{
    border-left: 20px solid var(--verde-claro);
    right: -30px;
  }
}