.gallery_scroller {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  height: 300px; /* default height */
  width: 800px; /* default width */
  margin: 20px auto;
}

.gallery_scroller img {
  flex: 0 0 auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: none;
  cursor: pointer;
}

.gallery_scroller img:first-child {
  display: block;
}

.gallery_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gallery_nav.prev {
  left: 10px;
}

.gallery_nav.next {
  right: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal.gallery-modal {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.gallery-modal__zone {
  flex: 0 0 5vw;
  min-width: 5vw;
  cursor: pointer;
}

.gallery-modal__center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.gallery-modal__center--single {
  flex: 1 1 100%;
  width: 100%;
}

.modal.gallery-modal .gallery-modal__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.gallery_image_column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gallery_dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  padding: 0 4px;
  box-sizing: border-box;
}

.gallery_dot {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c4c4c4;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery_dot--active {
  background: #017db3;
}