@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-SemiBold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: "Pretendard";
    src: url("fonts/Pretendard-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Pretendard";
    src: url("fonts/Pretendard-Light.ttf") format("truetype");
    font-weight: 300;
}

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #f2f2f2;
}

:root {
  --pc-bg-size: 100% auto;
  --pc-bg-x: center;
  --pc-bg-y: 0px;
}

html {
  background: #000;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #f2f2f2;
}

.site-bg {
  position: fixed;
  inset: 0;
  background-image: url("images/background/background-02.jpg");
  background-size: var(--pc-bg-size);
  background-position: var(--pc-bg-x) var(--pc-bg-y);
  background-repeat: no-repeat;
  background-color: #000;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.site-dim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1;
  pointer-events: none;
  transition: all .25s ease;
}

body:not(.home-page) .site-dim {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.sidebar {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 220px;
  background: transparent;
  padding: 0;
  z-index: 20;
}

.sidebar h1 {
  font-size: 13px;
  margin-bottom: 0px;
  font-weight: normal;
  color: #f2f2f2;
}

.sidebar a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin: 4px 0;
  opacity: 0.88;
  line-height: 1.35 !important;
}

.sidebar a.active {
  opacity: 1;
  color: #ffd700;
  font-weight: 600;
}


.sidebar-instagram {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 16px;
  text-decoration: none;
}

.sidebar-instagram:hover {
  opacity: 0.7;
}

.label {
  display: inline-block;
  background: rgba(216, 198, 100, 0.95);
  color: #111;
  margin: 18px 0 6px;
  padding: 1px 4px;
}

.sidebar .label {
  margin-top: 34px !important;
  margin-bottom: 6px !important;
}
.sidebar {
  border-right: none;
}

.sidebar h1 a {
  font-size: 13px;
  color: #f2f2f2;
  text-decoration: none;
}

.sidebar .label {
  display: inline-block;
  width: 180px;
  background: none;
  color: #f2f2f2;
  padding: 0;
  margin-top: 34px !important;
  margin-bottom: 8px !important;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 5px;
}

