:root {
  color-scheme: dark;
  --gold: #d4af37;
  --gold-soft: #f6d365;
  --ink: #050505;
  --panel: rgba(12, 12, 12, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.62);
  --motion-micro: 180ms;
  --motion-normal: 420ms;
  --motion-cinematic: 900ms;
  --motion-camera: 1800ms;
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  font-family: Satoshi, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.selection-review-active {
  background: #e9e9e9;
}

body.selection-review-active .gallery-preview {
  display: none !important;
}

.selection-review-page[hidden] {
  display: none !important;
}

.selection-review-page {
  display: grid;
  gap: 28px;
  width: 100vw;
  min-height: 100vh;
  align-content: start;
  background: #e9e9e9;
  color: #111;
  padding: 0 0 clamp(34px, 6vw, 72px);
}

.selection-review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px clamp(20px, 4.5vw, 52px);
}

.selection-review-topbar div {
  display: grid;
  gap: 2px;
}

.selection-review-topbar strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.selection-review-topbar span {
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-review-topbar button {
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.58);
  font: inherit;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.selection-review-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px;
  width: min(100% - 48px, 1720px);
  margin: 38px auto 0;
}

.selection-review-main,
.selection-review-summary-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.055);
}

.selection-review-main {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.selection-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.selection-review-header span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selection-review-header h2 {
  margin: 8px 0 0;
  color: #151515;
  font-family: inherit;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.selection-review-view-icons {
  display: flex;
  gap: 9px;
  opacity: 0.48;
}

.selection-review-view-icons span {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #111;
}

.selection-review-view-icons span:last-child {
  width: 22px;
  border-width: 2px 0;
}

.selection-review-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 7px;
}

.selection-review-photo {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #d9d9d9;
  isolation: isolate;
}

.selection-review-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.selection-review-photo.is-featured {
  grid-column: span 2;
  min-height: clamp(280px, 34vw, 430px);
}

.selection-review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.selection-review-photo:hover img {
  transform: scale(1.015);
  filter: saturate(1.03);
}

.selection-review-photo button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.selection-review-photo small {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(0, 0, 0, 0.74);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  padding: 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.selection-review-photo:hover::after,
.selection-review-photo:focus-within::after,
.selection-review-photo:hover button,
.selection-review-photo:focus-within button,
.selection-review-photo:hover small,
.selection-review-photo:focus-within small {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.selection-review-photo button:hover {
  background: #ffffff;
}

.selection-review-summary-card {
  position: sticky;
  top: 24px;
  display: grid;
  align-self: start;
  gap: 0;
  overflow: hidden;
}

.selection-review-summary-card h3 {
  margin: 0;
  padding: 28px 30px;
  color: #151515;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.selection-review-summary-card dl {
  margin: 0;
}

.selection-review-summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 30px;
}

.selection-review-summary-card dt,
.selection-review-summary-card dd {
  margin: 0;
  font-size: 0.98rem;
}

.selection-review-summary-card dt {
  color: rgba(0, 0, 0, 0.74);
}

.selection-review-summary-card dd {
  color: #111;
  font-weight: 950;
}

.selection-review-summary-card label {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 28px 22px 22px;
}

.selection-review-summary-card label span {
  color: #222;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.selection-review-summary-card textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.4;
  padding: 16px;
}

.selection-review-summary-card button {
  min-height: 56px;
  margin: 0 22px 28px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.selection-review-summary-card button:hover {
  background: #111;
  color: #fff;
}

.selection-review-summary-card button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.selection-review-page-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.62);
  padding: 28px;
  text-align: center;
}

@media (max-width: 980px) {
  .selection-review-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 28px, 760px);
    margin-top: 22px;
  }

  .selection-review-summary-card {
    position: static;
    order: -1;
  }

  .selection-review-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .selection-review-topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 18px;
  }

  .selection-review-main {
    padding: 14px;
  }

  .selection-review-header {
    align-items: flex-start;
  }

  .selection-review-view-icons {
    display: none;
  }

  .selection-review-photo-grid {
    gap: 5px;
  }

  .selection-review-photo,
  .selection-review-photo.is-featured {
    grid-column: span 1;
    min-height: 190px;
  }

  .selection-review-summary-card h3,
  .selection-review-summary-card dl div {
    padding-inline: 20px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #050505;
  color: #fff;
}

.select-public-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 5vw, 64px);
  isolation: isolate;
}

.cinematic-backdrop,
.cinematic-backdrop::before,
.cinematic-backdrop::after {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.cinematic-backdrop {
  overflow: hidden;
  background-image:
    linear-gradient(140deg, rgba(5, 5, 5, 0.94), rgba(12, 10, 4, 0.54)),
    var(--login-poster, url("/assets/client-login-poster.svg"));
  background-position: center;
  background-size: cover;
  background-color: #050505;
}

.cinematic-backdrop video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
  opacity: 0.4;
  transition: opacity var(--motion-normal) var(--ease-cinematic);
}

.cinematic-backdrop.video-ready video {
  opacity: 0.46;
}

.cinematic-backdrop.video-failed video,
.cinematic-backdrop.reduced-motion video {
  display: none;
}

.cinematic-backdrop::before {
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 78% 24%, rgba(212, 175, 55, 0.24), transparent 25rem),
    radial-gradient(circle at 16% 82%, rgba(246, 211, 101, 0.08), transparent 23rem),
    radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(1px);
}

.cinematic-backdrop::after {
  z-index: 2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.26;
}

.select-access-card {
  position: relative;
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  width: min(100%, 416px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(212, 175, 55, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.08);
}

.select-access-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 211, 101, 0.12), transparent 16rem),
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 30%);
  content: "";
  pointer-events: none;
}

.select-access-card > * {
  position: relative;
  z-index: 1;
}

.select-access-card[hidden] {
  display: none;
}

.access-visual {
  display: none;
}

.studio-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  overflow: hidden;
  border: 1px solid rgba(246, 211, 101, 0.24);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.62);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 0 16px 38px rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.select-product-mark {
  display: inline-flex;
  width: min(184px, 100%);
  height: auto;
}

.select-product-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-identity p,
.select-access-copy span,
.gallery-preview-heading p,
.loading-brand p {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-identity strong {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.1;
}

.select-access-copy {
  display: grid;
  gap: 10px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 6vw, 3.55rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 7vw, 4.4rem);
}

.select-access-copy p {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  line-height: 1.55;
}

.select-access-copy small {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.client-login-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 750;
  outline: 0;
  transition:
    border-color var(--motion-micro) var(--ease-cinematic),
    box-shadow var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

input:focus {
  border-color: rgba(246, 211, 101, 0.62);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 54px;
}

.client-login-form .password-visibility-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: inline-grid;
  width: 40px;
  min-height: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    border-color var(--motion-micro) var(--ease-cinematic),
    color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic),
    box-shadow var(--motion-micro) var(--ease-cinematic);
}

.client-login-form .password-visibility-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-login-form .password-visibility-toggle:hover,
.client-login-form .password-visibility-toggle:focus-visible,
.client-login-form .password-visibility-toggle[aria-pressed="true"] {
  border-color: rgba(246, 211, 101, 0.42);
  background: rgba(246, 211, 101, 0.12);
  color: #f6d365;
  box-shadow: 0 0 24px rgba(246, 211, 101, 0.16);
  transform: translateY(-50%);
}

.client-login-form button {
  position: relative;
  min-height: 52px;
  border: 1px solid rgba(246, 211, 101, 0.55);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8df7f, #d4af37);
  color: #080808;
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.22);
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform var(--motion-micro) var(--ease-cinematic),
    box-shadow var(--motion-micro) var(--ease-cinematic);
}

.client-login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 58px rgba(212, 175, 55, 0.28);
}

.client-login-form p {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.client-login-form p.error {
  color: #f6d365;
  font-weight: 820;
  text-shadow: 0 0 24px rgba(246, 211, 101, 0.28);
}

.select-access-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.select-access-card footer a {
  color: rgba(246, 211, 101, 0.78);
  text-decoration: none;
}

.gallery-preview {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100vw - 28px));
  min-height: 72vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(8, 8, 8, 0.76);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
  user-select: none;
  -webkit-user-select: none;
}

.gallery-preview[hidden] {
  display: none;
}

.client-gallery-cover {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  isolation: isolate;
}

.client-gallery-cover[hidden] {
  display: none;
}

.client-gallery-cover-media,
.client-gallery-cover-overlay {
  position: absolute;
  inset: 0;
}

.client-gallery-cover-media {
  z-index: -3;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 34rem),
    linear-gradient(135deg, #111, #000);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.08) brightness(1.04);
  transform: scale(1.018);
  image-rendering: auto;
  animation: clientCoverDrift 24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.client-gallery-cover-media.has-image {
  background-position: center;
  background-size: cover;
}

.client-gallery-cover-overlay {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(0, 0, 0, 0.04), transparent 24rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.5)),
    rgba(0, 0, 0, 0.12);
}

.client-gallery-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.28)),
    radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, transparent 0 64%, rgba(0, 0, 0, 0.26));
  content: "";
}

.client-gallery-cover-content {
  display: grid;
  justify-items: center;
  gap: clamp(26px, 5vh, 52px);
  margin-top: clamp(92px, 26vh, 320px);
  padding: 24px;
  text-align: center;
  animation: clientCoverContentIn 1500ms var(--ease-cinematic) both, clientCoverTextFloat 9s ease-in-out 1.5s infinite;
}

.client-gallery-cover h2 {
  width: min(15ch, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  color: rgba(255, 255, 255, 0.96);
  font-family: "Cormorant Garamond", "Baskerville", "Libre Baskerville", Georgia, serif;
  font-size: clamp(4.1rem, 8.6vw, 8.4rem);
  font-weight: 300;
  letter-spacing: 0.018em;
  line-height: 0.88;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 18px 54px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(255, 255, 255, 0.1);
  animation: clientCoverTitleGlow 7s ease-in-out infinite;
}

.client-gallery-cover button {
  min-width: min(264px, calc(100vw - 48px));
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.94);
  padding: 0 34px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 780;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    transform var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic),
    border-color var(--motion-micro) var(--ease-cinematic);
}

