/* Vanilla lightbox (WP static pages — React handlers are not hydrated) */
#tatara-lightbox-root[hidden] {
  display: none !important;
}

.tatara-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
}

.tatara-lb__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.tatara-lb__count {
  margin: 0;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.875rem;
}

.tatara-lb__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #231815;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.tatara-lb__close--mobile {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

@media (min-width: 768px) {
  .tatara-lb__close--mobile {
    display: none;
  }
}

.tatara-lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #231815;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.tatara-lb__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tatara-lb__nav--prev {
  left: 0.5rem;
}

.tatara-lb__nav--next {
  right: 0.5rem;
}

@media (min-width: 768px) {
  .tatara-lb__nav {
    width: 3.5rem;
    height: 3.5rem;
  }

  .tatara-lb__nav--prev {
    left: 1.5rem;
  }

  .tatara-lb__nav--next {
    right: 1.5rem;
  }
}

.tatara-lb__figure {
  width: min(100%, 64rem);
  margin: 0;
  padding: 0 3.5rem;
}

.tatara-lb__frame {
  position: relative;
  width: 100%;
  max-height: 75vh;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}

.tatara-lb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tatara-lb__caption {
  margin-top: 1rem;
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
}
