:root {
  --black: #000;
  --white: #fff;
  --font-main: 'Noto Sans KR', sans-serif;
  --title-size: clamp(2.7rem, 8vw, 4rem);
}

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

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--white);
  background-color: var(--black);}

main {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

@media (max-width: 768px) {
  main {
    min-height: 100dvh;
  }
}

  .snap-container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
   overscroll-behavior-y: contain;
  }
  
  .section {
    height: calc(var(--vh, 1vh) * 100);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em;
    box-sizing: border-box;
    text-align: center;
  }

  @media (max-width: 768px) {
  .section {
    height: 100dvh;
  }
}
  
  .info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mobile-br {
    display: none;
  }
  
  @media (max-width: 768px) {
    .mobile-br {
      display: inline;
    }
  
    .mobile-br::after {
      content: "\A";
      white-space: pre;
    }
  }

.lang-switch {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 9999;
}

.lang-icon {
  width: 18px;
  height: 18px;
  filter: grayscale(100%) brightness(200%);
  flex-shrink: 0;
  margin-top: 4;
}

.lang-link {
  color: white;
  text-decoration: none;
  padding: 0 0.4rem;
  white-space: nowrap;
}
.lang-link:hover {
  background: rgba(255 255 255 / 0.1);
}

.separator {
  color: white;
  user-select: none;
  padding: 0 0.3rem;
}

@media (max-width: 768px) {
  .lang-switch {
    top: 4rem;
    right: 1rem;
  }
}

.title-section {
  position: relative;
  min-height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}

.title-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-align: center;
}

.title-content.active {
  display: flex;
}

.title-section h1 {
  font-size: calc(1.3 * var(--title-size));
  margin-bottom: 1px;
}

.title-section .subtitle {
  font-size: calc(var(--title-size) * 0.35) !important;
  font-weight: 300;
  color: white;
  margin-top: 1rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 4.5rem;
}

.title-section .subtitle p {
  margin: 0;
  padding: 0;
}

.title-section .info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 0.3rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
  white-space: normal;
}


.title-section .department {
  font-size: calc(var(--title-size) * 0.475) !important;
  margin-bottom: 40px;
  font-weight: bold;
}

.title-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('images/title-image.jpg') center/cover no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

h1,
.subtitle p,
.department {
  white-space: nowrap;
  overflow: hidden;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.5rem;
  margin-bottom: 1rem;
}

.date-location {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  justify-content: center;
  width: 100%;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  white-space: nowrap;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 1.8;
}

.department {
  font-size: clamp(1rem, 2.2vw, 1.9rem);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  font-size: 1.8rem;
  animation: floatArrow 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatArrow {
  0%   { transform: translateX(-50%) translateY(0); }
  50%  { transform: translateX(-50%) translateY(10px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 4.5rem; font-size: 2.7rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 4.5rem; font-size: 2.5rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 4.5rem; font-size: 3.3rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.31) !important; }
  .icon-text { margin-top: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 8rem; }
}

@media (max-width: 700px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 1.5rem; font-size: 2.4rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 1.5rem; font-size: 2.2rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 1.5rem; font-size: 3rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.31) !important; }
  .icon-text { margin-top: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 6.5rem; }
}

@media (max-width: 560px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 1.5rem; font-size: 2.1rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 1.5rem; font-size: 1.9rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 1.5rem; font-size: 2.5rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.31) !important; }
  .icon-text { margin-top: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 6.5rem; }
}

@media (max-width: 480px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 4.5rem; font-size: 2.1rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 4.5rem; font-size: 2.1rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 4.5rem; font-size: 3rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.3) !important; }
  .icon-text { margin-top: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 4rem; }
}

@media (max-width: 400px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 5rem; font-size: 1.9rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 5rem; font-size: 1.9rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 5rem; font-size: 2.6rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.26) !important; }
  .icon-text { margin-top: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 4rem; }
}

@media (max-width: 360px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 5rem; font-size: 1.7rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 5rem; font-size: 1.7rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 5rem; font-size: 2.3rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.24) !important; }
  .icon-text { margin-top: 0; font-size: 0.86rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 4.5rem; }
}

@media (max-width: 320px) {
  .title-section { height: calc(100vh - 3rem); }
  html:lang(en) .title-section h1 { margin-top: 5rem; font-size: 1.5rem !important; }
  html:lang(ja) .title-section h1 { margin-top: 5rem; font-size: 1.5rem !important; }
  html:lang(ko) .title-section h1 { margin-top: 5rem; font-size: 2.1rem !important; }
  .subtitle { margin-bottom: 1.5rem; }
  .subtitle p { font-size: calc(var(--title-size, 2.5rem) * 0.24) !important; }
  .icon-text { margin-top: 0; font-size: 0.86rem; display: flex; align-items: center; gap: 0.5rem; }
  .date-location .icon-text:first-child { margin-top: -3rem; }
  .date-location { flex-direction: column; margin-top: 1.5rem; }
  .date-location .icon-text + .icon-text { margin-top: -0.5rem; }
  .date-location + .date-location { border-top: 1px solid #ccc; padding-top: 5rem; margin-top: 0rem; }
  .scroll-down-indicator { bottom: 4.5rem; }
}

.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: black;
  padding: 0;
}

.marquee-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 70s linear infinite;
  will-change: transform;
}

