.po2-case button.po2-enlarge {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.po2-enlarge > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
  pointer-events: none;
}
html:has(.po2-lightbox[open]) {
  overflow: hidden;
}
.po2-case .po2-lightbox {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 22px);
  margin: auto;
  border: 2px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior: contain;
}
.po2-lightbox::backdrop {
  background: #130d0cdd;
}
.po2-lightbox-toolbar,
.po2-lightbox-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.po2-lightbox-toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
}
.po2-lightbox-toolbar form {
  margin: 0;
}
.po2-lightbox-toolbar button {
  border: 2px solid #211b18;
  border-radius: 999px;
  color: #130d0c;
  background: #10b742;
  font-weight: 750;
  line-height: 1.15;
}
.po2-lightbox-navigation span {
  min-width: 4ch;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.po2-lightbox-media {
  position: relative;
  height: min(57dvh, 690px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  touch-action: pan-y pinch-zoom;
}
.po2-lightbox-media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  margin: 0;
  object-fit: contain;
  user-select: none;
}
.po2-lightbox-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 5px 4px;
  margin-top: 5px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.po2-lightbox .po2-lightbox-thumbnails button {
  flex: 0 0 76px;
  aspect-ratio: 7 / 5;
  padding: 0;
  overflow: hidden;
}
.po2-lightbox-thumbnails img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}
.po2-lightbox .po2-lightbox-thumbnails button[aria-current] {
  border-color: var(--accent-text);
  outline: 2px solid var(--accent-text);
}
.po2-lightbox figcaption {
  padding-top: 4px;
}
.po2-lightbox figcaption strong,
.po2-lightbox figcaption span {
  display: block;
}
@media (max-width: 490px) {
  .po2-lightbox-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .po2-lightbox-toolbar form {
    grid-area: 1 / 2;
  }
  .po2-lightbox-toolbar [data-po2-gallery-play] {
    grid-area: 2 / 1 / 3 / 3;
  }
  .po2-lightbox-media {
    height: 42dvh;
    max-height: calc((100vw - 54px) * .85);
  }
  .po2-lightbox .po2-lightbox-thumbnails button {
    flex-basis: 58px;
  }
}
@media print {
  .po2-case button.po2-enlarge {
    display: block;
  }
  .po2-enlarge > span, .po2-lightbox {
    display: none !important;
  }
}