.client-gallery-cover button:hover,
.client-gallery-cover button:focus-visible {
  border-color: rgba(246, 211, 101, 0.9);
  background: rgba(246, 211, 101, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.client-gallery-cover p {
  position: absolute;
  right: 24px;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 520;
  letter-spacing: 0.36em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
  animation: clientCoverStudioIn 1200ms var(--ease-cinematic) 220ms both;
}

.client-gallery-cover.is-exiting {
  animation: clientCoverExit 520ms var(--ease-cinematic) both;
}

@keyframes clientCoverDrift {
  from {
    transform: scale(1.06) translate3d(0, 1.2%, 0);
  }

  to {
    transform: scale(1.018) translate3d(0, 0, 0);
  }
}

@keyframes clientCoverTextFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes clientCoverTitleGlow {
  0%,
  100% {
    opacity: 0.94;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.54));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 24px 70px rgba(255, 255, 255, 0.12));
  }
}

@keyframes clientCoverContentIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes clientCoverStudioIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes clientCoverExit {
  to {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.015);
  }
}

.gallery-music {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 14px));
  right: max(18px, calc(env(safe-area-inset-right) + 14px));
  z-index: 120;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  color: #fff;
}

.gallery-music[hidden] {
  display: none;
}

.selection-floating-counter {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 14px));
  right: max(82px, calc(env(safe-area-inset-right) + 82px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(246, 211, 101, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0 14px 0 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  backdrop-filter: blur(16px) saturate(1.08);
  transition:
    opacity var(--motion-micro) var(--ease-cinematic),
    transform var(--motion-micro) var(--ease-cinematic),
    border-color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic);
}

.selection-floating-counter[hidden] {
  display: none;
}

.selection-floating-counter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.selection-floating-counter.is-complete {
  border-color: rgba(246, 211, 101, 0.72);
  background:
    linear-gradient(180deg, rgba(246, 211, 101, 0.26), rgba(246, 211, 101, 0.08)),
    rgba(0, 0, 0, 0.72);
}

.selection-floating-counter svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.selection-floating-counter span {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.selection-floating-counter.is-bumping {
  animation: selectionCounterBump 420ms var(--ease-cinematic);
}

.selection-fly-photo {
  position: fixed;
  z-index: 96;
  object-fit: cover;
  border: 1px solid rgba(246, 211, 101, 0.4);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.48);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.music-toggle,
.music-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.08);
  transition:
    transform var(--motion-micro) var(--ease-cinematic),
    border-color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic),
    color var(--motion-micro) var(--ease-cinematic);
}

.music-toggle {
  position: relative;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  animation: musicControlResolve 760ms var(--ease-cinematic) 180ms forwards;
}

.music-toggle::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  opacity: 0;
  content: "";
  pointer-events: none;
}

.gallery-music.is-playing .music-toggle::after {
  animation: musicBreath 2.6s var(--ease-inout) infinite;
}

.music-toggle:hover,
.music-controls button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(14, 90, 138, 0.58);
  color: #fff;
  transform: translateY(-1px);
}

.music-toggle svg,
.music-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-panel {
  display: grid;
  grid-template-columns: minmax(126px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(330px, calc(100vw - 88px));
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 24%, rgba(14, 90, 138, 0.22), transparent 11rem),
    rgba(0, 0, 0, 0.68);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38);
  padding: 9px 10px 9px 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px) scale(0.98);
  filter: blur(5px);
  backdrop-filter: blur(18px) saturate(1.08);
  transition:
    opacity 360ms var(--ease-cinematic),
    transform 520ms var(--ease-cinematic),
    filter 520ms var(--ease-cinematic);
}

.gallery-music[aria-expanded="true"] .music-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.music-track {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.music-track span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.music-track strong,
.music-track small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 760;
}

.music-track small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 650;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-controls button {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.music-controls button:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.gallery-preview-heading {
  display: grid;
  gap: 8px;
}

.gallery-preview-heading span {
  color: rgba(255, 255, 255, 0.62);
}

.selection-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.selection-action-bar div {
  display: grid;
  gap: 4px;
}

.selection-action-bar .selection-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selection-action-bar span {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 850;
}

.selection-action-bar strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.selection-action-bar button {
  min-height: 42px;
  border: 1px solid rgba(246, 211, 101, 0.45);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.9);
  color: #080808;
  padding: 0 16px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.selection-action-bar .selection-menu-toggle {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.selection-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.selection-action-bar button:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.44);
  cursor: not-allowed;
}

body.selection-submitted .selection-action-bar {
  border-color: rgba(83, 214, 142, 0.24);
  background: rgba(83, 214, 142, 0.08);
}

.selection-feedback {
  min-height: 18px;
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.selection-feedback.error {
  color: #ffcf9f;
}

.selection-menu-modal,
.selection-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 108;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(1.04);
}

.selection-menu-modal[hidden],
.selection-confirm-modal[hidden] {
  display: none;
}

.selection-menu-card,
.selection-confirm-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(100%, 680px);
  border: 1px solid rgba(246, 211, 101, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(246, 211, 101, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 8, 8, 0.94);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.64);
  padding: clamp(18px, 4vw, 26px);
}

.selection-menu-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.selection-menu-card header > div {
  display: grid;
  gap: 6px;
}

.selection-menu-card header span,
.selection-confirm-card > span,
.selection-message span {
  margin: 0;
  color: rgba(246, 211, 101, 0.78);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selection-menu-card h2,
.selection-confirm-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.selection-menu-card header button,
.selection-confirm-card > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.selection-menu-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-menu-tabs button {
  border: 0;
  border-bottom: 2px solid rgba(246, 211, 101, 0.82);
  background: transparent;
  color: #fff;
  padding: 0 0 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.selection-menu-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.selection-menu-summary strong,
.selection-review strong {
  color: #fff;
}

.selection-review-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
}

.selection-review-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.selection-review-list article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.selection-review-list article strong,
.selection-review-list article span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-review-list article span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

.selection-review-list article button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  padding: 0 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.selection-review-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.58);
  padding: 18px;
  text-align: center;
}

.selection-message {
  display: grid;
  gap: 8px;
}

.selection-message textarea,
.client-photo-card textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  outline: none;
}

.selection-message textarea {
  min-height: 70px;
  padding: 10px;
}

.selection-menu-actions,
.selection-confirm-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 10px;
}

.selection-menu-actions button,
.selection-confirm-card div button {
  min-height: 46px;
  border: 1px solid rgba(246, 211, 101, 0.42);
  border-radius: 10px;
  background: #f6d365;
  color: #080808;
  padding: 0 14px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.selection-menu-actions button:last-child,
.selection-confirm-card div button:last-child {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

.selection-confirm-card {
  width: min(100%, 440px);
}

.selection-confirm-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.client-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.client-gallery-load-more {
  min-height: 46px;
  border: 1px solid rgba(246, 211, 101, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #f6d365;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.client-gallery-load-more:hover {
  border-color: rgba(246, 211, 101, 0.48);
  background: rgba(246, 211, 101, 0.1);
}

.client-photo-card,
.client-gallery-grid div {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  color: #fff;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

.client-photo-card {
  display: block;
}

.client-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform var(--motion-micro) var(--ease-cinematic), opacity var(--motion-micro) var(--ease-cinematic);
}

.client-photo-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(-28deg, transparent 0 76px, rgba(255, 255, 255, 0.075) 76px 77px, transparent 77px 152px),
    radial-gradient(circle at 50% 44%, transparent 0 42%, rgba(0, 0, 0, 0.22) 100%);
  content: "";
  pointer-events: none;
}

.client-photo-card::after,
.client-photo-card span {
  z-index: 2;
}

.client-photo-card span {
  position: absolute;
  right: 8px;
  bottom: 52px;
  left: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-photo-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  padding: 0;
}

.client-photo-tools button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 1;
}

.client-photo-tools button.active,
.client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select] {
  border-color: rgba(246, 211, 101, 0.72);
  background: rgba(246, 211, 101, 0.9);
  color: #111;
}

.client-photo-card textarea {
  position: absolute;
  right: 8px;
  bottom: 52px;
  left: 8px;
  z-index: 4;
  display: none;
  min-height: 54px;
  max-height: 80px;
  padding: 8px;
}

.client-photo-card[aria-pressed="true"] textarea,
.client-photo-card[aria-pressed="true"]:focus-within textarea,
.client-photo-card[aria-pressed="true"]:hover textarea {
  display: block;
}

.client-photo-card::after {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #111;
  content: "";
}

.client-photo-card[aria-pressed="true"] {
  border-color: rgba(246, 211, 101, 0.8);
  box-shadow: 0 0 0 2px rgba(246, 211, 101, 0.18);
}

.client-photo-card[aria-pressed="true"] span {
  bottom: 112px;
}

.client-photo-card[aria-pressed="true"]::after {
  border-color: rgba(246, 211, 101, 0.9);
  background: #f6d365;
  content: "✓";
  font-size: 0.82rem;
  font-weight: 950;
}

.capture-shield {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    repeating-linear-gradient(-30deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 60px),
    rgba(0, 0, 0, 0.92);
  color: #fff;
  text-align: center;
}

.capture-shield[hidden] {
  display: none;
}

.capture-shield strong {
  display: block;
  color: rgba(246, 211, 101, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.capture-shield strong img {
  display: block;
  width: min(190px, 52vw);
  height: auto;
}

.capture-shield span {
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.client-photo-card:hover img {
  opacity: 0.88;
  transform: scale(1.025);
}

.client-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 72% 20%, rgba(14, 90, 138, 0.2), transparent 30rem),
    rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(18px) saturate(1.04);
}

.client-photo-lightbox[hidden] {
  display: none;
}

.client-photo-lightbox figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(14px, 2.8vw, 28px);
  align-items: stretch;
  width: 100%;
  height: min(88vh, 920px);
  margin: 0;
}

.client-photo-lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.client-photo-lightbox figcaption {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 8, 8, 0.78);
  padding: 18px;
}

.client-photo-lightbox figcaption strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-lightbox-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
}

.client-lightbox-actions button,
.client-lightbox-close,
.client-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.client-lightbox-actions button {
  min-height: 44px;
}

.client-lightbox-actions button.active {
  border-color: rgba(246, 211, 101, 0.68);
  background: #f6d365;
  color: #111;
}

.client-photo-lightbox label {
  display: grid;
  gap: 8px;
}

.client-photo-lightbox textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  padding: 12px;
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.client-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
}

