.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.close-icon {
  background: url(./../../assets/icons/close-outline.svg);
  background-color: #000;

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  top: 15%;

  border-radius: 100%;
  position: fixed;
  cursor: pointer;
  padding: 1.5rem;
  z-index: 12;
  border: solid 2px #fff;
}

.galery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.galery__image {
  width: 100%;
  object-fit: contain;
  cursor: pointer;
}

.galery__image.active {
  cursor: default;
  position: fixed;

  z-index: 11;
  height: 80vh;
  max-width: var(--w-max);

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .galery {
    grid-template-columns: repeat(1, 1fr);
  }

  .close-icon {
    top: unset;
    bottom: 15%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .close-icon {
    top: unset;
    bottom: 15%;

    padding: 2rem;
  }
}
