.carousel {
    display: flex;
    min-height: 30vh;
    gap: 1rem;
    padding: 0;
    padding-left: 20vw;
    padding-right: 20vw;
    margin: 0;
    list-style: none;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    /* firefox */
    scrollbar-width: none;
    /* IE and Edge */
    -ms-overflow-style: none;
}

/* safari */
.carousel::-webkit-scrollbar {
  display: none;
}

.carousel LI {
  display: flex;
  justify-content: center;
  flex: none;
  width: 700px;
  background-color: #000000;
  color: #fff;
 
}

.carousel FIGURE {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
}

.carousel FIGCAPTION {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #00000099;
    padding: 1rem;
    text-align: center;
}

.gallery_item {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.5;
  transition: opacity 0.5s;
  padding: 0;
  pointer-events: none;
}

.gallery_item.visible_img {
  opacity: 1;
  pointer-events: all;
}

.gallery_img IMG {
    object-fit: contain;
    object-position: center;
}

.gallery_video iframe {
  width: 100%;
  height: 100%;
}

.carousel_nav {
    display: flex;
    max-width: 80%;
    margin: 0 auto;
    align-items: center;
}

#gallery .button {
  width: 3rem;
  aspect-ratio: 1/1;
  border-radius: 3rem;
  border: 1px solid #000;
  cursor: pointer;
}

.button--previous {
  transform: rotate(180deg);
}

.button--next {

}

.indicators {
  display: flex;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

ul.indicators {
  margin: 0;
  padding: 0;
  list-style: none;
}

.indicators LI {
  margin: 0;
  padding: 0;
}

.indicator {
  padding: 10px;
}

.indicator-button {
  cursor: pointer;
  background: none;
  border: none;
  color: #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  line-height: 1rem;
}

.indicator-button:after {
  content: '○';
  font-size: 1rem;
  padding: 0.25rem;
}

.indicator-button:hover {
  color: #666
}

.indicator-button:active {
  color: #999;
  padding: 0;
}

.indicator-button[aria-pressed="true"]:after {
  content: '●';
}

#carousel_window {
    border: 1px solid #00f;
    height: 100%;
    width: 40%;
    background-color: #ff000066;
    display: block;
    position: absolute;
    left: 30%;
    z-index: 10;
}