@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes shadowBlink {
  0%,
  100% {
    box-shadow: 0 0 20px var(--overlay-gray-shadow),
                0 0 40px var(--overlay-gray-shadow),
                0 0 60px var(--overlay-gray-shadow);
  }

  50% {
    box-shadow: 0 0 5px var(--overlay-gray-shadow-light),
                0 0 10px var(--overlay-gray-shadow-light),
                0 0 15px var(--overlay-gray-shadow-light);
  }
}

body.editorial-page *:not(.site-header):not(.site-header *) {
  font-weight: 500;
}

body.editorial-page ::selection {
  background: transparent;
}

body.editorial-page ::-moz-selection {
  background: transparent;
}

body.editorial-page {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

canvas {
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  pointer-events: auto;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  background: transparent;
}

body.editorial-page {
  background-color: var(--background-color-book-library);
}

.editorial-layout {
  box-sizing: border-box;
}

.editorial-page__layout {
  position: fixed;
  width: 50%;
  height: 100%;
  right: 0;
  top: 0;
  overflow-y: scroll;
  display: none;
  background-color: var(--sub-color);
  color: var(--header-text-on-light);
}

.editorial-page__layout-content {
  padding: var(--space-16);
}

.editorial-page__layout-close {
  display: flex;
  position: fixed;
  border: var(--clock-line-width) solid var(--main-color);
  background-color: transparent;
  color: var(--text-color);
  right: 0;
  margin: var(--space-16);
  cursor: pointer;
  z-index: 20;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  border-radius: var(--space-2);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.editorial-page__layout-close:hover {
  background-color: var(--background-color);
  color: var(--text-color);
}

.editorial-page__layout-close svg line {
  stroke: currentColor;
}

.editorial-page__list {
  position: fixed;
  overflow: visible;
  text-align: left;

  height: 100%;
  right: 0;
  top: 0;
  background-color: transparent;
  color: var(--text-color);
  padding: calc(var(--space-32) + var(--space-16)) calc(var(--body-padding-sides) - var(--space-16));
  padding-bottom: var(--space-16);
  display: block;
  z-index: 10;
  text-align: center;
}

.editorial-page__buttons {
  position: fixed;
  top: var(--body-padding-top);
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  z-index: 50;
  flex-direction: column;
  align-items: flex-start;
}

.editorial-page__button {
  text-align: left;
  background-color: var(--color-white);
  min-height: 1.5rem;
  height: 1.5rem;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  outline: none;
  color: var(--main-color);
  font-size: inherit;
  font-weight: 500;
}

html[data-theme-mode="dark"] .editorial-page__button,
html[data-theme-mode="dark"] .editorial-page__button--platform {
  border: none;
}

html[data-theme-mode="dark"] .editorial-page__button {
  color: var(--header-text-on-light);
}

body.editorial-page .editorial-page__button,
body.editorial-page .editorial-page__button--platform {
  border: none;
}

.editorial-page__button:hover {
  background-color: var(--main-color);
  color: var(--sub-color);
}

.editorial-page__button--platform {
  background-color: var(--color-blue-link);
  display: none;
}

.editorial-page__button .kr {
  display: inline;
}

.editorial-page__button .eng {
  display: none;
}

body.eng .editorial-page__button .kr {
  display: none;
}

body.eng .editorial-page__button .eng {
  display: inline;
}

@media only screen and (max-width: 768px) {
  .editorial-page__list {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }

  .editorial-page__layout {
    position: static;
  }

  .editorial-page__nav-btn,
  .editorial-page__nav-btn--prev,
  .editorial-page__nav-btn--next {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
  }
}

.editorial-page__list-items {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-8);
  align-items: flex-end;
}

.editorial-page__list-item {
  display: flex;
  gap: var(--space-4);
  min-height: 1.5rem;
  height: 1.5rem;

  cursor: default;
  transition: all 0.3s ease;
  align-items: center;
  scroll-snap-align: start;
  justify-content: flex-end;
  padding: 0 var(--space-16);
  width: 100%;
  box-sizing: border-box;
}

.editorial-page__list-item > div {
  flex-shrink: 0;
  min-width: fit-content;
  min-height: 1.5rem;
  height: 1.5rem;
  color: var(--main-color);
  background-color: var(--overlay-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.editorial-page__list-item > .editorial-page__item-title {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

@media only screen and (max-width: 768px) {
  .editorial-page__list-item {
    justify-content: center;
  }
}

.editorial-page__list-item:has(.editorial-page__item-credit:hover),
.editorial-page__list-item:has(.editorial-page__item-title:hover),
.editorial-page__list-item:has(.editorial-page__item-size:hover) {
  transform: translateX(calc(var(--space-16) * -1));
}

.editorial-page__list-item--selected {
  color: var(--sub-color);
  transform: scale(1.05);
}

.editorial-page__list-item--selected .editorial-page__item-credit {
  background-color: var(--main-color);
  color: var(--sub-color);
}

.editorial-page__list-item--selected .editorial-page__item-title {
  background-color: var(--main-color);
  color: var(--sub-color);
}

.editorial-page__list-item--selected .editorial-page__item-size {
  background-color: var(--main-color);
  color: var(--sub-color);
}

.editorial-page__list-item:first-child {
  border-top: none;
  padding-top: var(--space-4);
}

.editorial-page__item-credit {
  min-height: 1.5rem;
  height: 1.5rem;
  text-align: center;
  padding: 0 var(--space-8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

.editorial-page__list-item > .editorial-page__item-credit,
.editorial-page__list-item > .editorial-page__item-title,
.editorial-page__list-item > .editorial-page__item-size {
  align-items: center;
  justify-content: center;
}

.editorial-page__list-item > .editorial-page__item-title {
  justify-content: flex-end;
}

.editorial-page__list-item > .editorial-page__item-size {
  justify-content: flex-end;
}

.editorial-page__item-title.kr {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.editorial-page__item-title.eng {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

body.eng .editorial-page__item-title.kr {
  display: none;
}

body.eng .editorial-page__item-title.eng {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.editorial-page__item-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  transition: all 0.2s ease;
  padding: 0 var(--space-8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  min-width: 0;
  min-height: 1.5rem;
  height: 1.5rem;
  width: auto;
}

.editorial-page__item-title > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-page__item-size {
  min-height: 1.5rem;
  height: 1.5rem;
  text-align: right;
  position: relative;
  z-index: 11;
  padding: 0 var(--space-8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.editorial-page__detail {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  z-index: 20;
  width: 100%;
  height: 100%;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

.editorial-page__detail-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.editorial-page__cover {
  width: 100%;
  height: 100%;
}

.editorial-page__index {
  font-weight: 700;
  font-style: normal;
  color: var(--text-color);
  visibility: visible;
  opacity: 1;
}

.editorial-page__info {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--space-16);
  z-index: 21;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
  pointer-events: none;
  visibility: visible;
}

.editorial-page__info > * {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.editorial-page__info-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  visibility: visible;
  opacity: 1;
}

.editorial-page__info-titles,
.editorial-page__info-details,
.editorial-page__info-navigation {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  visibility: visible;
  opacity: 1;
}

.editorial-page__info-tag {
  position: relative;
  display: inline-block;
  text-align: center;
  background-color: var(--sub-color);
  border: var(--clock-line-width) solid var(--color-white);
  padding: var(--space-4) var(--space-8);
  margin-bottom: var(--space-8);
  margin-right: var(--space-8);
  color: var(--main-color);
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
}

.editorial-page__info-tag--title {
  font-weight: 600;
  color: var(--text-color);
}

.dg.main.a {
  z-index: 20;
}

.editorial-page__close-icon {
  stroke: var(--main-color);
  width: 100%;
  height: 100%;
}

.editorial-page__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background-color: var(--sub-color);
  color: var(--main-color);
  cursor: pointer;
  transition: all 0.2s ease;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.editorial-page__nav-btn:hover {
  background-color: var(--main-color);
  color: var(--sub-color);
}

.editorial-page__nav-btn--prev,
.editorial-page__nav-btn--next {
  visibility: visible;
  opacity: 1;
}

.editorial-page__loader {
  border: var(--border-loader-width) solid var(--main-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  border-color: var(--sub-color);
  border-top: var(--border-loader-width) solid var(--main-color);
  z-index: 21;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.book-details-panel .auto {
  pointer-events: none;
}

.text a {
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
}

.text :first-child {
  margin-top: 0;
}

.text :last-child {
  margin-bottom: 0;
}

.text li {
  display: flex;
}

.text li:last-child {
  padding-bottom: 0;
}


.picture {
  position: absolute;
  z-index: 20;
}

@media only screen and (max-width: 768px) {
  canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding-bottom: var(--body-padding-sides);
  }

  .editorial-page__item-credit {
    min-width: unset;
    flex-shrink: unset;
    white-space: normal;
  }

  .editorial-page__item-title {
    min-width: unset;
    flex-shrink: unset;
    width: 100%;
  }

  .editorial-page__item-size {
    min-width: unset;
    flex-shrink: unset;
    white-space: normal;
  }

  .editorial-image-window .editorial-window-titlebar {
    padding: 0.12rem 0.36rem;
  }

  .editorial-image-window .editorial-window-traffic-button {
    width: 0.36rem;
    height: 0.36rem;
  }

  .editorial-image-window .editorial-window-address {
    font-size: 0.46rem;
  }
}


@media print {
  body.editorial-page * {
    display: none;
  }

  body.editorial-page {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
  body.editorial-page {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
}

@page {
  size: A4;
  margin: 0mm;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.z-index-modal {
  z-index: 30;
}

.editorial-floating-images-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 20;
}

.editorial-image-window {
  --editorial-window-shell: rgba(251, 251, 247, 0.94);
  --editorial-window-toolbar: rgba(245, 245, 240, 0.9);
  --editorial-window-address-color: rgba(18, 18, 18, 0.5);
  --editorial-window-stage-bg: #f6f4ef;
  --editorial-window-toolbar-dot: rgba(22, 22, 18, 0.14);
  --editorial-window-radius: 0.72rem;
  --editorial-window-shadow: rgba(10, 10, 10, 0.085);
  --editorial-window-address-bg: rgba(255, 255, 255, 0.74);
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--editorial-window-shell);
  border-radius: var(--editorial-window-radius);
  box-shadow: 0 0.7rem 1.6rem rgba(10, 10, 10, 0.12);
  backdrop-filter: blur(10px) saturate(1.04);
  transition: opacity 0.25s ease, box-shadow 0.22s ease, transform 0.22s ease;
  opacity: 0;
  overflow: hidden;
  cursor: move;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  touch-action: none;
}

.editorial-image-window.visible {
  opacity: 1;
}

.editorial-image-window:hover {
  box-shadow: 0 1rem 2rem rgba(10, 10, 10, 0.11);
  transform: translateY(-0.14rem);
}

.editorial-window-titlebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), var(--editorial-window-toolbar));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  padding: 0.14rem 0.5rem;
  cursor: move;
  touch-action: none;
}

.editorial-window-buttons {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-shrink: 0;
}

.editorial-window-traffic-button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: var(--clock-line-width) solid rgba(0, 0, 0, 0.08);
  padding: 0;
  display: inline-block;
  font-size: 0;
  cursor: default;
  background: transparent;
  box-shadow: 0 0.03rem 0.08rem rgba(255, 255, 255, 0.42) inset;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.editorial-window-traffic-button--close {
  background: #ff5f57;
}

.editorial-window-traffic-button--minimize {
  background: #ffbd2e;
}

.editorial-window-traffic-button--maximize {
  background: #28c840;
}

.editorial-image-window:hover .editorial-window-traffic-button--close {
  cursor: pointer;
}

.editorial-window-traffic-button:hover {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.editorial-window-address {
  flex: 1;
  min-width: 0;
  background: var(--editorial-window-address-bg);
  border: var(--clock-line-width) solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.54rem;
  color: var(--editorial-window-address-color);
  font-size: calc(var(--font-size-ui) * 0.92);
  font-family: var(--font-family-ui);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-window-toolbar-meta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.editorial-window-toolbar-meta span {
  width: 0.15rem;
  height: 0.15rem;
  border-radius: 999px;
  background: var(--editorial-window-toolbar-dot);
}

.editorial-window-hover-open {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  cursor: pointer;
}

.editorial-window-hover-open__icon {
  font-weight: 300;
}

.editorial-window-stage:hover .editorial-window-hover-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.editorial-window-hover-open:hover,
.editorial-window-hover-open:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  color: #000;
}

.editorial-window-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--editorial-window-stage-bg);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  touch-action: none;
}

.editorial-window-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 18, 0.04), rgba(20, 20, 18, 0.22));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.editorial-window-stage:hover::after {
  opacity: 1;
}

.editorial-window-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: move;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.editorial-window-stage:hover .editorial-window-image {
  transform: scale(1.018);
  filter: saturate(0.92) brightness(0.9);
}

.editorial-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.editorial-modal-window {
  --editorial-window-shell: rgba(251, 251, 247, 0.94);
  --editorial-window-toolbar: rgba(245, 245, 240, 0.9);
  --editorial-window-address-color: rgba(18, 18, 18, 0.5);
  --editorial-window-address-bg: rgba(255, 255, 255, 0.74);
  --editorial-window-stage-bg: #f6f4ef;
  --editorial-window-toolbar-dot: rgba(22, 22, 18, 0.14);
  --editorial-window-radius: 0.72rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--editorial-window-shell);
  border-radius: var(--editorial-window-radius);
  box-shadow: 0 1rem 2rem rgba(10, 10, 10, 0.18);
  backdrop-filter: blur(10px) saturate(1.04);
  overflow: hidden;
}

.editorial-modal-titlebar {
  width: 100%;
  cursor: default;
}

.editorial-modal-address {
  color: rgba(18, 18, 18, 0.56);
}

.editorial-modal-window .editorial-window-traffic-button--close {
  cursor: pointer;
}

.editorial-modal-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: var(--editorial-window-stage-bg);
  overflow: hidden;
}

.editorial-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 999px;
  color: rgba(17, 17, 17, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  z-index: 31;
  flex-shrink: 0;
  box-shadow: none;
}

.editorial-modal-arrow:hover {
  background: rgba(255, 255, 255, 0.76);
}

.editorial-modal-arrow:active {
  transform: translateY(-50%) scale(0.97);
}

.editorial-modal-arrow .residency-arrow__icon,
.editorial-modal-arrow svg {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  color: inherit;
}

.editorial-modal-arrow-left {
  left: 0.75rem;
}

.editorial-modal-arrow-right {
  right: 0.75rem;
}

@media only screen and (max-width: 768px) {
  .mini-map {
    top: auto;
    bottom: 0;
    right: 3rem;
  }

  /* 모바일 햄버거 메뉴: 패널은 북/에디토리얼 톤(어두움), 헤더 바는 배경 없음·글자 흰색(header.js site-header--dark-bg) */
  body.editorial-page .site-header__mobile-menu-content {
    background-color: var(--background-color-book-library);
    color: var(--header-text-on-dark);
  }

  body.editorial-page .site-header__mobile-menu-item,
  body.editorial-page .site-header__mobile-menu-item[aria-current="page"],
  body.editorial-page .site-header__mobile-menu-item:last-child {
    color: inherit;
  }

  body.editorial-page.mobile-menu-open .site-header {
    background: none !important;
    background-color: transparent !important;
  }

  body.editorial-page.mobile-menu-open .site-header__mobile-menu-close.withok-close-btn {
    color: var(--header-text-on-dark);
    border-color: var(--header-text-on-dark);
  }
}

.editorial-modal-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