.client-lightbox-nav {
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 58px);
  height: clamp(52px, 7vw, 76px);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  padding: 0;
  text-align: center;
}

.client-lightbox-nav.previous {
  text-indent: -0.04em;
}

.client-lightbox-nav.next {
  text-indent: 0.04em;
}

.client-lightbox-nav:hover,
.client-lightbox-close:hover,
.client-lightbox-actions button:hover {
  border-color: rgba(246, 211, 101, 0.42);
  background: rgba(246, 211, 101, 0.12);
}

.extra-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(1.04);
}

.extra-offer-modal[hidden] {
  display: none;
}

.extra-offer-card {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100%, 780px);
  border: 1px solid rgba(246, 211, 101, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 0%, rgba(246, 211, 101, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(8, 8, 8, 0.92);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.64);
  padding: clamp(18px, 4vw, 28px);
}

.extra-offer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.extra-offer-card header {
  display: grid;
  gap: 8px;
  padding-right: 46px;
}

.extra-offer-card header span,
.extra-offer-tiers small {
  color: var(--gold-soft);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.extra-offer-card h2 {
  font-family: inherit;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.extra-offer-card p {
  max-width: 56ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.extra-offer-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.extra-offer-tiers button {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-micro) var(--ease-cinematic),
    border-color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic);
}

.extra-offer-tiers button:hover,
.extra-offer-tiers button.active,
.extra-offer-tiers button.is-selected {
  border-color: rgba(246, 211, 101, 0.58);
  background:
    linear-gradient(180deg, rgba(246, 211, 101, 0.18), rgba(246, 211, 101, 0.05)),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.extra-offer-tiers strong {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.extra-offer-tiers span,
.extra-offer-summary span,
.extra-offer-summary small,
.extra-offer-feedback {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.extra-offer-tiers b {
  margin-top: auto;
  color: #fff;
  font-size: 1.05rem;
}

.extra-offer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(246, 211, 101, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.extra-offer-summary strong {
  color: var(--gold-soft);
  font-size: 1.2rem;
  white-space: nowrap;
}

.extra-offer-payment-step {
  display: grid;
  gap: 12px;
}

.extra-offer-payment-step[hidden] {
  display: none;
}

.extra-offer-payment-title {
  display: grid;
  gap: 4px;
}

.extra-offer-payment-title span {
  color: var(--gold-soft);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.extra-offer-payment-title strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.extra-offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.extra-offer-payment-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
}

.extra-offer-actions button {
  min-height: 48px;
  border: 1px solid rgba(246, 211, 101, 0.46);
  border-radius: 12px;
  background: #f6d365;
  color: #080808;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.extra-offer-actions button[disabled] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.46);
  cursor: not-allowed;
}

.extra-offer-back {
  justify-self: start;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  padding: 2px 0;
}

.extra-offer-back:hover {
  color: var(--gold-soft);
}

.extra-offer-feedback {
  min-height: 18px;
  margin: -4px 0 0;
}

.extra-offer-feedback.error,
.extra-offer-feedback.is-error {
  color: #ffcf9f;
}

.select-loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 80px);
  background:
    radial-gradient(ellipse at 50% 68%, rgba(56, 69, 78, 0.34), transparent 34rem),
    radial-gradient(circle at 74% 24%, rgba(14, 90, 138, 0.16), transparent 32rem),
    radial-gradient(circle at 24% 30%, rgba(34, 58, 72, 0.2), transparent 30rem),
    linear-gradient(180deg, #000 0%, #02090c 48%, #000 100%);
  backdrop-filter: blur(14px);
  overflow: hidden;
  text-align: center;
  transition: opacity 900ms var(--ease-cinematic), filter 900ms var(--ease-cinematic), transform 900ms var(--ease-cinematic);
}

.select-loading[hidden] {
  display: none;
}

.select-loading.is-exiting {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.015);
}

.select-loading-space-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.12) brightness(0.62);
  pointer-events: none;
}

.select-loading-map {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 14%, rgba(246, 211, 101, 0.74) 0 1px, transparent 1.7px),
    radial-gradient(circle at 86% 46%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 24% 72%, rgba(112, 203, 255, 0.64) 0 1px, transparent 1.7px),
    radial-gradient(circle at 58% 82%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 62%, rgba(44, 94, 125, 0.24), transparent 38rem),
    radial-gradient(ellipse at 78% 20%, rgba(246, 211, 101, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 7, 11, 0.42) 48%, rgba(0, 0, 0, 0.82));
  background-size: 260px 220px, 340px 260px, 420px 340px, 520px 420px, 620px 500px, auto, auto, auto;
  opacity: 0.78;
  animation: select-space-stars 44s linear infinite;
}

.select-loading-map::before {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 10% 22%, rgba(255, 255, 255, 0.7) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 34% 62%, rgba(255, 255, 255, 0.56) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 66% 28%, rgba(112, 203, 255, 0.48) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, 0.62) 0 0.8px, transparent 1.5px);
  background-size: 180px 150px, 280px 220px, 360px 290px, 460px 380px;
  opacity: 0.54;
  animation: select-space-stars 62s linear infinite reverse;
  content: "";
}

.select-loading-map::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 22%, rgba(0, 0, 0, 0.52) 72%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 32%, rgba(0, 0, 0, 0.72));
  content: "";
}

.select-loading::before {
  display: none;
}

.loading-brand {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.loading-brand .company-logo {
  width: 82px;
  height: 82px;
}

.loading-brand .company-logo.has-studio-logo {
  width: 136px;
  height: 66px;
  min-width: 136px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.loading-brand .company-logo.has-studio-logo img {
  padding: 0;
}

.select-loading h2 {
  width: min(18ch, 100%);
  margin-top: 24px;
  text-align: center;
  font-size: clamp(2rem, 7vw, 4rem);
}

.select-loading span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  text-align: center;
}

.select-loading [data-loading-phrase] {
  color: #f6d365;
  font-weight: 620;
  text-shadow: 0 0 26px rgba(246, 211, 101, 0.22);
}

.loading-voice-words {
  display: grid;
  justify-items: center;
  width: min(1040px, calc(100vw - 48px));
  min-height: clamp(5.2rem, 17vh, 9.2rem);
  margin: clamp(22px, 5vh, 46px) auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(1.08rem, 2.65vw, 2.32rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  filter: blur(8px);
}

.loading-voice-words.is-long-caption {
  width: min(1180px, calc(100vw - 40px));
  font-size: clamp(0.98rem, 2.1vw, 1.92rem);
  line-height: 1.06;
}

.loading-voice-words.is-caption-active {
  animation: select-loading-caption-block var(--caption-duration, 5s) cubic-bezier(.16,.84,.22,1) both;
}

.loading-voice-line {
  display: block;
  font: inherit;
  width: fit-content;
  max-width: min(58ch, calc(100vw - 56px));
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.loading-voice-words.is-long-caption .loading-voice-line {
  max-width: min(66ch, calc(100vw - 48px));
}

.loading-voice-line + .loading-voice-line {
  margin-top: clamp(2px, 0.55vh, 7px);
}

.loading-voice-words span {
  display: inline-block;
  margin: 0 0.12em;
  margin-top: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 12px, 0);
  animation: select-loading-word-in 1450ms cubic-bezier(.18,.78,.18,1) forwards;
  animation-delay: var(--word-delay, 0s);
}

@media (max-width: 560px) {
  .select-loading {
    align-content: center;
    padding: max(34px, calc(env(safe-area-inset-top) + 22px)) 18px max(78px, calc(env(safe-area-inset-bottom) + 58px));
  }

  .loading-brand {
    gap: 10px;
  }

  .loading-brand .company-logo {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
  }

  .loading-brand .company-logo.has-studio-logo {
    width: 118px;
    height: 56px;
    min-width: 118px;
  }

  .select-loading h2 {
    width: min(14ch, calc(100vw - 48px));
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 8vw, 2.58rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .select-loading [data-loading-phrase] {
    max-width: min(27ch, calc(100vw - 48px));
    margin-top: 18px;
    font-size: clamp(0.82rem, 3.25vw, 0.96rem);
    line-height: 1.35;
  }

  .loading-voice-words {
    width: min(100%, calc(100vw - 48px));
    min-height: clamp(3.5rem, 12vh, 5.6rem);
    margin-top: clamp(24px, 5vh, 36px);
    font-size: clamp(0.74rem, 3.25vw, 0.9rem);
    line-height: 1.04;
  }

  .loading-voice-words.is-long-caption {
    width: min(100%, calc(100vw - 58px));
    font-size: clamp(0.62rem, 2.85vw, 0.76rem);
    line-height: 1.08;
  }

  .loading-voice-line {
    max-width: min(30ch, calc(100vw - 48px));
  }

  .loading-voice-words.is-long-caption .loading-voice-line {
    max-width: min(32ch, calc(100vw - 58px));
  }

  .loading-voice-line + .loading-voice-line {
    margin-top: 2px;
  }

  .loading-line {
    width: min(210px, 62vw);
    margin-top: 22px;
  }

  .loading-skip {
    right: auto;
    left: 50%;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
  }

  .loading-skip:hover,
  .loading-skip:focus-visible {
    transform: translate(-50%, -1px);
  }
}

.loading-line {
  width: min(280px, 78vw);
  height: 3px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.loading-line i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #f6d365, transparent);
  animation: loadingLine 1.8s var(--ease-cinematic) infinite;
}

.loading-skip {
  position: fixed;
  right: max(22px, calc(env(safe-area-inset-right) + 18px));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 2;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.58);
  padding: 0 14px;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.08);
  transition:
    border-color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic),
    color var(--motion-micro) var(--ease-cinematic),
    transform var(--motion-micro) var(--ease-cinematic);
}

.loading-skip:hover,
.loading-skip:focus-visible {
  border-color: rgba(246, 211, 101, 0.34);
  background: rgba(246, 211, 101, 0.1);
  color: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .loading-line {
    width: min(210px, 62vw);
    margin-top: 22px;
  }

  .loading-skip {
    right: auto;
    left: 50%;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    width: 86px;
    min-width: 0;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
  }

  .loading-skip:hover,
  .loading-skip:focus-visible {
    transform: translate(-50%, -1px);
  }
}

@keyframes loadingLine {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(260%);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes select-loading-atmosphere {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 120px -80px, -90px 70px, 0 0, 0 0;
  }
}

