/* Carousel & Image Showcase – shared styles */

.carousel {
  position: relative;
  width: 100%;
  margin: 1.5em 0;
}
.carousel-body {
  position: relative;
  border: 1px solid var(--table-border-color);
  border-radius: 4px;
  overflow: hidden;
}
.carousel-inner {
  display: grid;
}
.carousel-slide {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  padding: 1em;
  min-height: 0;
}
.carousel-slide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Arrow areas – overlaid on top of the image */
.carousel-arrow-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s;
  z-index: 1;
}
.carousel-arrow-area:hover {
  background: rgba(0, 0, 0, 0.12);
}
.carousel-arrow-area.carousel-prev-area { left: 0; }
.carousel-arrow-area.carousel-next-area { right: 0; }
.carousel-arrow-area .arrow-symbol {
  color: transparent;
  font-size: 1.5em;
  line-height: 1;
  text-shadow: none;
  user-select: none;
  pointer-events: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.carousel-arrow-area:hover .arrow-symbol {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Invisible label overlays – only the correct one receives clicks */
/* Dot indicators */
.carousel-dots {
  text-align: center;
  padding: 0.6em 0 0.4em;
}
.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--table-border-color);
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot:hover {
  background: var(--icons);
}

/* ── Active state (managed by carousel.js) ── */
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}
.carousel-dot.active {
  background: var(--links);
}

/* ── Single-image showcase container ── */

.image-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  border: 1px solid var(--table-border-color);
  border-radius: 4px;
  margin: 1.5em 0;
}
.image-showcase img {
  max-width: 100%;
  height: auto;
  display: block;
}