.marquee-text {
  font-size: 1.5rem;
  padding: 0 75px;
  display: inline-block;
  height: 100%;
  line-height: 3rem;
  white-space: nowrap;
}

.white-on-black {
  background-color: black;
  color: white;
}

.black-on-white {
  background-color: white;
  color: black;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
    .marquee-line {
    top: 0;
    bottom: auto;
  }
  .marquee-text {
    font-size: 1.2rem;
    padding: 0 40px;
  }
  .marquee-line {
    height: 3rem;
  }
}

.prologue-section {
  position: relative;
  overflow: hidden;
  background-color: black;
  color: #ddd;
  font-size: 1.3rem;
  line-height: 1.8;
  padding: 2rem;
  text-align: center;
}

.prologue-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/prologue-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.prologue-section p,
.prologue-section .highlighted {
  position: relative;
  z-index: 1;
}

.highlighted {
  font-size: 1.6rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .prologue-section p { font-size: 0.95rem; line-height: 1.7; }
  .prologue-section .highlighted { font-size: 1.3rem; line-height: 1.5; }
}

@media (max-width: 700px) {
  .prologue-section p { font-size: 0.87rem; line-height: 1.7; }
  .prologue-section .highlighted { font-size: 1.2rem; line-height: 1.5; }
}

@media (max-width: 480px) {
  .prologue-section p { font-size: 0.75rem; line-height: 1.7; }
  .prologue-section .highlighted { font-size: 1rem; line-height: 1.5; }
}

@media (max-width: 360px) {
  .prologue-section p { font-size: 0.65rem; line-height: 1.7; }
  .prologue-section .highlighted { font-size: 0.9rem; line-height: 1.5; }
}

@media (max-width: 320px) {
  .prologue-section p { font-size: 0.57rem; line-height: 1.7; }
  .prologue-section .highlighted { font-size: 0.76rem; line-height: 1.5; }
}

.photo-gallery {
  position: relative;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav.left {
  left: 26%;
}
.nav.right {
  right: 26%;
}

.photo-gallery:hover .nav {
  opacity: 1;
}

.photo-slide {
  position: relative;
  text-align: center;
}

.photo-slide img {
  border: none !important;
  transition: opacity 0.6s ease;
  opacity: 1;
  max-height: 70vh;
  filter: grayscale(100%);
}

.photo-slide img.fade-out {
  opacity: 0;
}

.caption h2 {
  margin: 0.5em 0 0;
  font-size: 1.5em;
  font-weight: bold;
}

.caption p {
  font-size: 1em;
  font-weight: normal;
  opacity: 0.8;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}
.left { left: 2%; }
.right { right: 2%; }

.thumbnails {
  position: absolute;
  bottom: 4em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5em;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5em 1em 16px 1em;
  width: 90%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: initial;
  scroll-padding: 0 1em;
  scrollbar-width: none;
}
.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails img {
  height: 50px;
  opacity: 0.6;
  cursor: pointer;
  border: none !important;
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.thumbnails img.active {
  border: none !important;
  opacity: 1;
}

@media (max-width: 768px) {
  .photo-slide img { width: 100%; height: auto; object-fit: cover; }
  .thumbnails { bottom: 8.5em; gap: 0.4em; padding: 0.4em; }
  .nav.left { left: 10%; }
  .nav.right { right: 10%; }
}

@media (max-width: 700px) {
  .photo-slide img { width: 100%; height: auto; object-fit: cover; }
  .thumbnails { bottom: 8.5em; gap: 0.4em; padding: 0.4em; }
  .nav.left { left: 10%; }
  .nav.right { right: 10%; }
}

@media (max-width: 480px) {
  .photo-slide img { width: 100%; height: auto; object-fit: cover; }
  .thumbnails { bottom: 8em; gap: 0.4em; padding: 0.4em; }
  .nav.left { left: 10%; }
  .nav.right { right: 10%; }
}

@media (max-width: 360px) {
  .photo-slide img { width: 100%; height: auto; object-fit: cover; }
  .thumbnails { bottom: 8em; gap: 0.4em; padding: 0.4em; }
  .nav.left { left: 10%; }
  .nav.right { right: 10%; }
}

  .video-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #000;
    color: white;
    text-align: center;
  }
  
  .video-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
  }
  
  video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .video-caption p {
    margin: 1rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
  }

  @media (max-width: 560px) {
    .video-caption p{ font-size: 0.85rem; }
  }

  @media (max-width: 480px) {
    .video-caption p{ font-size: 0.75rem; }
  }

  @media (max-width: 360px) {
    .video-caption p{ font-size: 0.65rem; }
  }

.outro-section {
  position: relative;
  overflow: hidden;
  background-color: black;
  color: #ddd;
  font-size: 2rem;
  line-height: 1.6;
  padding: 2rem;
  text-align: center;
}

.outro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/outro-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.outro-section p {
  position: relative;
  z-index: 1;
  font-weight: bold;
}

@media (max-width: 768px) {
  .outro-section p{ font-size: 1.65rem; }
}

@media (max-width: 700px) {
  .outro-section p{ font-size: 1.55rem; }
}

@media (max-width: 560px) {
  .outro-section p{ font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .outro-section p{ font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .outro-section p{ font-size: 0.7rem; }
}

@media (max-width: 320px) {
  .outro-section p{ font-size: 0.63rem; }
}