* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: "Pretendard";
  src: url("../Pretendard-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

body {
    margin: 20px 0;
    overflow: hidden;

    font-family: "Pretendard", sans-serif;

    background-color: #fcfeff;

    background-image:
        linear-gradient(rgba(160, 160, 160, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 160, 160, .22) 1px, transparent 1px),
        linear-gradient(rgba(160, 160, 160, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 160, 160, .08) 1px, transparent 1px);

    background-size:
        120px 120px,
        120px 120px,
        24px 24px,
        24px 24px;
}

.nord {
    width: 50px;
    margin-left: 20px;
}

.guide {
    position: absolute;
    right: 70px;
    top: 17.5px;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 1px dotted dimgray;
    border-radius: 50%;

    background: transparent;

    color: dimgray;
    font-size: 15px;
    line-height: 10pt;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 3000;
}

.guide:hover {
    background: dimgray;
    color: white;
}


/* 이용안내 모달 */

.guide-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(247, 247, 247, 0.95);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease;

    z-index: 10000;
}

.guide-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.guide-modal-inner {
    position: relative;

    width: min(500px, calc(100vw - 40px));

    padding: 35px;

    background: #f7f7f7;
    border-radius: 12px;

    font-size: 12pt;
    line-height: 1.7;

    word-break: keep-all;
}

.guide-modal-inner h2 {
    margin-bottom: 25px;

    font-size: 18px;
    font-weight: 600;
}

.guide-modal-inner p {
    margin-bottom: 20px;
}

.guide-modal-inner p:last-child {
    margin-bottom: 0;
}