@keyframes select-loading-mist {
  from {
    opacity: 0.86;
    transform: translate3d(-2%, 0, 0) scale(1) rotate(-8deg);
  }

  50% {
    opacity: 1;
    transform: translate3d(2%, -1%, 0) scale(1.03) rotate(-8deg);
  }

  to {
    opacity: 0.86;
    transform: translate3d(-2%, 0, 0) scale(1) rotate(-8deg);
  }
}

@keyframes select-space-stars {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 50% 50%, 50% 50%, 50% 50%;
  }

  to {
    background-position: 160px -220px, -140px 180px, 220px -140px, -240px 160px, 180px 240px, 50% 50%, 50% 50%, 50% 50%;
  }
}

@keyframes select-loading-word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes select-loading-caption-block {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 8px, 0) scale(0.992);
  }

  16%,
  86% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, -8px, 0) scale(0.996);
  }
}

@keyframes musicControlResolve {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes musicBreath {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.96);
  }

  42% {
    opacity: 0.72;
    transform: scale(1.14);
  }
}

@keyframes selectionCounterBump {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(-1px) scale(1.08);
  }
}

@media (max-width: 720px) {
  .select-public-page {
    align-items: center;
    justify-items: center;
    padding: 18px;
  }

  .cinematic-backdrop video {
    opacity: 0.36;
  }

  .select-access-card {
    width: 100%;
    max-width: 410px;
    border-radius: 16px;
    gap: 18px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.28rem, 11vw, 3.25rem);
  }

  .select-access-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-preview {
    width: 100%;
    min-height: calc(100vh - 28px);
    padding-top: 72px;
  }

  .gallery-preview.music-open {
    padding-top: 160px;
  }

  .gallery-music {
    top: 12px;
    right: 12px;
  }

  .selection-floating-counter {
    top: max(12px, calc(env(safe-area-inset-top) + 10px));
    right: max(68px, calc(env(safe-area-inset-right) + 68px));
    min-height: 40px;
    padding-inline: 11px 12px;
  }

  .music-panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(274px, calc(100vw - 76px));
  }

  .music-controls {
    justify-content: space-between;
  }

  .selection-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-action-bar .selection-action-buttons {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    width: 100%;
  }

  .selection-action-bar button {
    width: 100%;
  }

  .selection-action-bar .selection-menu-toggle {
    min-width: 50px;
  }

  .selection-menu-modal,
  .selection-confirm-modal {
    align-items: end;
    padding: 12px;
  }

  .selection-menu-card,
  .selection-confirm-card {
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 16px;
  }

  .selection-menu-actions,
  .selection-confirm-card div {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 0;
    overflow-x: clip;
    padding: 16px;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    justify-self: center;
    width: calc(100vw - 32px);
    max-width: 390px;
    transform: none !important;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .access-visual {
    display: none;
  }
}

/* Client gallery refinement */
body.gallery-ready .select-public-page {
  align-items: start;
  min-height: 100vh;
  overflow-y: auto;
}

.select-public-page .gallery-preview {
  width: min(1560px, calc(100vw - 36px));
  min-height: calc(100vh - 72px);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 82% 0%, rgba(246, 211, 101, 0.08), transparent 24rem),
    radial-gradient(circle at 18% 28%, rgba(14, 90, 138, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.78);
}

.gallery-preview-heading {
  max-width: 760px;
}

.gallery-preview-heading h2 {
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.92;
}

.gallery-preview-heading span {
  font-size: clamp(0.98rem, 2vw, 1.18rem);
}

.selection-action-bar {
  position: sticky;
  top: 14px;
  z-index: 8;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
    rgba(8, 8, 8, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(1.05);
}

.selection-action-bar .selection-menu-toggle {
  border-radius: 14px;
}

.selection-action-bar button {
  border-radius: 12px;
  transition:
    transform var(--motion-micro) var(--ease-cinematic),
    border-color var(--motion-micro) var(--ease-cinematic),
    background var(--motion-micro) var(--ease-cinematic);
}

.selection-action-bar button:not(:disabled):hover {
  transform: translateY(-1px);
}

.selection-menu-modal {
  place-items: stretch end;
  padding: clamp(10px, 2vw, 22px);
}

.selection-menu-card {
  width: min(100%, 560px);
  max-height: calc(100vh - clamp(20px, 4vw, 44px));
  overflow: auto;
  border-radius: 18px;
  animation: clientGalleryDrawerIn 420ms var(--ease-cinematic) both;
}

.selection-menu-tabs {
  gap: 6px;
  overflow-x: auto;
  border-bottom: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
}

.selection-menu-tabs button {
  flex: 1 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.64);
  padding: 0 12px;
  font-size: 0.76rem;
  cursor: pointer;
}

.selection-menu-tabs button.active {
  border-color: rgba(246, 211, 101, 0.34);
  background: rgba(246, 211, 101, 0.12);
  color: rgba(246, 211, 101, 0.94);
}

.selection-review-list article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.042);
}

.selection-review-list article button {
  border-radius: 10px;
}

.selection-menu-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-menu-actions button:nth-child(1) {
  grid-column: 1 / -1;
}

.selection-menu-actions button {
  border-radius: 12px;
  background: rgba(246, 211, 101, 0.9);
}

.selection-menu-actions button:nth-child(n + 2) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
}

.selection-menu-actions button:nth-child(3) {
  color: #ffcf9f;
}

.selection-confirm-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  border: 1px solid rgba(246, 211, 101, 0.18);
  border-radius: 14px;
  background: rgba(246, 211, 101, 0.08);
  padding: 14px;
}

.selection-confirm-summary strong {
  color: #fff;
}

.selection-confirm-summary small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.select-public-page .client-gallery-grid {
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  overflow: visible;
  padding: 8px 0 30px;
}

.select-public-page .client-photo-card,
.select-public-page .client-gallery-grid > div {
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 360ms var(--ease-cinematic),
    border-color 260ms var(--ease-cinematic),
    box-shadow 260ms var(--ease-cinematic),
    opacity 520ms var(--ease-cinematic),
    filter 520ms var(--ease-cinematic);
}

.client-photo-card.is-gallery-wide {
  grid-column: span 2;
}

.client-photo-card.is-gallery-tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.client-photo-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(-3px);
}

.client-photo-card:hover img {
  opacity: 0.96;
  transform: scale(1.045);
}

.client-photo-card span {
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  padding: 9px 12px;
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.client-photo-tools {
  right: 12px;
  bottom: auto;
  left: auto;
  top: 12px;
  grid-template-columns: 34px 34px;
}

.client-photo-tools [data-photo-select] {
  overflow: hidden;
  width: 34px;
  padding: 0;
  text-indent: -999px;
}

.client-photo-tools [data-photo-select]::after {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-indent: 0;
  content: "+";
}

.client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select]::after {
  content: "✓";
}

.client-photo-card textarea {
  right: 12px;
  bottom: 56px;
  left: 12px;
  border-radius: 12px;
}

.client-photo-card[aria-pressed="true"] span {
  bottom: 12px;
}

.client-photo-card[aria-pressed="true"] textarea {
  display: none;
}

.client-photo-card[aria-pressed="true"]:focus-within textarea,
.client-photo-card[aria-pressed="true"]:hover textarea {
  display: block;
}

[data-gallery-reveal] {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition-delay: calc(var(--reveal-index, 0) * 38ms);
}

