.tour-gallery {
  margin: 0 0 24px;
}

.tour-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  --tour-gallery-height: 360px;
  --tour-gallery-gap: 12px;
}

.tour-gallery__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.tour-gallery__large,
.tour-gallery__small {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f2f2;
}

.tour-gallery__large {
  height: var(--tour-gallery-height);
}

.tour-gallery__small-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: var(--tour-gallery-gap);
  height: var(--tour-gallery-height);
}

.tour-gallery__small {
  height: calc((var(--tour-gallery-height) - var(--tour-gallery-gap)) / 2);
  min-height: 0;
}

@media (max-width: 1024px) {
  .tour-gallery__grid {
    --tour-gallery-height: 320px;
  }
}

@media (max-width: 920px) {
  .tour-gallery__grid {
    --tour-gallery-height: 280px;
  }
}

.tour-gallery__link,
.tour-gallery__mobile-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tour-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tour-gallery__mobile {
  display: none;
}

.tour-gallery__mobile .swiper-slide {
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.tour-gallery__mobile .swiper-pagination-bullets {
  bottom: 8px;
}

@media (max-width: 849px) {
  .tour-gallery__grid {
    display: grid;
    --tour-gallery-height: 240px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-gallery__large {
    height: var(--tour-gallery-height);
  }

  .tour-gallery__small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    height: auto;
  }

  .tour-gallery__small {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .tour-gallery__mobile {
    display: none;
  }
}