.guide-close {
    position: absolute;
    top: 15px;
    right: 18px;

    border: 0;
    background: none;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.lang {
    position: absolute;
    right: 20px;
    font-size: 17pt;
    font-weight: lighter;
/*    color: dimgray;*/
}

.lang > a {
    color: dimgray;
}

footer {
    position: absolute;
    color: darkgray;
    font-family: monospace;
    line-height: 13pt;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

footer.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.footer-left {
    left: 20px;
    bottom: 20px;
}

.footer-right {
    right: 20px;
    bottom: 20px;
    text-align: right;
}

a {
    color: black;
    text-decoration: none;
}

/* ========================================
   HEADER
======================================== */

h1 {
    position: fixed;
    top: 50px;
    left: 25px;
    right: 25px;

    height: 100px;
    z-index: 100;

    font-size: 25pt;
    font-weight: normal;
    text-align: center;
}

h6 {
    position: fixed;
    top: 100px;
    left: 25px;
    right: 25px;

    height: 100px;
    z-index: 100;

    font-size: 13.5pt;
    font-weight: normal;
    text-align: center;
    line-height: 20pt;
}

/* ========================================
   FULL-SCREEN SECTIONS
======================================== */

.sections {
    position: absolute;
    top: 120px;
    left: 0;

    width: 100%;
    height: calc(100vh - 120px);

    overflow-x: hidden;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    position: relative;

    width: 100%;
    height: calc(100vh - 120px);

    padding: 50px 10px 0;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ========================================
   NEXT SECTION BUTTON
======================================== */

.next-section {
    position: fixed;
    left: 50%;
    bottom: 24px;

    width: 44px;
    height: 44px;

    transform: translateX(-50%);
    z-index: 2000;

    border: none;
    background: none;

    color: dimgray;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: transform .3s ease;
}

.next-section.top {
    transform: translateX(-50%) rotate(180deg);
}

/* ========================================
   NINE STAGES — ARC LAYOUT
======================================== */

.nine-stages {
    position: relative;
    display: block;
    overflow: hidden;
}

.nine-stages .stage {
    position: absolute;

    width: 15vw;
    aspect-ratio: 1 / 1;

    margin-left: -6.5vw;
    margin-top: -6.5vw;

    z-index: 1;
}

.nine-stages .stage a {
    display: block;
    width: 100%;
    height: 100%;
}

.nine-stages .stage img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    opacity: 1;
    transform: scale(1);
    filter: none;

    transition:
        transform .35s ease,
        filter .35s ease,
        opacity .35s ease;
}

.nine-stages .stage:nth-child(1) {
    left: 5%;
    top: 63%;
}

.nine-stages .stage:nth-child(2) {
    left: 15%;
    top: 54%;
}

.nine-stages .stage:nth-child(3) {
    left: 28%;
    top: 45%;
}

.nine-stages .stage:nth-child(4) {
    left: 38%;
    top: 38%;
}

.nine-stages .stage:nth-child(5) {
    left: 50%;
    top: 35%;
}

.nine-stages .stage:nth-child(6) {
    left: 60%;
    top: 38%;
}

.nine-stages .stage:nth-child(7) {
    left: 70%;
    top: 45%;
}

.nine-stages .stage:nth-child(8) {
    left: 81%;
    top: 54%;
}

.nine-stages .stage:nth-child(9) {
    left: 92%;
    top: 63%;
}

/* ========================================
   IMAGE HOVER
======================================== */

.nine-stages:has(.stage:hover) .stage img {
    opacity: .3;
    transform: scale(.9);
    filter: blur(4px);
}

.nine-stages .stage:hover {
    z-index: 100;
}

.nine-stages:has(.stage:hover) .stage:hover img {
    opacity: 1;
    transform: scale(2);

    filter:
        drop-shadow(0 8px 20px rgba(180, 180, 180, .8))
        drop-shadow(0 0 40px rgba(220, 220, 220, .9));

    cursor: pointer;
}

/* ========================================
   STAGE TITLE
======================================== */

.nine-stages .stage-title {
    position: fixed;
    left: 50%;
    top: 76%;

    width: 650px;
    max-width: 80vw;

    transform: translate(-50%, -50%);
    z-index: 1500;

    color: black;
    font-size: 13pt;
    line-height: 1.45;

    text-align: center;
    white-space: normal;
    word-break: keep-all;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    text-shadow: none;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        text-shadow .2s ease;
}

.nine-stages .stage-title small {
    font-size: 11pt;
}

.nine-stages .stage:hover .stage-title {
    opacity: 1;
    visibility: visible;

/*    text-shadow:
        0 4px 12px rgba(180, 180, 180, .8),
        0 0 24px rgba(220, 220, 220, .9);*/
}

/* ========================================
   INTRO
======================================== */

.intro {
    display: flex;
    align-items: stretch;

    gap: 55px;
    padding: 50px;

    background: transparent;
}

/* ========================================
   PANELS
======================================== */

.intro-panel,
.timeline-panel,
.gallery-panel {
    position: relative;

    flex: 1;
    min-width: 0;
    height: calc(100vh - 220px);

    padding: 28px;

    background: #f7f7f7;
    border-radius: 12px;

    overflow: hidden;
}

.intro-panel h2,
.timeline-panel h2 {
    position: relative;
    z-index: 30;

    margin: 0 0 22px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* ========================================
   SCROLL AREAS
======================================== */

.intro-scroll,
.timeline-scroll {
    width: 100%;
    height: calc(100% - 48px);

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
}

.intro-scroll {
    padding-right: 12px;

    line-height: 22pt;
    word-break: keep-all;
}

.intro-scroll p {
    margin: 0 0 28px;
}

.timeline-scroll {
    padding-right: 12px;
}

/* ========================================
   BOTTOM GRADIENT
======================================== */

.intro-panel::after,
.timeline-panel::after,
 {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 200px;
    z-index: 20;

    pointer-events: none;

    border-radius: 0 0 12px 12px;

    background: linear-gradient(
        to bottom,
        rgba(247, 247, 247, 0) 0%,
        rgba(247, 247, 247, 0.2) 30%,
        rgba(247, 247, 247, 0.55) 60%,
        rgba(247, 247, 247, 0.85) 82%,
        rgba(247, 247, 247, 1) 100%
    );
}

.gallery-panel {
    position: relative;
}

.gallery-panel::before {
    content: "";

    position: sticky;

    left: 0;
    bottom: 0;

    display: block;

    width: 100%;
    height: 200px;

    margin-top: -200px;

    pointer-events: none;
    z-index: 100;

    background: linear-gradient(
        to bottom,
        rgba(247,247,247,0) 0%,
        rgba(247,247,247,.2) 30%,
        rgba(247,247,247,.55) 60%,
        rgba(247,247,247,.85) 82%,
        rgba(247,247,247,1) 100%
    );
}

.scroll-space {
    width: 100%;
    height: 50px;
}



/* ========================================
   TIMELINE TABLE
======================================== */

.timeline {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

.timeline th:first-child,
.timeline td:first-child {
    width: 130px;
}

.timeline thead th {
    position: sticky;
    top: 0;
    z-index: 40;

    padding: 10px;

    background: #f7f7f7;

    border-bottom: 1px solid #ccc;

    text-align: left;
    vertical-align: top;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.timeline td {
    padding: 10px;

    border-bottom: 1px dotted slategray;

    text-align: left;
    vertical-align: top;
}

.timeline tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   GALLERY
======================================== */

.gallery {
    padding: 50px;
}

.gallery-panel {
    position: relative;

    height: calc(100vh - 220px);

    padding: 28px;

    background: #f7f7f7;
    border-radius: 12px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
}

/* ----------------------------------------
   YEAR
---------------------------------------- */

.gallery-year {
    margin-bottom: 20px;
}

.gallery-year:last-child {
    margin-bottom: 0;
}

.gallery-year h2 {
    margin: 0 0 4px 0;

    font-size: 12pt;
    font-weight: normal;
}

/* ----------------------------------------
   ROW
---------------------------------------- */

.gallery-row {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 0;

    scrollbar-width: none;
}

.gallery-row::-webkit-scrollbar {
    display: none;
}

/* ----------------------------------------
   FIGURE
---------------------------------------- */

.gallery figure {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
}

/* ----------------------------------------
   IMAGE
---------------------------------------- */

.gallery figure img {
    display: block;

    height: 80px;
    width: auto;

    object-fit: contain;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.gallery-row figure:hover img {
    transform: scale(1.03);
}

/* ----------------------------------------
   CAPTION
---------------------------------------- */

.gallery figcaption {
    position: absolute;

    left: 0;
    top: 110px;

    width: 220px;

    opacity: 0;
    pointer-events: none;

    font-size: 10px;
    line-height: 1.4;
    color: #666;

    transition: opacity .2s ease;
}

.gallery figure:hover figcaption {
    opacity: 1;
}

.gallery figcaption small {
    color: dimgray;
}

/* ========================================
   GALLERY MODAL
======================================== */

.gallery-modal {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(247, 247, 247, 0.95);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 9999;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: calc(100vw - 60px);
  max-height: calc(100vh - 60px);
}

.gallery-modal img {
    display: block;
    width: auto;
    height: auto;

    max-width: 50vw;
    max-height: 50vh;

    object-fit: contain;
}

.gallery-modal figcaption {
    display: block;

    width: min(50vw, 700px);
    margin-top: 12px;

    font-size: 11pt;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.gallery-modal-inner {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 30px;
}

.gallery-modal-content {
  margin: 0;
}

.gallery-modal-content img {
  display: block;

  max-width: 60vw;
  max-height: 70vh;

  width: auto;
  height: auto;
}

.gallery-prev,
.gallery-next {
  padding: 0;

  border: 0;
  background: none;

  font-size: 20px;
  line-height: 1;

  color: black;

  cursor: pointer;
}


/* ========================================
   NOTES
======================================== */

.notes {
    background-color: transparent;
}

.notes-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.notes-img {
    width: 45%;
    height: auto;
}


.notes-img-large {
    width: 90%;
    height: auto;
}


/* ========================================
   CREDIT
======================================== */

.credit {
    padding: 50px;
}

.credit-panel {
    width: 100%;
    height: calc(100vh - 220px);

    padding: 28px;

    background: #f7f7f7;
    border-radius: 12px;

    overflow-y: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 50px;

    align-content: start;
}

.credit-group h2,
.credit-group h3 {
    margin: 0 0 8px;

    font-size: 12pt;
    font-weight: normal;
}

.credit-group p {
    margin: 0;

    font-size: 11pt;
    line-height: 1.6;
}

.credit-group small {
    font-size: 9pt;
}

.credit-footer {
    grid-column: 1 / -1;

    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #ccc;

    font-size: 10pt;
    line-height: 1.6;
}

.credit-copyright {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 15px;
}

.credit-logo {
    width: 100px;
    height: auto;
}

.credit-notice {
    max-width: 800px;
    margin-bottom: 10px;
}

.credit-panel a {
    text-decoration: underline;
}


