.circular-gallery-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(440px, 54vw, 720px);
  min-height: 440px;
  overflow: hidden;
  background: #0d1117;
  border-radius: 10px;
}

.circular-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.circular-gallery.is-dragging,
.circular-gallery:active {
  cursor: grabbing;
}

.circular-gallery:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.circular-gallery__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
}

.circular-gallery__fallback figure {
  display: none;
  margin: 0;
}

.circular-gallery__fallback figure:first-child {
  display: block;
  width: min(94%, 1180px);
  height: min(88%, 620px);
}

.circular-gallery__fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d1117;
  border: 0;
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 180ms ease;
}

.circular-gallery__fallback img[data-src] {
  opacity: 0;
}

.circular-gallery.is-dom-circular .circular-gallery__fallback {
  display: block;
}

.circular-gallery.is-dom-circular .circular-gallery__fallback figure {
  position: absolute;
  display: block;
  margin: 0;
  cursor: zoom-in;
}

.disc-gallery-control {
  position: absolute;
  z-index: 300;
  top: 50%;
  display: none;
  place-items: center;
  visibility: visible;
  opacity: 1;
  width: clamp(44px, 4vw, 52px);
  height: clamp(44px, 4vw, 52px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(8, 11, 16, 0.84);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 2.2rem;
  line-height: 0.85;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.circular-gallery-shell.is-gallery-ready .disc-gallery-control {
  display: grid;
}

.disc-gallery-control--previous {
  left: clamp(0.65rem, 2vw, 1.25rem);
}

.disc-gallery-control--next {
  right: clamp(0.65rem, 2vw, 1.25rem);
}

.disc-gallery-control:hover,
.disc-gallery-control:focus-visible {
  border-color: #ffffff;
  background: rgba(24, 30, 42, 0.98);
}

.disc-gallery-control:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .circular-gallery-shell {
    height: 430px;
    min-height: 430px;
  }

  .page-programs .circular-gallery-shell {
    height: clamp(250px, 76vw, 330px);
    min-height: 250px;
  }

  .disc-gallery-control {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .disc-gallery-control--previous {
    left: 0.6rem;
  }

  .disc-gallery-control--next {
    right: 0.6rem;
  }
}

body.disc-gallery-lightbox-open {
  overflow: hidden;
}

.disc-gallery-lightbox[hidden] {
  display: none !important;
}

.disc-gallery-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: rgba(2, 4, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.disc-gallery-lightbox__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  width: min(96vw, 1500px);
  height: min(94vh, 1000px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: #0b0f16;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.disc-gallery-lightbox__header,
.disc-gallery-lightbox__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  min-width: 0;
  padding: 0.7rem clamp(0.75rem, 2vw, 1.25rem);
  background: #101620;
}

.disc-gallery-lightbox__header {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.disc-gallery-lightbox__status {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disc-gallery-lightbox__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #05080d;
}

.disc-gallery-lightbox__viewport {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}

.disc-gallery-lightbox__viewport.is-zoomed {
  cursor: grab;
}

.disc-gallery-lightbox__viewport.is-panning {
  cursor: grabbing;
}

.disc-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translate3d(var(--gallery-pan-x, 0), var(--gallery-pan-y, 0), 0)
    scale(var(--gallery-zoom, 1));
  transform-origin: center;
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.disc-gallery-lightbox__viewport.is-panning .disc-gallery-lightbox__image {
  transition: none;
}

.disc-gallery-lightbox__button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: #111219;
  color: #ffffff;
  font: 700 0.82rem/1 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.disc-gallery-lightbox__button:hover,
.disc-gallery-lightbox__button:focus-visible {
  border-color: #ffffff;
  background: #111219;
}

.disc-gallery-lightbox__button:focus-visible {
  outline: 2px solid #6e8fff;
  outline-offset: 2px;
}

.disc-gallery-lightbox__button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.disc-gallery-lightbox__close {
  flex: 0 0 auto;
  padding: 0;
  font-size: 1.45rem;
}

.disc-gallery-lightbox__arrow {
  align-self: center;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin: 0 clamp(0.35rem, 1vw, 0.85rem);
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.disc-gallery-lightbox__toolbar {
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.disc-gallery-lightbox__zoom-level {
  min-width: 58px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  text-align: center;
}

.disc-gallery-lightbox__hint {
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .disc-gallery-lightbox {
    padding: 0;
    width: 100vw;
    max-width: 100vw;
  }

  .disc-gallery-lightbox__dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }

  .disc-gallery-lightbox__stage {
    display: block;
  }

  .disc-gallery-lightbox__viewport {
    width: 100%;
    height: 100%;
  }

  .disc-gallery-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .disc-gallery-lightbox__arrow--previous {
    left: 0.25rem;
  }

  .disc-gallery-lightbox__arrow--next {
    right: 0.25rem;
  }

  .disc-gallery-lightbox__toolbar {
    min-height: 66px;
  }

  .disc-gallery-lightbox__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disc-gallery-lightbox__image {
    transition: none;
  }
}
