/* Exact shared ImageLightbox layout from the reference; no gallery layout changes. */
html body .drn-image-lightbox,
html body .drn-image-lightbox * { box-sizing: border-box; }
html body .drn-image-lightbox { position: fixed; inset: 0; z-index: 2147483640; display: flex; flex-direction: column; background: rgb(0 0 0 / 90%); color: var(--accent-fg,#fff); font-family: inherit; line-height: 1.5; }
html body .drn-image-lightbox[hidden],
html body .drn-image-lightbox [hidden] { display: none !important; }
html body .drn-image-lightbox p { margin: 0; padding: 0; border: 0; background: none; }
html body .drn-image-lightbox button { display: inline-block; width: auto; min-width: 0; max-width: none; height: auto; min-height: 0; margin: 0; padding: 8px; border: 0; border-radius: var(--yc-radius-sm,8px); background: transparent; color: inherit; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; text-align: center; text-transform: none; letter-spacing: normal; cursor: pointer; appearance: none; }
html body .drn-image-lightbox button:hover { background: rgb(255 255 255 / 10%); color: var(--accent-fg,#fff); }
html body .drn-image-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html body .drn-image-lightbox svg { display: block; width: 20px; height: 20px; margin: 0; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
html body .drn-image-lightbox-toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; color: var(--accent-fg,#fff); }
html body .drn-image-lightbox .drn-image-lightbox-caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(255 255 255 / 80%); font-size: calc(14px * var(--drn-font-scale,1)); line-height: calc(20px * var(--drn-font-scale,1)); font-weight: 500; }
html body .drn-image-lightbox-tools { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
html body .drn-image-lightbox .drn-image-lightbox-percent { padding: 8px; color: rgb(255 255 255 / 80%); font-size: calc(12px * var(--drn-font-scale,1)); line-height: calc(16px * var(--drn-font-scale,1)); font-weight: 600; }
html body .drn-image-lightbox-main { position: relative; min-height: 0; flex: 1 1 0%; touch-action: none; }
html body .drn-image-lightbox .drn-image-lightbox-arrow { position: absolute; top: 50%; z-index: 10; transform: translateY(-50%); padding: 8px; border-radius: var(--yc-radius-pill,9999px); background: rgb(255 255 255 / 15%); color: var(--accent-fg,#fff); }
html body .drn-image-lightbox .drn-image-lightbox-arrow:hover { background: rgb(255 255 255 / 25%); }
html body .drn-image-lightbox-arrow.is-previous { left: 8px; }
html body .drn-image-lightbox-arrow.is-next { right: 8px; }
html body .drn-image-lightbox-arrow svg { width: 24px; height: 24px; }
html body .drn-image-lightbox-stage { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; overflow: hidden; padding: 8px; cursor: zoom-in; }
html body .drn-image-lightbox-stage.is-zoomed { cursor: grab; }
html body .drn-image-lightbox-stage.is-dragging { cursor: grabbing; }
html body .drn-image-lightbox-stage img { display: block; flex-shrink: 1; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform 150ms cubic-bezier(.4,0,.2,1); }
html body .drn-image-lightbox .drn-image-lightbox-help { flex-shrink: 0; padding: 8px 12px; color: rgb(255 255 255 / 50%); font-size: calc(11px * var(--drn-font-scale,1)); text-align: center; }
@media (min-width: 640px) {
  html body .drn-image-lightbox-toolbar { padding-right: 16px; padding-left: 16px; }
  html body .drn-image-lightbox-arrow.is-previous { left: 16px; }
  html body .drn-image-lightbox-arrow.is-next { right: 16px; }
  html body .drn-image-lightbox-stage { padding: 24px; }
  html body .drn-image-lightbox .drn-image-lightbox-help { padding-right: 16px; padding-left: 16px; }
}
