.image-gallery--homepage {
  margin: 64px 0;
}

.image-gallery-link {
  display: block;
  position: relative;
  border-bottom: none;
  height: 273px;
  overflow: hidden;
}

.image-gallery-link__content {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 22px 50px 0 22px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}

.image-gallery-link__content h3 {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.875em;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}

.image-gallery-link__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.image-gallery-link__content__title {
  position: absolute;
  left: 0;
  bottom: -8px;
  font-size: 71px;
  color: transparent;
  font-weight: 700;
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #ffffff;
  padding: 0;
  line-height: 1em;
}

.image-gallery__list__item + .image-gallery__list__item {
  margin-top: 25px;
}

.image-gallery-link__content__hover *:not(button) {
  color: #ffffff;
}

@media (min-width: 768px) {
  .image-gallery-link__content {
    padding: 64px 90px 0 64px;
  }

  .image-gallery-link__content h3 {
    font-size: 22px;
    padding: 0 0 30px;
    line-height: 1.59em;
  }

  .image-gallery-link__content__title {
    left: unset;
    bottom: unset;
    top: 50%;
    right: -126px;
    font-size: 63px;
    transform: rotate(-90deg) translate(0, -50%);
    width: 236px;
    text-align: center;
    margin-top: -29px;
  }

  .image-gallery__list__item + .image-gallery__list__item {
    margin-top: 16px;
  }

  .image-gallery-link__content__hover {
    width: 450px;
  }
}

@media (min-width: 1200px) {
  .image-gallery__list {
    display: flex;
    width: calc(100% + 22px);
    margin: 0 -11px;
  }

  .image-gallery__list__item {
    width: 292px;
    width: calc(314px - 22px);
    margin: 0 11px;
    transition: all ease 0.3s;
  }

  .image-gallery__list__item.selected {
    width: calc(100% - 314px - 22px);
    margin: 0 11px;
  }

  .image-gallery__list__item + .image-gallery__list__item {
    margin-top: 0;
  }

  .image-gallery-link {
    height: 578px;
  }

  .image-gallery-link__content {
    padding: 69px 162px 0 69px;
  }

  .image-gallery-link__content h3 {
    font-size: 32px;
    line-height: 1.406em;
    padding: 0 0 28px;
  }

  .image-gallery-link__content__title {
    bottom: 185px;
    top: unset;
    right: -196px;
    font-size: 130px;
    transform: rotate(-90deg);
    width: 496px;
    text-align: left;
  }

  .image-gallery-link__content__hover {
    display: none;
    width: 500px;
  }

  .image-gallery__list__item.selected .image-gallery-link__content__hover {
    display: block;
  }

  .image-gallery--homepage {
    margin: 128px 0 78px;
  }
}
@media (min-width: 1300px) {
  .image-gallery-link__content__hover {
    width: 600px;
  }
}
@media (min-width: 1400px) {
  .image-gallery-link__content {
    padding: 69px 162px 0 108px;
  }
}
