/* Original Gallery Heading stage, with GeekSocial's approved sky-blue background. */
.hero.gs-orbit-ready {
  background: linear-gradient(112deg, #a4dafa 0%, #78c8f3 46%, var(--sky, #55b8ef) 88%);
  color: var(--sky-ink, #00356b);
}

.gs-orbit-ready .hero-grid {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
}

.gs-orbit-ready .hero-copy {
  position: absolute;
  z-index: 2;
  bottom: clamp(22px, 4vh, 42px);
  left: var(--space, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  justify-content: start;
  gap: 8px;
  width: min(242px, 30vw);
  min-height: 0;
  padding: 0;
}

.gs-orbit-ready .hero-copy h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gs-orbit-ready .hero-lead {
  margin: 0;
  color: #194360;
  font-size: 14px;
  line-height: 1.35;
}

.gs-orbit-ready .hero-copy .button {
  min-height: 35px;
  margin: 0;
  padding: 5px 10px;
  gap: 9px;
  color: #00356b;
  background: transparent;
  border: 1px solid #3e769d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.gs-orbit-ready .hero-copy .button:hover {
  background: rgb(255 255 255 / 30%);
  transform: none;
}

.gs-orbit-ready .hero-copy .button:focus-visible { outline-color: #00356b; }

.gs-orbit-ready :is(.hero-note, .specimen) {
  display: none;
}

.gs-orbit {
  position: relative;
  height: clamp(410px, calc(100svh - 210px), 680px);
}

.gs-orbit-track,
.gs-orbit-track canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gs-orbit-track canvas { pointer-events: none; }

.gs-orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 22%;
  transform-origin: 0 0;
  cursor: zoom-in;
  visibility: hidden;
}

.gs-orbit-card[style] { visibility: visible; }

.gs-orbit-card img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.gs-orbit-card:focus-visible {
  z-index: 250 !important;
  outline: 3px solid white;
  outline-offset: 3px;
}

.gs-orbit-dialog {
  --photo-size: min(75dvh, 76vw, 1100px);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  color: #fff;
  background: #071d33;
  border: 0;
  border-radius: 12px;
  overflow: auto;
}

.gs-orbit-dialog::backdrop { background: rgba(3, 18, 33, .81); }
body:has(.gs-orbit-dialog[open]) { overflow: hidden; }

.gs-orbit-dialog-content { position: relative; }

.gs-orbit-large {
  display: block;
  width: var(--photo-size);
  background: #0b2237 center / contain no-repeat;
  cursor: pointer;
}

.gs-orbit-large img {
  width: 100%;
  height: var(--photo-size);
  object-fit: contain;
}

.gs-orbit-dialog-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 18px;
  font-size: 15px;
}

.gs-orbit-detail { text-decoration: underline; text-underline-offset: 4px; }

.gs-orbit-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #071d33;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 767px) {
  .gs-orbit-ready .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .gs-orbit {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .gs-orbit-ready .hero-copy {
    position: relative;
    inset: auto;
    order: 1;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 10px;
    width: 100%;
    padding: 0 var(--space, 20px) 14px;
  }

  .gs-orbit-ready .hero-lead {
    flex: 0 1 220px;
    min-width: 115px;
    max-width: min(220px, calc(100% - 142px));
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .gs-orbit { aspect-ratio: 1.95; }
  .gs-orbit-ready .hero-lead { font-size: 12px; }
  .gs-orbit-ready .hero-copy .button {
    min-height: 32px;
    gap: 5px;
    padding-inline: 7px;
    font-size: 11px;
  }
  .gs-orbit-dialog { --photo-size: min(75dvh, calc(100vw - 32px)); }
  .gs-orbit-dialog-caption { gap: 8px; padding-inline: 10px; font-size: 12px; }
  .gs-orbit-close { min-width: 36px; min-height: 36px; }
}

@media (pointer: coarse) {
  .gs-orbit-track { touch-action: pan-y pinch-zoom; }
}

.gs-orbit-compact .gs-orbit {
  height: clamp(274px, 80vw, 390px);
  aspect-ratio: auto;
}

@media (min-width: 650px) and (max-height: 500px) {
  .gs-orbit-compact .gs-orbit { height: clamp(268px, calc(100svh - 80px), 410px); }
}
