/**
 * Native Lightbox Styles (replaces colorbox.css)
 * Uses <dialog> element for native accessibility
 */

.sfl-lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
}

.sfl-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.sfl-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sfl-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  z-index: 10;
}

.sfl-lightbox-close:hover {
  color: var(--scoutyellow, #ffe627);
}

.sfl-lightbox-img {
  max-width: 80vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.sfl-lightbox-caption {
  color: #fff;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Scroll animation support (replaces animate.css for our use case) */
.animatedParent .animated,
.wow {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animatedParent .animated.go,
.wow.go {
  opacity: 1;
}

.animated.swing.go {
  animation: swing 1s ease;
}

@keyframes swing {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
