/* ==========================================================================
   LIGHTSTRIVER GALLERY & CONTROLS GLOBAL STYLESHEET
   ========================================================================== */

/* 1. Slideshow Frame Layout */
#slideshowWrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#slideshow {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto 24px;
}

#slideshow .slide {
  width: 100%;
  display: none; /* Controlled via JS or active class */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* First slide or .active-slide shows by default */
#slideshow .slide:first-child,
#slideshow .slide.active-slide {
  display: block;
  opacity: 1;
}

#slideshow .slide img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* 2. Gallery Controls Container */
.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 20px auto 40px;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* 3. Prev / Next Buttons (Updated for dark backgrounds) */
.gallery-controls .gallery-prev,
.gallery-controls .gallery-next {
  font-family: "Julius Sans One", sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff; /* Changed from #111111 */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.gallery-controls .gallery-prev:hover,
.gallery-controls .gallery-next:hover {
  opacity: 0.7;
  color: #b3b3b3;
}

.gallery-controls .gallery-prev:active,
.gallery-controls .gallery-next:active {
  transform: scale(0.97);
}

.gallery-controls .gallery-prev span,
.gallery-controls .gallery-next span {
  display: inline-block;
  line-height: 1;
}

/* 4. Center Divider Line (Updated for dark backgrounds) */
.gallery-controls .gallery-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: #ffffff;
  opacity: 0.35;
  margin: 0 4px;
}

/* Optional Disabled State */
.gallery-controls .gallery-prev.disabled,
.gallery-controls .gallery-next.disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   5. Footer Styling (Visible on Black / Dark Backgrounds)
   ========================================================================== */
#footerWrapper {
  margin-top: 50px;
  padding: 30px 0 50px;
}

#footer,
#footer * {
  color: #cccccc;
}

#footer a {
  font-family: "Julius Sans One", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

#footer a:hover {
  color: #ffffff;
  opacity: 0.9;
}

/* Social links container in footer */
#footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

#footer .social-links a {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.7;
}

#footer .social-links a:hover {
  opacity: 1;
}

/* FORCE OVERRIDE: Gallery Controls */
#slideshowWrapper .gallery-controls .gallery-prev,
#slideshowWrapper .gallery-controls .gallery-next,
#slideshowWrapper .gallery-controls .gallery-prev span,
#slideshowWrapper .gallery-controls .gallery-next span {
  color: #ffffff !important;
}

#slideshowWrapper .gallery-controls .gallery-divider {
  background-color: #ffffff !important;
  opacity: 0.5 !important;
}

/* FORCE OVERRIDE: Footer */
#canvas #footerWrapper,
#canvas #footer,
#canvas #footer a,
#canvas #footer a:visited,
#canvas #footer .social-links a {
  color: #ffffff !important;
}