/* Content keeps its original layout; the viewer exists only with enhancement. */
button.jj-lightbox-trigger {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  line-height: 0;
  cursor: zoom-in;
  appearance: none;
}
.jj-lightbox-link { cursor: zoom-in; }
.jj-lightbox-trigger:focus-visible,
.jj-lightbox-link:focus-visible { outline: 3px solid #6843a4; outline-offset: 5px; }
.jj-lightbox-trigger > img,
.jj-lightbox-trigger > picture { display: block; max-width: 100%; }
.article-cover > .jj-lightbox-trigger { width: 100%; }
.article-cover > .jj-lightbox-trigger img { width: 100%; max-height: 650px; aspect-ratio: 1.95; object-fit: cover; }
.entity-hero-art > .jj-lightbox-trigger { width: 100%; height: 100%; min-height: 0; }
.entity-hero-art > .jj-lightbox-trigger img { width: 100%; height: 100%; object-fit: contain; }
.release-detail-art .jj-lightbox-trigger { width: 100%; height: 100%; }
.walkthrough-cover > .jj-lightbox-trigger { width: fit-content; max-width: 100%; }
.walkthrough-cover > .jj-lightbox-trigger img { width: auto; height: auto; max-width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 20px 18px #35422228); transform: rotate(2deg); }
.article-gallery .jj-lightbox-trigger { width: 100%; }

.jj-lightbox:not([open]) { display: none; }
.jj-lightbox[open] { display: flex; flex-direction: column; }
.jj-lightbox {
  position: fixed;
  inset: 0;
  width: min(1200px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(920px, calc(100vh - 32px));
  height: min(920px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  overflow: hidden;
  border: 1px solid #566146;
  border-radius: 17px;
  background: #0b0e0c;
  color: #f5f4ee;
  box-shadow: 0 24px 90px #0007;
  overscroll-behavior: contain;
}
.jj-lightbox::backdrop { background: #000d; }
.jj-lightbox-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px 10px 24px; border-bottom: 1px solid #30372a; }
.jj-lightbox-header h2 { margin: 0; font: 700 14px/1.4 Arial, sans-serif; color: #f5f4ee; letter-spacing: .01em; }
.jj-lightbox button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 7px; margin: 0; border: 1px solid #59654c; border-radius: 10px; background: #1d2716; color: #cfff40; font: 600 23px/1 Arial, sans-serif; cursor: pointer; }
.jj-lightbox button[hidden] { display: none; }
.jj-lightbox .jj-lightbox-close { font-size: 30px; }
.jj-lightbox button:hover { background: #354425; }
.jj-lightbox :is(button, a):focus-visible { outline: 3px solid #cfff40; outline-offset: 3px; }
.jj-lightbox-stage { position: relative; display: flex; flex: 1 1 0; min-width: 0; min-height: 0; justify-content: center; align-items: center; padding: 15px 24px; overflow: hidden; }
.jj-lightbox .jj-lightbox-image { display: block; width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.jj-lightbox .jj-lightbox-image[hidden] { display: none; }
.jj-lightbox[data-loading=true] .jj-lightbox-image { opacity: .2; }
.jj-lightbox-message { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); margin: 0; color: #e3ebd8; font: 14px/1.7 Arial, sans-serif; text-align: center; pointer-events: none; }
.jj-lightbox-message:empty { display: none; }
.jj-lightbox-footer { flex: 0 0 auto; min-width: 0; padding: 14px 24px 19px; border-top: 1px solid #30372a; }
.jj-lightbox-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; }
.jj-lightbox-navigation { display: flex; align-items: center; gap: 14px; }
.jj-lightbox-count { color: #f5f4ee; font: 700 12px/1.5 Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jj-lightbox-original { display: inline-flex; align-items: center; min-height: 44px; color: #cfff40; font: 700 12px/1.6 Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.jj-lightbox-caption { max-height: 85px; margin: 12px 0 0; overflow: auto; color: #cbd5bf; font: 13px/1.7 Arial, sans-serif; overflow-wrap: anywhere; overscroll-behavior: contain; }
.jj-lightbox-caption[hidden] { display: none; }
@media (max-width: 1099px) {
  .walkthrough-cover > .jj-lightbox-trigger img { max-height: 330px; }
}
@media (max-width: 800px) {
  .article-cover > .jj-lightbox-trigger img { aspect-ratio: 1.6; }
}
@media (max-width: 600px) {
  .article-cover > .jj-lightbox-trigger img { aspect-ratio: 1.33; }
  .walkthrough-cover > .jj-lightbox-trigger { max-width: 70%; margin: 0; }
  .walkthrough-cover > .jj-lightbox-trigger img { max-height: 210px; }
  .jj-lightbox { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .jj-lightbox-header { padding: 8px 10px 8px 16px; }
  .jj-lightbox-stage { padding: 10px; }
  .jj-lightbox-footer { padding: 10px 14px 14px; }
  .jj-lightbox-toolbar { gap: 6px 12px; }
  .jj-lightbox-navigation { gap: 9px; }
  .jj-lightbox-caption { max-height: 72px; font-size: 12px; }
}
@media (max-width: 380px) {
  .jj-lightbox-toolbar { justify-content: center; }
  .jj-lightbox-original { min-height: 35px; }
}
@media (max-width: 360px) {
  .walkthrough-cover > .jj-lightbox-trigger img { max-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .jj-lightbox, .jj-lightbox * { scroll-behavior: auto; transition: none; animation: none; }
}
@media print {
  .jj-lightbox { display: none !important; }
  .article-cover > .jj-lightbox-trigger img { max-height: 300px; object-fit: contain; }
  .jj-lightbox-trigger { outline: none !important; }
}
