/* Login-only photography gallery. The existing authentication forms keep their IDs. */
.gallery-auth {
  --gallery-paper: #f3f1e8;
  --gallery-gold: #d9c7a0;
  --gallery-muted: #a3aaa1;
  padding: 12px;
  background: #eaeae4;
  color: var(--gallery-paper);
  color-scheme: dark;
}
.gallery-auth .gallery-login {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 38px;
  padding: 30px 40px 20px;
  border-radius: 23px;
  background: #090e0c;
  overflow: clip;
}
.gallery-login::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 28% 70%, #23362b55, transparent 48%);
  content: "";
  pointer-events: none;
}
.gallery-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
}
.gallery-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.gallery-brand__seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #cbbb9670;
  border-radius: 50%;
  color: var(--gallery-gold);
  font: 24px/1 "STKaiti", "KaiTi", serif;
}
.gallery-brand strong { display: block; color: var(--gallery-paper); font-size: 23px; font-weight: 500; letter-spacing: .12em; }
.gallery-brand strong span { margin-left: 9px; color: #d3d7cb; font-size: 13px; letter-spacing: .16em; }
.gallery-brand small { display: block; margin-top: 5px; color: #a5ae9f; font-size: 9px; letter-spacing: .14em; }
.gallery-header__note { margin: 0 0 0 4%; color: #a5ad9f; font-size: 12px; line-height: 1.65; text-align: center; }
.gallery-header__actions { display: flex; align-items: center; gap: 20px; }
.gallery-motion { display: flex; align-items: center; gap: 7px; padding: 9px 0; border: 0; color: #b3bcad; background: transparent; font-size: 11px; cursor: pointer; }
.gallery-motion > span:first-child { width: 18px; font-size: 15px; text-align: center; }
.gallery-enter { display: flex; align-items: center; gap: 22px; padding: 13px 20px; border: 1px solid #c6d1be; border-radius: 999px; color: #142219; background: #dce5d4; font-size: 12px; font-weight: 600; }
.gallery-enter span { font-size: 19px; line-height: 1; }
.gallery-heading { grid-column: 1 / -1; margin: 36px 0 24px; }
.gallery-heading > p { margin: 0 0 14px 4px; color: #9ca898; font-size: 9px; letter-spacing: .23em; }
.gallery-heading h1 { margin: 0; color: var(--gallery-paper); font: 400 clamp(64px, 10.8vw, 184px)/1.12 "Songti SC", "Noto Serif CJK SC", "SimSun", serif; letter-spacing: -.055em; white-space: nowrap; }
.gallery-heading h1 span { color: #c8d4bd; }
.gallery-auth .gallery-story { position: relative; min-width: 0; min-height: 590px; padding: 0; overflow: visible; background: none; }
.gallery-auth .gallery-story::after { display: none; }
.gallery-auth .gallery-story > div { z-index: auto; }
.gallery-stage { position: absolute !important; inset: -12px -14px 20px -22px; perspective: 1250px; overflow: clip; }
.gallery-field { position: absolute; inset: 12px 20px 80px; transform-style: preserve-3d; transform: rotateX(var(--scene-rx, -3deg)) rotateY(var(--scene-ry, 0deg)); will-change: transform; }
.gallery-card { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; transform-style: preserve-3d; transform: translateZ(var(--z)) rotateY(var(--ry)) rotateZ(var(--rz)); }
.gallery-card__float { position: relative; padding: 5px; border: 1px solid #aab9a533; border-radius: 8px; background: #17221b; box-shadow: 0 24px 40px #0008, 3px 2px 0 #d5ddc622; transform-style: preserve-3d; animation: gallery-float var(--duration, 16s) ease-in-out var(--delay, 0s) infinite; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: #233429; }
.gallery-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 24px; padding: 4px 2px 0; color: #b4bfad; }
.gallery-card figcaption span { overflow: hidden; font-size: 6px; letter-spacing: .08em; white-space: nowrap; text-overflow: ellipsis; }
.gallery-card figcaption b { color: #d5c7a9; font-size: 7px; font-weight: 400; font-variant-numeric: tabular-nums; }
.gallery-card--distant { opacity: .56; }
.gallery-card__turn { position: relative; transform-style: preserve-3d; animation: gallery-turn 32s cubic-bezier(.45,0,.25,1) var(--delay) infinite; }
.gallery-card__front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gallery-card__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 1px solid #c6d1b95c; border-radius: 4px; color: #d4cfb3; background: repeating-linear-gradient(45deg, #aab7950a 0 1px, transparent 1px 14px), #243729; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gallery-card__back > span { display: grid; place-items: center; width: 56%; aspect-ratio: 1; border: 1px solid #d3cba16b; border-radius: 50%; font: 400 clamp(25px,4vw,60px)/1 "KaiTi",serif; }
.gallery-card__back > small { font-size: 7px; letter-spacing: .15em; }
.gallery-stage__vignette { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, #090e0c 0%, transparent 14%, transparent 88%, #090e0c 100%); pointer-events: none; }
.gallery-story__caption { position: absolute !important; bottom: 12px; left: 0; right: 0; z-index: 3 !important; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #c0c8b8; font-size: 11px; }
.gallery-story__caption small { margin-left: auto; color: #8d9986; font-size: 7px; letter-spacing: .08em; }
.gallery-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #bacba9; box-shadow: 0 0 12px #bacba955; }
.gallery-auth .auth-panel { position: relative; z-index: 5; min-width: 0; display: block; align-self: start; padding: 0; scroll-margin-top: 20px; }
.gallery-auth .auth-card { width: 100%; padding: 26px 28px 22px; border: 1px solid #c6d1b92e; border-radius: 20px; background: #15201af2; box-shadow: 0 22px 55px #0003; backdrop-filter: none; }
.gallery-auth .auth-tabs { display: flex; justify-content: flex-start; gap: 24px; margin-bottom: 22px; padding: 0 0 13px; border-bottom: 1px solid #c6d1b924; border-radius: 0; background: transparent; }
.gallery-auth .auth-tabs button { position: relative; padding: 3px 0 7px; border-radius: 0; color: #9aa794; font-size: 12px; }
.gallery-auth .auth-tabs button.is-active { color: #e5e9df; background: transparent; box-shadow: none; }
.gallery-auth .auth-tabs button.is-active::after { position: absolute; bottom: -14px; left: 0; width: 100%; height: 2px; background: #d3d8c7; content: ""; }
.gallery-auth .auth-form { gap: 15px; }
.gallery-auth .auth-form > div:first-child > .eyebrow { margin: 0 0 9px; color: #d3c3a2; font-size: 8px; letter-spacing: .18em; }
.gallery-auth .auth-form h2 { margin: 0 0 8px; color: #f0f1e9; font: 400 31px/1.3 "Songti SC", "SimSun", serif; }
.gallery-auth .auth-form .muted { margin: 0; color: #aeb9a7; font-size: 11px; line-height: 1.8; }
.gallery-auth .auth-form .field { gap: 7px; }
.gallery-auth .auth-form .field > span:first-child { color: #c3cdbb; font-size: 11px; }
.gallery-auth .auth-form input { min-width: 0; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #aebda43d; border-radius: 9px; color: #f2f3eb; background: #0b150f75; font-size: 12px; box-shadow: none; transition: border-color .2s, background .2s; }
.gallery-auth .auth-form input::placeholder { color: #87947e; font-size: 11px; }
.gallery-auth .auth-form input:focus { border-color: #c8d6b5; outline: 2px solid #c8d6b51a; outline-offset: 2px; background: #0c170f; }
.gallery-auth .auth-form input:-webkit-autofill { -webkit-text-fill-color: #f2f3eb; box-shadow: 0 0 0 1000px #18271e inset; caret-color: #f2f3eb; }
.gallery-auth .auth-row { gap: 15px; }
.gallery-auth .text-button { padding: 0; color: #c3cfb7; font-size: 10px; font-weight: 400; }
.gallery-auth .button { min-height: 44px; border-radius: 999px; font-size: 12px; }
.gallery-auth .button--primary { border: 1px solid #dee5d5; color: #17221a; background: #dbe4cf; box-shadow: none; }
.gallery-auth .button--primary:hover:not(:disabled) { color: #0c170f; background: #eff3e8; transform: translateY(-1px); }
.gallery-auth .button--ghost { border-color: #aebda44d; color: #cfdbbf; background: #aebda40a; }
.gallery-auth .button:disabled { opacity: .45; cursor: not-allowed; }
.gallery-auth .auth-divider { gap: 12px; margin: 21px 0 13px; color: #aab6a2; font-size: 10px; }
.gallery-auth .auth-divider::before, .gallery-auth .auth-divider::after { background: #c6d1b924; }
.gallery-auth .social-buttons { gap: 9px; }
.gallery-auth .social-button { min-height: 42px; padding: 9px 7px; border-color: #aebda433; border-radius: 10px; color: #d9e1d0; background: #c6d1b908; font-size: 10px; transition: border-color .2s, background .2s; }
.gallery-auth .social-button:hover:not(.is-disabled) { border-color: #c6d1b97a; background: #c6d1b914; }
.gallery-auth .social-button b { width: 21px; height: 21px; font-size: 8px; }
.gallery-auth .social-buttons + small { margin-top: 11px; color: #9ba791; font-size: 9px; line-height: 1.6; }
.gallery-auth .social-button.is-disabled { opacity: .45; }
.gallery-auth .admin-login-link { margin: 15px auto 0; color: #a3ae9b; font-size: 9px; }
.gallery-auth .admin-login-back { color: #c4d0b9; }
.gallery-auth .form-error { margin: 0; color: #f1bcb4; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.gallery-auth .form-success { color: #c1dda8; font-size: 11px; line-height: 1.7; }
.gallery-auth .reset-captcha { flex-wrap: wrap; gap: 7px; }
.gallery-auth .reset-captcha input { flex: 1 1 100px; min-width: 100px; }
.gallery-auth .reset-captcha img { width: 115px; height: 40px; border-radius: 6px; color-scheme: light; }
.gallery-auth .reset-captcha button { padding: 5px; border-color: #aebda44d; color: #d2dcc8; background: transparent; font-size: 10px; }
.gallery-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #aebda422; color: #9ba792; font-size: 10px; }
.gallery-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 9px; }
.gallery-auth a:hover { text-decoration: none; }
.gallery-footer a:hover { color: #e0e6d5; }
.gallery-auth :is(a, button):focus-visible { outline: 2px solid #d7c69f; outline-offset: 4px; }
.gallery-auth button { -webkit-tap-highlight-color: transparent; }
.gallery-auth .auth-form:not([hidden]) { animation: gallery-form-enter .28s ease-out; }
.gallery-auth .gallery-heading, .gallery-auth .auth-panel { animation: gallery-reveal .85s cubic-bezier(.2,.7,.2,1) both; }
.gallery-auth .auth-panel { animation-delay: .12s; }
.gallery-auth[data-gallery-paused] .gallery-card__float, .gallery-auth[data-gallery-paused] .gallery-card__turn { animation-play-state: paused; }
.gallery-auth[data-gallery-paused] .gallery-field { will-change: auto; }
@keyframes gallery-float {
  0%,100% { transform: translate3d(0,-9px,0) rotateY(-4deg); }
  50% { transform: translate3d(0,10px,9px) rotateY(4deg); }
}
@keyframes gallery-turn { 0%,52% { transform: rotateY(0deg); } 66%,77% { transform: rotateY(180deg); } 93%,100% { transform: rotateY(360deg); } }
@keyframes gallery-reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes gallery-form-enter { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1800px) {
  .gallery-auth .gallery-login { grid-template-columns: minmax(0,1fr) 440px; padding: 40px 64px 24px; column-gap: 50px; }
  .gallery-auth .auth-card { padding: 34px; }
  .gallery-auth .gallery-story { min-height: 680px; }
  .gallery-heading { margin-top: 48px; }
}
@media (min-width: 841px) and (max-width: 1100px) {
  .gallery-auth .gallery-login { padding: 25px 26px 20px; column-gap: 18px; grid-template-columns: minmax(0,1fr) 355px; }
  .gallery-auth .auth-card { padding: 24px; }
  .gallery-header__note { display: none; }
  .gallery-header__actions { margin-left: auto; }
  .gallery-heading { margin: 34px 0 30px; }
  .gallery-heading h1 { font-size: 10.6vw; }
  .gallery-field { inset: 70px -20px 110px -20px; }
  .gallery-card { width: calc(var(--w) * 1.15); }
  .gallery-story__caption small { width: 100%; margin-left: 15px; }
}
@media (max-width: 840px) {
  .gallery-auth { padding: 8px; }
  .gallery-auth .gallery-login { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto; padding: 22px 20px 20px; min-height: calc(100svh - 16px); border-radius: 19px; gap: 0; }
  .gallery-header { gap: 8px; }
  .gallery-brand { gap: 9px; }
  .gallery-brand__seal { width: 36px; height: 36px; font-size: 21px; }
  .gallery-brand strong { font-size: 21px; }
  .gallery-brand strong span { font-size: 11px; margin-left: 6px; }
  .gallery-brand small { margin-top: 4px; font-size: 6px; letter-spacing: .1em; }
  .gallery-header__note, .gallery-enter, .gallery-motion__label { display: none; }
  .gallery-motion { padding: 10px; border: 1px solid #c6d1b933; border-radius: 50%; }
  .gallery-header__actions { gap: 0; }
  .gallery-heading { margin: 33px 0 12px; }
  .gallery-heading > p { margin: 0 0 12px 1px; font-size: 7px; letter-spacing: .12em; }
  .gallery-heading h1 { font-size: clamp(42px, 12vw, 80px); letter-spacing: -.06em; white-space: normal; }
  .gallery-auth .gallery-story { min-height: 185px; height: 39vw; max-height: 340px; }
  .gallery-stage { inset: -3px -17px 25px !important; perspective: 900px; }
  .gallery-field { inset: 12px 10px 10px; }
  .gallery-card { width: 23%; }
  .gallery-card:nth-child(1) { left: -4%; top: 7%; transform: rotateY(20deg) rotateZ(-10deg); }
  .gallery-card:nth-child(2) { left: 15%; top: -4%; width: 20%; transform: translateZ(-55px) rotateY(12deg) rotateZ(8deg); }
  .gallery-card:nth-child(3) { left: 39%; top: 1%; width: 25%; transform: translateZ(25px) rotateY(-12deg) rotateZ(-5deg); }
  .gallery-card:nth-child(4) { left: 72%; top: -3%; width: 21%; transform: translateZ(-50px) rotateY(-20deg) rotateZ(8deg); }
  .gallery-card:nth-child(5) { left: 8%; top: 53%; width: 23%; transform: translateZ(30px) rotateY(10deg) rotateZ(5deg); }
  .gallery-card:nth-child(6) { left: 61%; top: 50%; width: 24%; transform: translateZ(45px) rotateY(-10deg) rotateZ(-7deg); }
  .gallery-card:nth-child(n+7) { display: none; }
  .gallery-card__float { padding: 3px; border-radius: 6px; }
  .gallery-card figcaption { min-height: 17px; padding-top: 3px; }
  .gallery-card figcaption span { font-size: 4px; }
  .gallery-card figcaption b { font-size: 5px; }
  .gallery-story__caption { bottom: 5px; justify-content: center; gap: 7px; font-size: 9px; }
  .gallery-story__caption small { display: none; }
  .gallery-auth .auth-panel { width: min(100%, 470px); justify-self: center; margin-top: 18px; padding: 0; }
  .gallery-auth .auth-card { padding: 26px 23px 22px; border-radius: 17px; }
  .gallery-auth .auth-form input { font-size: 16px; }
  .gallery-auth .auth-form input::placeholder { font-size: 11px; }
  .gallery-auth .auth-form h2 { font-size: 29px; }
  .gallery-footer { margin-top: 30px; padding-top: 20px; justify-content: center; text-align: center; font-size: 9px; }
  .gallery-footer nav { justify-content: center; gap: 14px; font-size: 8px; }
}
@media (max-width: 360px) {
  .gallery-auth .gallery-login { padding: 18px 14px; }
  .gallery-auth .auth-card { padding: 24px 18px; }
  .gallery-brand strong span { display: none; }
  .gallery-auth .gallery-story { min-height: 175px; }
  .gallery-heading h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-auth *, .gallery-auth *::before, .gallery-auth *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gallery-auth .gallery-field { transform: none !important; will-change: auto; }
}
