/* Site gallery styles copied from ehkskursii.ru excursion cards. */
.l-excursion-card-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.l-excursion-card-images .swiper-container {
    height: 100%;
}

.l-excursion-card-images .swiper-slide {
    display: flex;
    align-items: end;
}

.l-excursion-card-images .swiper-slide > div {
    overflow: hidden;
    max-height: 100%;
    position: relative;
}

.l-excursion-card-images .swiper-wrapper {
    padding-bottom: 12px;
    box-sizing: border-box;
    height: 100%;
}

.l-excursion-card-images .swiper-pagination {
    position: absolute;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    bottom: 1px;
    margin-top: 5px;
}

.l-excursion-card-images .swiper-pagination-bullet {
    width: 100%;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
    margin: 0;
}

.l-excursion-card-images .swiper-pagination-bullet:before {
    position: absolute;
    bottom: 0;
    background-color: rgba(121, 129, 140, .8);
    content: "";
    width: 100%;
    height: 4px;
    border-radius: 4px;
}

.l-excursion-card-images .swiper-pagination-bullet:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
}

.l-excursion-card-images .swiper-container .more-photos {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .6980392157);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.l-excursion-card-images .swiper-container .more-photos,
.l-excursion-card-images .swiper-container .more-photos path,
.l-excursion-card-images .swiper-container .more-photos span {
    color: hsla(0, 0%, 100%, .8);
    stroke: currentColor;
}

.l-excursion-card-images .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 2px;
}

/* Article placement for the copied city-card gallery. */
.tour-card {
  grid-template-columns: 230px 1fr;
  align-items: start;
}

.tc-photo.tc-gallery {
  position: relative;
  width: auto;
  min-height: 0;
  height: auto;
  aspect-ratio: 100 / 74.7967;
  margin: 14px 0 14px 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7e8ea;
  border-radius: 6px;
  background: #fff;
  background-image: none !important;
  align-self: start;
}

.tc-photo.tc-gallery::after,
.tc-gallery .ph-tag,
.tc-gallery .pick-bar {
  display: none;
}

.tc-gallery .article-gallery,
.tc-gallery .swiper-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tc-gallery .swiper-slide > div {
  width: 100%;
  height: 100%;
}

.tc-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-gallery .swiper-pagination-bullet-active:before,
.tc-gallery .swiper-pagination-bullet:hover:before {
  background-color: #fff;
}

@media (max-width: 980px) {
  .tour-card {
    grid-template-columns: 190px 1fr;
  }

  .tc-photo.tc-gallery {
    margin: 12px 0 12px 12px;
  }
}

@media (max-width: 640px) {
  .tour-card {
    grid-template-columns: 1fr;
  }

  .tc-photo.tc-gallery {
    width: auto;
    max-height: 190px;
    height: 190px;
    margin: 12px;
    aspect-ratio: auto;
    border-right: 1px solid #e7e8ea;
    border-bottom: 1px solid #e7e8ea;
  }
}
