.dove-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.dove-lb.is-open {
  display: block;
}

.dove-lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.dove-lb__panel {
  position: absolute;
  inset: 4vh 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dove-lb__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 90vh;
  pointer-events: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dove-lb__img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: calc(90vh - 46px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.dove-lb__caption {
  margin-top: 8px;
  color: #202020;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.dove-lb__btn {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff !important;
  color: #111111 !important;
  width: 42px;
  height: 42px;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  line-height: 1;
  font-size: 28px !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  z-index: 3;
}

.dove-lb__close {
  top: 12px;
  right: 12px;
}

.dove-lb__prev,
.dove-lb__next {
  top: 50%;
  transform: translateY(-50%);
}

.dove-lb__prev {
  left: 12px;
}

.dove-lb__next {
  right: 12px;
}

body.dove-lb-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .dove-lb__panel {
    inset: 2vh 2vw;
  }

  .dove-lb__figure {
    width: 100%;
    max-width: 100%;
    padding: 8px;
  }

  .dove-lb__img {
    max-width: 100%;
    max-height: calc(86vh - 36px);
  }

  .dove-lb__btn {
    width: 44px;
    height: 44px;
    font-size: 24px !important;
  }

  .dove-lb__close {
    top: 8px;
    right: 8px;
  }

  .dove-lb__prev {
    left: 8px;
  }

  .dove-lb__next {
    right: 8px;
  }
}
