/* ==========================================================================
   Article gallery (is_gallery)
   Every selector is scoped to .article-gallery (site/snippets/article/gallery.php).
   ========================================================================== */

.article-gallery {
  --article-gallery-gray: #c4c6c8;
  --article-gallery-slide-width: 85vw;
  --article-gallery-slide-height: calc(var(--article-gallery-slide-width) * 835 / 1207);

  padding: clamp(24px, 3.5vw, 70px) 0 clamp(40px, 5vw, 90px);
  overflow: hidden;
}

.article-gallery .article-gallery__swiper {
  width: 100%;
  overflow: visible;
}

.article-gallery .article-gallery__slide {
  width: var(--article-gallery-slide-width);
  height: min(var(--article-gallery-slide-height), 80vh);
}

.article-gallery .article-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-gallery .article-gallery__nav {
  display: flex;
  justify-content: space-between;
  width: var(--article-gallery-slide-width);
  margin: 27px auto 0;
}

.article-gallery .article-gallery__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-black);
  font-family: 'montserrat', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
}

.article-gallery .article-gallery__button--prev .article-gallery__arrow {
  transform: rotate(180deg);
}

.article-gallery .article-gallery__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-black);
}

.article-gallery .article-gallery__title {
  margin: 0;
  font-family: 'montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.4em;
}

.article-gallery .article-gallery__location {
  margin: 6px 0 0;
  font-family: 'montserrat', sans-serif;
  font-size: 10px;
  line-height: normal;
  letter-spacing: 0.4em;
}

.article-gallery .article-gallery__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-family: 'montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--article-gallery-gray);
  transition: color 0.2s ease;
}

.article-gallery .article-gallery__back:hover,
.article-gallery .article-gallery__back:focus-visible {
  color: var(--color-black);
}

@media screen and (min-width: 800px) {
  .article-gallery {
    --article-gallery-slide-width: 62.9vw;
  }
}
