@font-face {
  font-family: 'Dosis';
  src: url('../fonts/dosis.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Smiley Sans Chinese';
  src: url('../fonts/smiley-sans.woff2') format('woff2'),
       url('../fonts/smiley-sans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-2EFF, U+2F00-2FDF, U+2FF0-303F,
                 U+3100-312F, U+31A0-31BF, U+31C0-31EF, U+3200-33FF,
                 U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF,
                 U+FE10-FE1F, U+FE30-FE4F, U+FF01-FF60, U+FFE0-FFE6,
                 U+20000-2FA1F, U+30000-323AF;
}
button, input, select, textarea {
  font-family: inherit;
}
.chinese-text {
  opacity: 0.8;
  letter-spacing: var(--chinese-letter-spacing, 2px);
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}
body {
  background: #fff;
  font-family: 'Smiley Sans Chinese', 'Dosis', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #282828;
  min-height: 100vh;
}
a { text-decoration: none; color: #282828; }
ul, li { list-style: none; }
header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,.95); z-index: 100;
  padding: clamp(50px,6vh,70px) 0 clamp(20px,2.5vh,30px);
}
.header-inner {
  max-width: 100%;
  padding: 0 clamp(30px,8vw,100px) 0 clamp(50px,10vw,130px);
  display: flex; justify-content: space-between; align-items: center;
}
h1 {
  font-size: clamp(20px,2vw,25px); font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase; color: #282828;
}
#hamburger { display: none; }
.hamburger { display: none; position: relative; width: 22px; height: 22px; cursor: pointer; z-index: 200; }
.hamburger .rotate-wrapper {
  position: absolute; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hamburger .line, .hamburger .rotate-wrapper::before, .hamburger .rotate-wrapper::after {
  position: absolute; width: 18px; height: 1.5px; background: #282828;
  transition: transform .3s ease;
}
.hamburger .line { transition: transform .3s ease, opacity .3s ease; }
.hamburger .rotate-wrapper::before { content: ''; transform: translateY(-6px); }
.hamburger .rotate-wrapper::after { content: ''; transform: translateY(6px); }
#hamburger:checked ~ .header-inner .hamburger .line { opacity: 0; }
#hamburger:checked ~ .header-inner .hamburger .rotate-wrapper::before { transform: rotate(45deg); }
#hamburger:checked ~ .header-inner .hamburger .rotate-wrapper::after { transform: rotate(-45deg); }
.hamburger label { position: absolute; inset: 0; cursor: pointer; }
nav { position: static; width: auto; background: none; padding: 0; box-shadow: none; }
.menu {
  display: flex; flex-direction: row; align-items: center;
  gap: clamp(18px,2vw,30px); font-size: 15px; font-weight: 300;
  letter-spacing: .5px; margin: 0 20px 0 0; padding: 0;
}
.menu > li { position: relative; width: auto; }
.menu > li:not(:first-child) { margin-left: 60px; }
.menu > li > a {
  color: #282828; text-decoration: none; transition: opacity .3s ease;
  display: inline-block; padding: 0;
}
@media (max-width: 991.98px) {
  .hamburger { display: flex; }
  .header-inner nav {
    position: fixed; top: 0; right: -300px; bottom: 0; width: 300px;
    background: rgba(248,248,248,.98); padding-top: clamp(100px,14vh,130px);
    transition: right .4s ease-in-out; z-index: 150;
    box-shadow: -2px 0 10px rgba(0,0,0,.1);
  }
  #hamburger:checked ~ .header-inner nav { right: 0; }
  .menu {
    flex-direction: column; align-items: flex-start;
    gap: clamp(20px,3vh,30px); padding: 0 clamp(30px,5vw,40px);
  }
  .menu > li:nth-child(n) { width: 100%; margin: 0 20px; }
  .menu > li:first-child { margin-top: 65px; }
  .menu > li > a { display: block; padding: 10px 0; }
}
@media (min-width: 992px) {
  .menu a { position: relative; margin-right: 20px; }
  .menu a::before {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: -3px;
    height: 2px; transition: .25s linear;
  }
  .menu a:hover::before { background: pink; left: 0; right: 0; }
}
@keyframes slide-up {
  from { transform: scale(.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.pge-wrapper {
  background: #fff;
  display: flow-root;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 100px) clamp(40px, 8vh, 100px);
}
.img-gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 180px -5px 120px;
  margin-top: min(180px, calc(clamp(100px, 14vh, 130px) + max(0px, calc((100vw - 600px) * 0.18)) - 5px));
  align-items: center;
  justify-content: center;
}
.img-gallery a {
  display: block;
  text-decoration: none;
}
.img-wrapper {
  margin: 0;
  padding: 5px;
  position: relative;
  width: 100%;
  animation: slide-up 0.6s ease-out;
}
.img-wrapper img {
  width: 100%;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.img-gallery figcaption {
  color: transparent;
  text-transform: uppercase;
  font-size: 100%;
  font-weight: 400;
  letter-spacing: 1.2px;
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease-in-out;
  padding: 10px;
  cursor: pointer;
}
.img-wrapper figcaption:hover {
  background-color: rgba(255, 255, 255, 0.55);
  color: #282828;
}
@media (max-width: 767.98px) {
  .gallery--grid .img-wrapper { 
    width: 100%; 
    max-width: 100%;
  }
  .img-wrapper { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .img-wrapper img { 
    width: 100%; 
  }
  .img-desc { 
    margin-left: 0; 
    margin-top: 12px; 
  }
}
@media (min-width: 768px) {
  .gallery--grid .img-wrapper { 
    width: 50%;
    max-width: 50%;
  }
}


.site-footer {
  box-sizing: border-box;
  padding: 0 clamp(40px, 11vw, 150px) clamp(24px, 4vh, 40px);
  color: #888;
  background: #fff;
  font: 400 12px/1.6 'Dosis', 'Smiley Sans Chinese', sans-serif;
  letter-spacing: 0.3px;
  text-align: left;
}
.site-footer p {
  margin: 0;
}
.pge-wrapper + .site-footer {
  padding-inline: clamp(20px, 5vw, 100px);
}
.site-footer--soft {
  background: #f8f7f5;
}
/* Keep the full-screen studies and their controls in their existing layout. */
.site-footer--artwork,
.site-footer--interactive {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(40px, 11vw, 150px);
  background: transparent;
  pointer-events: none;
}
.site-footer--artwork {
  bottom: 12px;
}
.site-footer--interactive {
  bottom: calc(var(--pager-strip-height, 40px) + 12px);
  z-index: 25;
}


/* Keep intrinsic proportions when image dimensions reserve layout space. */
.img-wrapper img { height: auto; }
