.gallery-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-current-image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  touch-action: pan-y;
}

.gallery-prev,
.gallery-next,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  padding: 12px;
}

.gallery-caption {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(0 0 0 / 95%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 50px 12px 12px;
  color: white;
}

.gallery-full-image {
  max-width: 80%;
  max-height: 85vh;
  object-fit: contain;
}

.gallery-viewer button {
  color: #727272;
  -webkit-text-fill-color: #727272;
}

.gallery-lightbox button {
  color: white;
  -webkit-text-fill-color: white;
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-full-alt {
  position: absolute;
  bottom: 16px;
  left: 60px;
  right: 60px;
  color: white;
  text-align: center;
  font-size: 0.95rem;
}



.gallery-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gallery-current-image {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  z-index: 1;
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}