.sidebar a:not(.sidebar-instagram) {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin: 4px 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.sidebar a:not(.sidebar-instagram):hover {
  color: #d98b2b;
  opacity: 1;
}

.sidebar a.active {
  color: #d9c664 !important;
  font-weight: 600;
}

main {
  position: relative;
  z-index: 2;
  margin-left: calc(260px + ((100vw - 260px - 1100px) / 2));
  padding: 32px;
  padding-bottom: 160px;
  max-width: 1100px;
  background: transparent;
}

body.home-page main {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Gallery common */
.gallery-page {
  width: 100%;
}

.gallery-featured {
  width: 100%;
  margin-bottom: 12px;
}

.gallery-featured-image {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-empty {
  color: rgba(255, 255, 255, 0.65);
}

/* All Fragment Gallery titles */
.fragment-page .gallery-korean-title,
.fragment-page .gallery-english-title {
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  margin: 0 0 15px;
  color: #f2f2f2;
  margin-top: 40px;
}

.fragment-page .gallery-korean-title {
  text-transform: none;
  letter-spacing: 0.08em;
}

.fragment-page .gallery-english-title {
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-family: "EB Garamond", Times, serif;
  font-size: 19px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.fragment-page:not(.has-korean) .gallery-english-title {
  margin-top: 60px;
}

.fragment-page .gallery-intro {
  max-width: 980px;
  margin-bottom: 0;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.72;
}

.fragment-page .gallery-english-intro {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-family: "EB Garamond", serif;
  margin-bottom: 50px;
  font-family: "EB Garamond", serif;
}

.fragment-page .gallery-korean-intro {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-family: "Pretendard", sans-serif;
}
.fragment-page .gallery-intro p {
  margin: 0 0 10px 0;
}

/* Korean font for gallery Korean title and Korean text */
.fragment-page .gallery-korean-title,
.fragment-page .gallery-korean-intro {
  font-family: "Pretendard", sans-serif;
}

.fragment-page .gallery-korean-title {
  font-weight: 700;
}

/* Spacing helpers */
.gallery-space {
  height: 20px;
  margin: 0 !important;
}

.gallery-language-gap {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 30px 0;
}

/* Thumbnail grid */
.japan-thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.japan-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.thumb-frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.japan-thumb:hover .thumb-frame img {
  opacity: 0.82;
}

/* About */
.about-page {
  display: grid;
  grid-template-columns: minmax(260px, 44%) 1fr;
  gap: 56px;
  align-items: start;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  font-size: 13px;
  line-height: 1.55;
}

.about-content h2 {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 48px;
}

.about-section-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 22px;
  margin-bottom: 4px;
}

.about-columns a,
.about-columns a:visited {
  color: #f2f2f2;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
}

.about-columns a:hover {
  color: #ffffff;
  opacity: 0.75;
}

.about-columns p {
  margin: 0 0 3px 0;
  line-height: 1.15;
}
.about-english {
  font-size: 16px;
  line-height: 1.3;
  font-family: "EB Garamond", Times, serif;
}

.about-korean {
  font-size: 14px;
  line-height: 1.1;
  font-family: "Pretendard", sans-serif;
}


/* Footer */
.global-footer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  z-index: 9999;
  background: none;
}

.footer-right {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.global-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.global-footer a:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.global-footer i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  width: 970px;
  height: 700px;
  background: #f4f1eb;
  padding: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100% - 34px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-button {
  position: fixed;
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: white;
  font-size: 34px;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  position: fixed;
  right: 28px;
  top: 22px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10000;
}

/* Responsive */
@media (max-width: 1000px) {
  .japan-thumb-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-page {
    grid-template-columns: 1fr;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

}
/* Book & Zines */

.project-page {
  width: 100%;
}

.project-cover {
  width: 100%;
  margin: 40px 0;
}

.project-cover-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.project-korean-title {
  font-size: 1.2rem;
  margin: 0 0 0;
  color: #f2f2f2;
  margin-top: 40px;
  text-transform: none;
  letter-spacing: 0.08em;
}

.project-english-title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #f2f2f2;
  text-transform: none;
  letter-spacing: normal;
  font-family: "EB Garamond", serif;
}

.project-korean-intro {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

.project-english-intro {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 50px;
}

.project-intro {
  max-width: 980px;
  margin-bottom: 0;
  color: #f2f2f2;
}

.project-intro p {
  margin: 0 0 10px 0;
}
.project-cover-placeholder {
  height: 360px;
  max-width: 620px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
}
.gallery-coming-soon {
  height: 360px;
  max-width: 620px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
  font-family: "EB Garamond", serif;
}
.coming-soon-page {
  min-height: 55vh;
  display: flex; 
  align-items: center;
  justify-content: center;
  font-family: "EB Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.55);
}

/* Mobile only */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 600px) {
  .site-bg,
  .site-dim {
    display: none !important;
  }

  :root {
    --mobile-bg-size: 900px;
    --mobile-bg-x: 0%;
    --mobile-bg-y: 0px;
  }

  html,
  body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #000 !important;
  }

  body {
    background-image: none !important;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("images/background/background-02.jpg");
    background-size: var(--mobile-bg-size) auto;
    background-position: var(--mobile-bg-x) var(--mobile-bg-y);
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    z-index: 1;
    pointer-events: none;
  }

  .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: calc(100vw - 64px) !important;
    margin: 42px 32px 0 32px !important;
    padding: 0 !important;
    z-index: 99999 !important;
    background: transparent !important;
  }

  .sidebar h1 {
    margin: 0 !important;
  }

  .sidebar h1 a {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: #f2f2f2 !important;
  }

  .mobile-menu-toggle {
    display: inline-block !important;
    position: relative !important;
    z-index: 100000 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #f2f2f2 !important;
    font-family: "EB Garamond", serif !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-decoration: underline !important;
    cursor: pointer;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar-menu {
    display: none;
    position: relative !important;
    z-index: 100000 !important;
    width: 260px !important;
    max-width: calc(100vw - 40px) !important;
    margin-top: 12px;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    pointer-events: auto !important;
  }

  .sidebar.is-open .sidebar-menu {
    display: block;
  }

  .sidebar .label {
    display: block !important;
    width: 140px !important;
    max-width: 320px !important;
    margin: 26px 0 8px 0 !important;
    padding: 0 0 4px 0 !important;
    background: transparent !important;
    color: #f2f2f2 !important;
    border-bottom: 1px solid rgba(255,255,255,0.45) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
  }

  .sidebar a,
  .sidebar a:not(.sidebar-instagram),
  .sidebar a.active {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-weight: 400 !important;
  }

  .sidebar a.active {
    color: #d9c664 !important;
  }

  .sidebar-instagram {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 8px 0 18px 0 !important;
  }

  main {
    position: relative !important;
    z-index: 2 !important;
    margin-left: 0 !important;
    padding: 70px 24px 80px !important;
    max-width: none !important;
    width: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sidebar.is-open + main {
    margin-top: 36px !important;
  }

  body:not(.home-page) main {
    margin-top: 32px !important;
    background: rgba(0,0,0,0.42) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    border-radius: 16px !important;
  }

  .fragment-page .gallery-korean-title,
  .fragment-page .gallery-english-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin: 22px 0 14px 0 !important;
  }

  .fragment-page .gallery-korean-intro {
    font-size: 14px !important;
    line-height: 1.55 !important;
    letter-spacing: -0.01em !important;
  }

  .fragment-page .gallery-english-intro {
    font-size: 16px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
  }

  .fragment-page .gallery-intro p {
    margin: 0 0 10px 0 !important;
  }

  .lightbox {
    background: rgba(0,0,0,0.92) !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

  .lightbox-figure {
    width: 120vw !important;
    height: 100vw !important;
    max-height: none !important;
    padding: 15px !important;
    background: #f4f1eb !important;
}

  .lightbox-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .lightbox-button {
    display: none !important;
}

  .lightbox-prev {
    left: 2px !important;
  }

  .lightbox-next {
    right: 2px !important;
  }

  .lightbox-close {
    right: 10px !important;
    top: 10px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 26px !important;
  }
}

img {
  -webkit-user-drag: none;
  user-select: none;
}
@media (min-width: 601px) {
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
body.lightbox-locked {
  overflow: hidden !important;
  touch-action: none !important;
}

body.lightbox-locked .lightbox {
  touch-action: pan-x !important;
  overscroll-behavior: contain !important;
}
@media (min-width: 601px) {
  .fragment-page {
    --text-box-width: 800px;
  }

  .fragment-page .gallery-korean-title,
  .fragment-page .gallery-korean-intro,
  .fragment-page .gallery-english-title,
  .fragment-page .gallery-english-intro {
    width: var(--text-box-width);
    max-width: 100%;
  }
}
/* About - PC */
@media (min-width: 601px) {
  .about-english {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
  }

  .about-korean {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 6px 0 !important;
  }
}

/* About - Mobile */
@media (max-width: 600px) {
  .about-english {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
  }

  .about-korean {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 8px 0 !important;
  }
}