:root {
  --ink: #f2f2ee;
  --muted: #7d7d78;
  --line: #222220;
  --paper: #000000;
  --topbar: 116px;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); transition: background-color 620ms ease; }

body {
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
}

body.lightbox-open { overflow: hidden; }
body.is-home { background: #000; overflow: hidden; }
body.is-home .topbar { display: none; }
body.is-home .content { margin-top: 0; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: var(--topbar);
  inset: 0 0 auto;
  min-height: 0;
  padding: 22px clamp(28px, 3vw, 48px);
  position: fixed;
  transition: background-color 620ms ease, border-color 620ms ease;
  width: 100%;
  z-index: 20;
}

.identity { flex: 0 0 clamp(138px, 14vw, 210px); }

.identity-link {
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
}
.identity-link strong { font-size: 19px; font-weight: 500; }
.identity-link span { color: var(--muted); font-size: 10px; margin-top: 7px; }
.menu-toggle { display: none; }

.project-nav { align-items: center; display: flex; gap: clamp(28px, 4vw, 64px); margin: 0; }
.nav-block { align-items: center; display: flex; gap: clamp(12px, 1.5vw, 24px); position: relative; }
.nav-block + .nav-block { margin-top: 0; }
.nav-label { color: #555551; font-size: 8px; left: 0; margin: 0; position: absolute; top: -20px; white-space: nowrap; }
.nav-link {
  align-items: baseline;
  background: transparent;
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 6px 0;
  text-align: left;
  white-space: nowrap;
  width: auto;
}
.nav-link span { color: #aaa9a4; font-size: 12px; transition: color 160ms ease; }
.nav-link small { color: #4f4f4c; font-size: 7px; }
.nav-link:hover span, .nav-link.is-current span { color: var(--ink); }
.nav-link.is-current::before { content: "—"; font-size: 9px; margin-right: 2px; }
.import-link span:first-child { color: var(--ink); font-size: 15px; }
.admin-login-link span { color: #c0c0ba; }
.admin-logout-link span { color: #777771; }
.admin-status {
  bottom: -19px;
  color: #555551;
  font-size: 6px;
  left: 0;
  max-width: 170px;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-footer {
  color: #555551;
  display: flex;
  flex-direction: column;
  font-size: 7px;
  gap: 8px;
  line-height: 1.4;
  margin-left: auto;
  text-align: right;
}
.topbar-footer a:hover { color: var(--ink); }

.content {
  margin-top: var(--topbar);
  min-height: 100vh;
  width: 100%;
}

.home-panel {
  background: #000;
  color: #c8c8c2;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.home-video-frame {
  --home-video-ratio: 1.77778;
  aspect-ratio: var(--home-video-ratio);
  background: #000;
  border-radius: clamp(10px, 1.4vw, 20px);
  left: auto;
  mask-image: linear-gradient(#000, #000);
  max-height: 72svh;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: clamp(34px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 900ms ease;
  width: min(54vw, calc(72svh * var(--home-video-ratio)));
  -webkit-mask-image: linear-gradient(#000, #000);
  z-index: 0;
}
.home-video-frame::after {
  background:
    linear-gradient(to right, rgba(0, 0, 0, .3), transparent 7%, transparent 93%, rgba(0, 0, 0, .3)),
    linear-gradient(to bottom, rgba(0, 0, 0, .24), transparent 8%, transparent 92%, rgba(0, 0, 0, .28));
  border-radius: inherit;
  box-shadow: inset 0 0 clamp(18px, 2.2vw, 34px) rgba(0, 0, 0, .24);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.home-video-frame.is-ready { opacity: .82; }
.home-video {
  display: block;
  filter: saturate(.9) contrast(1.035);
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.home-video-shade {
  background: rgba(0, 0, 0, .1);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.home-language, .home-stage, .home-footer, .home-import, .home-admin-login { z-index: 2; }
.home-import {
  align-items: center;
  background: transparent;
  color: #85857f;
  cursor: pointer;
  display: flex;
  font-size: 9px;
  font-weight: 300;
  gap: 7px;
  left: clamp(28px, 5vw, 72px);
  padding: 4px 0;
  position: absolute;
  top: clamp(28px, 5vh, 54px);
  transition: color 180ms ease;
}
.home-import[hidden] { display: none; }
.home-import span:first-child { font-size: 15px; font-weight: 200; line-height: .7; }
.home-import:hover, .home-import:focus-visible { color: #c0c0ba; }
.home-import:focus-visible { outline: 1px solid #777771; outline-offset: 5px; }
.home-admin-login {
  background: transparent;
  color: #575752;
  cursor: pointer;
  display: flex;
  font-size: 7px;
  gap: 7px;
  left: clamp(28px, 5vw, 72px);
  padding: 0;
  position: absolute;
  top: clamp(28px, 5vh, 54px);
}
.home-admin-login small { color: #3f3f3b; font-size: 6px; }
.home-admin-login:hover, .home-admin-login:focus-visible { color: #aaa9a4; }
.home-admin-login:focus-visible { outline: 1px solid #777771; outline-offset: 5px; }
.home-language {
  align-items: center;
  display: flex;
  gap: 7px;
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  top: clamp(28px, 5vh, 54px);
}
.home-language button {
  background: transparent;
  color: #51514e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 300;
  padding: 4px 0;
  text-shadow: 0 0 1px rgba(255, 255, 255, .12);
}
.home-language button.is-current { color: #b7b7b1; }
.home-language span { color: #555551; font-size: 10px; }
.home-stage {
  height: 360px;
  left: clamp(34px, 6vw, 96px);
  max-width: 440px;
  position: absolute;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: min(32vw, 440px);
}
.home-mark {
  background: transparent;
  color: #c4c4be;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  left: 50%;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: color 520ms ease, transform 680ms cubic-bezier(.22, 1, .36, 1);
  text-shadow: 0 0 1.2px rgba(255, 255, 255, .16);
  white-space: nowrap;
}
.home-mark strong {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}
.home-mark span { color: #777773; font-size: 9px; font-weight: 300; margin-top: 18px; }
.home-menu {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, 34px);
  transition: opacity 360ms ease 80ms, transform 620ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 620ms;
  visibility: hidden;
}
.home-menu button {
  background: transparent;
  color: #aaa9a4;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  padding: 7px 0;
  text-align: center;
  text-shadow: 0 0 1px rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.home-menu button:hover, .home-menu button:focus-visible { color: #d0d0ca; }
.home-stage.is-open .home-mark {
  color: #565653;
  transform: translate(-50%, calc(-50% - 94px));
}
.home-stage.is-open .home-menu {
  opacity: 1;
  transform: translate(-50%, -5px);
  transition-delay: 90ms, 0s, 0s;
  visibility: visible;
}
.home-footer {
  bottom: clamp(22px, 4vh, 42px);
  color: #454542;
  display: flex;
  font-size: 7px;
  justify-content: space-between;
  left: clamp(28px, 5vw, 72px);
  position: absolute;
  right: clamp(28px, 5vw, 72px);
}
.home-language, .home-stage, .home-footer { animation: home-intro 880ms ease both; }
.home-stage { animation-delay: 90ms; }
.home-footer { animation-delay: 180ms; }

@keyframes home-intro {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar));
  overflow-anchor: none;
  padding: 40px clamp(38px, 5vw, 82px) 26px;
}

.panel-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}
.panel-heading .kicker { color: #565652; font-size: 7px; margin: 0 0 8px; }
.panel-heading h1 { font-size: 16px; font-weight: 400; line-height: 1.25; margin: 0; }
.panel-heading > p { color: #555551; font-size: 7px; margin: 0; }
.gallery-filters { align-items: center; display: flex; gap: clamp(18px, 2.5vw, 38px); margin-left: auto; }
.scene-filter { align-items: center; display: flex; gap: 18px; }
.scene-filter button {
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #666660;
  cursor: pointer;
  font-size: 10px;
  height: 30px;
  padding: 0 0 4px;
  white-space: nowrap;
}
.scene-filter button small { color: #4f4f4a; font-size: 6px; margin-left: 5px; }
.scene-filter button:hover, .scene-filter button.is-current { border-bottom-color: var(--ink); color: var(--ink); }
.scene-filter button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.behind-photo-filter { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.5vw, 38px); }
.gallery-panel .panel-heading > p { margin-left: 30px; }
.series-delete {
  align-items: center;
  background: transparent;
  color: #696963;
  cursor: pointer;
  display: inline-flex;
  flex: none;
  font-size: 8px;
  gap: 7px;
  height: 30px;
  margin-left: clamp(16px, 2vw, 28px);
  padding: 0;
  white-space: nowrap;
}
.series-delete img {
  filter: invert(.46);
  height: 12px;
  pointer-events: none;
  transition: filter 160ms ease;
  width: 12px;
}
.series-delete:hover, .series-delete:focus-visible { color: var(--ink); }
.series-delete:hover img, .series-delete:focus-visible img { filter: invert(1); }
.series-delete:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.masonry {
  align-items: center;
  display: grid;
  flex: 1;
  gap: clamp(60px, 9vw, 170px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - var(--topbar) - 165px);
  padding: clamp(58px, 8vh, 105px) clamp(8px, 3vw, 50px);
}

.masonry.is-series-page {
  align-items: center;
  column-gap: clamp(56px, 7vw, 110px);
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(96px, 14vh, 175px);
}

.masonry.is-series-page .photo { max-width: min(100%, calc(57vh * var(--image-ratio, 1))); width: 100%; }
.masonry.is-series-page .photo[data-layout="cover"],
.masonry.is-series-page .photo[data-layout="panorama"],
.masonry.is-series-page .photo[data-layout="center"] { grid-column: 1 / -1; justify-self: center; }
.masonry.is-series-page .photo[data-layout="left"],
.masonry.is-series-page .photo[data-layout="pair-left"],
.masonry.is-series-page .photo[data-layout="quiet-left"],
.masonry.is-series-page .photo[data-layout="wide-left"] { grid-column: 1; justify-self: end; }
.masonry.is-series-page .photo[data-layout="right"],
.masonry.is-series-page .photo[data-layout="pair-right"],
.masonry.is-series-page .photo[data-layout="quiet-right"],
.masonry.is-series-page .photo[data-layout="small-right"] { grid-column: 2; justify-self: start; }

@media (min-width: 721px) {
  .masonry.is-series-page {
    column-gap: clamp(32px, 3vw, 48px);
    padding-inline: 0;
    padding-top: clamp(44px, 6vh, 72px);
    row-gap: clamp(42px, 5.2vh, 62px);
  }
  .masonry.is-series-page .photo {
    max-width: min(100%, calc(78vh * var(--image-ratio, 1)));
  }
  .masonry.is-series-page .photo img { max-height: 78vh; }
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="cover"],
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="panorama"],
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="center"] {
    max-width: min(88vw, calc(76vh * var(--image-ratio, 1)), 1200px);
  }
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="cover"] img,
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="panorama"] img,
  .masonry.is-series-page .photo[data-orientation="landscape"][data-layout="center"] img { max-height: 76vh; }
}

.photo {
  align-self: center;
  background: transparent;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  justify-self: start;
  padding: 0;
  text-align: left;
  width: 100%;
}
.photo:nth-child(even) { justify-self: end; width: 82%; }
.photo.is-hidden, .photo.is-page-hidden { display: none; }
.photo img {
  height: auto;
  max-height: 57vh;
  object-fit: contain;
  object-position: center;
  transition: filter 240ms ease, opacity 240ms ease;
  width: 100%;
}
.photo video {
  background: #000;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .34);
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}
.video-card { cursor: default; }
.masonry.is-empty::before {
  align-self: center;
  color: var(--muted);
  content: attr(data-empty-label);
  font-size: 9px;
  grid-column: 1 / -1;
  justify-self: center;
}
.photo[data-orientation="portrait"] img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .32);
}
.photo > span {
  align-items: center;
  display: flex;
  opacity: .72;
  padding-top: 12px;
  transition: opacity 180ms ease;
}
.photo > span b { font-size: 9px; font-weight: 400; }
.photo > span small { color: var(--muted); font-size: 7px; margin-left: auto; }
.photo-delete {
  align-items: center;
  border-left: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: flex-end;
  margin-left: 13px;
  padding-left: 13px;
  width: 30px;
}
.photo-delete img {
  filter: invert(.6);
  height: 13px;
  opacity: .72;
  pointer-events: none;
  transition: filter 160ms ease, opacity 160ms ease;
  width: 13px;
}
.photo-delete:hover img, .photo-delete:focus-visible img { filter: invert(1); opacity: 1; }
.photo-delete:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.photo:hover img { filter: saturate(.82); opacity: .9; }
.photo:hover .photo-delete img { filter: invert(.6); opacity: .72; }
.photo:hover .photo-delete:hover img, .photo:hover .photo-delete:focus-visible img { filter: invert(1); opacity: 1; }
.photo:hover > span, .photo:focus-visible > span { opacity: 1; }

.album-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 22px;
  height: 46px;
  justify-content: center;
}
.album-controls button {
  align-items: center;
  background: transparent;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}
.album-controls button:disabled { cursor: default; opacity: .18; }
.album-controls output { color: var(--muted); font-size: 8px; min-width: 42px; text-align: center; }

.info-panel {
  margin: 0 auto;
  max-width: 1080px;
  min-height: calc(100vh - var(--topbar));
  padding: 54px clamp(48px, 8vw, 130px) 110px;
}
.info-panel .panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.info-panel .panel-heading h1 { font-size: clamp(42px, 6vw, 88px); font-weight: 300; }
.info-layout { display: grid; gap: 100px 80px; grid-template-columns: 1.2fr 1fr; padding-top: clamp(90px, 15vh, 170px); }
.lead { font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 4vw, 56px); font-weight: 400; line-height: 1.35; margin: 0; }
.prose p { color: #a3a39d; line-height: 2.05; margin: 0 0 24px; }
.facts { border-top: 1px solid var(--line); grid-column: 1 / -1; margin: 0; }
.facts div { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; padding: 17px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.location-section { grid-column: 1 / -1; min-width: 0; }
.location-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.location-heading p { color: #555551; font-size: 7px; margin: 0 0 9px; }
.location-heading h2 { font-size: 19px; font-weight: 400; margin: 0; }
.location-heading h2 span { color: var(--muted); font-size: 8px; font-weight: 400; margin-left: 9px; }
.location-heading > small { color: #555551; font-size: 7px; }
.location-map {
  background: #111;
  border: 1px solid var(--line);
  border-radius: 4px;
  height: clamp(340px, 43vw, 460px);
  overflow: hidden;
  width: 100%;
}
.location-map.leaflet-container { font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.location-map .leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  margin-left: 16px;
  margin-top: 16px;
}
.location-map .leaflet-control-zoom a {
  background: rgba(8, 8, 8, .92);
  border-bottom-color: rgba(255, 255, 255, .12);
  color: var(--ink);
  height: 36px;
  line-height: 34px;
  width: 36px;
}
.location-map .leaflet-control-zoom a:hover { background: #181817; color: #fff; }
.location-map .leaflet-control-attribution {
  background: rgba(5, 5, 5, .72);
  color: #777771;
  font-size: 7px;
  padding: 3px 6px;
}
.location-map .leaflet-control-attribution a { color: #aaa9a4; }
.ningbo-marker { background: transparent; border: 0; }
.ningbo-marker-pin {
  background: #050505;
  border: 4px solid #f2f2ee;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .55);
  display: block;
  height: 20px;
  width: 20px;
}
.ningbo-marker-label {
  color: #f2f2ee;
  font-size: 11px;
  font-style: normal;
  left: 30px;
  position: absolute;
  text-shadow: 0 2px 8px #000;
  top: 2px;
  white-space: nowrap;
}
.location-navigation {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
}
.location-navigation > span { color: var(--muted); font-size: 8px; }
.location-navigation nav { display: flex; gap: clamp(20px, 4vw, 44px); }
.location-navigation a { font-size: 10px; padding: 19px 0; }
.location-navigation a:hover { color: #aaa9a4; }
.location-navigation i { color: var(--muted); font-style: normal; margin-left: 5px; }

.booking-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(90px, 15vh, 170px); }
.booking-grid article { border-bottom: 1px solid var(--line); padding: 24px 34px 70px 0; }
.booking-grid article + article { border-left: 1px solid var(--line); padding-left: 34px; }
.booking-grid span { color: #555551; font-size: 8px; }
.booking-grid h2 { font-size: 14px; font-weight: 400; margin: 62px 0 18px; }
.booking-grid p { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 0; }
.booking-link { border-bottom: 1px solid var(--ink); display: flex; font-size: clamp(18px, 3vw, 36px); justify-content: space-between; margin-top: 100px; padding-bottom: 15px; }

.delete-dialog {
  background: #0a0a09;
  border: 1px solid #2a2a27;
  color: var(--ink);
  margin: auto;
  max-width: min(390px, calc(100vw - 40px));
  padding: 0;
  width: 100%;
}
.delete-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.delete-form { padding: 28px; }
.delete-form > p:first-child { color: #666660; font-size: 7px; margin: 0 0 9px; }
.delete-form h2 { font-size: 18px; font-weight: 400; margin: 0; }
.delete-form [data-delete-description] { color: #8b8b85; font-size: 10px; line-height: 1.8; margin: 22px 0 26px; }
.delete-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.delete-actions button {
  background: transparent;
  border: 1px solid #30302c;
  color: #9b9b95;
  cursor: pointer;
  height: 42px;
  padding: 0 16px;
}
.delete-actions [data-delete-confirm] { background: #e4e4df; border-color: #e4e4df; color: #080808; }
.delete-actions button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.access-dialog {
  background: #0a0a09;
  border: 1px solid #2a2a27;
  color: var(--ink);
  margin: auto;
  max-width: min(390px, calc(100vw - 40px));
  padding: 0;
  width: 100%;
}
.access-dialog::backdrop { background: rgba(0, 0, 0, .84); }
.access-panel { padding: 28px; }
.access-panel > p:first-child { color: #666660; font-size: 7px; margin: 0 0 9px; }
.access-panel h2 { font-size: 18px; font-weight: 400; margin: 0; }
.access-panel > p:nth-of-type(2) { color: #8b8b85; font-size: 10px; line-height: 1.8; margin: 22px 0 26px; }
.access-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.access-actions button, .access-actions a {
  align-items: center;
  background: transparent;
  border: 1px solid #30302c;
  color: #9b9b95;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0 16px;
}
.access-actions a { background: #e4e4df; border-color: #e4e4df; color: #080808; }
.access-actions button:focus-visible, .access-actions a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.import-dialog {
  background: #0a0a09;
  border: 1px solid #2a2a27;
  color: var(--ink);
  margin: auto;
  max-height: calc(100vh - 40px);
  max-width: min(520px, calc(100vw - 40px));
  overflow: auto;
  padding: 0;
  width: 100%;
}
.import-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.import-form { padding: 30px; }
.import-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.import-heading p { color: #666660; font-size: 7px; margin: 0 0 9px; }
.import-heading h2 { font-size: 18px; font-weight: 400; margin: 0; }
.import-heading button {
  align-items: center;
  background: transparent;
  color: #8c8c86;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}
.import-fields { border-top: 1px solid #292926; margin-top: 34px; }
.import-fields > label {
  align-items: center;
  border-bottom: 1px solid #292926;
  display: grid;
  gap: 20px;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 58px;
}
.import-fields > label > span { color: #777771; font-size: 9px; }
.import-fields input[type="text"],
.import-fields input[type="date"],
.import-fields select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
  outline: 0;
  padding: 18px 0;
  width: 100%;
}
.import-fields input::placeholder { color: #4e4e4a; }
.import-fields input[type="date"] { color-scheme: dark; }
.import-fields select { color-scheme: dark; cursor: pointer; }
.file-picker { cursor: pointer; position: relative; }
.file-picker input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.file-picker > span { color: var(--ink) !important; }
.file-picker small { color: #777771; font-size: 9px; justify-self: end; }
.import-status { color: #8f8f89; font-size: 9px; height: 18px; margin: 16px 0 6px; }
.import-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.import-actions button {
  background: transparent;
  border: 1px solid #30302c;
  color: #9b9b95;
  cursor: pointer;
  height: 42px;
  padding: 0 16px;
}
.import-actions button[type="submit"] { background: var(--ink); border-color: var(--ink); color: #080808; }
.import-actions button:disabled { cursor: wait; opacity: .45; }
.import-heading button:focus-visible,
.import-fields input:focus-visible,
.import-fields select:focus-visible,
.file-picker:focus-within,
.import-actions button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.privacy-toggle {
  align-items: center;
  background: rgba(8, 8, 8, .88);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  bottom: 70px;
  color: #8d8d87;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  width: 38px;
  z-index: 41;
}
.privacy-toggle span { font-size: 13px; line-height: 1; transform: translateY(-2px); }
.privacy-toggle:hover, .privacy-toggle:focus-visible, .privacy-toggle[aria-expanded="true"] { border-color: rgba(255, 255, 255, .34); color: var(--ink); }
.privacy-toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.privacy-dialog {
  background: transparent;
  border: 0;
  bottom: 118px;
  color: var(--ink);
  left: auto;
  margin: 0;
  max-height: calc(100vh - 136px);
  max-width: min(380px, calc(100vw - 32px));
  overflow: visible;
  padding: 0;
  position: fixed;
  right: 22px;
  top: auto;
  width: 100%;
  z-index: 42;
}
.privacy-panel {
  background: rgba(9, 9, 8, .98);
  border: 1px solid #2b2b28;
  max-height: calc(100vh - 136px);
  overflow: auto;
  padding: 22px;
}
.privacy-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.privacy-heading p { color: #65655f; font-size: 7px; margin: 0 0 7px; }
.privacy-heading h2 { font-size: 15px; font-weight: 400; margin: 0; }
.privacy-heading button {
  align-items: center;
  background: transparent;
  color: #85857f;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}
.privacy-options { border-top: 1px solid #292926; margin-top: 22px; }
.privacy-options button {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid #292926;
  color: #75756f;
  cursor: pointer;
  display: flex;
  min-height: 47px;
  padding: 0;
  text-align: left;
  width: 100%;
}
.privacy-options button::before { border: 1px solid #5a5a55; border-radius: 50%; content: ""; height: 8px; margin-right: 12px; width: 8px; }
.privacy-options button[aria-pressed="true"] { color: var(--ink); }
.privacy-options button[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px #090908; }
.privacy-options b { font-size: 10px; font-weight: 400; }
.privacy-options small { color: #5e5e59; font-size: 7px; margin-left: auto; }
.privacy-base {
  align-items: center;
  border-bottom: 1px solid #292926;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 48px;
}
.privacy-base span { color: #777771; font-size: 8px; }
.privacy-base input, .privacy-share input {
  background: transparent;
  border: 0;
  color: #aaa9a4;
  font-size: 8px;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}
.privacy-share { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; min-height: 48px; }
.privacy-share button {
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  padding: 0;
  white-space: nowrap;
}
.privacy-status { color: #85857f; font-size: 8px; height: 14px; margin: 9px 0 0; }
.privacy-heading button:focus-visible,
.privacy-options button:focus-visible,
.privacy-base:focus-within,
.privacy-share button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.bgm-toggle {
  align-items: center;
  background: rgba(8, 8, 8, .88);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  bottom: 22px;
  color: #8d8d87;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  touch-action: manipulation;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
  user-select: none;
  -webkit-user-select: none;
  width: 38px;
  z-index: 40;
}
.bgm-toggle span { font-family: Georgia, serif; font-size: 17px; line-height: 1; }
.bgm-toggle:hover, .bgm-toggle:focus-visible, .bgm-toggle.is-ready { border-color: rgba(255, 255, 255, .34); color: var(--ink); }
.bgm-toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.bgm-toggle.is-playing span { animation: bgm-note 1.8s ease-in-out infinite; }

@keyframes bgm-note {
  0%, 100% { opacity: .7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.bgm-dialog {
  background: transparent;
  border: 0;
  bottom: 72px;
  color: var(--ink);
  left: auto;
  margin: 0;
  max-height: calc(100vh - 100px);
  max-width: min(360px, calc(100vw - 32px));
  overflow: visible;
  padding: 0;
  position: fixed;
  right: 22px;
  top: auto;
  width: 100%;
}
.bgm-panel {
  background: rgba(9, 9, 8, .97);
  border: 1px solid #2b2b28;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 22px;
}
.bgm-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.bgm-heading p { color: #65655f; font-size: 7px; margin: 0 0 7px; }
.bgm-heading h2 { font-size: 15px; font-weight: 400; margin: 0; }
.bgm-heading button {
  align-items: center;
  background: transparent;
  color: #85857f;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}
.bgm-current {
  align-items: center;
  border-bottom: 1px solid #292926;
  border-top: 1px solid #292926;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  min-height: 48px;
}
.bgm-current span { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-current small { color: #666660; font-size: 7px; margin-left: 16px; }
.bgm-list { max-height: 210px; overflow-y: auto; }
.bgm-empty { color: #666660; font-size: 9px; margin: 0; padding: 28px 0; text-align: center; }
.bgm-track { border-bottom: 1px solid #232321; }
.bgm-track-select {
  align-items: center;
  background: transparent;
  color: #73736d;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 0;
  text-align: left;
  width: 100%;
}
.bgm-track-select span, .bgm-track-select small { color: #5e5e59; font-size: 7px; }
.bgm-track-select b { font-size: 9px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-track-select:hover, .bgm-track-select.is-current { color: var(--ink); }
.bgm-track-select.is-current span { color: var(--ink); }
.bgm-volume {
  align-items: center;
  border-bottom: 1px solid #292926;
  display: grid;
  gap: 18px;
  grid-template-columns: 48px 1fr;
  min-height: 48px;
}
.bgm-volume span { color: #777771; font-size: 9px; }
.bgm-volume input { accent-color: #b8b8b1; cursor: pointer; width: 100%; }
.bgm-import {
  align-items: center;
  border-bottom: 1px solid #292926;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  position: relative;
}
.bgm-import input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.bgm-import span { font-size: 9px; }
.bgm-import small { color: #5f5f5a; font-size: 7px; }
.bgm-status { color: #85857f; font-size: 8px; height: 14px; margin: 11px 0 0; }
.bgm-heading button:focus-visible,
.bgm-track-select:focus-visible,
.bgm-volume input:focus-visible,
.bgm-import:focus-within { outline: 1px solid var(--ink); outline-offset: 3px; }

.lightbox {
  background: #000;
  border: 0;
  color: white;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 28px;
  width: 100%;
}
.lightbox::backdrop { background: #000; }
.lightbox[open] { align-items: center; display: flex; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(72vw, 1100px); }
.lightbox figure img { max-height: calc(100vh - 110px); object-fit: contain; width: auto; }
.lightbox figcaption { display: flex; font-size: 9px; justify-content: space-between; padding-top: 12px; }
.lightbox figcaption small { color: #666; }
.lightbox-close, .lightbox-nav { background: transparent; color: white; cursor: pointer; height: 42px; position: fixed; width: 42px; }
.lightbox-close { font-size: 23px; right: 24px; top: 24px; }
.lightbox-nav { font-size: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (min-width: 721px) and (max-width: 1100px) {
  .topbar { padding-inline: 26px; }
  .identity { flex-basis: 125px; }
  .project-nav { flex: 1; gap: 22px; justify-content: space-between; }
  .nav-block { gap: 14px; }
  .nav-link small, .topbar-footer { display: none; }
  .nav-link span { font-size: 11px; }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .project-nav { flex: 1; gap: 26px; justify-content: space-between; }
  .topbar-footer { display: none; }
}

@media (min-width: 721px) and (max-width: 1050px) {
  .home-video-frame { right: 32px; width: min(53vw, calc(68svh * var(--home-video-ratio))); }
  .home-stage { left: 28px; width: 37vw; }
  .home-mark strong { font-size: 38px; }
}

@media (max-width: 720px) {
  :root { --topbar: auto; }
  .topbar {
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    display: block;
    height: auto;
    inset: auto;
    min-height: 0;
    padding: 22px 20px;
    position: relative;
    width: 100%;
  }
  .identity { align-items: flex-start; display: flex; justify-content: space-between; }
  .identity-link strong { font-size: 16px; }
  .identity-link span { font-size: 9px; margin-top: 5px; }
  .menu-toggle { align-items: center; background: transparent; cursor: pointer; display: flex; font-size: 11px; gap: 10px; padding: 2px 0; }
  .menu-toggle i { height: 10px; position: relative; width: 12px; }
  .menu-toggle i::before, .menu-toggle i::after { background: currentColor; content: ""; height: 1px; left: 0; position: absolute; transition: transform 200ms; width: 12px; }
  .menu-toggle i::before { top: 3px; }
  .menu-toggle i::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] i::before { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { top: 5px; transform: rotate(-45deg); }
  .project-nav { align-items: stretch; border-top: 1px solid var(--line); display: none; margin-top: 22px; padding-top: 18px; }
  .project-nav.is-open { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
  .nav-block { align-items: flex-start; display: flex; flex-direction: column; gap: 0; }
  .nav-block + .nav-block { margin-top: 0; }
  .nav-label { margin: 0 0 8px; position: static; }
  .nav-link { padding-block: 7px; }
  .admin-status { bottom: auto; left: auto; margin-top: 5px; max-width: 100%; position: static; }
  .topbar-footer { display: none; }

  .content { margin-top: 0; min-height: 0; width: 100%; }
  .home-panel { min-height: 480px; }
  .home-video-frame {
    bottom: clamp(104px, 14svh, 132px);
    left: 50%;
    max-height: 47svh;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    width: min(92vw, calc(47svh * var(--home-video-ratio)));
  }
  .home-video-frame { border-radius: 12px; }
  .home-language { right: 22px; top: 22px; }
  .home-import { left: 20px; top: 22px; }
  .home-admin-login { left: 20px; top: 22px; }
  .home-stage {
    height: 250px;
    left: 50%;
    max-width: calc(100vw - 40px);
    right: auto;
    top: clamp(54px, 9svh, 80px);
    transform: translateX(-50%);
    width: 100%;
  }
  .home-mark strong { font-size: 34px; }
  .home-mark span { font-size: 8px; margin-top: 14px; }
  .home-menu {
    align-items: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 34px);
  }
  .home-menu button { font-size: 15px; padding: 7px 0; text-align: center; }
  .home-stage.is-open .home-mark { transform: translate(-50%, calc(-50% - 88px)); }
  .home-stage.is-open .home-menu { transform: translate(-50%, -5px); }
  .home-footer { bottom: 20px; left: 20px; right: 68px; }
  .home-footer span:last-child { display: none; }
  .gallery-panel { min-height: calc(100svh - 81px); padding: 26px 20px 14px; }
  .panel-heading h1 { font-size: 15px; }
  .scene-filter { gap: 12px; }
  .scene-filter button { font-size: 9px; }
  .scene-filter button small { display: none; }
  .gallery-panel .panel-heading { flex-wrap: wrap; gap: 14px 16px; }
  .gallery-filters { flex-wrap: wrap; gap: 8px 22px; margin-left: 0; order: 3; width: 100%; }
  .behind-photo-filter { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 7px; width: 100%; }
  .series-delete { margin-left: auto; order: 1; width: 30px; }
  .series-delete span { display: none; }
  .gallery-panel .panel-heading > p { margin-left: 0; order: 2; }
  .masonry { display: flex; min-height: calc(100svh - 213px); padding: clamp(55px, 10vh, 92px) 0; }
  .masonry.is-series-page { display: grid; gap: clamp(64px, 11svh, 92px); grid-template-columns: 1fr; padding-bottom: 76px; }
  .masonry.is-series-page .photo,
  .masonry.is-series-page .photo[data-layout],
  .masonry.is-series-page .photo[data-orientation][data-layout] { grid-column: 1; max-width: min(100%, calc(58svh * var(--image-ratio, 1))); }
  .masonry.is-series-page .photo[data-layout="left"],
  .masonry.is-series-page .photo[data-layout="quiet-left"],
  .masonry.is-series-page .photo[data-layout="wide-left"] { margin-left: 0; margin-right: auto; width: 88%; }
  .masonry.is-series-page .photo[data-layout="right"],
  .masonry.is-series-page .photo[data-layout="quiet-right"],
  .masonry.is-series-page .photo[data-layout="small-right"] { margin-left: auto; margin-right: 0; width: 82%; }
  .masonry.is-series-page .photo[data-layout="center"] { width: 90%; }
  .photo, .photo:nth-child(even) { align-items: stretch; justify-content: center; margin: auto; width: min(100%, 350px); }
  .photo img { max-height: 58svh; width: 100%; }
  .photo > span { padding-top: 11px; }
  .album-controls { height: 44px; }

  .info-panel { min-height: calc(100svh - 81px); padding: 32px 20px 80px; }
  .info-panel .panel-heading h1 { font-size: 40px; }
  .info-layout { gap: 58px; grid-template-columns: 1fr; padding-top: 72px; }
  .lead { font-size: 31px; }
  .prose, .facts { grid-column: 1; }
  .facts div { grid-template-columns: 1fr 1.7fr; }
  .location-section { grid-column: 1; }
  .location-heading > small { display: none; }
  .location-map { height: min(84vw, 340px); }
  .location-navigation { align-items: flex-start; flex-direction: column; padding-top: 16px; }
  .location-navigation nav { gap: 0; justify-content: space-between; width: 100%; }
  .location-navigation a { font-size: 9px; }
  .booking-grid { grid-template-columns: 1fr; margin-top: 72px; }
  .booking-grid article { padding: 20px 0 40px; }
  .booking-grid article + article { border-left: 0; padding-left: 0; }
  .booking-grid h2 { margin-top: 32px; }
  .booking-link { font-size: 17px; margin-top: 72px; }
  .lightbox { padding: 16px; }
  .lightbox figure { max-width: 100%; }
  .lightbox-close { right: 14px; top: 14px; }
  .lightbox-nav { bottom: 16px; top: auto; transform: none; }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .import-dialog { max-height: calc(100svh - 24px); max-width: calc(100vw - 24px); }
  .import-form { padding: 22px; }
  .import-fields { margin-top: 28px; }
  .import-fields > label { gap: 9px; grid-template-columns: 1fr; padding: 14px 0; }
  .import-fields input[type="text"], .import-fields input[type="date"], .import-fields select { padding: 0; }
  .file-picker { grid-template-columns: 1fr auto !important; }
  .file-picker > span { align-self: center; }
  .file-picker small { align-self: center; grid-column: 2; grid-row: 1; }
  .bgm-toggle { bottom: 16px; height: 36px; right: 16px; width: 36px; }
  .privacy-toggle { bottom: 60px; height: 36px; right: 16px; width: 36px; }
  .privacy-dialog { bottom: 104px; max-height: calc(100svh - 116px); max-width: calc(100vw - 24px); right: 12px; }
  .privacy-panel { max-height: calc(100svh - 116px); padding: 20px; }
  .bgm-dialog { bottom: 62px; max-height: calc(100svh - 82px); max-width: calc(100vw - 24px); right: 12px; }
  .bgm-panel { max-height: calc(100svh - 82px); padding: 20px; }
}

@media (max-width: 720px) and (max-height: 560px) {
  .home-stage { height: 180px; top: 44px; }
  .home-video-frame {
    bottom: 72px;
    max-height: 35svh;
    width: min(88vw, calc(35svh * var(--home-video-ratio)));
  }
  .home-mark strong { font-size: 30px; }
  .home-stage.is-open .home-mark { transform: translate(-50%, calc(-50% - 60px)); }
  .home-menu button { font-size: 13px; padding-block: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
