/* Only the existing Groupe FG gallery selectors; no listing or ACF changes. */
.swiper-container.slider.fg-gallery,
.swiper-container.slider-thumbnail.fg-gallery-thumbs {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
}
.swiper-container.slider.fg-gallery {
  height: min(55vh, 500px);
  height: min(55svh, 500px);
  max-height: 500px;
  aspect-ratio: auto;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #f3f2f0;
  --swiper-navigation-color: var(--ast-global-color-0, #ba2432);
  --swiper-navigation-size: 18px;
}
.swiper-container.slider.fg-gallery .swiper-wrapper,
.swiper-container.slider.fg-gallery .swiper-slide { height: 100%; }
.swiper-container.slider.fg-gallery .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.swiper-container.slider.fg-gallery .swiper-wrapper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.swiper-container.slider-thumbnail.fg-gallery-thumbs {
  height: 72px;
  margin-bottom: 24px;
  aspect-ratio: auto;
}
.swiper-container.slider-thumbnail.fg-gallery-thumbs .swiper-wrapper .swiper-slide {
  box-sizing: border-box;
  width: 96px;
  height: 72px;
  margin-right: 0;
  opacity: .6;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
}
.swiper-container.slider-thumbnail.fg-gallery-thumbs .swiper-wrapper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 3px;
}
.swiper-container.slider-thumbnail.fg-gallery-thumbs .swiper-wrapper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--ast-global-color-0, #ba2432);
}
.swiper-container.slider.fg-gallery .swiper-button-next,
.swiper-container.slider.fg-gallery .swiper-button-prev {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  top: 50%;
  margin-top: -21px;
  border-radius: 50%;
  color: var(--ast-global-color-0, #ba2432);
  background: rgb(255 255 255 / 92%);
}
.fg-gallery .swiper-button-next::after,
.fg-gallery .swiper-button-prev::after { content: none; }
.fg-gallery .swiper-navigation-icon { width: 18px; height: 18px; }
.swiper-container.fg-gallery:focus-visible,
.fg-gallery .swiper-button-next:focus-visible,
.fg-gallery .swiper-button-prev:focus-visible,
.swiper-container.fg-gallery-thumbs .swiper-slide:focus-visible {
  outline: 3px solid var(--ast-global-color-0, #ba2432);
  outline-offset: -3px;
}
.swiper-container.fg-gallery[hidden],
.swiper-container.fg-gallery-thumbs[hidden],
.fg-gallery [hidden] { display: none !important; }
@media (max-width: 767px) {
  .swiper-container.slider.fg-gallery {
    height: min(48vh, 360px);
    height: min(48svh, 360px);
  }
  .swiper-container.slider-thumbnail.fg-gallery-thumbs { height: 60px; }
  .swiper-container.slider-thumbnail.fg-gallery-thumbs .swiper-wrapper .swiper-slide { width: 80px; height: 60px; }
}
