@charset "UTF-8";

.photo {
  padding: 5vw 3vw 7vw;
}

.photo-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.photo__img-content {
  float: left;
  overflow: hidden;
  margin: 3px;
  position: relative;
  cursor: pointer;
}

.photo-inner img {
  display: block;
  width: auto;
  height: 100%;
  transition: transform 0.3s ease;
}

.photo__hover-content {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(38, 38, 38, 0.534);
  transition: opacity 0.3s ease;
}

.photo__img-content:hover img {
  transform: scale(1.05);
}

.photo__hover-content:hover {
  opacity: 1;
}

.photo__hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.photo__hover-content p {
  font-weight: 300;
  text-align: center;
  color: #FCFCFC;
  font-size: .7em;
}

.photo__popup {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(38, 38, 38, 0.793);
  width: 100vw;
  height: 100vh;
}

.photo__popup.show {
  visibility: visible;
}

.photo__popup-inner {
  width: fit-content;
  height: fit-content;
  position: absolute;
  top: 55%;
  left: 50%;
  z-index: 20;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.photo__popup.show .photo__popup-inner {
  transform: translate(-50%, -50%) scale(1);
}

.photo__popup-img {
  width: auto;
  max-width: 65vw;
  height: auto;
  max-height: 65vh;
}

.photo__popup-icon {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  transform: translate(50%, -120%);
}

.photo__popup-icon img {
  width: clamp(20px, 3vw, 60px);
  transform: rotate(45deg);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.photo__popup-icon img:hover {
  opacity: 1;
}


@media(max-width: 770px) {
  .photo__hover-content {
    display: none;
  }

  .photo__img-content {
    margin: 2px;
  }

}