/* Sunrise news gallery carousel + lightbox */
.sng {
  --sng-gap: 0.75rem;
  margin: 0 0 2rem;
  width: 100%;
}

.sng-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sng-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  touch-action: pan-y;
}

.sng-track {
  display: flex;
  gap: var(--sng-gap);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .sng-track { transition: none; }
}

.sng-slide {
  flex: 0 0 auto;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 0.85rem;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #0f172a;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
  .sng-slide {
    aspect-ratio: 16 / 10;
  }
}

.sng-slide img,
.sng-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.sng-slide:hover img,
.sng-slide:hover video {
  transform: scale(1.04);
}

.sng-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.sng-play > span {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 138, 0, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.sng-play svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 2px;
}

.sng-nav {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sng-nav:hover {
  border-color: #ff8a00;
  color: #ff8a00;
}

@media (max-width: 639px) {
  .sng-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}

.sng-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.sng-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(248, 250, 252, 0.28);
  cursor: pointer;
}

.sng-dot.is-active {
  background: #ff8a00;
  width: 1.1rem;
}

/* Lightbox */
.sng-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.94);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sng-lightbox.is-open {
  display: flex;
}

.sng-lb-stage {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sng-lb-stage img,
.sng-lb-stage video {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.sng-lb-stage video {
  width: min(960px, 100%);
  background: #000;
}

.sng-lb-close,
.sng-lb-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  cursor: pointer;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sng-lb-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  z-index: 2;
}

.sng-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  z-index: 2;
}

.sng-lb-prev { left: 0.75rem; }
.sng-lb-next { right: 0.75rem; }

.sng-lb-close:hover,
.sng-lb-nav:hover {
  border-color: #ff8a00;
  color: #ff8a00;
}

@media (max-width: 639px) {
  .sng-lb-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
  }
  .sng-lb-prev { left: 0.35rem; }
  .sng-lb-next { right: 0.35rem; }
}
