
/* --- static-export overrides: reveal content that was lazy-hidden for JS --- */
.page_content, .page_content *,
.image-gallery, .image-gallery * { visibility: visible !important; }

/* hide raw gallery images until gallery.js wraps them into the slideshow */
.image-gallery:not(.sg-ready) > img { display: none !important; }

/* --- slideshow (fit-to-height, centered, slide transition) --- */
.image-gallery.sg-ready {
  position: relative !important;
  height: auto !important;
  width: 100% !important;
  display: block !important;
}
.sg-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 78vh;
}
.sg-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}
.sg-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sg-img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-gallery.sg-ready .sg-img > img {
  display: block !important;
  position: static !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain;
}
.sg-caption {
  flex: 0 0 auto;
  margin-top: 18px;
  text-align: center;
  font-family: "Monument Grotesk Mono", monospace;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.25);
}
.sg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.sg-arrow:hover { opacity: 1; }
.sg-arrow svg { width: 36px; height: 36px; display: block; }
.sg-prev { left: 0; }
.sg-next { right: 0; }
.sg-next svg { transform: scaleX(-1); }
