.swiper-container {
  width: 100%;
  max-width: 800px;
  height: 400px;
  max-height: 450px;
  margin: auto;
  overflow: hidden;
}

.swiper-slide {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Caption over image (overlapping at the top) */
.ginka-carousel-caption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  z-index: 10;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: opacity;
  transition: opacity 0.3s;
  border: solid rgba(255, 255, 255, 0.255) 1px;
  border-radius: 20px;
}

/* Image container holds image + absolute caption */
.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: 2em;
  align-items: center;
  justify-content: center;
}

/* Zoom overlay */
.ginka-carousel-zoom-view {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.ginka-carousel-zoom-content {
  display: flex;
  gap: 2rem;
  max-width: 90%;
  max-height: 90%;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.ginka-carousel-zoom-view.portrait-mode .ginka-carousel-zoom-content {
  flex-direction: column;
}

.ginka-carousel-zoom-view.landscape-mode .ginka-carousel-zoom-content {
  flex-direction: row;
}

.ginka-carousel-zoom-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.ginka-carousel-zoom-caption {
  color: #fff;
  font-size: 1rem;
  max-width: 400px;
  text-align: left;
}

.ginka-carousel-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: white;
  background: transparent;
  border: 1px solid white;
  padding: 6px 12px;
}

.ginka-carousel-zoom-button-wrapper {
  display: table;
  margin: 0 auto 1em;
}

.ginka-carousel-zoom-button {
  background: #2980b9;
  background-image: linear-gradient(to bottom, #2980b9, #000000);
  border-radius: 28px;
  border-width: 1px;
  color: #ffffff;
  font-size: 10px;
  padding: 10px 20px;
  text-decoration: none;
}
