/* Click-to-enlarge for timeline / entry poster images */
.po-beauty-card img,
.entry-popup-art img,
.entry-popup-gallery img {
  cursor: zoom-in;
}

.entry-popup-art img:hover,
.entry-popup-gallery img:hover {
  outline: 2px solid rgba(255, 248, 232, 0.55);
  outline-offset: 2px;
}

.byrd-tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  background: rgba(10, 8, 12, 0.9);
  backdrop-filter: blur(5px);
}

.byrd-tl-lightbox[hidden] {
  display: none !important;
}

.byrd-tl-lightbox__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: zoom-out;
  background: transparent;
}

.byrd-tl-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(98vw, 1400px);
  max-height: min(94vh, 1100px);
  display: grid;
  place-items: center;
}

.byrd-tl-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: min(90vh, 1040px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  border: 3px solid #fff8e8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}

.byrd-tl-lightbox__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border: 3px solid #160c08;
  background: #fff8e8;
  color: #160c08;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 #160c08;
}

.byrd-tl-lightbox__close:hover,
.byrd-tl-lightbox__close:focus-visible {
  background: #ff2d95;
  color: #fff8e8;
  outline: none;
}

.byrd-tl-lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 2;
  max-width: min(90vw, 40rem);
  margin: 0;
  padding: 0.35rem 0.75rem;
  color: #fff8e8;
  background: rgba(10, 8, 12, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

html.byrd-tl-lightbox-open,
body.byrd-tl-lightbox-open {
  overflow: hidden !important;
}
