@import "standard_style.css";

.images {
  margin: 0 9%;
}

#small-images {
  margin-top: 2em;
  margin-bottom: 1em;
  display: flex;
  justify-content: space-between;
}

#large-image {
  position: relative;
  color: #fff;
}

#large-image > i:first-of-type {
  position: absolute;
  z-index: 2;
  font-size: 3em;
  top: calc(50% - 0.5em);
  left: 2%;
}

#large-image > i:last-of-type {
  position: absolute;
  z-index: 2;
  font-size: 3em;
  top: calc(50% - 0.5em);
  right: 2%;
}

.relative {
  position: relative;
}

.relative figcaption {
  font-size: 1em;
  font-family: arial black;
  position: absolute;
  bottom: 2%;
  left: 20%;
  right: 20%;
  color: #fff;
  text-align: center;
}

#large-image i:first-of-type:active,
#large-image i:last-of-type:active {
  color: #e0e0e0;
  cursor: pointer;
  font-size: 4em;
  transition: all 0.05s;
}

#large-image i:first-of-type:active {
  margin-left: -1%;
}

#large-image i:last-of-type:active {
  margin-right: -1%;
}

#large-image i:first-of-type:hover,
#large-image i:last-of-type:hover {
  color: #e0e0e0;
  cursor: pointer;
}

#small-images img {
  width: 18%;
  height: auto;
}

#small-images img:hover {
  opacity: 80%;
  cursor: pointer;
}

#selected-image {
  box-sizing: border-box;
  border: 8px solid #fff;
}

@media screen and (max-width: 650px) {
  #small-images {
    flex-direction: column;
  }
  #small-images img {
    width: 100%;
    margin-bottom: 1em;
  }
  #large-image {
    display: none;
  }
  #small-images img:hover {
    opacity: 100%;
  }
  figcaption {
    display: none;
  }
}

@media screen and (max-width: 1050px) {
  #large-image > i:last-of-type,
  #large-image > i:first-of-type {
    font-size: 5.6vw;
  }
}
