/* Single-image carousel (+ Info/Standard pages without full portal.css) */

.portal-slider {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 1.6em auto;
  clear: both;
  text-align: center;
}
.portal-slider--full {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.portal-slider--two_thirds {
  width: 66.666%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.portal-slider--half {
  width: 50%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.portal-slider__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
}
.portal-slider__shell {
  position: relative;
  width: 100%;
  text-align: left;
}
.portal-slider__viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portal-slider__viewport::-webkit-scrollbar {
  display: none;
}
.portal-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  grid-row: 1;
  grid-column: 1;
  min-width: 100%;
}
.portal-slider__slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.portal-slider__slide figure {
  margin: 0;
  width: 100%;
  background: rgba(127, 127, 127, 0.08);
}
.portal-slider__link {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: rgba(127, 127, 127, 0.08);
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}
.portal-slider__slide figure > img {
  aspect-ratio: 3 / 2;
}
.portal-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.portal-slider__slide figcaption {
  font-size: 12px;
  opacity: 0.7;
  padding: 8px 4px 0;
  line-height: 1.35;
  text-align: center;
}
.portal-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  background: rgba(250, 248, 244, 0.92);
  color: inherit;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.portal-slider__nav--prev {
  left: 10px;
}
.portal-slider__nav--next {
  right: 10px;
}
.portal-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.portal-slider__nav[hidden] {
  display: none;
}
.portal-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}
.portal-slider__dots[hidden] {
  display: none;
}
.portal-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.portal-slider__dot.is-active {
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.15);
}
.portal-slider__dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .portal-slider--two_thirds,
  .portal-slider--half {
    width: 100%;
  }
}

/* Lightbox (when portal.css is absent) */
html.portal-lightbox-open,
html.portal-lightbox-open body {
  overflow: hidden;
}
/* Lightbox chrome lives in portal.css (shared with image table accompanying text). */
