/*
 * WAB Media Gallery
 * Self-contained horizontal fallback + the structural Flickity CSS required
 * by the native Salient/Flickity engine. Salient may scope its own styles to
 * .nectar-flickity, so WAB must provide these rules for its own carousel root.
 */
.blow-mg {
  --blow-mg-current-height: var(--blow-mg-height, 60vh);
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Works immediately, even before JavaScript/Flickity has initialized. */
.blow-mg__viewport {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}
.blow-mg__viewport::-webkit-scrollbar { display: none; }

.blow-mg__track {
  display: flex;
  position: relative;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.blow-mg__slide {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  height: var(--blow-mg-current-height);
  margin: 0 var(--blow-mg-gap, 14px) 0 0;
  outline-offset: 4px;
  scroll-snap-align: start;
}
.blow-mg__slide[role="button"] { cursor: zoom-in; }
.blow-mg__slide[role="button"]:focus-visible { outline: 2px solid currentColor; }

.blow-mg__media,
.blow-mg img.blow-mg__media,
.blow-mg video.blow-mg__media {
  display: block !important;
  flex: 0 0 auto !important;
  height: var(--blow-mg-current-height) !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  user-select: none;
  -webkit-user-drag: none;
}
.blow-mg__video { background: #111; }

/* Flickity root and viewport: include the core structural rules locally. */
.blow-mg__track.flickity-enabled {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.blow-mg__track.flickity-enabled:focus { outline: none; }
.blow-mg__track.flickity-enabled .flickity-viewport {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.blow-mg__track.flickity-enabled .flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}
.blow-mg__track.flickity-enabled .blow-mg__slide {
  position: absolute;
  left: 0;
}
.blow-mg__track.flickity-enabled.is-draggable .flickity-viewport {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.blow-mg__track.flickity-enabled.is-pointer-down .flickity-viewport { cursor: grabbing; }
.blow-mg.is-flickity .blow-mg__viewport { overflow: visible; }
.blow-mg.is-flickity .blow-mg__track { scroll-snap-type: none; }

/* Native scrolling fallback when Flickity is not available. */
.blow-mg.is-native-fallback .blow-mg__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}
.blow-mg.is-native-fallback[data-blow-mg-free-scroll="yes"] .blow-mg__viewport { scroll-snap-type: none; }
.blow-mg.is-native-fallback[data-blow-mg-free-scroll="no"] .blow-mg__viewport { scroll-snap-type: x proximity; }
.blow-mg.is-native-fallback .blow-mg__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

/* Minimal navigation arrows below the gallery.
   Use two permanent grid tracks so each arrow stays anchored to its own edge:
   previous on the left, next on the right, even when either one is hidden. */
.blow-mg__nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: 0;
  width: 100%;
  margin: 22px 0 0;
  padding: 0;
}
.blow-mg__nav-button--prev {
  grid-column: 1;
  justify-self: start;
}
.blow-mg__nav-button--next {
  grid-column: 2;
  justify-self: end;
  margin-left: 0 !important;
}
.blow-mg__nav-button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  opacity: .9;
  cursor: pointer;
  transition: transform .22s ease, opacity .22s ease;
}
.blow-mg__nav[hidden],
.blow-mg__nav-button[hidden] { display: none !important; }
.blow-mg__nav-button svg {
  display: block;
  width: 23px;
  height: 23px;
  overflow: visible;
}
.blow-mg__nav-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blow-mg__nav-button--prev:hover { transform: scale(1.12) translateX(-1px); }
.blow-mg__nav-button--next:hover { transform: scale(1.12) translateX(1px); }
.blow-mg__nav-button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.blow-mg__nav-button:disabled { opacity: .35; cursor: default; }
.blow-mg__nav-button:disabled:hover { transform: none; }

/* WAB lightbox: supports images and locally hosted videos. */
.blow-mg-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 92px 70px;
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  transition: opacity .22s ease;
}
.blow-mg-lightbox.is-open { display: flex; opacity: 1; }
.blow-mg-lightbox.is-single .blow-mg-lightbox__prev,
.blow-mg-lightbox.is-single .blow-mg-lightbox__next { display: none !important; }
.blow-mg-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.blow-mg-lightbox__stage img,
.blow-mg-lightbox__stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.blow-mg-lightbox__stage video { background: #080808; }
.blow-mg-lightbox__button {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.blow-mg-lightbox__button:hover,
.blow-mg-lightbox__button:focus-visible { color: #fff !important; background: rgba(255, 255, 255, .24) !important; }
.blow-mg-lightbox__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.blow-mg-lightbox__close { top: 22px; right: 24px; width: 44px; height: 44px; font-size: 34px; background: transparent; }
.blow-mg-lightbox__prev { top: 50%; left: 24px; transform: translateY(-50%); }
.blow-mg-lightbox__next { top: 50%; right: 24px; transform: translateY(-50%); }
.blow-mg-lightbox__counter {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
  pointer-events: none;
}
.blow-mg-lightbox__caption {
  position: absolute;
  right: 80px;
  bottom: 18px;
  left: 80px;
  overflow: hidden;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.blow-mg-lightbox__counter + .blow-mg-lightbox__caption { bottom: 42px; }
body.blow-mg-lightbox-open { overflow: hidden !important; }

@media (min-width: 1000px) and (max-width: 1299px) {
  .blow-mg { --blow-mg-current-height: var(--blow-mg-height-small, 52vh); }
}
@media (max-width: 999px) {
  .blow-mg { --blow-mg-current-height: var(--blow-mg-height-tablet, 46vh); }
  .blow-mg__nav { margin-top: 18px; }
  .blow-mg-lightbox { padding: 54px 64px 64px; }
  .blow-mg-lightbox__prev { left: 10px; }
  .blow-mg-lightbox__next { right: 10px; }
}
@media (max-width: 690px) {
  .blow-mg { --blow-mg-current-height: var(--blow-mg-height-mobile, 40vh); }
  .blow-mg__nav { margin-top: 14px; gap: 14px; }
  .blow-mg-lightbox { padding: 56px 12px 58px; }
  .blow-mg-lightbox__button { width: 40px; height: 40px; font-size: 28px; }
  .blow-mg-lightbox__close { top: 8px; right: 8px; }
  .blow-mg-lightbox__prev { left: 8px; }
  .blow-mg-lightbox__next { right: 8px; }
  .blow-mg-lightbox__caption { right: 56px; bottom: 15px; left: 56px; font-size: 12px; }
  .blow-mg-lightbox__counter { bottom: 15px; }
  .blow-mg-lightbox__counter + .blow-mg-lightbox__caption { bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .blow-mg__viewport,
  .blow-mg__nav-button,
  .blow-mg-lightbox,
  .blow-mg-lightbox__button { transition: none !important; scroll-behavior: auto !important; }
}

/* Masonry presentation: natural media ratios flow into balanced vertical columns. */
.blow-mg--masonry {
  --blow-mg-columns: 4;
  width: 100%;
  max-width: 100%;
}
.blow-mg--masonry .blow-mg__viewport {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible !important;
  overscroll-behavior: auto;
  touch-action: auto;
  scroll-snap-type: none;
}
.blow-mg--masonry .blow-mg__track {
  display: block !important;
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto;
  column-count: var(--blow-mg-columns, 4);
  column-gap: var(--blow-mg-gap, 14px);
  column-fill: balance;
}
.blow-mg--masonry .blow-mg__slide {
  display: inline-block !important;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 var(--blow-mg-gap, 14px) !important;
  padding: 0;
  vertical-align: top;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.blow-mg--masonry .blow-mg__media,
.blow-mg--masonry img.blow-mg__media,
.blow-mg--masonry video.blow-mg__media {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
}
.blow-mg--masonry .blow-mg__nav {
  display: none !important;
}
.blow-mg--masonry .blow-mg__slide[role="button"] {
  cursor: zoom-in;
}
.blow-mg--masonry .blow-mg__video {
  background: #111;
}
@media (max-width: 999px) {
  .blow-mg--masonry:not([data-masonry-columns="1"]) .blow-mg__track { column-count: 2; }
}
@media (max-width: 520px) {
  .blow-mg--masonry:not([data-masonry-columns="1"]) .blow-mg__track { column-count: 1; }
}
