@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500;600;700;800&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: clip;
}

.section.full-screen {
  height: min(100svh, 960px);
}

.section.full-screen .color-text-primary,
.section.full-screen .subhead.color-secondary-light {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #318b86;
  -webkit-text-stroke-width: 0;
  text-shadow: none;
}

.section.full-screen .color-text-primary {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
}

.section.full-screen .subhead.color-secondary-light {
  max-width: 28rem;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.7;
}

.section.full-screen .layout-left {
  max-width: 44rem;
}

.home-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  background: rgb(24 27 32 / 88%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.home-hero-cta:hover {
  transform: translateY(-2px);
  background: #111318;
}

#Overview > .w-layout-blockcontainer > .padding-8 {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

#Overview .margin-top-6 {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

#Overview .slider {
  padding-bottom: 6rem;
}

.slide-image,
.w-embed-youtubevideo {
  border-radius: 1.25rem;
}

#Overview .slide-image {
  box-shadow: 0 18px 48px rgb(20 24 31 / 10%);
}

.w-embed-youtubevideo {
  overflow: hidden;
}

#art-gallery .fade-in-image {
  width: 100%;
}

.artwork-viewer-trigger {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgb(27 34 44 / 8%);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgb(20 24 31 / 14%), 0 2px 6px rgb(20 24 31 / 6%);
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.artwork-viewer-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.4rem 3rem rgb(20 24 31 / 20%), 0 3px 8px rgb(20 24 31 / 8%);
}

.artwork-viewer-trigger .slide-image {
  display: block;
  width: 100%;
  border-radius: 0.9rem;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease;
}

.artwork-viewer-trigger:hover .slide-image {
  filter: brightness(0.94);
}

.image-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-zoom-trigger:hover .slide-image {
  filter: brightness(0.94);
}

.artwork-credit {
  display: block;
  padding-top: 0.65rem;
  color: #555b64;
  font-size: 0.9rem;
  line-height: 1.4;
}

.artwork-lightbox[hidden] {
  display: none;
}

.artwork-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(12 14 18 / 94%);
}

.artwork-lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.artwork-lightbox-content {
  display: grid;
  max-width: min(100%, 90rem);
  max-height: 100%;
  justify-items: center;
  gap: 0.75rem;
}

.artwork-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 7rem);
  object-fit: contain;
}

.artwork-lightbox-credit {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

body.artwork-lightbox-open {
  overflow: hidden;
}

.section:not(.full-screen) h2 {
  text-wrap: balance;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ecb31b;
  outline-offset: 4px;
}

@media screen and (max-width: 767px) {
  #Overview > .w-layout-blockcontainer > .padding-8 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  #Overview .margin-top-6 {
    margin-top: 2.25rem;
  }

  #Overview .slider {
    padding-bottom: 4.5rem;
  }

  #Overview .mask {
    height: auto !important;
  }

  #Overview .slide {
    height: auto;
    max-height: none;
  }

  #Overview .slide-image {
    height: auto;
    max-height: 56svh;
    object-fit: contain;
  }

  .home-hero-cta {
    margin-top: 1.5rem;
  }

  .section.full-screen .color-text-primary {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
  }

  .section.full-screen .subhead.color-secondary-light {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .section.full-screen .layout-left {
    max-width: min(34rem, calc(100vw - 1rem));
  }
}

@media screen and (max-width: 479px) {
  .section.full-screen,
  .background-image.mobile {
    height: 74svh;
    min-height: 540px;
    max-height: 680px;
  }

  .background-image.mobile {
    object-position: 28% center;
  }

  .section.full-screen .layout-left {
    max-width: calc(100vw - 1.5rem);
  }

  #Overview .slider {
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-hero-cta {
    transition: none;
  }

  .artwork-viewer-trigger,
  .artwork-viewer-trigger .slide-image {
    transition: none;
  }
}
