/* simple lightbox by HD 250820 */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}
#lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#lightbox a {
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 20px;
}
#lightbox img {
  padding: 20px;
  max-width: 100%;
  max-height: 100vh;
}
.lightbox_trigger {
  cursor: pointer;
}

/* 라이트박스일때 스크롤 차단 */
html:has(#lightbox.show) {
  overflow: clip;
  scrollbar-gutter: stable;
}