.article-zoomable {
  cursor: zoom-in;
}

.article-zoomable:focus-visible {
  outline: 3px solid rgba(23, 62, 112, 0.35);
  outline-offset: 4px;
}

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgba(8, 12, 17, 0.88);
}

.image-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 48px);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.image-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
  cursor: default;
  -webkit-user-drag: none;
}

.image-lightbox-image.is-pannable {
  cursor: grab;
}

.image-lightbox-image.is-dragging {
  cursor: grabbing;
}

.image-lightbox-close {
  position: fixed;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.72);
  color: #fff;
  font: 400 31px/1 "Nanum Gothic", "Noto Sans KR", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.image-lightbox-close:hover {
  background: rgba(25, 36, 46, 0.96);
}

.image-lightbox-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .image-lightbox-inner {
    padding: 58px 8px 24px;
  }

  .image-lightbox-close {
    width: 44px;
    height: 44px;
  }
}
