/* ================================
   CoinData Gallery Slideshow
   Fixed-size gallery frame with
   proportional image scaling
   ================================ */

/* ================================
   Slideshow container
   ================================ */
.slideshow-container {
  width: 100%;
  max-width: 900px;
  height: 700px;
  margin: 40px auto 60px;
  position: relative;
  background: black;
  border: 8px solid yellow;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.6);
  box-sizing: border-box;
}

/* ================================
   Individual slides
   ================================ */
.mySlides {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

/* ================================
   Wrapper for image + caption
   ================================ */
.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
}

/* ================================
   Slide images
   Fit inside fixed frame without
   distortion or cropping
   ================================ */
.slide-inner img,
.mySlides img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: black;
}

/* ================================
   Caption (TOP of slideshow)
   Cross-platform Copperplate font
   ================================ */
.slide-caption {
  position: absolute !important;
  top: 8px !important;
  bottom: auto !important;
  left: 0;
  width: 100%;
  padding: 8px 12px;
  text-align: center;

  color: yellow;
  font-size: 28px;

  font-family:
    "Copperplate Gothic Light",
    "Copperplate Gothic",
    "Copperplate",
    "Cinzel",
    serif !important;

  text-shadow: 0 0 5px black;
  background: rgba(0,0,0,0.3);
  box-sizing: border-box;
  z-index: 10;
}

/* ================================
   Navigation arrows
   ================================ */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;

  color: yellow;
  font-size: 32px;
  font-weight: bold;

  user-select: none;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  z-index: 10;
}

.prev:hover,
.next:hover {
  color: white;
  text-shadow: 0 0 10px yellow;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ================================
   Mobile / Small Screens
   ================================ */
@media (max-width: 900px) {
  .slideshow-container {
    width: calc(100% - 20px);
    height: 70vh;
    max-height: 700px;
  }

  .slide-caption {
    font-size: 18px;
    padding: 6px 10px;
  }

  .prev,
  .next {
    font-size: 24px;
    padding: 12px;
  }
}