/* ===== SWIPER CORE STYLES ===== */
.swiper {
  width: 100vw;
  /* --visible-viewport-height is set by panel-anchor.js when iPadOS strands
     the layout viewport at fullscreen size after leaving fullscreen; 100dvh
     resolves against that stranded viewport and would hang the bottom of the
     photo off the screen. */
  height: var(--visible-viewport-height, 100dvh);
  box-sizing: border-box;
  background: #111;
  position: relative;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.swiper-slide img {
  width: 100vw;
  height: var(--visible-viewport-height, 100dvh);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  touch-action: pinch-zoom;
}

.swiper-scrollbar {
  background: rgba(255, 255, 255, 0.15);
  height: 10px !important;
  border-radius: 8px;
}

.swiper-scrollbar-drag {
  background: #00ff99 !important;
  border-radius: 8px;
  height: 10px !important;
  box-shadow: 0 0 6px #00ff99, 0 0 2px #fff;
  opacity: 1 !important;
}

/* ===== NAVIGATION BUTTONS ===== */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  opacity: 0.6;
  --swiper-navigation-color: #fff;
  font-weight: bold;
  font-size: 2em;
  text-shadow: 0 0 4px #000;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000 !important;
  transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #fff !important;
  font-weight: bold;
  font-size: 1em;
  text-shadow: 0 0 4px #000;
  -webkit-text-stroke: 1.5px #fff;
  stroke: 1.5px #fff;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: none;
  box-shadow: none;
}

.slide-image {
  max-width: 100vw;
  max-height: var(--visible-viewport-height, 100dvh);
  display: block;
  margin: auto;
}

/* ===== ZOOM & SWIPER ENHANCEMENTS ===== */
.swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
  -webkit-user-select: none;
  user-select: none;
}

.swiper-slide-zoomed .swiper-zoom-container {
  cursor: move;
}

.swiper-wrapper {
  display: flex;
}

.fullscreen-playback-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 4rem;
  padding: 20px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  pointer-events: none;
}

.fullscreen-playback-indicator.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Grid view current slide highlight - only applies in grid mode */
.swiper.grid-mode .swiper-slide.current-slide {
  box-sizing: border-box !important;
  border: 4px solid #ffe066 !important;         /* Brighter, thicker yellow border */
  border-radius: 12px !important;               /* Rounded corners */
  box-shadow: 0 0 8px 2px #ffe06680 !important; /* Soft yellow glow */
  z-index: 2;
}

/* Add fade transitions for view switching */
#singleSwiperContainer,
#gridViewContainer {
  transition: opacity 0.3s ease-in-out;
}

#singleSwiperContainer.fade-out,
#gridViewContainer.fade-out {
  opacity: 0;
}