.gallery-block {
  background: var(--background);
  padding: 36px 0;
}

.gallery-item {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.gallery-item img:hover {
  cursor: zoom-in;
}

.gallery-item__caption {
  margin: 8px auto 0 auto;
  font-family: Geologica, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0;
  text-align: center;
  color: #5F5F5F;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox-content {
  position: absolute;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0;
  box-shadow: none;
  max-width: calc(100vw - 162px);
  max-height: 80vh;
  background: transparent;
  border-radius: 10px;
}
@media screen and (max-width: 640px) {
  .lightbox-content {
    max-width: calc(100vw - 20px);
  }
}

.lightbox-content img {
  border-radius: 12px;
}

.lightbox-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.lightbox-prev.disabled,
.lightbox-next.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.lightbox-caption {
  text-align: center;
  font-family: Geologica, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0;
  color: #fff;
  padding-top: 16px;
  background: transparent;
}

.lightbox-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.lightbox-close {
  position: absolute;
  background: transparent;
  padding: 0;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  box-shadow: none;
  border: none;
}

.lightbox-counter {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Geologica, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0;
  color: white;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  top: 0;
  left: 0;
  z-index: -1;
}

.lightbox p {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 5px;
  position: relative;
  bottom: -10px;
}