/* AW Carousel: one slide at a time, arrows / dots / drop-down, fade or slide transition. */
.aw-carousel {
  --aw-carousel-accent: #0f766e;
  --aw-carousel-fg: inherit;
  --aw-carousel-btn-bg: rgba(128, 128, 128, 0.15);
  position: relative;
  margin: 1.5em 0;
}
.aw-carousel__viewport { position: relative; overflow: hidden; }
/* Before the script runs every slide is listed; the script adds is-ready. */
.aw-carousel.is-ready .aw-carousel__track { display: grid; }
.aw-carousel.is-ready .aw-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.aw-carousel.is-ready .aw-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}
/* Slide transition: a row of slides moved with transform. */
.aw-carousel--slide.is-ready .aw-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}
.aw-carousel--slide.is-ready .aw-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  grid-area: auto;
  opacity: 1;
  visibility: visible;
  transition: none;
}
.aw-carousel--slide.is-ready .aw-carousel__slide:not(.is-active) { pointer-events: none; }
.aw-carousel__slide > :first-child { margin-top: 0; }
.aw-carousel__slide > :last-child { margin-bottom: 0; }
.aw-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  flex-wrap: wrap;
  margin-top: 0.6em;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--aw-carousel-fg);
}
.aw-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border: 0;
  border-radius: 50%;
  background: var(--aw-carousel-btn-bg);
  color: inherit;
  font: inherit;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
}
.aw-carousel__btn:hover,
.aw-carousel__btn:focus-visible { background: var(--aw-carousel-accent); color: #fff; outline: 2px solid var(--aw-carousel-accent); outline-offset: 2px; }
.aw-carousel__btn:disabled { opacity: 0.35; cursor: default; }
.aw-carousel__btn--play { font-size: 0.9em; }
.aw-carousel__select {
  font: inherit;
  max-width: 18em;
  padding: 0.3em 0.5em;
  border: 1px solid rgba(128, 128, 128, 0.5);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
.aw-carousel__select option { color: #111; background: #fff; }
.aw-carousel__dots { display: inline-flex; gap: 0.45em; align-items: center; }
.aw-carousel__dot {
  width: 0.7em;
  height: 0.7em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.45);
  cursor: pointer;
}
.aw-carousel__dot[aria-selected="true"] { background: var(--aw-carousel-accent); transform: scale(1.25); }
.aw-carousel__dot:focus-visible { outline: 2px solid var(--aw-carousel-accent); outline-offset: 2px; }
.aw-carousel__counter { min-width: 4em; text-align: center; font-variant-numeric: tabular-nums; opacity: 0.8; }
.aw-carousel--nav-none .aw-carousel__nav:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .aw-carousel.is-ready .aw-carousel__slide,
  .aw-carousel--slide.is-ready .aw-carousel__track { transition: none; }
}

/* ---- Rich mode: media stage, captions, thumbnails, larger view, full screen, progress ---- */
.aw-carousel--rich .aw-carousel__viewport {
  background: #111;
  color: #f3f4f6;
  border-radius: 10px;
}
.aw-carousel--rich.aw-carousel--aspect-16-9 .aw-carousel__viewport { aspect-ratio: 16 / 9; }
.aw-carousel--rich.aw-carousel--aspect-4-3 .aw-carousel__viewport { aspect-ratio: 4 / 3; }
.aw-carousel--rich.aw-carousel--aspect-1-1 .aw-carousel__viewport { aspect-ratio: 1 / 1; }
.aw-carousel--rich.aw-carousel--aspect-3-2 .aw-carousel__viewport { aspect-ratio: 3 / 2; }
.aw-carousel--rich.aw-carousel--aspect-21-9 .aw-carousel__viewport { aspect-ratio: 21 / 9; }
.aw-carousel--rich:not(.aw-carousel--aspect-auto) .aw-carousel__track,
.aw-carousel--rich:not(.aw-carousel--aspect-auto) .aw-carousel__slide { height: 100%; }
.aw-carousel--rich .aw-carousel__slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.aw-carousel--rich .aw-carousel__slide > :not(.aw-carousel__caption) { max-width: 100%; max-height: 100%; margin: 0; }
.aw-carousel--rich .aw-carousel__slide figure,
.aw-carousel--rich .aw-carousel__slide .wp-block-image,
.aw-carousel--rich .aw-carousel__slide .wp-block-video,
.aw-carousel--rich .aw-carousel__slide .wp-block-embed { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.aw-carousel--rich .aw-carousel__slide .wp-block-embed__wrapper { width: 100%; height: 100%; }
.aw-carousel--rich .aw-carousel__slide img,
.aw-carousel--rich .aw-carousel__slide video,
.aw-carousel--rich .aw-carousel__slide iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.aw-carousel--rich.aw-carousel--fit-cover .aw-carousel__slide img,
.aw-carousel--rich.aw-carousel--fit-cover .aw-carousel__slide video { object-fit: cover; }
.aw-carousel--rich .aw-carousel__slide figcaption { display: none; } /* the slide caption replaces it */
.aw-carousel--rich .aw-carousel__slide p,
.aw-carousel--rich .aw-carousel__slide blockquote { padding: 1.5em 2em; text-align: center; font-size: 1.1em; }
.aw-carousel--rich.aw-carousel--aspect-auto .aw-carousel__slide img { height: auto; }
.aw-carousel--rich .aw-carousel__slide img[data-aw-carousel-zoom="1"] { cursor: zoom-in; }
.aw-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.6em 1em 0.7em;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  color: #fff;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.aw-carousel__caption strong { margin-right: 0.5em; }
.aw-carousel__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.aw-carousel__progress span { display: block; width: 0; height: 100%; background: var(--aw-carousel-accent); }
.aw-carousel__thumbs {
  display: flex;
  gap: 0.4em;
  margin-top: 0.5em;
  padding-bottom: 0.3em;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.aw-carousel__thumbs[hidden] { display: none; }
.aw-carousel__thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  color: #ddd;
  cursor: pointer;
  scroll-snap-align: center;
  font: 11px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.aw-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aw-carousel__thumb--text { display: flex; align-items: center; justify-content: center; padding: 0 4px; text-align: center; }
.aw-carousel__thumb[aria-selected="true"] { border-color: var(--aw-carousel-accent); }
.aw-carousel__thumb:focus-visible { outline: 2px solid var(--aw-carousel-accent); outline-offset: 1px; }
/* Larger view: a modal dialog in the top layer. */
.aw-carousel__dialog {
  width: min(96vw, 1600px);
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #0b0b0c;
  color: #f3f4f6;
  overflow: hidden;
}
.aw-carousel__dialog::backdrop { background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.aw-carousel__modal { display: flex; flex-direction: column; max-height: 96vh; }
.aw-carousel__modal-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.4em 0.6em; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.aw-carousel__modal-bar .aw-carousel__counter { flex: 1; text-align: left; }
.aw-carousel__modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  max-height: calc(96vh - 6em);
  overflow: auto;
  padding: 0 0.6em;
}
.aw-carousel__modal-body > * { max-width: 100%; margin: 0; }
.aw-carousel__modal-body img,
.aw-carousel__modal-body video,
.aw-carousel__modal-body iframe { display: block; max-width: 100%; max-height: calc(96vh - 7em); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.aw-carousel__modal-body figure { margin: 0; }
.aw-carousel__modal-body figcaption { display: none; }
.aw-carousel__modal-body .aw-carousel__caption { display: none; }
.aw-carousel__modal-caption { padding: 0.5em 0.8em 0.8em; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; opacity: 0.9; }
.aw-carousel__modal-caption:empty { display: none; }
.aw-carousel__dialog .aw-carousel__btn { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* Full screen */
.aw-carousel:fullscreen { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 1vh 1vw; background: #000; color: #f3f4f6; }
.aw-carousel:fullscreen .aw-carousel__viewport { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; border-radius: 0; background: #000; }
.aw-carousel:fullscreen .aw-carousel__track, .aw-carousel:fullscreen .aw-carousel__slide { height: 100%; }
.aw-carousel:fullscreen .aw-carousel__nav { color: #fff; }
.aw-carousel:fullscreen .aw-carousel__btn { background: rgba(255, 255, 255, 0.15); }
.aw-carousel:-webkit-full-screen { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 1vh 1vw; background: #000; }
@media (max-width: 600px) {
  .aw-carousel__thumb { width: 64px; height: 44px; }
  .aw-carousel__caption { font-size: 12px; padding-top: 1.2em; }
}