[data-gallery-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes clientGalleryDrawerIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(24px, 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-gallery-reveal],
  [data-gallery-reveal].is-visible,
  .client-gallery-cover,
  .client-gallery-cover-media,
  .client-gallery-cover-content,
  .client-gallery-cover p,
  .selection-menu-card,
  .client-photo-card,
  .client-photo-card img {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .client-gallery-cover-content {
    margin-top: clamp(76px, 26vh, 240px);
  }

  .client-gallery-cover h2 {
    font-size: clamp(3.3rem, 13vw, 5.8rem);
    letter-spacing: 0.012em;
  }

  .select-public-page .gallery-preview {
    width: min(100%, calc(100vw - 24px));
    min-height: calc(100vh - 24px);
  }

  .select-public-page .client-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-photo-card.is-gallery-wide,
  .client-photo-card.is-gallery-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }

  .selection-menu-modal {
    place-items: end stretch;
    padding: 10px;
  }

  .selection-menu-card {
    width: 100%;
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 560px) {
  .client-gallery-cover-media {
    background-position: center top;
  }

  .client-gallery-cover-content {
    gap: 22px;
    margin-top: clamp(52px, 22vh, 190px);
  }

  .client-gallery-cover h2 {
    width: min(11.2em, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    font-size: clamp(2.55rem, 11.4vw, 3.35rem);
    letter-spacing: 0.01em;
    line-height: 0.96;
  }

  .client-gallery-cover button {
    min-height: 54px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .client-gallery-cover p {
    bottom: max(20px, env(safe-area-inset-bottom));
    font-size: 0.64rem;
    letter-spacing: 0.28em;
  }

  .select-public-page .client-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-preview-heading h2 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .selection-action-bar {
    top: 10px;
  }

  .selection-menu-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.select-public-page .gallery-preview {
  width: min(1480px, calc(100vw - 42px));
}

.select-public-page .client-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.select-public-page .client-photo-card,
.select-public-page .client-gallery-grid > div {
  aspect-ratio: 4 / 3;
}

@media (min-width: 1280px) {
  .select-public-page .client-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

@media (max-width: 720px) {
  .select-public-page .gallery-preview {
    width: min(100%, calc(100vw - 28px));
  }

  .select-public-page .client-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .client-photo-lightbox {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    overflow: auto;
    padding: 66px 14px 14px;
  }

  .client-photo-lightbox figure {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .client-photo-lightbox img {
    max-height: 54vh;
  }

  .client-photo-lightbox figcaption {
    min-height: auto;
  }

  .extra-offer-modal {
    align-items: end;
    padding: 12px;
  }

  .extra-offer-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 16px;
  }

  .extra-offer-tiers,
  .extra-offer-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .extra-offer-tiers button {
    min-height: 132px;
  }

  .extra-offer-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-lightbox-nav {
    position: fixed;
    top: 45%;
    z-index: 2;
    width: 42px;
    height: 58px;
  }

  .client-lightbox-nav.previous {
    left: 10px;
  }

  .client-lightbox-nav.next {
    right: 10px;
  }
}

/* End-of-file override for the public Select login composition. */
.select-public-page:has(.select-access-card:not([hidden])) {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
  width: 100vw !important;
  height: 100svh !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
  justify-self: center !important;
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual {
  display: none !important;
}

@media (max-width: 900px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    padding: 16px !important;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    width: calc(100vw - 32px) !important;
    max-width: 390px !important;
    transform: none !important;
  }
}

/* Final login composition guard: one centered parallax panel, no side visual. */
.select-public-page:has(.select-access-card:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
  justify-self: center !important;
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual {
  display: none !important;
}

/* Public Select login: Portfolio-style atmosphere with centered parallax access */
.select-public-page:has(.select-access-card:not([hidden])) {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  --parallax-x: 0;
  --parallax-y: 0;
  align-items: center;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(18px, 4vw, 44px);
  perspective: 1200px;
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual {
  display: none !important;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(56, 69, 78, 0.22), transparent 30rem),
    radial-gradient(circle at 76% 22%, rgba(14, 90, 138, 0.22), transparent 28rem),
    linear-gradient(180deg, #000 0%, #02070a 52%, #000 100%);
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop video {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  mix-blend-mode: screen;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::before {
  background:
    radial-gradient(circle, rgba(214, 244, 255, 0.54) 0 1px, transparent 1.7px) 8% 12% / 130px 130px,
    radial-gradient(circle, rgba(154, 213, 244, 0.34) 0 1px, transparent 1.8px) 62% 38% / 180px 180px,
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 0.8px, transparent 1.6px) 28% 72% / 220px 220px;
  opacity: 0.72;
  filter: drop-shadow(0 0 10px rgba(133, 211, 255, 0.34));
  transform: translate3d(calc(var(--parallax-x) * -18px), calc(var(--parallax-y) * -12px), 0) scale(1.08);
  animation: journey-star-drift 30s linear infinite;
  backdrop-filter: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.74), rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.72)),
    radial-gradient(circle at 50% 50%, transparent 0 32%, rgba(0,0,0,0.5) 74%, rgba(0,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.24), transparent 38%, rgba(0,0,0,0.46));
  opacity: 1;
  mask-image: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-x: 0px;
  --lift-y: 0px;
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: calc(100svh - 40px);
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.72), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 38px 120px rgba(0, 0, 0, 0.58),
    0 0 62px rgba(14, 90, 138, 0.14);
  transform:
    translate3d(var(--lift-x), var(--lift-y), 42px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 220ms var(--ease-cinematic),
    box-shadow 320ms var(--ease-cinematic),
    border-color 320ms var(--ease-cinematic);
  will-change: transform;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card::before {
  display: block;
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.16), transparent 24% 74%, rgba(64,179,255,0.16)),
    radial-gradient(circle at calc(48% + var(--parallax-x) * 20%) calc(20% + var(--parallax-y) * 12%), rgba(64,179,255,0.16), transparent 16rem);
  opacity: 0.9;
  content: "";
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card > * {
  transform: translateZ(34px);
}

.select-foreground-particles {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.select-public-page:not(:has(.select-access-card:not([hidden]))) .select-foreground-particles {
  display: none;
}

.select-foreground-particles span,
.select-foreground-particles::before,
.select-foreground-particles::after {
  position: absolute;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(214, 244, 255, 0.48), rgba(64, 179, 255, 0.16) 38%, transparent 68%);
  filter: blur(14px);
  opacity: 0.34;
  content: "";
  will-change: transform, opacity;
}

.select-foreground-particles::before {
  width: 190px;
  height: 190px;
  top: 12%;
  left: -220px;
  animation: select-foreground-orb 18s linear infinite;
}

.select-foreground-particles::after {
  width: 260px;
  height: 260px;
  right: -300px;
  bottom: 10%;
  opacity: 0.22;
  animation: select-foreground-orb-reverse 24s linear infinite -8s;
}

.select-foreground-particles span:nth-child(1) {
  width: 150px;
  height: 150px;
  top: 58%;
  left: -180px;
  animation: select-foreground-orb 22s linear infinite -5s;
}

.select-foreground-particles span:nth-child(2) {
  width: 96px;
  height: 96px;
  top: 22%;
  right: -120px;
  opacity: 0.24;
  animation: select-foreground-orb-reverse 17s linear infinite -2s;
}

.select-foreground-particles span:nth-child(3) {
  width: 220px;
  height: 220px;
  bottom: -170px;
  left: 18%;
  opacity: 0.18;
  animation: select-foreground-rise 20s ease-in-out infinite -9s;
}

.select-foreground-particles span:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 4%;
  left: 72%;
  opacity: 0.18;
  animation: select-foreground-rise 28s ease-in-out infinite -13s;
}

.select-foreground-particles span:nth-child(5) {
  width: 300px;
  height: 300px;
  top: 40%;
  left: -330px;
  opacity: 0.16;
  filter: blur(22px);
  animation: select-foreground-orb 30s linear infinite -16s;
}

@keyframes select-foreground-orb {
  0% {
    transform: translate3d(-12vw, 12vh, 0) scale(0.82);
    opacity: 0;
  }
  18% {
    opacity: 0.28;
  }
  72% {
    opacity: 0.34;
  }
  100% {
    transform: translate3d(128vw, -18vh, 0) scale(1.16);
    opacity: 0;
  }
}

@keyframes select-foreground-orb-reverse {
  0% {
    transform: translate3d(14vw, -8vh, 0) scale(0.88);
    opacity: 0;
  }
  20% {
    opacity: 0.24;
  }
  72% {
    opacity: 0.3;
  }
  100% {
    transform: translate3d(-128vw, 18vh, 0) scale(1.12);
    opacity: 0;
  }
}

@keyframes select-foreground-rise {
  0%,
  100% {
    transform: translate3d(calc(var(--parallax-x) * 18px), 12vh, 0) scale(0.86);
    opacity: 0.08;
  }
  48% {
    transform: translate3d(calc(var(--parallax-x) * -28px), -18vh, 0) scale(1.1);
    opacity: 0.24;
  }
}

@media (max-width: 720px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    justify-items: center;
    padding: 16px;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
    border-radius: 24px;
    padding: 20px;
    transform: translate3d(0, 0, 24px);
  }

  .select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::before {
    inset: 0;
    width: auto;
    height: auto;
    transform: translate3d(0, 0, 0) scale(1.08);
  }

  .select-foreground-particles span:nth-child(3),
  .select-foreground-particles span:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    transform: none;
    transition: none;
  }

  .select-foreground-particles,
  .select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::before {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-backdrop video {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .music-panel,
  .music-toggle,
  .music-controls button {
    transition: none !important;
  }
}

@media print {
  body {
    background: #000 !important;
  }

  body * {
    visibility: hidden !important;
  }

  body::before {
    display: grid;
    min-height: 100vh;
    place-items: center;
    color: #fff;
    content: "Impressão bloqueada pela proteção visual VICTTO.";
    font: 700 18px Satoshi, Arial, sans-serif;
    visibility: visible !important;
  }
}

/* Cinematic studio alignment */
:root {
  --gold: #0E5A8A;
  --gold-soft: #ffffff;
  --ink: #000000;
  --panel: rgba(0, 0, 0, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --muted: rgba(255, 255, 255, 0.66);
}

.cinematic-backdrop {
  background-image:
    radial-gradient(circle at 74% 22%, rgba(14, 90, 138, 0.3), transparent 26rem),
    linear-gradient(145deg, rgba(0, 0, 0, 0.22), rgba(5, 5, 5, 0.52)),
    var(--login-poster, url("/assets/client-login-poster.svg"));
  background-position: center;
  background-size: cover;
}

.cinematic-backdrop::before {
  background:
    radial-gradient(circle at 78% 24%, rgba(14, 90, 138, 0.22), transparent 25rem),
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.84));
}

.select-access-card,
.gallery-preview {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(56, 69, 78, 0.22), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.78);
}

h1,
h2 {
  font-family: Baskerville, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.client-login-form button {
  border-radius: 0;
  background: #0E5A8A;
  color: #fff;
}

/* Studio-wide UI audit: compact public Select access */
:root {
  --panel: rgba(0, 0, 0, 0.68);
  --line: rgba(255, 255, 255, 0.105);
  --muted: rgba(255, 255, 255, 0.58);
  --motion-micro: 180ms;
  --motion-normal: 420ms;
  --motion-cinematic: 900ms;
  --motion-camera: 1800ms;
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

.cinematic-backdrop::before {
  background:
    radial-gradient(circle at 76% 24%, rgba(14, 90, 138, 0.17), transparent 22rem),
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.88));
}

.cinematic-backdrop::after {
  opacity: 0.12;
}

.select-public-page {
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 4vw, 46px);
}

.select-access-card {
  width: min(100%, 346px);
  gap: 14px;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(180deg, rgba(56, 69, 78, 0.16), rgba(0, 0, 0, 0.74)),
    rgba(0, 0, 0, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 84px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px) saturate(1.02);
}

.select-access-card::before {
  opacity: 0.28;
}

.company-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.56rem;
}

.studio-identity p,
.select-access-copy span,
.gallery-preview-heading p,
.loading-brand p,
label span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

.studio-identity strong {
  font-size: 0.82rem;
}

.select-access-copy {
  gap: 8px;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 5.8vw, 3.6rem);
}

.select-access-copy p {
  max-width: 27ch;
  font-size: 0.82rem;
  line-height: 1.42;
}

.select-access-copy small {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.62rem;
  font-weight: 760;
}

.client-login-form {
  gap: 10px;
}

input {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 600;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(14, 90, 138, 0.22);
}

.client-login-form p {
  min-height: 16px;
  font-size: 0.72rem;
}

