#infografías {
  background-image: url(/img/multimedia/infografías.svg);
}

/* __________________________________________ MAIN */
#modal {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100%;
  z-index: 200;
  display: flex;
  justify-content: center;
  overflow-y: scroll;
  display: none;
}

#photo-wrap {
  background-color: transparent;
  width: 60%;
  height: auto;
  min-height: 50vh;
  margin-top: 20px;
  position: relative;
}

#close {
  color: black;
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  padding: 5px 10px;
  cursor: pointer;
}

/* __________________________________________ MAIN */
#infografias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 60px auto;
  width: 80%;
  padding-top: 60px;
  margin-top: -5px;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: rgb(10, 10, 10);
  opacity: 0;
  position: absolute;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
}

.overlay:hover {
  opacity: 0.8;
}

.overlay p {
  text-align: center;
}

.infografia {
  width: 300px;
  height: 300px;
  margin: 10px;
  cursor: pointer;
  border: 5px solid black;
  box-shadow: 5px 5px 5px rgb(185, 184, 184);
  position: relative;
}

.infografia img {
  width: 100%;
  height: 100%;
}

span {
  color: lightgray;
  display: block;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* __________________________________________ MEDIA QUERIES */
@media screen and (max-width: 1200px) {
  #infografias {
    width: 80vw;
  }
}

@media screen and (max-width: 768px) {
  #photo-wrap {
    width: 90vw;
  }

  #photo-wrap img {
    width: 100%;
  }

  #infografias {
    width: 100vw;
  }
}
