.opory-gallery {
  margin: 36px 0 20px;
}

.opory-gallery__slider {
  margin: 0 -8px;
}

.opory-gallery__slider:not(.slick-initialized) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.opory-gallery__slider:not(.slick-initialized) .opory-gallery__slide {
  flex: 0 0 25%;
  scroll-snap-align: start;
}

.opory-gallery__slide {
  padding: 0 8px;
}

.opory-gallery__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background: #f4f6f8;
  object-fit: cover;
}

.opory-gallery__slider .opory-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  color: #096bad;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.opory-gallery__slider .opory-gallery__arrow:hover {
  background: #096bad;
  color: #fff;
}

.opory-gallery__slider .opory-gallery__arrow:focus-visible {
  outline: 3px solid #096bad;
  outline-offset: 3px;
}

.opory-gallery__arrow--prev { left: 16px; }
.opory-gallery__arrow--next { right: 16px; }

@media (max-width: 1000px) {
  .opory-gallery__slider:not(.slick-initialized) .opory-gallery__slide {
    flex-basis: 33.333%;
  }
}

@media (max-width: 700px) {
  .opory-gallery__slider:not(.slick-initialized) .opory-gallery__slide {
    flex-basis: 50%;
  }
}

@media (max-width: 767px) {
  .opory-gallery__slider.slick-initialized {
    padding-bottom: 60px;
  }

  .opory-gallery__slider .opory-gallery__arrow {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .opory-gallery__slider .opory-gallery__arrow--prev {
    left: calc(50% - 50px);
  }

  .opory-gallery__slider .opory-gallery__arrow--next {
    right: auto;
    left: calc(50% + 8px);
  }
}

@media (max-width: 600px) {
  .opory-gallery {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .opory-gallery__slider:not(.slick-initialized) .opory-gallery__slide {
    flex-basis: 100%;
  }
}