.client-login-form button {
  min-height: 42px;
  border-radius: 8px;
  border-color: rgba(14, 90, 138, 0.8);
  background: rgba(14, 90, 138, 0.86);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.select-access-card footer {
  padding-top: 12px;
  font-size: 0.64rem;
  font-weight: 650;
}

.select-access-card footer a {
  color: rgba(255, 255, 255, 0.7);
}

.gallery-preview {
  border-radius: 10px;
  padding: clamp(16px, 3vw, 22px);
}

.client-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.select-loading {
  background: rgba(0, 0, 0, 0.92);
}

.select-loading::before {
  opacity: 0.28;
  border-color: rgba(255, 255, 255, 0.12);
}

.loading-line {
  height: 1px;
}

.loading-line i {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

@media (max-width: 720px) {
  .select-public-page {
    padding: 16px;
  }

  .select-access-card {
    width: min(100%, 340px);
    gap: 13px;
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 2.55rem);
  }
}

/* Public Select login: align access screen with the cinematic loading environment */
.select-public-page:has(.select-access-card:not([hidden])) {
  align-items: center;
  justify-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 100svh;
  padding: clamp(28px, 5vw, 70px);
  overflow-x: clip;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop {
  background:
    radial-gradient(ellipse at 50% 68%, rgba(56, 69, 78, 0.34), transparent 34rem),
    radial-gradient(circle at 74% 24%, rgba(14, 90, 138, 0.16), transparent 32rem),
    radial-gradient(circle at 24% 30%, rgba(34, 58, 72, 0.2), transparent 30rem),
    linear-gradient(180deg, #000 0%, #02090c 48%, #000 100%);
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop video {
  display: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::before {
  background:
    repeating-radial-gradient(circle at 50% 88%, transparent 0 42px, rgba(255,255,255,0.045) 43px 44px, transparent 45px 92px),
    linear-gradient(116deg, transparent 0 42%, rgba(255,255,255,0.055) 42.1% 42.22%, transparent 42.5%),
    linear-gradient(24deg, transparent 0 56%, rgba(14, 90, 138,0.08) 56.1% 56.24%, transparent 56.5%),
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.055), transparent 22rem);
  opacity: 0.62;
  animation: select-loading-atmosphere 28s ease-in-out infinite alternate;
  backdrop-filter: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.42), transparent 42%, rgba(0,0,0,0.62));
  background-size: auto;
  mask-image: none;
  opacity: 1;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
  width: min(100%, 500px);
  gap: clamp(16px, 2.2vh, 22px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.84), rgba(0, 0, 0, 0.88)),
    rgba(0, 0, 0, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 34px 110px rgba(0, 0, 0, 0.56);
  padding: clamp(24px, 4vw, 38px);
  overflow: visible;
  backdrop-filter: blur(18px) saturate(1.08);
  animation: selectAccessResolve 1000ms var(--ease-cinematic) both;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card::before {
  display: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .studio-identity {
  align-items: center;
  gap: 14px;
}

.select-public-page:has(.select-access-card:not([hidden])) .company-logo {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: rgba(0, 8, 14, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 80px rgba(0, 0, 0, 0.42);
}

.select-public-page:has(.select-access-card:not([hidden])) .studio-identity p,
.select-public-page:has(.select-access-card:not([hidden])) .select-access-copy span,
.select-public-page:has(.select-access-card:not([hidden])) label span {
  color: rgba(255, 255, 255, 0.58);
}

.select-public-page:has(.select-access-card:not([hidden])) .studio-identity strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}

.select-public-page:has(.select-access-card:not([hidden])) h1 {
  display: grid;
  gap: 0.03em;
  max-width: 9em;
  color: #fff;
  font-size: clamp(2.72rem, 4.3vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 28px 90px rgba(14, 90, 138, 0.32);
}

.select-public-page:has(.select-access-card:not([hidden])) h1 span {
  display: block;
  color: #f6f1e9;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-copy p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.45;
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-copy small {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form {
  width: 100%;
  gap: 12px;
  margin-top: 2px;
}

.select-public-page:has(.select-access-card:not([hidden])) input {
  min-height: 56px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(1, 10, 18, 0.72);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.select-public-page:has(.select-access-card:not([hidden])) input:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.52);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(14, 90, 138, 0.2);
}

.select-public-page:has(.select-access-card:not([hidden])) .password-field input {
  padding-right: 58px;
}

.select-public-page:has(.select-access-card:not([hidden])) .password-visibility-toggle {
  right: 9px;
  width: 42px;
  min-height: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .password-visibility-toggle:hover,
.select-public-page:has(.select-access-card:not([hidden])) .password-visibility-toggle:focus-visible,
.select-public-page:has(.select-access-card:not([hidden])) .password-visibility-toggle[aria-pressed="true"] {
  border-color: rgba(64, 179, 255, 0.42);
  background: rgba(18, 132, 199, 0.17);
  color: #dff5ff;
  box-shadow: 0 0 28px rgba(18, 132, 199, 0.18);
  transform: translateY(-50%);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form button {
  min-height: 56px;
  border-radius: 16px;
  border-color: rgba(64, 179, 255, 0.32);
  background: linear-gradient(135deg, #0a4f80, #1284c7 48%, #0b2b44);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(18, 132, 199, 0.22);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form button:hover {
  background: rgba(19, 105, 158, 0.94);
  transform: translateY(-1px);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle,
.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle:hover,
.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle:focus-visible,
.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle[aria-pressed="true"] {
  min-height: 42px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle:hover,
.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle:focus-visible,
.select-public-page:has(.select-access-card:not([hidden])) .client-login-form .password-visibility-toggle[aria-pressed="true"] {
  border-color: rgba(64, 179, 255, 0.42);
  background: rgba(18, 132, 199, 0.17);
  color: #dff5ff;
  box-shadow: 0 0 28px rgba(18, 132, 199, 0.18);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form p {
  color: rgba(255, 255, 255, 0.58);
}

.select-public-page:has(.select-access-card:not([hidden])) .client-login-form p.error {
  color: #f6d365;
  font-weight: 820;
  text-shadow: 0 0 24px rgba(246, 211, 101, 0.32);
}

.select-public-page:has(.select-access-card:not([hidden])) .select-access-card footer {
  width: 100%;
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual {
  position: relative;
  z-index: 1;
  display: none;
  align-self: stretch;
  min-height: min(70vh, 660px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 26%, rgba(64, 179, 255, 0.28), transparent 13rem),
    radial-gradient(circle at 36% 72%, rgba(14, 90, 138, 0.28), transparent 15rem),
    linear-gradient(145deg, rgba(7, 31, 50, 0.92), rgba(0, 0, 0, 0.92) 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 120px rgba(0, 0, 0, 0.42);
  animation: selectAccessResolve 1000ms var(--ease-cinematic) 90ms both;
}

@media (min-width: 901px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    justify-items: center;
    grid-template-columns: minmax(360px, 500px) minmax(360px, 560px);
    gap: clamp(18px, 4vw, 58px);
  }

  .select-public-page:has(.select-access-card:not([hidden])) .access-visual {
    display: grid;
  }

  .select-public-page:has(.select-access-card:not([hidden])) [data-gallery-name-card] {
    display: none;
  }
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual::before {
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: min(760px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 52px, rgba(255,255,255,0.07) 53px 54px, transparent 55px 106px),
    radial-gradient(circle at 50% 50%, rgba(64, 179, 255, 0.14), transparent 54%);
  content: "";
}

.select-public-page:has(.select-access-card:not([hidden])) .access-visual::after {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,0.1) 46.2% 46.5%, transparent 47%),
    linear-gradient(24deg, transparent 0 58%, rgba(64,179,255,0.16) 58.2% 58.4%, transparent 58.8%);
  content: "";
}

.access-visual-orbit {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  transform: rotate(-16deg);
}

.access-visual-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(430px, calc(100% - 52px));
  margin: 0 0 34px 34px;
}

.access-visual-copy span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.56);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.access-visual-copy strong {
  display: block;
  color: rgba(255,255,255,0.88);
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(2.45rem, 4vw, 4.9rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 30px 90px rgba(14, 90, 138, 0.34);
}

@keyframes selectAccessResolve {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 22px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 720px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    align-items: center;
    justify-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    justify-self: center;
    width: min(100%, 390px);
    border-radius: 24px;
    padding: 22px;
    gap: 16px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .select-public-page:has(.select-access-card:not([hidden])) .access-visual {
    display: none;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .cinematic-backdrop::before {
    inset: auto auto -260px 50%;
    width: 760px;
    height: 760px;
    transform: translateX(-50%);
    background:
      repeating-radial-gradient(circle at 50% 50%, transparent 0 42px, rgba(255,255,255,0.05) 43px 44px, transparent 45px 92px),
      linear-gradient(116deg, transparent 0 42%, rgba(255,255,255,0.055) 42.1% 42.22%, transparent 42.5%),
      linear-gradient(24deg, transparent 0 56%, rgba(14, 90, 138,0.08) 56.1% 56.24%, transparent 56.5%),
      radial-gradient(circle at 50% 50%, rgba(64,179,255,0.07), transparent 58%);
    background-size: auto;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .company-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .select-public-page:has(.select-access-card:not([hidden])) h1 {
    max-width: 8.6em;
    font-size: clamp(2.45rem, 10.8vw, 3.35rem);
    line-height: 0.96;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .client-login-form,
  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card footer {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .select-public-page:has(.select-access-card:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    overflow-x: clip;
    padding: 16px;
  }

  .select-public-page:has(.select-access-card:not([hidden])) .select-access-card {
    justify-self: center;
    width: min(100%, 390px);
    max-width: calc(100vw - 32px);
  }

  .select-public-page:has(.select-access-card:not([hidden])) .access-visual {
    display: none;
  }
}

/* Public Select gallery: proof-style photo review */
body.gallery-ready:not(.gallery-cover-ready) {
  background: #f4f3ef;
}

body.gallery-ready:not(.gallery-cover-ready) .select-public-page {
  align-items: start;
  justify-items: stretch;
  min-height: 100vh;
  overflow-y: auto;
  padding: 0;
  background: #f4f3ef;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .cinematic-backdrop,
body.gallery-ready:not(.gallery-cover-ready) .select-foreground-particles {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 0;
  width: 100vw;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #f4f3ef;
  box-shadow: none;
  padding: 0;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-preview-heading {
  grid-column: 1;
  display: grid;
  align-content: center;
  min-height: 92px;
  max-width: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f6f2;
  padding: 20px 24px 18px;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-preview-heading p {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-preview-heading h2 {
  overflow: hidden;
  margin: 0;
  color: #171717;
  font-family: Satoshi, Inter, system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.8vw, 1.16rem);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-preview-heading span {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.78rem;
  font-weight: 520;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-column: 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 30px);
  min-height: 92px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: #f7f6f2;
  box-shadow: none;
  backdrop-filter: none;
  padding: 18px clamp(22px, 3vw, 42px) 18px 18px;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-control {
  position: relative;
  align-self: center;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-control {
  position: relative;
  align-self: center;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #111;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #111;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 8px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.045);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 9px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.045);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle span {
  color: #111;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
  color: #111;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle:hover {
  background: transparent;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle:hover {
  background: transparent;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 40;
  width: min(440px, calc(100vw - 32px));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  color: #111;
  transform: translateX(-50%);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  color: #111;
  transform: translateX(-50%);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover[hidden] {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover[hidden] {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-arrow {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-arrow {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dl {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  padding: 12px 8px;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 20px;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dl div:last-child {
  border-bottom: 0;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dt {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #111;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 520;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dt svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dd {
  margin: 0;
  color: #111;
  font-size: clamp(1.08rem, 2.2vw, 1.26rem);
  font-weight: 560;
  letter-spacing: 0;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  padding: 0 26px;
  text-align: left;
  text-transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover button:last-child {
  border-bottom: 0;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover button:hover,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover button.active {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover span,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover strong {
  color: #111;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover strong {
  font-size: clamp(1.08rem, 2.2vw, 1.26rem);
  font-weight: 560;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar div {
  gap: 3px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar > div:nth-child(2) {
  min-width: 178px;
  padding-inline: 2px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar span {
  color: #111;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar strong {
  max-width: 230px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.73rem;
  font-weight: 560;
  line-height: 1.25;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-buttons {
  gap: clamp(12px, 1.5vw, 18px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar button {
  min-width: 116px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #171717;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar button:not(:disabled):hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.045);
  color: #111;
  transform: translateY(-1px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-info-toggle {
  min-width: 0;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-info-toggle:not(:disabled):hover {
  background: transparent;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-info-toggle:not(:disabled):hover svg,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle:not(:disabled):hover svg,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle:not(:disabled):hover {
  border-color: rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.86), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.34));
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle {
  min-width: 0;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle:not(:disabled):hover {
  background: transparent;
  color: #111;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar button:disabled {
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.34);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle {
  min-width: 52px;
  width: 52px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0;
  border-color: rgba(0, 0, 0, 0.18);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.045);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle span {
  background: currentColor;
  width: 18px;
  height: 1.5px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
  min-width: 136px;
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.36);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection]:not(:disabled):hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-feedback {
  grid-column: 1 / -1;
  margin: 0;
  color: #7a4a00;
  background: #fff7da;
  padding: 0 24px;
}

body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  width: 100%;
  padding: 4px;
  background: #f4f3ef;
}

body.gallery-ready:not(.gallery-cover-ready) .client-gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 240px;
  margin: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1rem;
  font-weight: 520;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card,
body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid > div {
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 0;
  background: #e3e1dc;
  box-shadow: none;
  transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card.is-gallery-wide,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card.is-gallery-tall {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 3 / 2;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card::before,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card::after {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card img {
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover img {
  opacity: 0.96;
  transform: scale(1.012);
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] {
  border: 4px solid #69e99a;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card span {
  right: 74px;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 104px);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  opacity: 0;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 620;
  line-height: 1.2;
  text-overflow: ellipsis;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover span,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:focus-within span {
  opacity: 1;
  transform: translateY(0);
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools {
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 6;
  display: grid;
  grid-template-columns: 40px;
  gap: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select] {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 0;
  text-indent: -999px;
  pointer-events: auto;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select]::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  text-indent: 0;
  content: "";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select] {
  border-color: #26d972;
  background: #26d972;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select]::after {
  content: "✓";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-favorite] {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover .client-photo-tools [data-photo-favorite],
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:focus-within .client-photo-tools [data-photo-favorite],
body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-favorite].active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card textarea {
  position: absolute !important;
  inset: auto !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  resize: none !important;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter {
  top: 22px;
  right: 236px;
  bottom: auto;
  background: #fff;
  color: #111;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter svg {
  color: #111;
  stroke: currentColor;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
  position: fixed;
  top: 108px;
  right: 22px;
  bottom: auto;
  z-index: 120;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-music .music-toggle {
  background: rgba(17, 17, 17, 0.92);
}

body.client-lightbox-open .gallery-music {
  top: max(22px, calc(env(safe-area-inset-top) + 14px));
  right: max(86px, calc(env(safe-area-inset-right) + 78px));
}

body.gallery-ready:not(.gallery-cover-ready) .client-gallery-load-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 28px 0 44px;
  border-radius: 0;
  border-color: #111;
  background: transparent;
  color: #111;
  box-shadow: none;
}

@media (max-width: 980px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    grid-column: 1;
    min-height: 72px;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle span {
    display: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
    display: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover {
    left: 0;
    transform: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover {
    right: 0;
    left: auto;
    transform: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-arrow {
    left: 22px;
    transform: rotate(45deg);
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-arrow {
    right: 22px;
    left: auto;
    transform: rotate(45deg);
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter {
    top: auto;
    right: 86px;
    bottom: 22px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
    top: 88px;
    right: 16px;
  }

  body.client-lightbox-open .gallery-music {
    top: max(16px, calc(env(safe-area-inset-top) + 12px));
    right: max(74px, calc(env(safe-area-inset-right) + 70px));
  }
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-preview-heading {
    min-height: 76px;
    padding: 16px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    min-height: 68px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar::-webkit-scrollbar {
    display: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar strong {
    max-width: 136px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-buttons {
    width: auto;
    flex: 0 0 auto;
    gap: 8px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar button:not(.selection-menu-toggle) {
    min-width: 104px;
    min-height: 44px;
    flex: 0 0 auto;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle {
    width: 42px;
    flex: 0 0 42px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle svg,
  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle svg {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
    min-width: 112px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 3px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-card,
  body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid > div {
    aspect-ratio: 4 / 3;
  }
}

/* Client gallery toolbar: minimal operational controls */
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
  min-height: 78px;
  gap: clamp(10px, 1.4vw, 18px);
  border-bottom-color: rgba(0, 0, 0, 0.07);
  background: #f8f7f3;
  padding: 14px clamp(20px, 2.6vw, 34px) 14px 18px;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0 16px 0 10px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle svg,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle svg {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px;
  stroke-width: 1.75;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle span,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
  color: #151515;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle:not(:disabled):hover,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle:not(:disabled):hover,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle:not(:disabled):hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-info-toggle:not(:disabled):hover svg,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle:not(:disabled):hover svg {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary {
  min-width: clamp(174px, 18vw, 246px);
  padding: 0 4px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary span {
  display: block;
  color: #111;
  font-size: clamp(0.76rem, 1vw, 0.86rem);
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary strong {
  display: block;
  max-width: none;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.58);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-buttons {
  gap: 10px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  border-color: rgba(0, 0, 0, 0.13);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle span {
  width: 16px;
  height: 1.5px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
  min-width: 132px;
  min-height: 44px;
  border-color: #161616;
  border-radius: 0;
  background: #161616;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection]:not(:disabled):hover {
  border-color: #000;
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection]:disabled {
  border-color: rgba(0, 0, 0, 0.16);
  background: transparent;
  color: rgba(0, 0, 0, 0.34);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter {
  top: 17px;
  right: clamp(178px, 12.5vw, 222px);
  min-height: 44px;
  border-color: rgba(0, 0, 0, 0.11);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  color: #111;
  padding: 0 14px;
  backdrop-filter: blur(10px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter.is-complete {
  border-color: rgba(0, 0, 0, 0.18);
  background: #fff;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter svg {
  width: 18px;
  height: 18px;
  color: #111;
  stroke: currentColor;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter span {
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover {
  top: calc(100% + 12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-popover dl div {
  min-height: 64px;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-popover button {
  min-height: 62px;
}

@media (max-width: 980px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    gap: 10px;
    min-height: 68px;
    padding: 10px 14px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle,
  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    place-content: center;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-floating-counter {
    top: auto;
    right: 72px;
    bottom: 16px;
    min-height: 40px;
  }
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    gap: 7px;
    min-height: 64px;
    padding: 9px 10px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary strong {
    max-width: 156px;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-info-toggle,
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .gallery-filter-toggle,
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle svg,
  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle svg {
    width: 26px;
    height: 26px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
    min-width: 98px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }
}

/* Select public gallery: mobile review grid refinements */
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
  position: sticky;
  top: 0;
  z-index: 80;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
  position: fixed;
  z-index: 82;
}

body.client-lightbox-open .gallery-music {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid {
  gap: 6px;
  padding: 6px;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card,
body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid > div,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card.is-gallery-wide,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card.is-gallery-tall {
  aspect-ratio: 1 / 1;
  background: #e9e6de;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card img {
  object-fit: contain;
  background: #e9e6de;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover img {
  opacity: 1;
  transform: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card span,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:hover span,
body.gallery-ready:not(.gallery-cover-ready) .client-photo-card:focus-within span {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools {
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  grid-template-columns: 32px;
  gap: 6px;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select] {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-width: 1.5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select]::after {
  color: #111;
  font-size: 0.95rem;
  content: "+";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] {
  border: 0;
  outline: 3px solid #26d972;
  outline-offset: -3px;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select]::after {
  content: "✓";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-favorite] {
  display: none;
}

@media (max-width: 980px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
    top: 86px;
    right: 14px;
  }
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    top: 0;
    z-index: 80;
    overflow-x: clip;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar > div:nth-child(2),
  body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary {
    min-width: 128px;
    flex: 1 1 128px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary strong {
    max-width: 128px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-buttons {
    gap: 6px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
    min-width: 84px;
    padding: 0 8px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-card,
  body.gallery-ready:not(.gallery-cover-ready) .client-gallery-grid > div {
    aspect-ratio: 1 / 1;
  }
}

/* Select public gallery: client-safe feedback and calmer controls */
body.gallery-ready:not(.gallery-cover-ready) .selection-feedback {
  display: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-feedback.is-visible {
  grid-column: 1 / -1;
  justify-self: center;
  display: block;
  width: min(760px, calc(100% - 28px));
  margin: 10px auto;
  border: 1px solid rgba(138, 91, 10, 0.18);
  border-radius: 999px;
  background: rgba(255, 249, 228, 0.96);
  color: #6f4a08;
  box-shadow: 0 10px 30px rgba(111, 74, 8, 0.08);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
  min-height: 70px;
  border-bottom-color: rgba(0, 0, 0, 0.06);
  background: rgba(250, 249, 245, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(14px) saturate(1.05);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary span {
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  letter-spacing: 0.11em;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-status-summary strong {
  color: rgba(0, 0, 0, 0.5);
  font-size: clamp(0.74rem, 0.92vw, 0.82rem);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-info-toggle,
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar .selection-menu-toggle {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
  border-radius: 999px;
  min-height: 42px;
  background: #171717;
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-feedback.is-visible {
    width: calc(100% - 18px);
    margin: 8px auto;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    min-height: 60px;
    padding: 8px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar [data-finish-selection] {
    border-radius: 999px;
    min-height: 38px;
  }
}

/* Select public gallery: visible filters and bulk selection menu */
body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
  display: inline;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
  min-width: 104px;
}

.selection-bulk-actions {
  display: flex;
  gap: 10px;
}

.selection-bulk-actions[hidden] {
  display: none;
}

.selection-bulk-actions button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 14px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.selection-bulk-actions button:last-child:not(:disabled) {
  border-color: rgba(246, 211, 101, 0.56);
  background: #f6d365;
  color: #080808;
}

.selection-bulk-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.selection-review-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.selection-review-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.selection-review-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection-review-check span {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.selection-review-check input:checked + span {
  border-color: #f6d365;
  background: #f6d365;
  box-shadow: inset 0 0 0 5px #111;
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
    width: auto;
    min-width: 76px;
    padding: 0 10px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
    display: inline;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .selection-bulk-actions {
    flex-direction: column;
  }
}

/* Select public gallery: persistent mobile controls */
@media (max-width: 900px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-preview {
    padding-top: 0;
  }

  body.gallery-ready:not(.gallery-cover-ready) .select-public-page {
    overflow-y: visible;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 180;
    grid-column: 1 / -1;
    width: 100%;
    min-height: max(66px, calc(env(safe-area-inset-top) + 60px));
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: rgba(250, 249, 245, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    backdrop-filter: blur(16px) saturate(1.08);
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
    position: sticky;
    top: max(118px, calc(env(safe-area-inset-top) + 112px));
    right: max(10px, calc(env(safe-area-inset-right) + 10px));
    z-index: 190;
    width: 42px;
    height: 42px;
    margin-left: auto;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-music .music-panel {
    position: absolute;
    top: 0;
    right: 50px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    z-index: 18;
    display: grid;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: default;
    pointer-events: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select] {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border: 1.5px solid rgba(17, 17, 17, 0.62);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    opacity: 1;
    pointer-events: auto;
    text-indent: -999px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select]::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 0.98rem;
    font-weight: 820;
    text-indent: 0;
    content: "+";
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select] {
    border-color: #26d972;
    background: #26d972;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select]::after {
    color: #07170c;
    content: "✓";
  }
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-preview {
    padding-top: 0;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
    gap: 6px;
    min-height: max(62px, calc(env(safe-area-inset-top) + 56px));
    overflow: visible;
    padding: max(7px, env(safe-area-inset-top)) 8px 7px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
    top: max(112px, calc(env(safe-area-inset-top) + 106px));
    right: max(8px, calc(env(safe-area-inset-right) + 8px));
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  body.gallery-ready:not(.gallery-cover-ready) .gallery-filter-toggle span {
    display: none;
  }
}

/* Select public gallery: persistent desktop/mobile controls */
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 180;
  grid-column: 1 / -1;
  width: 100%;
  transform: translateY(0);
  transition:
    transform 260ms var(--ease-cinematic),
    opacity 220ms var(--ease-cinematic),
    box-shadow 220ms var(--ease-cinematic);
}

body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
  position: fixed !important;
  top: max(92px, calc(env(safe-area-inset-top) + 86px)) !important;
  right: max(18px, calc(env(safe-area-inset-right) + 18px)) !important;
  z-index: 320 !important;
  margin: 0 !important;
}

body.client-lightbox-open .gallery-music {
  display: none !important;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  z-index: 18;
  display: grid;
  grid-template-columns: 38px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: none;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select] {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 1.5px solid rgba(17, 17, 17, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 1;
  padding: 0;
  pointer-events: auto;
  text-indent: -999px;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select]::after {
  position: absolute;
  top: calc(50% + 1px);
  left: calc(50% + 1px);
  display: block;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) center / 14px 3px no-repeat,
    linear-gradient(currentColor 0 0) center / 3px 14px no-repeat;
  color: #111;
  transform: translate(-50%, -50%);
  text-indent: 0;
  content: "";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select] {
  border-color: #26d972;
  background: #26d972;
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-card[aria-pressed="true"] .client-photo-tools [data-photo-select]::after {
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  background: transparent;
  color: #07170c;
  font-size: 1.02rem;
  font-weight: 820;
  line-height: 1;
  transform: none;
  content: "✓";
}

body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-favorite] {
  display: none;
}

@media (max-width: 620px) {
  body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
    top: max(112px, calc(env(safe-area-inset-top) + 106px));
    right: max(8px, calc(env(safe-area-inset-right) + 8px));
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools {
    top: 8px;
    right: 8px;
    grid-template-columns: 34px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .client-photo-tools [data-photo-select] {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

/* Select public gallery: resilient fixed controls and centered lightbox arrows */
.gallery-preview:not([hidden]) .selection-action-bar,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar,
body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 310 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.selection-action-bar-spacer {
  display: block;
  width: 100%;
  flex: 0 0 auto;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal,
body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar.is-fixed-portal {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  contain: none !important;
}

.gallery-preview:not([hidden]) .gallery-music,
body.gallery-ready:not(.gallery-cover-ready) .gallery-music {
  position: fixed !important;
  top: max(92px, calc(env(safe-area-inset-top) + 86px)) !important;
  right: max(18px, calc(env(safe-area-inset-right) + 18px)) !important;
  z-index: 320 !important;
  margin: 0 !important;
}

body.gallery-ready:not(.gallery-cover-ready) .gallery-music.is-fixed-portal {
  position: fixed !important;
  top: max(92px, calc(env(safe-area-inset-top) + 86px)) !important;
  right: max(18px, calc(env(safe-area-inset-right) + 18px)) !important;
  z-index: 2147483001 !important;
  margin: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
}

body.client-lightbox-open .gallery-music,
body.client-lightbox-open .selection-action-bar.is-fixed-portal,
.client-photo-lightbox:not([hidden]) ~ .gallery-music {
  display: none !important;
}

.client-lightbox-nav {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
}

.client-lightbox-nav::before {
  display: block;
  width: 20px;
  height: 20px;
  border-color: rgba(255, 255, 255, 0.92);
  border-style: solid;
  border-width: 0 0 7px 7px;
  content: "";
}

.client-lightbox-nav.previous::before {
  transform: translateX(2px) rotate(45deg);
}

.client-lightbox-nav.next::before {
  transform: translateX(-2px) rotate(225deg);
}

/* Select public gallery: premium fixed toolbar refinement */
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal,
body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar.is-fixed-portal {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, auto) minmax(280px, 1fr) !important;
  align-items: center !important;
  gap: clamp(16px, 2.4vw, 36px) !important;
  min-height: 76px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(252, 251, 247, 0.96), rgba(245, 244, 239, 0.92)),
    radial-gradient(circle at 52% 0%, rgba(212, 175, 55, 0.14), transparent 34%) !important;
  box-shadow: 0 18px 42px rgba(12, 12, 12, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.78) !important;
  padding: 12px clamp(20px, 3.2vw, 52px) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.58) 48%, transparent 100%);
  content: "";
  opacity: 0.78;
  pointer-events: none;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-control {
  justify-self: start;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary {
  justify-self: center;
  min-width: 0;
  padding: 0;
  text-align: left;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary span {
  color: #090909;
  font-size: clamp(0.9rem, 1.18vw, 1.08rem);
  font-weight: 820;
  letter-spacing: 0.11em;
  line-height: 1.08;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary strong {
  margin-top: 5px;
  color: rgba(9, 9, 9, 0.54);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-action-buttons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-toggle,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(12, 12, 12, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 0 18px 0 12px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-toggle svg,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle svg {
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  stroke-width: 1.8;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-toggle span,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle span {
  color: #141414;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-toggle:not(:disabled):hover,
body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle:not(:disabled):hover {
  border-color: rgba(212, 175, 55, 0.46);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.08);
  transform: translateY(-1px);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-menu-toggle {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(12, 12, 12, 0.11);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.9), transparent 42%),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px rgba(18, 18, 18, 0.08);
  color: #111;
  padding: 0;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-menu-toggle span {
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal [data-finish-selection] {
  min-width: 156px;
  min-height: 46px;
  border: 1px solid rgba(12, 12, 12, 0.14);
  border-radius: 999px;
  background: #111;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  padding: 0 24px;
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal [data-finish-selection]:disabled {
  border-color: rgba(12, 12, 12, 0.11);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  color: rgba(12, 12, 12, 0.34);
}

body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal [data-finish-selection]:not(:disabled):hover {
  border-color: #050505;
  background: #050505;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.2);
  color: #f6d365;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal,
  body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar.is-fixed-portal {
    grid-template-columns: 1fr auto;
    gap: 10px 14px !important;
    min-height: 98px !important;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px !important;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-info-control {
    display: none;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary {
    justify-self: start;
    grid-column: 1;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-action-buttons {
    justify-self: end;
    grid-column: 2;
    gap: 8px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal [data-finish-selection] {
    min-width: 112px;
    padding-inline: 16px;
  }
}

@media (max-width: 520px) {
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal,
  body.gallery-ready:not(.gallery-cover-ready).gallery-controls-hidden .selection-action-bar.is-fixed-portal {
    min-height: 88px !important;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary span {
    font-size: 0.78rem;
    letter-spacing: 0.09em;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-status-summary strong {
    max-width: 170px;
    white-space: normal;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .selection-menu-toggle,
  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal .gallery-filter-toggle {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  body.gallery-ready:not(.gallery-cover-ready) .selection-action-bar.is-fixed-portal [data-finish-selection] {
    min-width: 98px;
    min-height: 40px;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    padding-inline: 12px;
  }
}
