/* ZUNGK editorial object field, inspired by a sparse photography index. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

body[data-view="zungk"] {
  --happly-banner-height: 0px;
  background:
    radial-gradient(circle at 72% 18%, rgba(183, 14, 24, 0.12), transparent 28vw),
    linear-gradient(180deg, #020202 0%, #080808 54%, #020202 100%) !important;
}

body[data-view="zungk"] .happly-top-banner {
  display: none !important;
}

body[data-view="zungk"] .zungk-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #050505 !important;
}

body.has-shared-top-menu[data-view="zungk"] .zungk-view {
  inset: var(--shared-top-menu-stack-height, 46px) 0 0;
}

body[data-view="zungk"] .shared-top-menu {
  background: #fef019;
}

body.has-shared-top-menu[data-view="zungk"] #app > .gate-menu.app-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.zungk-editorial-board.wf-editorial {
  --wf-paper: #fef019;
  --wf-ink: #11110f;
  --wf-soft-ink: rgba(17, 17, 15, 0.54);
  --wf-hairline: rgba(17, 17, 15, 0.18);
  --wf-accent: #fef019;
  position: relative;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(183, 14, 24, 0.12), transparent 28vw),
    linear-gradient(180deg, #020202 0%, #080808 54%, #020202 100%) !important;
  color: var(--wf-ink);
  font-family: Arial, Helvetica, "Pretendard Variable", Pretendard, sans-serif;
  isolation: isolate;
}

.zungk-editorial-board.wf-editorial::before,
.zungk-editorial-board.wf-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.zungk-editorial-board.wf-editorial::before {
  opacity: 0.28;
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.zungk-editorial-board.wf-editorial::after {
  opacity: 0.11;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.09) 4px);
}

.wf-editorial .wf-board-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  cursor: none;
  touch-action: none;
}

.wf-editorial .wf-board-shell::before,
.wf-editorial .wf-board-shell::after {
  display: none;
  content: none;
}

.wf-editorial .wf-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  will-change: transform;
}

.wf-editorial .wf-tile,
.wf-editorial.is-infinite-ready .wf-tile {
  --wf-hover-scale: 1.05;
  position: absolute;
  z-index: var(--wf-tile-z, 1);
  display: block;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: none;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  animation: none;
  transition:
    transform 300ms cubic-bezier(0.18, 0.82, 0.16, 1),
    filter 300ms cubic-bezier(0.18, 0.82, 0.16, 1);
  will-change: transform;
}

.wf-editorial .wf-tile:hover,
.wf-editorial .wf-tile:focus-visible {
  z-index: 10000;
  border: 0;
  outline: 0;
  background: transparent;
  transform: translate3d(0, -4px, 0) scale(var(--wf-hover-scale));
}

.wf-editorial.is-panning .wf-tile,
.wf-editorial.is-panning .wf-tile:hover,
.wf-editorial.is-panning .wf-tile:focus-visible {
  transform: translate3d(0, 0, 0) scale(1);
  transition-duration: 120ms;
}

.wf-editorial .wf-tile.is-selected {
  z-index: 9000;
  border: 0;
  background: transparent;
}

.wf-editorial .wf-object {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  filter: drop-shadow(0 8px 7px rgba(13, 13, 11, 0.18));
  transform: rotate(var(--object-rotate)) scale(var(--object-scale));
  transform-origin: center;
  transition: filter 430ms cubic-bezier(0.18, 0.82, 0.16, 1);
}

.wf-editorial .wf-object::before {
  display: none;
  content: none;
}

.wf-editorial .wf-object-fit {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wf-editorial .wf-object-fit img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  user-select: none;
  -webkit-user-drag: none;
}

.wf-editorial .wf-tile:hover .wf-object,
.wf-editorial .wf-tile:focus-visible .wf-object,
.wf-editorial .wf-tile.is-selected .wf-object,
.wf-editorial .wf-tile.is-picked .wf-object {
  filter: drop-shadow(0 10px 10px rgba(13, 13, 11, 0.2));
  transform: rotate(var(--object-rotate)) scale(var(--object-scale));
}

.wf-editorial .wf-tile-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 3;
  display: flex;
  box-sizing: border-box;
  width: max-content;
  max-width: min(180px, calc(100vw - 24px));
  padding: 3px 6px;
  align-items: flex-start;
  justify-content: center;
  background: rgba(254, 240, 25, 0.94);
  color: var(--wf-ink);
  font-family: "Pretendard Variable", Pretendard, Inter, Arial, sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--wf-label-shift-x, 0px)));
  transform-origin: center top;
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 260ms cubic-bezier(0.18, 0.82, 0.16, 1);
}

.wf-editorial .wf-tile-label[data-wf-placement="top"] {
  top: auto;
  bottom: calc(100% + 10px);
  transform-origin: center bottom;
}

.wf-editorial .wf-tile-name {
  position: relative;
  z-index: 0;
  display: -webkit-box;
  max-height: 2.4em;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-shadow: none;
  transform: translate3d(0, 3px, 0);
  transition: transform 200ms cubic-bezier(0.18, 0.82, 0.16, 1);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wf-editorial .wf-tile-name::before {
  display: none;
  content: none;
}

.wf-editorial .wf-tile:hover .wf-tile-label,
.wf-editorial .wf-tile:focus-visible .wf-tile-label,
.wf-editorial .wf-tile.is-hovered .wf-tile-label {
  color: #000;
  opacity: 1;
  visibility: visible;
  text-decoration: none;
}

.wf-editorial .wf-tile:hover .wf-tile-name,
.wf-editorial .wf-tile:focus-visible .wf-tile-name,
.wf-editorial .wf-tile.is-hovered .wf-tile-name {
  text-shadow: none;
  transform: translate3d(0, 0, 0);
}

.wf-editorial.is-panning .wf-tile .wf-tile-label {
  opacity: 0;
  visibility: hidden;
}

.wf-editorial-chrome,
.wf-editorial-title,
.wf-editorial-footer,
.wf-editorial-cursor {
  position: fixed;
  z-index: 24;
  pointer-events: none;
}

.wf-editorial-chrome {
  top: 18px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  color: var(--wf-ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wf-editorial .wf-editorial-chrome {
  display: none;
}

.wf-editorial-chrome span:nth-child(2) {
  text-align: center;
}

.wf-editorial-chrome span:last-child {
  padding-right: 72px;
  text-align: right;
}

.wf-editorial-title {
  top: 50%;
  left: 50%;
  display: grid;
  gap: 1px;
  min-width: 148px;
  padding: 12px 16px 11px;
  border: 1px solid var(--wf-ink);
  background: rgba(244, 244, 239, 0.88);
  color: var(--wf-ink);
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
}

.wf-editorial-title strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.wf-editorial-title span {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.wf-editorial-footer {
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 16px;
  color: var(--wf-soft-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wf-editorial-cursor {
  top: 0;
  left: 0;
  z-index: 11000;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wf-ink);
  opacity: 0;
  transform: translate3d(-30px, -30px, 0);
  transition:
    width 180ms ease,
    height 180ms ease,
    margin 180ms ease,
    opacity 120ms ease;
  will-change: transform;
}

.wf-editorial.is-cursor-visible .wf-editorial-cursor {
  opacity: 1;
}

.wf-editorial.has-hover .wf-editorial-cursor {
  width: 14px;
  height: 14px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--wf-accent);
  box-shadow: 0 0 0 1px var(--wf-ink);
}

.wf-editorial.is-panning .wf-editorial-cursor {
  width: 18px;
  height: 18px;
  margin: -4.5px 0 0 -4.5px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--wf-ink);
}

.wf-editorial .wf-detail {
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(244, 244, 239, 0.84);
  backdrop-filter: blur(12px);
}

.wf-editorial .wf-detail[hidden] {
  display: none;
}

.wf-editorial .wf-detail-card {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  grid-template-rows: auto auto minmax(78px, 1fr) auto auto auto;
  column-gap: clamp(30px, 5vw, 70px);
  width: min(980px, calc(100vw - 96px));
  min-height: min(650px, calc(100svh - 64px));
  max-height: calc(100svh - 64px);
  padding: clamp(28px, 4vw, 58px);
  overflow: auto;
  border: 1px solid var(--wf-ink);
  border-radius: 0;
  background: var(--wf-paper);
  color: var(--wf-ink);
  box-shadow: 18px 18px 0 rgba(17, 17, 15, 0.12);
  transform: none;
}

.wf-editorial .wf-detail-visual {
  grid-row: 1 / 7;
  grid-column: 1;
  display: grid;
  min-height: 470px;
  height: auto;
  place-items: center;
  border-right: 1px solid var(--wf-hairline);
}

.wf-editorial .wf-detail-visual .wf-object {
  width: min(430px, 90%);
  height: min(430px, 64vh);
  margin: 0;
  filter: drop-shadow(0 17px 15px rgba(13, 13, 11, 0.18));
  transform: rotate(var(--object-rotate)) scale(var(--object-scale));
}

.wf-editorial .wf-detail-kicker {
  grid-column: 2;
  margin: 42px 0 8px;
  color: var(--wf-soft-ink);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wf-editorial .wf-detail-card h2 {
  grid-column: 2;
  margin: 0 0 22px;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  word-break: keep-all;
}

.wf-editorial .wf-detail-note {
  grid-column: 2;
  min-height: 70px;
  margin: 0 0 22px;
  color: rgba(17, 17, 15, 0.72);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.wf-editorial .wf-download-button,
.wf-editorial .wf-pack-button {
  grid-column: 2;
  width: 100%;
  min-height: 44px;
  margin: 7px 0 0;
  border: 1px solid var(--wf-ink);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wf-editorial .wf-download-button {
  background: var(--wf-ink);
  color: var(--wf-paper);
}

.wf-editorial .wf-pack-button {
  background: transparent;
  color: var(--wf-ink);
}

.wf-editorial .wf-detail-count {
  grid-column: 2;
  margin: 14px 0 0;
  color: var(--wf-soft-ink);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 9px;
  text-align: left;
}

body[data-view="zungk"] .wf-editorial .wf-detail-card .wf-close {
  right: 18px !important;
  top: 18px !important;
  z-index: 4;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--wf-ink) !important;
  border-radius: 0 !important;
  background: var(--wf-ink) !important;
  color: var(--wf-accent) !important;
  box-shadow: 4px 4px 0 var(--wf-accent) !important;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  transform: none;
}

body[data-view="zungk"] .wf-editorial .wf-detail-card .wf-close:hover,
body[data-view="zungk"] .wf-editorial .wf-detail-card .wf-close:focus-visible {
  color: var(--wf-paper) !important;
  box-shadow: 6px 6px 0 var(--wf-accent) !important;
  transform: translate(-1px, -1px);
}

.wf-editorial .wf-arrow {
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid var(--wf-ink);
  border-radius: 0;
  background: var(--wf-paper);
  color: var(--wf-ink);
  font-size: 26px;
  transform: translateY(-50%);
}

.wf-editorial .wf-arrow-left {
  left: 22px;
}

.wf-editorial .wf-arrow-right {
  right: 22px;
}

.wf-editorial .wf-menu-panel {
  border-left: 1px solid var(--wf-ink);
  border-radius: 0;
  background: var(--wf-paper);
  color: var(--wf-ink);
  box-shadow: -18px 0 0 rgba(17, 17, 15, 0.12);
}

.wf-editorial .wf-menu-cta button:first-child,
.wf-editorial .wf-menu-cta button:last-child,
.wf-editorial .wf-menu-panel section button,
.wf-editorial .wf-menu-panel small {
  color: var(--wf-ink);
}

.wf-editorial .wf-menu-cta button:first-child {
  border: 1px solid var(--wf-ink);
  background: transparent;
}

.wf-editorial .wf-menu-cta button:last-child {
  background: var(--wf-ink);
  color: var(--wf-paper);
}

@media (max-width: 760px) {
  .wf-editorial .wf-tile-label {
    max-width: min(160px, calc(100vw - 24px));
    font-size: 10px;
  }

  .wf-editorial-chrome {
    top: 14px;
    left: 14px;
    right: 14px;
    grid-template-columns: 1fr 1fr;
    font-size: 8px;
  }

  .wf-editorial-chrome span:nth-child(2) {
    display: none;
  }

  .wf-editorial-chrome span:last-child {
    padding-right: 50px;
  }

  .wf-editorial-title {
    min-width: 128px;
    padding: 10px 13px 9px;
  }

  .wf-editorial-footer {
    right: 14px;
    bottom: 14px;
  }

  .wf-editorial-footer span:last-child {
    display: none;
  }

  .wf-editorial .wf-detail {
    padding: 14px;
  }

  .wf-editorial .wf-detail-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: calc(100vw - 28px);
    min-height: 0;
    max-height: calc(100svh - 28px);
    padding: 24px 20px 28px;
    box-shadow: 8px 8px 0 rgba(17, 17, 15, 0.12);
  }

  .wf-editorial .wf-detail-visual {
    grid-row: auto;
    grid-column: 1;
    min-height: 290px;
    border-right: 0;
    border-bottom: 1px solid var(--wf-hairline);
  }

  .wf-editorial .wf-detail-visual .wf-object {
    width: min(280px, 82vw);
    height: min(280px, 36vh);
  }

  .wf-editorial .wf-detail-kicker,
  .wf-editorial .wf-detail-card h2,
  .wf-editorial .wf-detail-note,
  .wf-editorial .wf-download-button,
  .wf-editorial .wf-pack-button,
  .wf-editorial .wf-detail-count {
    grid-column: 1;
  }

  .wf-editorial .wf-detail-kicker {
    margin-top: 22px;
  }

  .wf-editorial .wf-detail-card h2 {
    padding-right: 50px;
    font-size: clamp(28px, 9vw, 42px);
  }

  .wf-editorial .wf-detail-note {
    min-height: 0;
  }

  .wf-editorial .wf-arrow {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .wf-editorial .wf-board-shell,
  .wf-editorial .wf-tile {
    cursor: grab;
  }

  .wf-editorial .wf-tile:hover,
  .wf-editorial .wf-tile:focus-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .wf-editorial-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-editorial .wf-tile,
  .wf-editorial .wf-tile-name,
  .wf-editorial .wf-tile-name::before,
  .wf-editorial-cursor {
    transition-duration: 1ms !important;
  }

  .wf-editorial .wf-tile-name {
    transform: none !important;
  }
}
