:root {
  --dark: #142027;
  --darker: #0f171d;
  --paper: #f1f2f4;
  --ink: #3f3f42;
  --muted: #6e7782;
  --line: #c8ced5;
  --white: #fff;
  --gold: #d8aa35;
  --facebook: #0f81e8;
  --instagram: #ff4c4f;
  --max: 1152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open,
body.gallery-lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.content-wrapper {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  background: var(--dark);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header:not(.solid) {
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(20, 32, 39, 0.98);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.brand {
  width: 46px;
  height: 54px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 42px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.menu-toggle:hover {
  background: var(--white);
  color: var(--dark);
  transform: scale(1.04);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: rgba(13, 20, 24, 0.98);
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.menu-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 420ms ease, transform 900ms ease;
}

.menu-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 17, 0.78);
}

.site-menu.is-open .menu-preview.is-visible {
  opacity: 1;
  transform: scale(1);
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  text-align: center;
}

.menu-item {
  position: relative;
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  transition: color 260ms ease, transform 260ms ease;
}

.menu-item:hover,
.menu-item.is-current {
  color: var(--gold);
}

.menu-item:hover,
.menu-item:focus-visible {
  transform: translateX(10px);
}

.menu-socials {
  position: absolute;
  z-index: 1;
  bottom: 46px;
  display: flex;
  gap: 28px;
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-socials a {
  position: relative;
  overflow: hidden;
  line-height: 1.3;
  transition: color 220ms ease;
}

.menu-socials a::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--gold);
  transition: transform 220ms ease;
}

.menu-socials a:hover,
.menu-socials a:focus-visible {
  color: transparent;
}

.menu-socials a:hover::after,
.menu-socials a:focus-visible::after {
  transform: translateY(-100%);
}

.home-hero {
  position: relative;
  min-height: 940px;
  padding-top: 66px;
  background: var(--dark);
  overflow: hidden;
  --hero-logo-y: 0px;
  --hero-logo-opacity: 1;
}

.hero-grid {
  position: absolute;
  inset: 66px 0 auto;
  width: max-content;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: -90px;
}

.hero-lane {
  flex: 0 0 295px;
  object-fit: cover;
  transform: translate3d(0, calc(var(--load-y, 0px) + var(--parallax-y, 0px)), 0);
  will-change: transform, opacity;
}

.hero-image {
  width: 100%;
  height: auto;
  margin: 0 0 27px 5px;
  object-fit: cover;
}

.lane-6,
.lane-7 {
  display: none;
}

body.motion-enabled .hero-lane {
  --load-y: var(--load-y-start, 42px);
  opacity: 0;
}

body.motion-ready .hero-lane {
  --load-y: 0px;
  opacity: 1;
  transition:
    opacity 1400ms ease var(--load-delay, 800ms),
    transform 1120ms cubic-bezier(0.16, 1, 0.3, 1) var(--load-delay, 800ms);
}

body.motion-settled .hero-lane {
  transition: none;
}

.hero-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 43%;
  width: min(920px, 69vw);
  opacity: var(--hero-logo-opacity);
  transform: translate(-50%, calc(-50% + var(--hero-logo-y))) scale(1);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.6));
  transition: opacity 180ms linear;
  will-change: transform, opacity;
}

body.motion-enabled .hero-logo {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 30px)) scale(0.96);
}

body.motion-ready .hero-logo {
  opacity: var(--hero-logo-opacity);
  transform: translate(-50%, calc(-50% + var(--hero-logo-y))) scale(1);
  transition:
    opacity 980ms ease 1750ms,
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1) 1750ms;
}

.scroll-down {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 156px;
  transform: translateX(-50%);
  padding: 13px 28px;
  border: 1px solid var(--white);
  border-radius: 30px;
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.scroll-down:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateX(-50%) translateY(-3px);
}

body.motion-enabled .scroll-down {
  opacity: 0;
}

body.motion-ready .scroll-down {
  opacity: 1;
  transition-delay: 2200ms;
}

.content-section {
  padding: 96px 0;
  background: var(--paper);
}

[data-reveal-ready="true"] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 760ms ease var(--reveal-delay, 0ms),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal-ready="true"].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Rubik, Arial, sans-serif;
  line-height: 1.18;
}

.intro h1,
.camera-roll h2,
.instagram h2 {
  font-size: 31px;
  font-weight: 700;
}

.intro p,
.muted {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  margin-top: 66px;
}

.service-row article {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.service-row img {
  height: 54px;
}

.service-row h2 {
  font-size: 16px;
  font-weight: 700;
}

.camera-roll {
  padding-top: 40px;
}

.roll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.roll-grid button {
  min-width: 0;
  height: 265px;
  padding: 0;
  border: 0;
  background: #d9dde1;
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.roll-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.roll-grid button:hover img {
  transform: scale(1.06);
  filter: saturate(0.8);
}

.roll-grid button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 29, 0.18);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: Rubik, Arial, sans-serif;
  font-weight: 700;
}

.download-link img {
  width: 24px;
}

.about-band {
  background: #101920;
  color: var(--white);
  overflow: hidden;
}

.about-band-inner {
  display: flex;
  min-height: 306px;
}

.about-copy-panel,
.about-photo-panel {
  width: 50%;
}

.about-copy-panel {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  border: 1px solid #101920;
}

.about-copy {
  width: 100%;
  max-width: 390px;
  padding: 25px 0 26px;
}

.about-copy h2 {
  max-width: 390px;
  margin: 0 0 24px;
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.34;
}

.about-copy p {
  max-width: 365px;
  margin: 0 0 0 56px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.about-photo-panel {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.about-photo-panel img {
  max-width: none;
  width: auto;
  height: 306px;
  object-fit: contain;
}

.team-section {
  padding-top: 30px;
  padding-bottom: 90px;
}

.team-layout {
  width: min(calc(100% - 64px), 860px);
  display: flex;
  align-items: flex-start;
}

.team-intro {
  position: relative;
  width: 19%;
  min-height: 390px;
  padding-right: 20px;
}

.team-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.team-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.32;
}

.team-arrow {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 25px;
}

.team-arrow img {
  width: 100%;
}

.team-members {
  width: 81%;
  display: flex;
  gap: 3%;
}

.team-member {
  width: 31.333%;
  min-width: 0;
}

.team-photo {
  aspect-ratio: 625 / 830;
  background: #e8eaec;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin: 12px 0 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.team-member p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.team-signature {
  width: 74%;
  max-width: 238px;
  margin: 13px 0 0 11px;
}

.history {
  position: relative;
  padding: 126px 0;
  color: var(--white);
  background: linear-gradient(rgba(15, 23, 29, 0.82), rgba(15, 23, 29, 0.82)), url("/assets/images/contact-hero.jpeg") center/cover fixed;
}

.history-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 92px;
  align-items: start;
}

.history h2 {
  color: var(--white);
  font-size: 42px;
}

.history p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.section-icon {
  width: 30px;
  margin: 0 auto 12px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
}

.instagram-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #d4d7da;
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.instagram-grid a:hover img {
  transform: scale(1.08);
}

.instagram-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 29, 0.18);
}

.site-footer {
  padding: 48px 0;
  color: var(--white);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.55fr 0.65fr;
  gap: 54px;
}

.footer-logo {
  width: 218px;
}

.site-footer p {
  max-width: 390px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 15px;
}

.site-footer a,
.site-footer button {
  display: block;
  margin-top: 7px;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0;
  overflow: hidden;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-social a::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--footer-social-icon) center / contain no-repeat;
  mask: var(--footer-social-icon) center / contain no-repeat;
}

.footer-social a[href*="facebook"] {
  --footer-social-icon: url("/assets/icons/facebook.svg");
}

.footer-social a[href*="instagram"] {
  --footer-social-icon: url("/assets/icons/instagram.svg");
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-social a[href*="facebook"]:hover {
  background: var(--facebook);
}

.footer-social a[href*="instagram"]:hover {
  background: var(--instagram);
}

.go-up {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.go-up.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.go-up::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--white);
  border-top: 2px solid var(--white);
  transform: rotate(45deg);
}

.page-hero {
  position: relative;
  height: 400px;
  margin-top: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.contact-hero {
  background-image: url("/assets/images/contact-hero.jpg");
  background-size: cover;
  background-position: center 43%;
}

.client-hero {
  background-image: url("/assets/images/hero-14.jpg");
  background-size: cover;
  background-position: center 44%;
}

.gallery-viewer-hero.client-hero {
  background-image: none;
  background-color: var(--dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 17, 0.68);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 52px;
}

.contact-section {
  padding-top: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 96px;
}

.contact-info h2 {
  max-width: 330px;
  margin-bottom: 38px;
  font-size: 26px;
}

.detail {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  max-width: 320px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.detail img {
  width: 28px;
  margin-top: 4px;
}

.detail h3,
.detail p {
  margin: 0;
}

.detail h3 {
  font-size: 16px;
}

.contact-social {
  display: flex;
  gap: 8px;
  margin-top: 38px;
}

.contact-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.facebook {
  background: var(--facebook);
}

.instagram-link {
  background: var(--instagram);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 22px;
  align-content: start;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #27313a;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.contact-form select,
.contact-form textarea,
.contact-form button,
.form-message {
  grid-column: 1 / -1;
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.contact-form button {
  width: 170px;
  min-height: 40px;
  border: 1px solid #27313a;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.form-message {
  margin: 0;
  color: #286b3a;
  font-weight: 700;
}

.client-login-section {
  padding-top: 92px;
}

.client-login-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(360px, 0.78fr);
  gap: 92px;
  align-items: center;
}

.client-login-grid > * {
  min-width: 0;
}

.login-copy .title {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Rubik, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.login-copy h2 {
  max-width: min(620px, 100%);
  font-size: 42px;
  overflow-wrap: break-word;
}

.login-copy p {
  max-width: min(570px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.login-form {
  display: grid;
  gap: 20px;
  padding: 38px;
  border: 1px solid var(--line);
  background: #e7eaed;
}

.login-mark {
  width: min(100%, 310px);
  margin: 0 auto 8px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-family: Rubik, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.login-form button {
  min-height: 46px;
  border: 1px solid #27313a;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

.login-help {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.client-home-section {
  padding-top: 90px;
}

.client-home-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.client-home-heading .title,
.gallery-status {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.client-home-heading h2 {
  font-size: 42px;
}

.client-home-heading p:not(.title) {
  margin: 18px 0 0;
  color: var(--muted);
}

.client-session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -18px 0 32px;
}

.client-session-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.client-session-actions button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #27313a;
  background: transparent;
  color: var(--dark);
  font-weight: 800;
}

.gallery-toolbar .client-session-actions {
  margin: 0;
}

.login-form button:disabled,
.client-session-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-section {
  padding-top: 86px;
}

.admin-hero {
  display: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--line);
  background: #e7eaed;
  padding: 26px;
}

.admin-detail-panel {
  grid-column: span 2;
}

.admin-panel .title {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-panel-heading p:not(.title) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-form,
.admin-account-panel {
  display: grid;
  gap: 14px;
}

.admin-form[hidden],
.admin-message[hidden],
.admin-upload-progress[hidden] {
  display: none !important;
}

.admin-form.compact {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  margin: 18px 0;
}

.admin-upload-form {
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-form label,
.admin-account-panel label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-account-panel input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
}

.admin-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form button,
.admin-actions button,
.admin-row-actions button,
.admin-gallery-row button {
  min-height: 42px;
  border: 1px solid #27313a;
  background: var(--dark);
  color: var(--white);
  padding: 9px 15px;
  font-weight: 800;
}

.admin-form button:disabled,
.admin-actions button:disabled,
.admin-row-actions button:disabled,
.admin-gallery-row button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.admin-message,
.admin-empty,
.admin-upload-progress {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 800;
}

.admin-check input {
  width: 18px;
  height: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-row,
.admin-gallery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-row.is-selected {
  border-top-color: var(--gold);
}

.admin-row h3 {
  font-size: 20px;
}

.admin-row p,
.admin-gallery-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-row-meta {
  overflow-wrap: anywhere;
}

.admin-gallery-row {
  grid-template-columns: minmax(180px, 1fr) 150px 140px minmax(220px, 0.9fr) auto auto auto;
}

.admin-gallery-row input,
.admin-gallery-row select {
  min-height: 40px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 8px;
}

.admin-gallery-detail-tools {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-gallery-detail-tools[hidden] {
  display: none;
}

.admin-section-editor,
.admin-section-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-section-row {
  grid-template-columns: minmax(170px, 1fr) 92px minmax(180px, 0.9fr) minmax(190px, 1fr) auto auto;
  padding-top: 12px;
  border-top: 1px solid rgba(39, 49, 58, 0.1);
}

.admin-section-editor label,
.admin-section-row label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-weight: 800;
}

.admin-section-editor input,
.admin-section-editor select,
.admin-section-row input,
.admin-section-row select {
  min-height: 40px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 8px;
}

.admin-section-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-section-list {
  display: grid;
  gap: 12px;
}

.admin-photo-section-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-photo-section-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid rgba(39, 49, 58, 0.1);
}

.admin-photo-section-row p {
  margin: 0 0 8px;
  color: var(--dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-photo-section-row label {
  display: grid;
  gap: 6px;
  color: var(--dark);
  font-weight: 800;
}

.admin-photo-section-row select {
  min-height: 40px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 8px;
}

.admin-style-panel {
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-style-panel[hidden] {
  display: none;
}

.admin-style-panel .admin-panel-heading a {
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-style-panel .admin-panel-heading p:not(.title) {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-style-gallery {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  color: var(--dark);
  font-weight: 800;
}

.admin-style-gallery select {
  min-height: 42px;
  border: 1px solid #27313a;
  background: var(--paper);
  color: var(--ink);
  padding: 8px;
}

.admin-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.admin-style-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 250px;
  padding: 12px;
  border: 1px solid rgba(39, 49, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--dark);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-style-card:hover,
.admin-style-card.is-active {
  border-color: rgba(216, 170, 53, 0.9);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.admin-style-card strong,
.admin-style-card em,
.admin-style-card small {
  display: block;
}

.admin-style-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.admin-style-card em {
  margin-top: 5px;
  color: #98753a;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.admin-style-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  min-height: 760px;
  border: 1px solid rgba(39, 49, 58, 0.1);
  background: #f8f8f6;
}

.admin-sidebar {
  position: sticky;
  top: 82px;
  min-height: 760px;
  padding: 22px;
  border-right: 1px solid rgba(39, 49, 58, 0.1);
  background: #eeeeec;
}

.admin-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #9c9c96;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-sidebar-title {
  margin-bottom: 28px;
}

.admin-sidebar-title p {
  margin: 0 0 5px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.08;
  text-transform: uppercase;
}

.admin-sidebar-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-section-nav {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
}

.admin-section-nav button {
  min-height: 38px;
  padding: 8px 0;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #777973;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.admin-section-nav button.is-active {
  border-left-color: var(--dark);
  color: var(--dark);
}

.admin-preview-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 24px;
  background: #dededb;
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.admin-dashboard-shell .admin-account-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-dashboard-shell .admin-account-panel input {
  min-height: 38px;
  background: #fbfbf8;
}

.admin-workspace {
  min-width: 0;
  padding: 28px 38px 46px;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: grid;
  gap: 24px;
}

.admin-dashboard-shell .admin-panel {
  border-color: rgba(39, 49, 58, 0.12);
  background: #ffffff;
}

.admin-filter-bar,
.admin-portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-filter-bar button,
.admin-portfolio-toolbar button {
  min-height: 36px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #545852;
  font-family: Karla, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.admin-portfolio-toolbar {
  justify-content: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(39, 49, 58, 0.1);
}

.admin-portfolio-toolbar button {
  min-width: 112px;
  padding: 14px 20px;
}

.admin-portfolio-toolbar button.is-active,
.admin-filter-bar button:hover {
  border-bottom-color: var(--dark);
  color: var(--dark);
}

.admin-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(39, 49, 58, 0.1);
  background: #ffffff;
}

.admin-overview-strip article {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid rgba(39, 49, 58, 0.1);
}

.admin-overview-strip article:last-child {
  border-right: 0;
}

.admin-overview-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.admin-overview-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--dark);
  font-size: 30px;
  line-height: 1;
}

.admin-overview-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-gallery-management {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.admin-gallery-dashboard-list {
  gap: 0;
}

.admin-gallery-dashboard-list .admin-gallery-row {
  border-top-color: rgba(39, 49, 58, 0.1);
  padding: 16px 0;
}

.admin-grid-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.admin-grid-options button {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(39, 49, 58, 0.12);
  background: #f5f3ee;
  color: var(--dark);
  font-weight: 800;
}

.admin-grid-options button.is-active {
  border-color: var(--dark);
  background: #ffffff;
}

.grid-swatch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 108px;
  padding: 8px;
  border: 1px solid rgba(39, 49, 58, 0.12);
  background: #fff;
}

.grid-swatch::before,
.grid-swatch::after,
.grid-swatch {
  border-radius: 2px;
}

.grid-swatch::before,
.grid-swatch::after {
  content: "";
  display: block;
  height: 24px;
  background: #af9981;
  box-shadow: 36px 0 0 #af9981, 72px 0 0 #af9981, 0 32px 0 #af9981, 36px 32px 0 #af9981, 72px 32px 0 #af9981;
}

.grid-swatch::after {
  display: none;
}

.grid-swatch.landscape-four-three::before {
  height: 22px;
  box-shadow: 36px 0 0 #af9981, 72px 0 0 #af9981, 0 28px 0 #af9981, 36px 28px 0 #af9981, 72px 28px 0 #af9981;
}

.grid-swatch.landscape-three-two::before {
  height: 18px;
  box-shadow: 36px 0 0 #af9981, 72px 0 0 #af9981, 0 24px 0 #af9981, 36px 24px 0 #af9981, 72px 24px 0 #af9981;
}

.admin-custom-style-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.admin-custom-style-list span {
  padding: 16px;
  border: 1px solid rgba(39, 49, 58, 0.1);
  background: #f7f6f2;
  color: var(--dark);
  font-weight: 800;
}

.admin-activity-table {
  min-width: 760px;
}

.admin-view[data-admin-view="activity"] .admin-panel {
  overflow-x: auto;
}

.admin-activity-head,
.admin-activity-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(6, minmax(96px, 0.7fr));
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(39, 49, 58, 0.1);
}

.admin-activity-head {
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
}

.admin-activity-row {
  color: var(--muted);
  font-weight: 800;
}

.admin-activity-row span:first-child {
  color: var(--dark);
}

.admin-command-panel .admin-panel-heading a {
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.admin-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-readiness-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(39, 49, 58, 0.1);
  background: #f7f6f2;
}

.admin-readiness-grid span,
.admin-checklist span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.admin-readiness-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
}

.admin-readiness-grid p,
.admin-checklist p,
.admin-flow-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.admin-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(39, 49, 58, 0.12);
  background: #ffffff;
}

.admin-tool-row strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
}

.admin-tool-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-tool-row button {
  flex: 0 0 auto;
  min-height: 42px;
}

.admin-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-checklist article {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(39, 49, 58, 0.12);
  background: #f7f6f2;
}

.admin-checklist article.is-ready {
  border-color: rgba(66, 122, 92, 0.28);
  background: #f3f8f1;
}

.admin-checklist article.is-next {
  border-color: rgba(184, 148, 85, 0.34);
  background: #fbf6e9;
}

.admin-checklist strong {
  color: var(--dark);
  font-size: 18px;
}

.admin-flow-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-flow-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(39, 49, 58, 0.1);
  background: #f7f6f2;
}

.admin-flow-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-weight: 900;
}

.simple-login {
  display: grid;
  grid-template-columns: minmax(280px, 440px);
  justify-content: center;
}

.client-login-page .client-hero {
  display: none;
}

.client-login-page .client-login-section {
  min-height: calc(100vh - 70px);
  padding-top: 126px;
}

.style-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 48px 24px 34px;
  gap: 4px;
  min-height: 118px;
  padding: 8px;
  border: 1px solid rgba(39, 49, 58, 0.14);
  border-radius: 6px;
  background: #f4f0e6;
  overflow: hidden;
}

.style-preview::before {
  content: "";
  grid-column: 1 / -1;
  border-radius: 2px;
  background: #1a242b;
}

.style-preview span {
  border-radius: 2px;
  background: #b99442;
}

.style-preview span:nth-child(1) {
  grid-column: 1 / -1;
  height: 16px;
  border-radius: 999px;
  background: #fff;
}

.style-preview span:nth-child(2) {
  background: #ccbfa6;
}

.style-preview span:nth-child(3) {
  background: #8e7955;
}

.style-preview span:nth-child(4) {
  background: #d9d1c4;
}

.style-preview span:nth-child(5) {
  background: #1a242b;
}

.style-preview-cinematic-black { background: #090d0f; }
.style-preview-cinematic-black::before,
.style-preview-cinematic-black span:nth-child(5) { background: #d5a83b; }
.style-preview-cinematic-black span:nth-child(1) { background: #171e22; }
.style-preview-cinematic-black span:nth-child(2) { background: #514333; }
.style-preview-cinematic-black span:nth-child(3) { background: #f2ece0; }
.style-preview-cinematic-black span:nth-child(4) { background: #232b2f; }

.style-preview-editorial-ivory,
.style-preview-baptism-soft { background: #fbf7ee; }
.style-preview-editorial-ivory::before { background: #e5d6bd; }
.style-preview-editorial-ivory span:nth-child(1) { background: #ffffff; }
.style-preview-editorial-ivory span:nth-child(2) { background: #b49c76; }
.style-preview-editorial-ivory span:nth-child(3) { background: #d8c9b1; }
.style-preview-editorial-ivory span:nth-child(4) { background: #efe8dc; }
.style-preview-editorial-ivory span:nth-child(5) { background: #141414; }

.style-preview-minimalist-white { background: #ffffff; }
.style-preview-minimalist-white::before,
.style-preview-minimalist-white span { background: #e9e9e9; }
.style-preview-minimalist-white span:nth-child(5) { background: #1e1e1e; }

.style-preview-luxury-gold { background: #f3ecdc; }
.style-preview-luxury-gold::before,
.style-preview-luxury-gold span:nth-child(1) { background: #d8aa35; }
.style-preview-luxury-gold span:nth-child(2) { background: #6d5a35; }
.style-preview-luxury-gold span:nth-child(3) { background: #fff7e7; }
.style-preview-luxury-gold span:nth-child(4) { background: #cbb277; }
.style-preview-luxury-gold span:nth-child(5) { background: #201812; }

.style-preview-baptism-soft::before { background: #d8e6e4; }
.style-preview-baptism-soft span:nth-child(1) { background: #ffffff; }
.style-preview-baptism-soft span:nth-child(2) { background: #dfc7a6; }
.style-preview-baptism-soft span:nth-child(3) { background: #f0e7da; }
.style-preview-baptism-soft span:nth-child(4) { background: #c9dad7; }
.style-preview-baptism-soft span:nth-child(5) { background: #5b6a68; }

.style-preview-documentary-wedding { background: #15120f; }
.style-preview-documentary-wedding::before { background: #efe5d2; }
.style-preview-documentary-wedding span:nth-child(1) { background: #24201b; }
.style-preview-documentary-wedding span:nth-child(2) { background: #8f7351; }
.style-preview-documentary-wedding span:nth-child(3) { background: #d3c0a0; }
.style-preview-documentary-wedding span:nth-child(4) { background: #3a332a; }
.style-preview-documentary-wedding span:nth-child(5) { background: #e8dcc7; }

.style-preview-mobile-first { background: #f7f3ea; }
.style-preview-mobile-first::before { background: #1f2930; }
.style-preview-mobile-first span:nth-child(1) { background: #fff; }
.style-preview-mobile-first span:nth-child(2) { background: #d8aa35; }
.style-preview-mobile-first span:nth-child(3) { background: #ede1ce; }
.style-preview-mobile-first span:nth-child(4) { background: #b7a489; }
.style-preview-mobile-first span:nth-child(5) { background: #28353e; }

.style-preview-store-print { background: #f8f2e5; }
.style-preview-store-print::before,
.style-preview-store-print span:nth-child(1) { background: #161616; }
.style-preview-store-print span:nth-child(2) { background: #d8aa35; }
.style-preview-store-print span:nth-child(3) { background: #ffffff; }
.style-preview-store-print span:nth-child(4) { background: #d7c6a4; }
.style-preview-store-print span:nth-child(5) { background: #b98d25; }

.style-preview-proofing-contrast { background: #ffffff; }
.style-preview-proofing-contrast::before,
.style-preview-proofing-contrast span:nth-child(1),
.style-preview-proofing-contrast span:nth-child(5) { background: #000; }
.style-preview-proofing-contrast span:nth-child(2) { background: #d6d6d6; }
.style-preview-proofing-contrast span:nth-child(3) { background: #777; }
.style-preview-proofing-contrast span:nth-child(4) { background: #f4f4f4; }

.style-preview-classic { background: #f4f2ec; }
.style-preview-classic::before { background: #b89455; }
.style-preview-classic span:nth-child(1) { background: #fffdf8; }
.style-preview-classic span:nth-child(2) { background: #d3c0a4; }
.style-preview-classic span:nth-child(3) { background: #1b1b18; }
.style-preview-classic span:nth-child(4) { background: #ede8dc; }
.style-preview-classic span:nth-child(5) { background: #b89455; }

.style-preview-fine { background: #faf5ec; }
.style-preview-fine::before { background: #decdb3; }
.style-preview-fine span:nth-child(1) { background: #fffaf2; }
.style-preview-fine span:nth-child(2) { background: #aa8550; }
.style-preview-fine span:nth-child(3) { background: #efe3cf; }
.style-preview-fine span:nth-child(4) { background: #cab18e; }
.style-preview-fine span:nth-child(5) { background: #181713; }

.style-preview-minimal { background: #ffffff; }
.style-preview-minimal::before,
.style-preview-minimal span { background: #e8e8e8; }
.style-preview-minimal span:nth-child(3),
.style-preview-minimal span:nth-child(5) { background: #101010; }

.style-preview-airy,
.style-preview-soft { background: #f8f7f3; }
.style-preview-airy::before,
.style-preview-soft::before { background: #d8e2df; }
.style-preview-airy span:nth-child(1),
.style-preview-soft span:nth-child(1) { background: #ffffff; }
.style-preview-airy span:nth-child(2),
.style-preview-soft span:nth-child(2) { background: #a27d4d; }
.style-preview-airy span:nth-child(3),
.style-preview-soft span:nth-child(3) { background: #e8ded0; }
.style-preview-airy span:nth-child(4),
.style-preview-soft span:nth-child(4) { background: #c7d4d0; }
.style-preview-airy span:nth-child(5),
.style-preview-soft span:nth-child(5) { background: #273432; }

.style-preview-spotlight,
.style-preview-bear-signature { background: #090a0a; }
.style-preview-spotlight::before,
.style-preview-bear-signature::before,
.style-preview-spotlight span:nth-child(5),
.style-preview-bear-signature span:nth-child(5) { background: #d4aa3f; }
.style-preview-spotlight span:nth-child(1),
.style-preview-bear-signature span:nth-child(1) { background: #111313; }
.style-preview-spotlight span:nth-child(2),
.style-preview-bear-signature span:nth-child(2) { background: #4a3b23; }
.style-preview-spotlight span:nth-child(3),
.style-preview-bear-signature span:nth-child(3) { background: #f4efe5; }
.style-preview-spotlight span:nth-child(4),
.style-preview-bear-signature span:nth-child(4) { background: #252525; }

.style-preview-editorial { background: #181512; }
.style-preview-editorial::before { background: #efe3d0; }
.style-preview-editorial span:nth-child(1) { background: #261f19; }
.style-preview-editorial span:nth-child(2) { background: #c9a46d; }
.style-preview-editorial span:nth-child(3) { background: #8b714e; }
.style-preview-editorial span:nth-child(4) { background: #3d342b; }
.style-preview-editorial span:nth-child(5) { background: #efe3d0; }

.style-preview-expressive { background: #f3eee4; }
.style-preview-expressive::before,
.style-preview-expressive span:nth-child(2) { background: #c49325; }
.style-preview-expressive span:nth-child(1) { background: #fff8ea; }
.style-preview-expressive span:nth-child(3) { background: #181818; }
.style-preview-expressive span:nth-child(4) { background: #ddcaa5; }
.style-preview-expressive span:nth-child(5) { background: #6d6252; }

.style-preview-folk { background: #efe6d6; }
.style-preview-folk::before,
.style-preview-folk span:nth-child(2) { background: #ad7c37; }
.style-preview-folk span:nth-child(1) { background: #fff6e5; }
.style-preview-folk span:nth-child(3) { background: #5d422e; }
.style-preview-folk span:nth-child(4) { background: #d9c3a0; }
.style-preview-folk span:nth-child(5) { background: #241a12; }

.style-preview-baptism-clean { background: #fbfaf6; }
.style-preview-baptism-clean::before { background: #e7ecea; }
.style-preview-baptism-clean span:nth-child(1) { background: #ffffff; }
.style-preview-baptism-clean span:nth-child(2) { background: #ecd8bc; }
.style-preview-baptism-clean span:nth-child(3) { background: #dce8e6; }
.style-preview-baptism-clean span:nth-child(4) { background: #f4ede3; }
.style-preview-baptism-clean span:nth-child(5) { background: #243733; }

.style-preview-slideshow-family { background: #ffffff; }
.style-preview-slideshow-family::before { background: #191b1b; }
.style-preview-slideshow-family span:nth-child(1) { background: #d8c6b2; }
.style-preview-slideshow-family span:nth-child(2) { background: #f8f3eb; }
.style-preview-slideshow-family span:nth-child(3) { background: #302d27; }
.style-preview-slideshow-family span:nth-child(4) { background: #b9905e; }
.style-preview-slideshow-family span:nth-child(5) { background: #e9ddd0; }

.style-preview-cinematic-gold,
.style-preview-black-gold { background: #050505; }
.style-preview-cinematic-gold::before,
.style-preview-black-gold::before,
.style-preview-cinematic-gold span:nth-child(5),
.style-preview-black-gold span:nth-child(5) { background: #cda75b; }
.style-preview-cinematic-gold span:nth-child(1),
.style-preview-black-gold span:nth-child(1) { background: #15120f; }
.style-preview-cinematic-gold span:nth-child(2),
.style-preview-black-gold span:nth-child(2) { background: #4f3820; }
.style-preview-cinematic-gold span:nth-child(3),
.style-preview-black-gold span:nth-child(3) { background: #eadbbe; }
.style-preview-cinematic-gold span:nth-child(4),
.style-preview-black-gold span:nth-child(4) { background: #261f18; }

.style-preview-magazine-editorial { background: #121212; }
.style-preview-magazine-editorial::before { background: #f3efe7; }
.style-preview-magazine-editorial span:nth-child(1) { background: #202020; }
.style-preview-magazine-editorial span:nth-child(2) { background: #ffffff; }
.style-preview-magazine-editorial span:nth-child(3) { background: #a9a9a9; }
.style-preview-magazine-editorial span:nth-child(4) { background: #c79b43; }
.style-preview-magazine-editorial span:nth-child(5) { background: #f7f2e9; }

.style-preview-soft-airy { background: #faf8f3; }
.style-preview-soft-airy::before { background: #e9dfcf; }
.style-preview-soft-airy span:nth-child(1) { background: #ffffff; }
.style-preview-soft-airy span:nth-child(2) { background: #d7c3a5; }
.style-preview-soft-airy span:nth-child(3) { background: #edf1ef; }
.style-preview-soft-airy span:nth-child(4) { background: #c2d0ca; }
.style-preview-soft-airy span:nth-child(5) { background: #2d3b37; }

.style-preview-luxury-wedding { background: #f4ead8; }
.style-preview-luxury-wedding::before { background: #c49a51; }
.style-preview-luxury-wedding span:nth-child(1) { background: #fff8e8; }
.style-preview-luxury-wedding span:nth-child(2) { background: #aa7f3b; }
.style-preview-luxury-wedding span:nth-child(3) { background: #e7d4b7; }
.style-preview-luxury-wedding span:nth-child(4) { background: #2a2017; }
.style-preview-luxury-wedding span:nth-child(5) { background: #d8b878; }

.style-preview-documentary-film { background: #111412; }
.style-preview-documentary-film::before { background: #2b332d; }
.style-preview-documentary-film span:nth-child(1) { background: #0c0d0c; }
.style-preview-documentary-film span:nth-child(2) { background: #b8ab90; }
.style-preview-documentary-film span:nth-child(3) { background: #e0362d; }
.style-preview-documentary-film span:nth-child(4) { background: #556059; }
.style-preview-documentary-film span:nth-child(5) { background: #e8dfcd; }

.style-preview-fine-art-museum { background: #f8f4eb; }
.style-preview-fine-art-museum::before { background: #20201c; }
.style-preview-fine-art-museum span:nth-child(1) { background: #fffdf8; }
.style-preview-fine-art-museum span:nth-child(2) { background: #d6ccb9; }
.style-preview-fine-art-museum span:nth-child(3) { background: #eee7da; }
.style-preview-fine-art-museum span:nth-child(4) { background: #9f8c6e; }
.style-preview-fine-art-museum span:nth-child(5) { background: #1a1916; }

.style-preview-heritage-album { background: #f5efe2; }
.style-preview-heritage-album::before { background: #bfb5a3; }
.style-preview-heritage-album span:nth-child(1) { background: #fffaf0; }
.style-preview-heritage-album span:nth-child(2) { background: #cbbda5; }
.style-preview-heritage-album span:nth-child(3) { background: #8d806d; }
.style-preview-heritage-album span:nth-child(4) { background: #efe6d6; }
.style-preview-heritage-album span:nth-child(5) { background: #2a251f; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-message {
  margin: -22px 0 28px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  overflow: hidden;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms ease, filter 600ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 17, 0.08), rgba(9, 14, 17, 0.82));
}

.gallery-card:hover img {
  transform: scale(1.055);
  filter: saturate(0.95);
}

.gallery-card > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 34px;
  color: var(--white);
}

.gallery-card h3 {
  max-width: 420px;
  color: var(--white);
  font-size: 32px;
}

.gallery-card p:not(.gallery-status) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.gallery-card a {
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, color 180ms ease;
}

.gallery-card a:hover {
  background: var(--white);
  color: var(--dark);
}

.gallery-card a[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
}

.gallery-card.is-loading {
  opacity: 0.76;
}

.gallery-face-search {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(39, 49, 58, 0.12);
  border-radius: 6px;
  background: #f7f3ea;
  color: var(--dark);
}

.face-search-inner {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.face-search-copy .title {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: Rubik, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.face-search-copy h2 {
  margin: 0;
  color: var(--dark);
  font-size: 16px;
  line-height: 1.1;
}

.face-search-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.face-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(39, 49, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.face-chip img,
.face-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.face-chip img {
  object-fit: cover;
}

.face-chip small {
  color: currentColor;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.62;
}

.face-chip-icon {
  display: grid;
  place-items: center;
  background: rgba(216, 170, 53, 0.24);
  color: var(--dark);
  font-family: Rubik, Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.face-chip:hover,
.face-chip.is-active {
  border-color: rgba(216, 170, 53, 0.92);
  background: rgba(216, 170, 53, 0.2);
  color: var(--dark);
  transform: translateY(-1px);
}

.face-search-action,
.face-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(216, 170, 53, 0.82);
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-family: Rubik, Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.face-search-clear {
  background: transparent;
  color: var(--dark);
}

.face-search-action:hover,
.face-search-clear:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-1px);
}

.gallery-viewer-hero {
  height: min(82vh, 720px);
  min-height: 560px;
  place-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.gallery-hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
  color: var(--white);
}

.gallery-hero-copy .title {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gallery-hero-copy h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--white);
  font-size: 64px;
}

.gallery-hero-copy p:not(.title) {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.gallery-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 30px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  font-weight: 800;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-open-button:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.gallery-viewer-section {
  padding-top: 0;
  scroll-margin-top: 130px;
}

.gallery-toolbar {
  position: sticky;
  top: 66px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 calc((100vw - min(calc(100vw - 64px), var(--max))) / -2) 0;
  padding: 16px calc((100vw - min(calc(100vw - 64px), var(--max))) / 2);
  border-bottom: 1px solid var(--line);
  background: rgba(235, 237, 239, 0.94);
  backdrop-filter: blur(16px);
}

.gallery-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.gallery-back {
  color: var(--dark);
  font-weight: 800;
}

.gallery-tabs {
  position: sticky;
  top: 129px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 calc((100vw - min(calc(100vw - 64px), var(--max))) / -2) 28px;
  padding: 12px calc((100vw - min(calc(100vw - 64px), var(--max))) / 2);
  border-bottom: 1px solid rgba(39, 49, 58, 0.1);
  background: rgba(235, 237, 239, 0.9);
  backdrop-filter: blur(16px);
}

.gallery-tabs a,
.gallery-tabs button,
.client-session-actions button[data-gallery-share] {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gallery-tabs .is-active,
.gallery-tabs a:hover,
.gallery-tabs button:hover,
.client-session-actions button[data-gallery-share]:hover {
  color: var(--dark);
  background: rgba(20, 32, 39, 0.08);
}

.gallery-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(39, 49, 58, 0.1);
}

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

.gallery-section-tabs button {
  min-height: 34px;
  border: 1px solid rgba(39, 49, 58, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 7px 13px;
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.gallery-section-tabs button:hover,
.gallery-section-tabs button.is-active {
  border-color: rgba(216, 170, 53, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
}

.photo-grid {
  columns: 3 260px;
  column-gap: 12px;
  padding-top: 8px;
}

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

.photo-tile {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  border: 0;
  background: #d9dde1;
  overflow: hidden;
  break-inside: avoid;
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.gallery-progressive-controls {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 18px 0 4px;
}

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

.gallery-load-sentinel {
  position: absolute;
  top: -1px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.gallery-load-more {
  min-width: 124px;
  min-height: 40px;
  border: 1px solid rgba(39, 49, 58, 0.22);
  background: var(--gallery-chip, rgba(255, 255, 255, 0.76));
  color: var(--gallery-ink, var(--dark));
  padding: 9px 18px;
  font-family: Rubik, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.gallery-load-more:hover,
.gallery-load-more:focus-visible {
  border-color: var(--gallery-accent, var(--gold));
}

.gallery-load-more:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gallery-load-status {
  min-height: 18px;
  margin: 0;
  color: var(--gallery-muted, var(--muted));
  font-size: 12px;
  text-align: center;
}

.photo-tile > button:not(.photo-favorite) {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: #d9dde1;
  overflow: hidden;
}

.photo-tile.is-wide > button:not(.photo-favorite) {
  aspect-ratio: 4 / 3;
}

.photo-tile.is-square > button:not(.photo-favorite) {
  aspect-ratio: 1 / 1;
}

.photo-tile.is-tall > button:not(.photo-favorite) {
  aspect-ratio: 3 / 4;
}

.photo-tile.has-real-aspect > button:not(.photo-favorite) {
  aspect-ratio: var(--photo-real-aspect, 4 / 5);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.photo-tile > button:not(.photo-favorite):hover img {
  transform: scale(1.045);
  filter: saturate(0.9);
}

.photo-tile-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 38px 12px 12px;
  background: linear-gradient(180deg, rgba(9, 14, 17, 0), rgba(9, 14, 17, 0.84));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-tile:hover .photo-tile-footer,
.photo-tile:focus-within .photo-tile-footer {
  opacity: 1;
  transform: translateY(0);
}

.photo-tile-footer p {
  min-width: 0;
  margin: 0;
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.photo-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.photo-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.photo-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(9, 14, 17, 0.32);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-6px);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.photo-tile:hover .photo-favorite,
.photo-tile:focus-within .photo-favorite,
.photo-tile.is-favorite .photo-favorite {
  opacity: 1;
  transform: translateY(0);
}

.photo-tile.is-favorite .photo-favorite {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.photo-downloads a[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
}

body[class*="gallery-style-"] {
  --gallery-paper: #ebedef;
  --gallery-panel: #f7f3ea;
  --gallery-sticky: rgba(235, 237, 239, 0.94);
  --gallery-ink: #142027;
  --gallery-muted: #65717a;
  --gallery-line: rgba(39, 49, 58, 0.12);
  --gallery-accent: #d8aa35;
  --gallery-accent-soft: rgba(216, 170, 53, 0.2);
  --gallery-chip: rgba(255, 255, 255, 0.78);
  --gallery-button-bg: #142027;
  --gallery-button-text: #ffffff;
  --gallery-footer: linear-gradient(180deg, rgba(9, 14, 17, 0), rgba(9, 14, 17, 0.84));
  --gallery-grid-gap: 12px;
}

body[class*="gallery-style-"] .gallery-viewer-section {
  background: var(--gallery-paper);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .gallery-toolbar,
body[class*="gallery-style-"] .gallery-tabs {
  border-color: var(--gallery-line);
  background: var(--gallery-sticky);
}

body[class*="gallery-style-"] .gallery-toolbar p,
body[class*="gallery-style-"] .gallery-tabs button {
  color: var(--gallery-muted);
}

body[class*="gallery-style-"] .gallery-back,
body[class*="gallery-style-"] .gallery-tabs .is-active,
body[class*="gallery-style-"] .gallery-tabs button:hover {
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .gallery-tabs .is-active,
body[class*="gallery-style-"] .gallery-tabs button:hover {
  background: var(--gallery-accent-soft);
}

body[class*="gallery-style-"] .gallery-face-search {
  border-color: var(--gallery-line);
  background: var(--gallery-panel);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .face-search-copy .title {
  color: var(--gallery-muted);
}

body[class*="gallery-style-"] .face-search-copy h2 {
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .face-chip {
  border-color: var(--gallery-line);
  background: var(--gallery-chip);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .face-chip-icon {
  background: var(--gallery-accent-soft);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .face-chip:hover,
body[class*="gallery-style-"] .face-chip.is-active {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent-soft);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .face-search-action,
body[class*="gallery-style-"] .client-session-actions button[data-gallery-share] {
  border-color: var(--gallery-accent);
  background: var(--gallery-button-bg);
  color: var(--gallery-button-text);
}

body[class*="gallery-style-"] .photo-grid {
  column-gap: var(--gallery-grid-gap);
}

body[class*="gallery-style-"] .photo-tile,
body[class*="gallery-style-"] .photo-tile > button:not(.photo-favorite) {
  background: var(--gallery-panel);
}

body[class*="gallery-style-"] .photo-tile-footer {
  background: var(--gallery-footer);
}

body[class*="gallery-style-"] .photo-favorite {
  border-color: rgba(255, 255, 255, 0.72);
}

body[class*="gallery-style-"] .photo-tile.is-favorite .photo-favorite {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent);
  color: var(--gallery-ink);
}

body.gallery-style-cinematic-black {
  --gallery-paper: #070b0e;
  --gallery-panel: #11181c;
  --gallery-sticky: rgba(7, 11, 14, 0.94);
  --gallery-ink: #f7efe2;
  --gallery-muted: #b0a68f;
  --gallery-line: rgba(255, 255, 255, 0.12);
  --gallery-accent: #d8aa35;
  --gallery-accent-soft: rgba(216, 170, 53, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #d8aa35;
  --gallery-button-text: #080d10;
  --gallery-footer: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
  --gallery-grid-gap: 10px;
}

body.gallery-style-cinematic-black .gallery-hero-copy h1,
body.gallery-style-documentary-wedding .gallery-hero-copy h1,
body.gallery-style-editorial-ivory .gallery-hero-copy h1,
body.gallery-style-luxury-gold .gallery-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

body.gallery-style-cinematic-black .gallery-open-button:hover {
  background: var(--gallery-accent);
  color: #080d10;
}

body.gallery-style-editorial-ivory {
  --gallery-paper: #fbf7ef;
  --gallery-panel: #fffdf8;
  --gallery-sticky: rgba(251, 247, 239, 0.94);
  --gallery-ink: #1e1a16;
  --gallery-muted: #766d60;
  --gallery-line: rgba(92, 79, 58, 0.14);
  --gallery-accent: #b4945f;
  --gallery-accent-soft: rgba(180, 148, 95, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.88);
  --gallery-button-bg: #1e1a16;
  --gallery-button-text: #fffaf0;
  --gallery-grid-gap: 16px;
}

body.gallery-style-editorial-ivory .gallery-viewer-section .content-wrapper,
body.gallery-style-minimalist-white .gallery-viewer-section .content-wrapper {
  max-width: 1180px;
}

body.gallery-style-classic-wedding {
  --gallery-paper: #ebedef;
  --gallery-panel: #f7f3ea;
  --gallery-sticky: rgba(235, 237, 239, 0.94);
  --gallery-ink: #142027;
  --gallery-muted: #65717a;
  --gallery-line: rgba(39, 49, 58, 0.12);
  --gallery-accent: #d8aa35;
  --gallery-accent-soft: rgba(216, 170, 53, 0.2);
  --gallery-chip: rgba(255, 255, 255, 0.76);
  --gallery-button-bg: #142027;
  --gallery-button-text: #ffffff;
}

body.gallery-style-minimalist-white {
  --gallery-paper: #ffffff;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(255, 255, 255, 0.96);
  --gallery-ink: #111111;
  --gallery-muted: #696969;
  --gallery-line: rgba(0, 0, 0, 0.1);
  --gallery-accent: #111111;
  --gallery-accent-soft: rgba(0, 0, 0, 0.055);
  --gallery-chip: #ffffff;
  --gallery-button-bg: #111111;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-minimalist-white .gallery-face-search,
body.gallery-style-minimalist-white .face-chip,
body.gallery-style-minimalist-white .photo-tile {
  border-radius: 0;
  box-shadow: none;
}

body.gallery-style-luxury-gold {
  --gallery-paper: #f3ecdc;
  --gallery-panel: #fff8e8;
  --gallery-sticky: rgba(243, 236, 220, 0.94);
  --gallery-ink: #211913;
  --gallery-muted: #725f45;
  --gallery-line: rgba(110, 85, 38, 0.18);
  --gallery-accent: #bf8f24;
  --gallery-accent-soft: rgba(191, 143, 36, 0.2);
  --gallery-chip: rgba(255, 255, 255, 0.78);
  --gallery-button-bg: #211913;
  --gallery-button-text: #fff6e3;
  --gallery-grid-gap: 14px;
}

body.gallery-style-luxury-gold .gallery-face-search {
  box-shadow: inset 0 0 0 1px rgba(191, 143, 36, 0.16);
}

body.gallery-style-baptism-soft {
  --gallery-paper: #f8f6f0;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(248, 246, 240, 0.94);
  --gallery-ink: #263432;
  --gallery-muted: #6d7a78;
  --gallery-line: rgba(92, 119, 115, 0.14);
  --gallery-accent: #a77f45;
  --gallery-accent-soft: rgba(167, 127, 69, 0.16);
  --gallery-chip: rgba(255, 255, 255, 0.9);
  --gallery-button-bg: #263432;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-baptism-soft .gallery-viewer-hero {
  min-height: 520px;
}

body.gallery-style-baptism-soft .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 4.8;
}

body.gallery-style-documentary-wedding {
  --gallery-paper: #171411;
  --gallery-panel: #241f1a;
  --gallery-sticky: rgba(23, 20, 17, 0.94);
  --gallery-ink: #eee2cf;
  --gallery-muted: #b3a287;
  --gallery-line: rgba(255, 244, 225, 0.13);
  --gallery-accent: #d0ad73;
  --gallery-accent-soft: rgba(208, 173, 115, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #eee2cf;
  --gallery-button-text: #171411;
  --gallery-grid-gap: 8px;
}

body.gallery-style-documentary-wedding .photo-grid {
  columns: 4 230px;
}

body.gallery-style-mobile-first {
  --gallery-paper: #f7f3ea;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(247, 243, 234, 0.95);
  --gallery-ink: #17242b;
  --gallery-muted: #65717a;
  --gallery-line: rgba(23, 36, 43, 0.12);
  --gallery-accent: #d8aa35;
  --gallery-accent-soft: rgba(216, 170, 53, 0.2);
  --gallery-chip: rgba(255, 255, 255, 0.9);
  --gallery-button-bg: #17242b;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 14px;
}

body.gallery-style-mobile-first .face-chip {
  min-height: 48px;
  padding-right: 14px;
}

body.gallery-style-mobile-first .face-chip img,
body.gallery-style-mobile-first .face-chip-icon {
  width: 40px;
  height: 40px;
}

body.gallery-style-mobile-first .gallery-tabs button {
  min-height: 42px;
  padding-right: 18px;
  padding-left: 18px;
}

body.gallery-style-store-print {
  --gallery-paper: #f8f2e5;
  --gallery-panel: #fffaf0;
  --gallery-sticky: rgba(248, 242, 229, 0.94);
  --gallery-ink: #171717;
  --gallery-muted: #736956;
  --gallery-line: rgba(23, 23, 23, 0.14);
  --gallery-accent: #c49325;
  --gallery-accent-soft: rgba(196, 147, 37, 0.22);
  --gallery-chip: rgba(255, 255, 255, 0.84);
  --gallery-button-bg: #171717;
  --gallery-button-text: #ffffff;
}

body.gallery-style-proofing-contrast {
  --gallery-paper: #ffffff;
  --gallery-panel: #f4f4f4;
  --gallery-sticky: rgba(255, 255, 255, 0.98);
  --gallery-ink: #000000;
  --gallery-muted: #494949;
  --gallery-line: rgba(0, 0, 0, 0.22);
  --gallery-accent: #000000;
  --gallery-accent-soft: rgba(0, 0, 0, 0.09);
  --gallery-chip: #ffffff;
  --gallery-button-bg: #000000;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 6px;
}

body.gallery-style-proofing-contrast .gallery-face-search,
body.gallery-style-proofing-contrast .face-chip,
body.gallery-style-proofing-contrast .photo-tile {
  border: 1px solid #000;
  border-radius: 0;
}

body.gallery-style-proofing-contrast .photo-tile-footer {
  opacity: 1;
  transform: none;
}

body.gallery-style-classic,
body.gallery-style-fine,
body.gallery-style-minimal,
body.gallery-style-airy,
body.gallery-style-spotlight,
body.gallery-style-editorial,
body.gallery-style-expressive,
body.gallery-style-folk,
body.gallery-style-soft,
body.gallery-style-bear-signature {
  --gallery-paper: #f4f2ec;
  --gallery-panel: #fffdf8;
  --gallery-sticky: rgba(255, 253, 248, 0.94);
  --gallery-ink: #1b1b18;
  --gallery-muted: #766f64;
  --gallery-line: rgba(30, 26, 22, 0.12);
  --gallery-accent: #b89455;
  --gallery-accent-soft: rgba(184, 148, 85, 0.16);
  --gallery-chip: rgba(255, 255, 255, 0.88);
  --gallery-button-bg: #181816;
  --gallery-button-text: #ffffff;
  --gallery-footer: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(9, 9, 8, 0.74));
  --gallery-grid-gap: 10px;
}

body.gallery-style-fine {
  --gallery-paper: #faf5ec;
  --gallery-panel: #fffaf2;
  --gallery-sticky: rgba(250, 245, 236, 0.94);
  --gallery-accent: #aa8550;
  --gallery-grid-gap: 15px;
}

body.gallery-style-minimal {
  --gallery-paper: #ffffff;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(255, 255, 255, 0.96);
  --gallery-ink: #101010;
  --gallery-muted: #696969;
  --gallery-line: rgba(0, 0, 0, 0.1);
  --gallery-accent: #101010;
  --gallery-accent-soft: rgba(0, 0, 0, 0.06);
  --gallery-grid-gap: 18px;
}

body.gallery-style-airy,
body.gallery-style-soft {
  --gallery-paper: #f8f7f3;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(248, 247, 243, 0.95);
  --gallery-ink: #273432;
  --gallery-muted: #71807b;
  --gallery-line: rgba(88, 111, 106, 0.13);
  --gallery-accent: #a27d4d;
  --gallery-accent-soft: rgba(162, 125, 77, 0.15);
  --gallery-grid-gap: 16px;
}

body.gallery-style-spotlight,
body.gallery-style-bear-signature {
  --gallery-paper: #090a0a;
  --gallery-panel: #111313;
  --gallery-sticky: rgba(9, 10, 10, 0.94);
  --gallery-ink: #f4efe5;
  --gallery-muted: #b9ad9b;
  --gallery-line: rgba(255, 255, 255, 0.12);
  --gallery-accent: #d4aa3f;
  --gallery-accent-soft: rgba(212, 170, 63, 0.17);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #d4aa3f;
  --gallery-button-text: #090a0a;
  --gallery-grid-gap: 8px;
}

body.gallery-style-editorial {
  --gallery-paper: #181512;
  --gallery-panel: #261f19;
  --gallery-sticky: rgba(24, 21, 18, 0.94);
  --gallery-ink: #efe3d0;
  --gallery-muted: #b9a486;
  --gallery-line: rgba(255, 238, 211, 0.14);
  --gallery-accent: #c9a46d;
  --gallery-accent-soft: rgba(201, 164, 109, 0.17);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #efe3d0;
  --gallery-button-text: #181512;
  --gallery-grid-gap: 8px;
}

body.gallery-style-expressive {
  --gallery-paper: #f3eee4;
  --gallery-panel: #fff8ea;
  --gallery-sticky: rgba(243, 238, 228, 0.94);
  --gallery-ink: #181818;
  --gallery-muted: #6d6252;
  --gallery-accent: #c49325;
  --gallery-accent-soft: rgba(196, 147, 37, 0.2);
}

body.gallery-style-folk {
  --gallery-paper: #efe6d6;
  --gallery-panel: #fff6e5;
  --gallery-sticky: rgba(239, 230, 214, 0.94);
  --gallery-ink: #241a12;
  --gallery-muted: #75604c;
  --gallery-accent: #ad7c37;
  --gallery-accent-soft: rgba(173, 124, 55, 0.18);
}

body.gallery-style-baptism-clean {
  --gallery-paper: #fbfaf6;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(251, 250, 246, 0.96);
  --gallery-ink: #243733;
  --gallery-muted: #6f807b;
  --gallery-line: rgba(76, 104, 98, 0.13);
  --gallery-accent: #a47d47;
  --gallery-accent-soft: rgba(164, 125, 71, 0.14);
  --gallery-chip: rgba(255, 255, 255, 0.92);
  --gallery-button-bg: #243733;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-slideshow-family {
  --gallery-paper: #ffffff;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(255, 255, 255, 0.95);
  --gallery-ink: #1d1b18;
  --gallery-muted: #70685c;
  --gallery-line: rgba(29, 27, 24, 0.13);
  --gallery-accent: #b58b55;
  --gallery-accent-soft: rgba(181, 139, 85, 0.17);
  --gallery-chip: rgba(255, 255, 255, 0.91);
  --gallery-button-bg: #1d1b18;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 14px;
}

body.gallery-style-cinematic-gold,
body.gallery-style-black-gold {
  --gallery-paper: #050505;
  --gallery-panel: #0e0d0b;
  --gallery-sticky: rgba(5, 5, 5, 0.94);
  --gallery-ink: #f3e6c9;
  --gallery-muted: #b9a681;
  --gallery-line: rgba(205, 167, 91, 0.34);
  --gallery-accent: #cda75b;
  --gallery-accent-soft: rgba(205, 167, 91, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #cda75b;
  --gallery-button-text: #050505;
  --gallery-footer: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92));
  --gallery-grid-gap: 10px;
}

body.gallery-style-magazine-editorial {
  --gallery-paper: #111111;
  --gallery-panel: #171717;
  --gallery-sticky: rgba(17, 17, 17, 0.95);
  --gallery-ink: #f7f3ea;
  --gallery-muted: #b9b1a4;
  --gallery-line: rgba(255, 255, 255, 0.13);
  --gallery-accent: #c79b43;
  --gallery-accent-soft: rgba(199, 155, 67, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.09);
  --gallery-button-bg: #f7f3ea;
  --gallery-button-text: #111111;
  --gallery-grid-gap: 8px;
}

body.gallery-style-soft-airy {
  --gallery-paper: #faf8f3;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(250, 248, 243, 0.96);
  --gallery-ink: #2d3b37;
  --gallery-muted: #71807b;
  --gallery-line: rgba(91, 115, 108, 0.13);
  --gallery-accent: #a88455;
  --gallery-accent-soft: rgba(168, 132, 85, 0.16);
  --gallery-chip: rgba(255, 255, 255, 0.92);
  --gallery-button-bg: #2d3b37;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-luxury-wedding {
  --gallery-paper: #f4ead8;
  --gallery-panel: #fff8e8;
  --gallery-sticky: rgba(244, 234, 216, 0.95);
  --gallery-ink: #2a2017;
  --gallery-muted: #77634b;
  --gallery-line: rgba(130, 96, 43, 0.18);
  --gallery-accent: #b98d3d;
  --gallery-accent-soft: rgba(185, 141, 61, 0.18);
  --gallery-chip: rgba(255, 255, 255, 0.84);
  --gallery-button-bg: #2a2017;
  --gallery-button-text: #fff6e6;
  --gallery-grid-gap: 14px;
}

body.gallery-style-documentary-film {
  --gallery-paper: #111412;
  --gallery-panel: #171c18;
  --gallery-sticky: rgba(17, 20, 18, 0.95);
  --gallery-ink: #e8dfcd;
  --gallery-muted: #aaa08c;
  --gallery-line: rgba(232, 223, 205, 0.16);
  --gallery-accent: #e0362d;
  --gallery-accent-soft: rgba(224, 54, 45, 0.16);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #e8dfcd;
  --gallery-button-text: #111412;
  --gallery-grid-gap: 9px;
}

body.gallery-style-fine-art-museum {
  --gallery-paper: #f8f4eb;
  --gallery-panel: #fffdf8;
  --gallery-sticky: rgba(248, 244, 235, 0.96);
  --gallery-ink: #1a1916;
  --gallery-muted: #6e675b;
  --gallery-line: rgba(26, 25, 22, 0.18);
  --gallery-accent: #1a1916;
  --gallery-accent-soft: rgba(26, 25, 22, 0.08);
  --gallery-chip: #fffdf8;
  --gallery-button-bg: #1a1916;
  --gallery-button-text: #fffdf8;
  --gallery-grid-gap: 16px;
}

body[class*="gallery-style-"] .gallery-viewer-hero {
  position: relative;
  height: min(86vh, 780px);
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gallery-paper);
  background-position: center;
  background-size: cover;
}

body[class*="gallery-style-"] .gallery-viewer-hero .hero-overlay {
  display: none;
}

.gallery-cover-stack {
  position: absolute;
  inset: 90px 4vw 78px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gallery-cover-stack img {
  position: absolute;
  width: clamp(155px, 18vw, 270px);
  height: clamp(220px, 29vw, 410px);
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
  transform-origin: center;
}

.gallery-loading .gallery-cover-stack img {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.2) 8%, rgba(255, 255, 255, 0.46) 18%, rgba(255, 255, 255, 0.2) 33%);
  background-size: 200% 100%;
  box-shadow: none;
  opacity: 0.72;
  animation: gallery-loading-sweep 1.35s linear infinite;
}

.gallery-cover-stack img:nth-child(1) {
  z-index: 3;
  width: clamp(230px, 26vw, 410px);
  height: clamp(300px, 35vw, 520px);
  transform: translateY(8px);
}

.gallery-cover-stack img:nth-child(2) {
  z-index: 2;
  transform: translate(-72%, -6%) rotate(-4deg);
}

.gallery-cover-stack img:nth-child(3) {
  z-index: 2;
  transform: translate(72%, -4%) rotate(4deg);
}

.gallery-cover-stack img:nth-child(4) {
  z-index: 1;
  transform: translate(-118%, 18%) rotate(3deg);
}

.gallery-cover-stack img:nth-child(5) {
  z-index: 1;
  transform: translate(118%, 18%) rotate(-3deg);
}

body[class*="gallery-style-"] .gallery-hero-copy {
  z-index: 4;
  width: min(calc(100% - 56px), 820px);
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

body[class*="gallery-style-"] .gallery-hero-copy .title {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 2.6px;
}

body[class*="gallery-style-"] .gallery-hero-copy h1 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[class*="gallery-style-"] .gallery-hero-copy p:not(.title) {
  color: rgba(255, 255, 255, 0.86);
}

body.gallery-style-minimal .gallery-hero-copy,
body.gallery-style-airy .gallery-hero-copy,
body.gallery-style-soft .gallery-hero-copy {
  color: var(--gallery-ink);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.9);
}

body.gallery-style-minimal .gallery-hero-copy h1,
body.gallery-style-airy .gallery-hero-copy h1,
body.gallery-style-soft .gallery-hero-copy h1,
body.gallery-style-minimal .gallery-hero-copy p:not(.title),
body.gallery-style-airy .gallery-hero-copy p:not(.title),
body.gallery-style-soft .gallery-hero-copy p:not(.title) {
  color: var(--gallery-ink);
}

body.gallery-style-minimal .gallery-hero-copy .title,
body.gallery-style-airy .gallery-hero-copy .title,
body.gallery-style-soft .gallery-hero-copy .title {
  color: var(--gallery-muted);
}

body[class*="gallery-style-"] .gallery-open-button {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

body.gallery-style-minimal .gallery-open-button,
body.gallery-style-airy .gallery-open-button,
body.gallery-style-soft .gallery-open-button {
  border-color: var(--gallery-line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .gallery-viewer-section {
  padding-top: 0;
  background: var(--gallery-paper);
}

body[class*="gallery-style-"] .gallery-toolbar {
  top: 58px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--gallery-sticky);
}

.gallery-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[class*="gallery-style-"] .gallery-back {
  display: none;
}

.gallery-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(48vw, 560px);
  padding: 5px 8px 5px 16px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  background: var(--gallery-chip);
  color: var(--gallery-ink);
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.gallery-search-icon {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.gallery-search-icon::after {
  content: "";
  display: block;
  width: 7px;
  height: 2px;
  margin: 8px 0 0 9px;
  background: currentColor;
  transform: rotate(45deg);
}

.gallery-search-preview-list {
  display: inline-flex;
  align-items: center;
  padding-left: 4px;
}

.gallery-search-preview {
  width: 32px;
  height: 32px;
  margin-left: -7px;
  border: 2px solid var(--gallery-panel);
  border-radius: 50%;
  background: var(--gallery-accent-soft);
  object-fit: cover;
}

body[class*="gallery-style-"] .client-session-actions {
  gap: 6px;
}

body[class*="gallery-style-"] .client-session-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--gallery-ink);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body[class*="gallery-style-"] .client-session-actions button:hover,
body[class*="gallery-style-"] .client-session-actions button[aria-pressed="true"] {
  background: var(--gallery-accent-soft);
}

body[class*="gallery-style-"] .gallery-tabs {
  top: 132px;
  margin-bottom: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--gallery-sticky);
}

body[class*="gallery-style-"] .gallery-tabs button {
  border-radius: 0;
  font-size: 10px;
}

body[class*="gallery-style-"] .gallery-tabs .is-active {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--gallery-accent);
}

body[class*="gallery-style-"] .photo-grid {
  columns: 3 250px;
  column-gap: var(--gallery-grid-gap);
  padding: 12px 0 52px;
}

body[class*="gallery-style-"] .photo-tile {
  margin-bottom: var(--gallery-grid-gap);
  background: var(--gallery-panel);
}

body[class*="gallery-style-"] .photo-tile > button:not(.photo-favorite):hover img {
  transform: scale(1.026);
}

.photo-options {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #191919;
  font-size: 12px;
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[class*="gallery-style-"] .photo-favorite {
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.74);
  color: #1a1a1a;
  font-size: 18px;
}

.photo-select-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
}

.photo-select-control {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.gallery-select-mode .photo-select-control {
  display: block;
}

.gallery-select-mode .photo-favorite,
.gallery-select-mode .photo-options {
  pointer-events: none;
}

.photo-select-control:focus-visible {
  outline: 3px solid var(--gallery-accent);
  outline-offset: -4px;
}

.photo-tile:hover .photo-options,
.photo-tile:focus-within .photo-options,
.gallery-select-mode .photo-select-ring,
.photo-tile.is-selected .photo-select-ring {
  opacity: 1;
}

.photo-tile.is-selected .photo-select-ring {
  background: var(--gallery-accent);
  border-color: var(--gallery-accent);
}

.photo-tile.is-selected .photo-select-ring::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 8px;
  height: 13px;
  border-right: 2px solid var(--gallery-button-text);
  border-bottom: 2px solid var(--gallery-button-text);
  transform: rotate(45deg);
}

.gallery-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 64;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
}

.gallery-drawer,
.gallery-face-search {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 65;
  width: min(512px, 100vw);
  margin: 0;
  padding: 34px;
  border: 0;
  border-radius: 0;
  background: #fffdf8;
  color: #191713;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.22);
  transform: translateX(-102%);
  transition: transform 220ms ease;
  overflow-y: auto;
}

.gallery-drawer.is-open,
.gallery-face-search.is-open {
  transform: translateX(0);
}

.gallery-drawer[hidden] {
  display: block;
  visibility: hidden;
}

.gallery-drawer.is-open[hidden] {
  visibility: visible;
}

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

.gallery-drawer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.gallery-drawer .title,
.gallery-face-search .title {
  margin: 42px 0 8px;
  color: #8d7651;
  font-family: Rubik, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.gallery-drawer h2,
.gallery-face-search h2 {
  margin: 0 0 12px;
  color: #181713;
  font-size: 32px;
}

.gallery-drawer p,
.gallery-face-search p {
  color: #6f6a5f;
  font-weight: 700;
}

.gallery-search-field {
  display: grid;
  gap: 8px;
  margin: 22px 0 10px;
  font-weight: 800;
}

.gallery-search-field input {
  min-height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  padding: 12px 14px;
}

.gallery-face-search .face-search-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
}

.gallery-face-search .face-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
}

.face-search-empty {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
}

.face-search-empty strong {
  color: inherit;
  font-size: 13px;
}

.face-search-empty span {
  color: #6f6a5f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.gallery-face-search .face-chip {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  gap: 7px;
  color: #2c2923;
}

.gallery-face-search .face-chip img,
.gallery-face-search .face-chip-icon {
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
}

.gallery-face-search .face-chip.is-active img,
.gallery-face-search .face-chip.is-active .face-chip-icon {
  border-color: #b89455;
}

.gallery-face-search .face-chip:hover,
.gallery-face-search .face-chip.is-active {
  background: transparent;
  transform: none;
}

.gallery-face-search .face-search-action,
.gallery-face-search .face-search-clear,
.gallery-drawer-actions button,
.gallery-drawer-actions a,
.download-choice-grid a,
.download-choice-grid button,
.gallery-drawer-menu button,
.gallery-drawer-menu a,
.gallery-select-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #181713;
  color: #ffffff;
  font-weight: 800;
}

.gallery-face-search .face-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-face-search .face-search-clear {
  background: transparent;
  color: #181713;
}

body[class*="gallery-style-"] .gallery-face-search {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid var(--gallery-line);
  border-radius: 8px;
  background: var(--gallery-panel);
  color: var(--gallery-ink);
  box-shadow: 0 14px 48px rgba(20, 17, 12, 0.08);
  transform: none;
  overflow: visible;
}

body[class*="gallery-style-"] .gallery-face-search.is-open {
  transform: none;
}

body[class*="gallery-style-"] .gallery-face-search.is-focused {
  box-shadow: 0 0 0 2px var(--gallery-accent-soft), 0 18px 56px rgba(20, 17, 12, 0.12);
}

body[class*="gallery-style-"] .gallery-face-search .gallery-drawer-close {
  display: none;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-copy {
  min-width: 0;
}

body[class*="gallery-style-"] .gallery-face-search .title {
  margin: 0 0 4px;
  color: var(--gallery-muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}

body[class*="gallery-style-"] .gallery-face-search h2 {
  margin: 0;
  color: var(--gallery-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

body[class*="gallery-style-"] .gallery-face-search p:not(.title) {
  margin: 8px 0 0;
  color: var(--gallery-muted);
  font-size: 12px;
  line-height: 1.45;
}

body[class*="gallery-style-"] .gallery-search-field {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--gallery-muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

body[class*="gallery-style-"] .gallery-search-field input {
  min-height: 42px;
  border-color: var(--gallery-line);
  border-radius: 999px;
  background: var(--gallery-chip);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .gallery-face-search .face-search-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  padding: 3px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.face-search-status {
  min-width: 0;
  margin: 0;
  color: var(--gallery-muted, #6f6a5f);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-status {
  grid-column: 2;
  margin: -4px 2px 0;
  color: var(--gallery-muted);
  letter-spacing: 0;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-empty {
  min-width: min(100%, 360px);
  border-color: var(--gallery-line);
  background: var(--gallery-chip);
  color: var(--gallery-ink);
}

body[class*="gallery-style-"] .gallery-face-search .face-search-empty span {
  color: var(--gallery-muted);
}

body[class*="gallery-style-"] .gallery-face-search .face-chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 4px 11px 4px 4px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  background: var(--gallery-chip);
  color: var(--gallery-ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body[class*="gallery-style-"] .gallery-face-search .face-chip img,
body[class*="gallery-style-"] .gallery-face-search .face-chip-icon {
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
}

body[class*="gallery-style-"] .gallery-face-search .face-chip:hover,
body[class*="gallery-style-"] .gallery-face-search .face-chip.is-active {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent-soft);
  transform: translateY(-1px);
}

body[class*="gallery-style-"] .gallery-face-search .face-search-actions {
  grid-column: 2;
  justify-self: end;
  display: flex;
  gap: 8px;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-action,
body[class*="gallery-style-"] .gallery-face-search .face-search-clear {
  min-height: 40px;
  padding: 9px 15px;
  border-color: var(--gallery-accent);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-action {
  background: var(--gallery-button-bg);
  color: var(--gallery-button-text);
  white-space: nowrap;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-action[aria-busy="true"] {
  cursor: progress;
  opacity: 0.68;
}

body[class*="gallery-style-"] .gallery-face-search .face-search-clear {
  background: transparent;
  color: var(--gallery-ink);
}

.gallery-drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.download-choice-grid,
.gallery-drawer-menu {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.download-choice-grid a,
.download-choice-grid button {
  align-items: flex-start;
  flex-direction: column;
  min-height: 92px;
  padding: 18px;
  border-radius: 8px;
  text-align: left;
}

.download-choice-grid span,
.download-part-list span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.download-choice-grid button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.download-choice-grid button[aria-busy="true"],
.download-choice-grid button:disabled {
  cursor: progress;
  opacity: 0.58;
}

.download-prepare-status {
  min-height: 22px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.download-part-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.download-part-list[hidden] {
  display: none;
}

.download-part-link {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: #181713;
  text-decoration: none;
}

.download-part-link:hover,
.download-part-link:focus-visible {
  border-color: #8d7651;
  box-shadow: 0 8px 24px rgba(20, 17, 12, 0.09);
}

.download-part-link span {
  margin-top: 2px;
  color: #6f6a5f;
  font-size: 12px;
}

.gallery-drawer-field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-drawer-field input,
.gallery-drawer-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 2px;
  background: #fff;
  color: #151515;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.gallery-collection-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.gallery-collection-form .gallery-drawer-field {
  margin-bottom: 0;
}

.gallery-collection-form > button,
.gallery-collection-row button,
.gallery-collection-row a {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.gallery-collection-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.gallery-collection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
}

.gallery-collection-row h3,
.gallery-collection-row p {
  margin: 0;
}

.gallery-collection-row h3 {
  overflow-wrap: anywhere;
  font-size: 17px;
  letter-spacing: 0;
}

.gallery-collection-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.gallery-collection-status {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .gallery-collection-form,
  .gallery-collection-row {
    grid-template-columns: 1fr;
  }

  .gallery-collection-row-actions {
    justify-content: flex-start;
  }
}

.gallery-drawer-menu button,
.gallery-drawer-menu a {
  justify-content: flex-start;
  padding: 12px 18px;
  border-radius: 8px;
  background: #f2eee6;
  color: #181713;
}

.gallery-select-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 62;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 32px), 680px);
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.94);
  color: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

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

.gallery-select-bar p {
  flex: 1;
  margin: 0;
  font-weight: 800;
}

.gallery-select-bar div {
  display: flex;
  gap: 8px;
}

.gallery-select-bar button {
  min-height: 36px;
  padding: 8px 14px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.photo-tile.is-loading {
  opacity: 0.76;
}

.photo-loading-shimmer {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.16) 8%, rgba(255, 255, 255, 0.58) 18%, rgba(255, 255, 255, 0.16) 33%);
  background-size: 200% 100%;
  animation: gallery-loading-sweep 1.35s linear infinite;
}

@keyframes gallery-loading-sweep {
  to {
    background-position-x: -200%;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0;
  align-items: center;
  padding: 28px;
  background: rgba(9, 14, 17, 0.96);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox > img {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-width: min(100%, 1280px);
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--white);
}

.gallery-lightbox-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 800;
}

.gallery-lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.gallery-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.gallery-lightbox-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.gallery-lightbox-prev::before,
.gallery-lightbox-next::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
}

.gallery-lightbox-prev::before {
  transform: rotate(-45deg) translate(2px, 2px);
}

.gallery-lightbox-next::before {
  transform: rotate(135deg) translate(2px, 2px);
}

.gallery-lightbox-panel {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 1280px);
  justify-self: center;
  padding-top: 22px;
  color: var(--white);
}

.gallery-lightbox-panel p {
  margin: 0;
  font-weight: 800;
}

.gallery-lightbox-strip {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  gap: 8px;
  width: min(100%, 1280px);
  justify-self: center;
  padding-top: 14px;
  overflow-x: auto;
}

.gallery-lightbox-strip button {
  flex: 0 0 74px;
  width: 74px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  opacity: 0.54;
  overflow: hidden;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.gallery-lightbox-strip button.is-active,
.gallery-lightbox-strip button:hover {
  border-color: var(--white);
  opacity: 1;
}

.gallery-lightbox-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[class*="gallery-style-"] .gallery-lightbox {
  background: #fbfaf7;
  color: #171717;
}

body[class*="gallery-style-"] .gallery-lightbox > img {
  max-height: calc(100vh - 170px);
  box-shadow: 0 14px 56px rgba(0, 0, 0, 0.08);
}

body[class*="gallery-style-"] .gallery-lightbox-close,
body[class*="gallery-style-"] .gallery-lightbox-nav,
.gallery-lightbox-actions button {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #171717;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
}

.gallery-lightbox-actions {
  position: absolute;
  top: 28px;
  right: 86px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.gallery-lightbox-actions button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

body[class*="gallery-style-"] .gallery-lightbox-panel {
  color: #171717;
}

body[class*="gallery-style-"] .gallery-lightbox-panel .photo-downloads a {
  border-color: rgba(0, 0, 0, 0.12);
  background: #171717;
  color: #ffffff;
}

body[class*="gallery-style-"] .gallery-lightbox-prev::before,
body[class*="gallery-style-"] .gallery-lightbox-next::before {
  border-color: #171717;
}

body[class*="gallery-style-"] .gallery-lightbox-strip button.is-active,
body[class*="gallery-style-"] .gallery-lightbox-strip button:hover {
  border-color: #171717;
}

body[class*="gallery-style-"] .gallery-viewer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.16), rgba(7, 7, 7, 0.52));
}

body[class*="gallery-style-"] .gallery-cover-stack {
  z-index: 2;
}

body[class*="gallery-style-"] .gallery-section-tabs {
  border-color: var(--gallery-line);
}

body[class*="gallery-style-"] .gallery-section-tabs button {
  border-color: var(--gallery-line);
  border-radius: 999px;
  background: var(--gallery-chip);
  color: var(--gallery-muted);
}

body[class*="gallery-style-"] .gallery-section-tabs button:hover,
body[class*="gallery-style-"] .gallery-section-tabs button.is-active {
  border-color: var(--gallery-accent);
  background: var(--gallery-accent-soft);
  color: var(--gallery-ink);
}

body.gallery-style-classic .gallery-viewer-section .content-wrapper {
  max-width: 1180px;
}

body.gallery-style-baptism-clean .gallery-viewer-hero {
  height: min(64vh, 560px);
  min-height: 430px;
  place-items: end center;
}

body.gallery-style-baptism-clean .gallery-viewer-hero::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(251, 250, 246, 0.94));
}

body.gallery-style-baptism-clean .gallery-cover-stack {
  display: none;
}

body.gallery-style-baptism-clean .gallery-hero-copy {
  max-width: 760px;
  margin-bottom: 42px;
  color: var(--gallery-ink);
  text-align: center;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.88);
}

body.gallery-style-baptism-clean .gallery-hero-copy h1,
body.gallery-style-baptism-clean .gallery-hero-copy p:not(.title) {
  color: var(--gallery-ink);
}

body.gallery-style-baptism-clean .gallery-hero-copy .title {
  color: var(--gallery-muted);
}

body.gallery-style-baptism-clean .photo-tile,
body.gallery-style-baptism-clean .photo-tile > button:not(.photo-favorite) {
  border-radius: 8px;
}

body.gallery-style-slideshow-family .gallery-viewer-hero {
  height: min(82vh, 760px);
  min-height: 560px;
}

body.gallery-style-slideshow-family .gallery-viewer-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.18) 46%, rgba(10, 10, 10, 0.74)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 44%);
}

body.gallery-style-slideshow-family .gallery-cover-stack {
  inset: auto 0 0;
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

body.gallery-style-slideshow-family .gallery-cover-stack img,
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(1),
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(2),
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(3),
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(4),
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(5) {
  position: relative;
  width: clamp(76px, 10vw, 132px);
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  box-shadow: none;
  transform: none;
}

body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(1) {
  width: clamp(94px, 12vw, 152px);
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.86);
}

body.gallery-style-slideshow-family .gallery-hero-copy {
  text-align: center;
}

body.gallery-style-slideshow-family .gallery-open-button {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.84);
  color: transparent;
  overflow: hidden;
}

body.gallery-style-slideshow-family .gallery-open-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #1d1b18;
}

body.gallery-style-slideshow-family .photo-grid {
  columns: 4 220px;
}

body.gallery-style-cinematic-gold .gallery-viewer-hero,
body.gallery-style-black-gold .gallery-viewer-hero,
body.gallery-style-bear-signature .gallery-viewer-hero {
  height: min(82vh, 760px);
  min-height: 600px;
}

body.gallery-style-cinematic-gold .gallery-viewer-hero::before,
body.gallery-style-black-gold .gallery-viewer-hero::before,
body.gallery-style-bear-signature .gallery-viewer-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 44%, rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), transparent 42%, rgba(0, 0, 0, 0.42));
}

body.gallery-style-cinematic-gold .gallery-cover-stack,
body.gallery-style-black-gold .gallery-cover-stack,
body.gallery-style-bear-signature .gallery-cover-stack {
  display: none;
}

body.gallery-style-cinematic-gold .gallery-hero-copy,
body.gallery-style-black-gold .gallery-hero-copy,
body.gallery-style-bear-signature .gallery-hero-copy {
  text-align: center;
}

body.gallery-style-cinematic-gold .gallery-hero-copy h1,
body.gallery-style-black-gold .gallery-hero-copy h1,
body.gallery-style-bear-signature .gallery-hero-copy h1 {
  color: var(--gallery-accent);
}

body.gallery-style-cinematic-gold .photo-tile,
body.gallery-style-black-gold .photo-tile,
body.gallery-style-bear-signature .photo-tile {
  border: 1px solid var(--gallery-line);
}

body.gallery-style-magazine-editorial .gallery-viewer-hero {
  height: min(62vh, 600px);
  min-height: 470px;
  place-items: end start;
}

body.gallery-style-magazine-editorial .gallery-viewer-hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.82));
}

body.gallery-style-magazine-editorial .gallery-cover-stack {
  display: none;
}

body.gallery-style-magazine-editorial .gallery-hero-copy {
  width: min(calc(100% - 72px), 1180px);
  margin: 0 auto 42px;
  text-align: left;
}

body.gallery-style-magazine-editorial .gallery-hero-copy h1 {
  max-width: 1180px;
  font-size: clamp(58px, 11vw, 160px);
  line-height: 0.88;
}

body.gallery-style-magazine-editorial .gallery-toolbar {
  min-height: 88px;
}

body.gallery-style-magazine-editorial .photo-grid {
  columns: 4 210px;
}

body.gallery-style-magazine-editorial .photo-tile {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.gallery-style-soft-airy .gallery-viewer-hero,
body.gallery-style-luxury-wedding .gallery-viewer-hero {
  height: min(78vh, 720px);
  min-height: 560px;
  place-items: center start;
}

body.gallery-style-soft-airy .gallery-viewer-hero::before,
body.gallery-style-luxury-wedding .gallery-viewer-hero::before {
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.94), rgba(250, 248, 243, 0.62) 42%, rgba(250, 248, 243, 0.08));
}

body.gallery-style-soft-airy .gallery-cover-stack,
body.gallery-style-luxury-wedding .gallery-cover-stack {
  inset: 90px 6vw 76px auto;
  width: min(48vw, 620px);
  place-items: center;
}

body.gallery-style-soft-airy .gallery-cover-stack img,
body.gallery-style-luxury-wedding .gallery-cover-stack img {
  border-radius: 12px;
  box-shadow: 0 24px 72px rgba(70, 52, 35, 0.18);
}

body.gallery-style-soft-airy .gallery-hero-copy,
body.gallery-style-luxury-wedding .gallery-hero-copy {
  max-width: 540px;
  margin-left: max(32px, 8vw);
  color: var(--gallery-ink);
  text-shadow: none;
}

body.gallery-style-soft-airy .gallery-hero-copy h1,
body.gallery-style-soft-airy .gallery-hero-copy p:not(.title),
body.gallery-style-luxury-wedding .gallery-hero-copy h1,
body.gallery-style-luxury-wedding .gallery-hero-copy p:not(.title) {
  color: var(--gallery-ink);
}

body.gallery-style-soft-airy .gallery-hero-copy .title,
body.gallery-style-luxury-wedding .gallery-hero-copy .title {
  color: var(--gallery-muted);
}

body.gallery-style-soft-airy .gallery-open-button,
body.gallery-style-luxury-wedding .gallery-open-button {
  border-color: var(--gallery-line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--gallery-ink);
}

body.gallery-style-soft-airy .photo-tile,
body.gallery-style-soft-airy .photo-tile > button:not(.photo-favorite),
body.gallery-style-luxury-wedding .photo-tile,
body.gallery-style-luxury-wedding .photo-tile > button:not(.photo-favorite) {
  border-radius: 10px;
}

body.gallery-style-documentary-film .gallery-viewer-hero {
  height: min(58vh, 540px);
  min-height: 410px;
  margin: 24px auto 0;
  width: min(calc(100% - 56px), 1760px);
  border-radius: 8px;
}

body.gallery-style-documentary-film .gallery-viewer-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 50%, rgba(0, 0, 0, 0.24));
}

body.gallery-style-documentary-film .gallery-cover-stack {
  inset: auto 3vw 22px;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 10px 14px;
  background:
    linear-gradient(90deg, transparent 8px, rgba(255, 255, 255, 0.12) 8px 14px, transparent 14px) 0 0 / 24px 100%,
    rgba(0, 0, 0, 0.62);
}

body.gallery-style-documentary-film .gallery-cover-stack img,
body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(1),
body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(2),
body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(3),
body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(4),
body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(5) {
  position: relative;
  width: clamp(92px, 14vw, 220px);
  height: 88px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.gallery-style-documentary-film .gallery-hero-copy {
  text-align: center;
}

body.gallery-style-documentary-film .gallery-hero-copy h1 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
}

body.gallery-style-documentary-film .photo-grid {
  columns: 4 230px;
}

body.gallery-style-documentary-film .photo-tile::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gallery-accent);
  box-shadow: 0 0 18px rgba(224, 54, 45, 0.8);
}

body.gallery-style-fine-art-museum .gallery-viewer-hero {
  height: min(64vh, 620px);
  min-height: 480px;
  background-image: none !important;
  background-color: var(--gallery-paper);
}

body.gallery-style-fine-art-museum .gallery-viewer-hero::before {
  background:
    linear-gradient(90deg, rgba(26, 25, 22, 0.16) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(248, 244, 235, 0.84), rgba(248, 244, 235, 0.96));
}

body.gallery-style-fine-art-museum .gallery-cover-stack {
  inset: 160px 0 70px;
}

body.gallery-style-fine-art-museum .gallery-cover-stack img {
  display: none;
}

body.gallery-style-fine-art-museum .gallery-cover-stack img:nth-child(1) {
  display: block;
  width: min(720px, 72vw);
  height: min(230px, 28vw);
  border: 4px solid var(--gallery-ink);
  border-radius: 0;
  box-shadow: 0 22px 60px rgba(36, 29, 18, 0.14);
  transform: none;
}

body.gallery-style-fine-art-museum .gallery-hero-copy {
  align-self: start;
  margin-top: 54px;
  color: var(--gallery-ink);
  text-align: center;
  text-shadow: none;
}

body.gallery-style-fine-art-museum .gallery-hero-copy h1,
body.gallery-style-fine-art-museum .gallery-hero-copy p:not(.title) {
  color: var(--gallery-ink);
}

body.gallery-style-fine-art-museum .gallery-hero-copy h1 {
  font-size: clamp(40px, 4.7vw, 70px);
}

body.gallery-style-fine-art-museum .gallery-hero-copy .title {
  color: var(--gallery-muted);
}

body.gallery-style-fine-art-museum .gallery-open-button {
  display: none;
}

body.gallery-style-fine-art-museum .photo-grid {
  columns: 5 220px;
}

body.gallery-style-fine-art-museum .photo-tile {
  border: 1px solid var(--gallery-line);
  border-radius: 0;
  padding: 3px;
  background: #fffdf8;
}

body.gallery-style-luxury-wedding {
  --gallery-paper: #f4ead8;
  --gallery-panel: #fff8e8;
  --gallery-sticky: rgba(255, 248, 232, 0.92);
  --gallery-ink: #241a12;
  --gallery-muted: #806b4c;
  --gallery-line: rgba(149, 110, 46, 0.24);
  --gallery-accent: #b88b3e;
  --gallery-accent-soft: rgba(184, 139, 62, 0.18);
  --gallery-chip: rgba(255, 252, 244, 0.94);
  --gallery-button-bg: #241a12;
  --gallery-button-text: #fff8e8;
  --gallery-grid-gap: 14px;
}

body.gallery-style-luxury-wedding .gallery-viewer-hero {
  height: min(50vh, 520px);
  min-height: 390px;
  place-items: end center;
}

body.gallery-style-luxury-wedding .gallery-viewer-hero::before {
  background: linear-gradient(180deg, rgba(36, 26, 18, 0.06), rgba(36, 26, 18, 0.54));
}

body.gallery-style-luxury-wedding .gallery-cover-stack {
  display: none;
}

body.gallery-style-luxury-wedding .gallery-hero-copy {
  max-width: 860px;
  margin-bottom: 52px;
  text-align: center;
}

body.gallery-style-luxury-wedding .gallery-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff8e8;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.48);
}

body.gallery-style-luxury-wedding .gallery-hero-copy .title,
body.gallery-style-luxury-wedding .gallery-hero-copy p:not(.title) {
  color: rgba(255, 248, 232, 0.86);
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.42);
}

body.gallery-style-luxury-wedding .gallery-toolbar {
  position: relative;
  top: auto;
  z-index: 12;
  width: min(1080px, calc(100vw - 48px));
  min-height: 74px;
  margin: -36px auto 28px;
  padding: 12px 18px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(67, 45, 18, 0.18);
}

body.gallery-style-luxury-wedding .gallery-toolbar-left {
  flex: 1 1 auto;
  justify-content: center;
}

body.gallery-style-luxury-wedding .gallery-search-trigger {
  flex: 1 1 380px;
  justify-content: space-between;
  max-width: 560px;
}

body.gallery-style-luxury-wedding .photo-grid {
  columns: 4 245px;
}

body.gallery-style-luxury-wedding .photo-tile {
  box-shadow: 0 14px 34px rgba(68, 49, 26, 0.12);
}

body.gallery-style-baptism-clean {
  --gallery-paper: #ffffff;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(255, 255, 255, 0.96);
  --gallery-ink: #151515;
  --gallery-muted: #696969;
  --gallery-line: rgba(0, 0, 0, 0.12);
  --gallery-accent: #1b1b1b;
  --gallery-accent-soft: rgba(0, 0, 0, 0.06);
  --gallery-chip: #ffffff;
  --gallery-button-bg: #111111;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-baptism-clean .gallery-viewer-hero {
  width: min(1100px, calc(100vw - 48px));
  height: min(42vh, 430px);
  min-height: 310px;
  margin: 28px auto 0;
  border-radius: 0;
  place-items: end center;
}

body.gallery-style-baptism-clean .gallery-viewer-hero::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.92));
}

body.gallery-style-baptism-clean .gallery-hero-copy {
  margin-bottom: 32px;
  color: var(--gallery-ink);
  text-shadow: none;
}

body.gallery-style-baptism-clean .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(720px, calc(100vw - 42px));
  margin: -28px auto 34px;
  padding: 9px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.gallery-style-baptism-clean .client-session-actions {
  display: none;
}

body.gallery-style-baptism-clean .gallery-search-trigger {
  width: 100%;
  max-width: none;
  justify-content: space-between;
}

body.gallery-style-baptism-clean .photo-grid {
  columns: 3 280px;
}

body.gallery-style-cinematic-gold,
body.gallery-style-black-gold {
  --gallery-paper: #050505;
  --gallery-panel: #0d0c0a;
  --gallery-sticky: rgba(5, 5, 5, 0.9);
  --gallery-ink: #f4ead5;
  --gallery-muted: #b9a577;
  --gallery-line: rgba(205, 167, 91, 0.5);
  --gallery-accent: #cda75b;
  --gallery-accent-soft: rgba(205, 167, 91, 0.16);
  --gallery-chip: rgba(20, 18, 15, 0.9);
  --gallery-button-bg: #cda75b;
  --gallery-button-text: #060606;
  --gallery-grid-gap: 10px;
}

body.gallery-style-cinematic-gold .gallery-viewer-hero,
body.gallery-style-black-gold .gallery-viewer-hero {
  height: min(56vh, 560px);
  min-height: 430px;
}

body.gallery-style-cinematic-gold .gallery-viewer-hero {
  height: min(44vh, 430px);
  min-height: 330px;
}

body.gallery-style-cinematic-gold .gallery-hero-copy h1,
body.gallery-style-black-gold .gallery-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gallery-accent);
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 400;
}

body.gallery-style-cinematic-gold .gallery-hero-copy h1 {
  font-size: clamp(40px, 6vw, 76px);
}

body.gallery-style-cinematic-gold .gallery-toolbar,
body.gallery-style-black-gold .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(820px, calc(100vw - 42px));
  margin: -34px auto 28px;
  padding: 10px 14px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(205, 167, 91, 0.12), 0 24px 60px rgba(0, 0, 0, 0.38);
}

body.gallery-style-cinematic-gold .client-session-actions,
body.gallery-style-black-gold .client-session-actions {
  color: var(--gallery-muted);
}

body.gallery-style-cinematic-gold .photo-grid,
body.gallery-style-black-gold .photo-grid {
  columns: 5 220px;
}

body.gallery-style-cinematic-gold .photo-tile,
body.gallery-style-black-gold .photo-tile {
  border: 1px solid var(--gallery-line);
  background: #080807;
}

body.gallery-style-cinematic-gold .photo-tile > button:not(.photo-favorite),
body.gallery-style-black-gold .photo-tile > button:not(.photo-favorite) {
  border-radius: 0;
}

body.gallery-style-magazine-editorial {
  --gallery-paper: #111111;
  --gallery-panel: #181818;
  --gallery-sticky: rgba(17, 17, 17, 0.95);
  --gallery-ink: #f6f2e8;
  --gallery-muted: #a7a09a;
  --gallery-line: rgba(255, 255, 255, 0.12);
  --gallery-accent: #f6f2e8;
  --gallery-accent-soft: rgba(246, 242, 232, 0.1);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #f6f2e8;
  --gallery-button-text: #111111;
  --gallery-grid-gap: 8px;
}

body.gallery-style-magazine-editorial .gallery-viewer-hero {
  height: min(46vh, 460px);
  min-height: 350px;
  place-items: end start;
}

body.gallery-style-magazine-editorial .gallery-hero-copy h1 {
  max-width: 1320px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 10vw, 132px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.gallery-style-magazine-editorial .gallery-toolbar {
  position: relative;
  top: auto;
  margin: 0 auto 16px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

body.gallery-style-magazine-editorial .photo-grid {
  columns: 5 210px;
}

body.gallery-style-magazine-editorial .photo-tile,
body.gallery-style-magazine-editorial .photo-tile > button:not(.photo-favorite) {
  border-radius: 0;
}

body.gallery-style-soft-airy {
  --gallery-paper: #faf8f3;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(250, 248, 243, 0.94);
  --gallery-ink: #26322e;
  --gallery-muted: #778179;
  --gallery-line: rgba(74, 95, 85, 0.13);
  --gallery-accent: #8f734f;
  --gallery-accent-soft: rgba(143, 115, 79, 0.14);
  --gallery-chip: rgba(255, 255, 255, 0.92);
  --gallery-button-bg: #26322e;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 18px;
}

body.gallery-style-soft-airy .gallery-viewer-hero {
  width: min(1220px, calc(100vw - 44px));
  height: min(56vh, 560px);
  min-height: 420px;
  margin: 26px auto 0;
  border-radius: 18px;
  overflow: hidden;
}

body.gallery-style-soft-airy .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(760px, calc(100vw - 42px));
  margin: -30px auto 30px;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(47, 58, 49, 0.12);
}

body.gallery-style-soft-airy .client-session-actions {
  display: none;
}

body.gallery-style-soft-airy .photo-grid {
  columns: 3 260px;
}

body.gallery-style-soft-airy .photo-tile,
body.gallery-style-soft-airy .photo-tile > button:not(.photo-favorite) {
  border-radius: 16px;
}

body.gallery-style-documentary-film {
  --gallery-paper: #111412;
  --gallery-panel: #171b18;
  --gallery-sticky: rgba(17, 20, 18, 0.94);
  --gallery-ink: #e8dfcd;
  --gallery-muted: #aaa08d;
  --gallery-line: rgba(255, 255, 255, 0.09);
  --gallery-accent: #e0362d;
  --gallery-accent-soft: rgba(224, 54, 45, 0.14);
  --gallery-chip: rgba(255, 255, 255, 0.08);
  --gallery-button-bg: #e8dfcd;
  --gallery-button-text: #111412;
  --gallery-grid-gap: 12px;
}

body.gallery-style-documentary-film .gallery-viewer-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(224, 54, 45, 0.09), transparent 34%),
    var(--gallery-paper);
}

body.gallery-style-documentary-film .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(560px, calc(100vw - 42px));
  margin: 18px auto 26px;
  border-radius: 999px;
}

body.gallery-style-documentary-film .client-session-actions {
  display: none;
}

body.gallery-style-documentary-film .photo-grid {
  columns: 4 250px;
}

body.gallery-style-documentary-film .photo-tile {
  border-radius: 3px;
}

body.gallery-style-documentary-film .photo-tile-footer {
  opacity: 1;
  transform: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

body.gallery-style-fine-art-museum {
  --gallery-paper: #f8f4eb;
  --gallery-panel: #fffdf8;
  --gallery-sticky: rgba(248, 244, 235, 0.96);
  --gallery-ink: #171713;
  --gallery-muted: #6e675c;
  --gallery-line: rgba(23, 23, 19, 0.32);
  --gallery-accent: #171713;
  --gallery-accent-soft: rgba(23, 23, 19, 0.06);
  --gallery-chip: #fffdf8;
  --gallery-button-bg: #171713;
  --gallery-button-text: #fffdf8;
  --gallery-grid-gap: 12px;
}

body.gallery-style-fine-art-museum .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(640px, calc(100vw - 42px));
  margin: -30px auto 24px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
}

body.gallery-style-fine-art-museum .client-session-actions {
  display: none;
}

body.gallery-style-fine-art-museum .photo-tile > button:not(.photo-favorite) {
  border-radius: 0;
}

body.gallery-style-slideshow-family {
  --gallery-paper: #ffffff;
  --gallery-panel: #ffffff;
  --gallery-sticky: rgba(255, 255, 255, 0.96);
  --gallery-ink: #1d1b18;
  --gallery-muted: #6f6a63;
  --gallery-line: rgba(0, 0, 0, 0.1);
  --gallery-accent: #94c7c4;
  --gallery-accent-soft: rgba(148, 199, 196, 0.2);
  --gallery-chip: rgba(255, 255, 255, 0.96);
  --gallery-button-bg: #1d1b18;
  --gallery-button-text: #ffffff;
  --gallery-grid-gap: 16px;
}

body.gallery-style-slideshow-family .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(760px, calc(100vw - 42px));
  margin: 14px auto 22px;
  border: 2px solid rgba(148, 199, 196, 0.48);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(29, 27, 24, 0.12);
}

body.gallery-style-slideshow-family .client-session-actions {
  display: none;
}

body.gallery-style-slideshow-family .photo-grid {
  columns: 4 220px;
}

body.gallery-style-heritage-album {
  --gallery-paper: #f5efe2;
  --gallery-panel: #fffaf0;
  --gallery-sticky: rgba(245, 239, 226, 0.96);
  --gallery-ink: #2a251f;
  --gallery-muted: #716656;
  --gallery-line: rgba(67, 54, 38, 0.22);
  --gallery-accent: #8d806d;
  --gallery-accent-soft: rgba(141, 128, 109, 0.16);
  --gallery-chip: rgba(255, 250, 240, 0.96);
  --gallery-button-bg: #2a251f;
  --gallery-button-text: #fffaf0;
  --gallery-grid-gap: 22px;
}

body.gallery-style-heritage-album .gallery-viewer-hero {
  height: min(36vh, 380px);
  min-height: 300px;
  place-items: center;
}

body.gallery-style-heritage-album .gallery-viewer-hero::before {
  background: linear-gradient(180deg, rgba(42, 37, 31, 0.24), rgba(42, 37, 31, 0.5));
}

body.gallery-style-heritage-album .gallery-cover-stack {
  display: none;
}

body.gallery-style-heritage-album .gallery-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
}

body.gallery-style-heritage-album .gallery-toolbar {
  position: relative;
  top: auto;
  width: min(640px, calc(100vw - 42px));
  margin: 24px auto 26px;
  border-radius: 999px;
}

body.gallery-style-heritage-album .client-session-actions {
  display: none;
}

body.gallery-style-heritage-album .photo-grid {
  columns: 3 360px;
}

body.gallery-style-heritage-album .photo-tile {
  padding: 22px;
  border: 1px solid rgba(67, 54, 38, 0.22);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(67, 54, 38, 0.08), transparent 18%, transparent 82%, rgba(67, 54, 38, 0.08)),
    #fffaf0;
  box-shadow: 0 16px 34px rgba(67, 54, 38, 0.14);
}

body.gallery-style-heritage-album .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(67, 54, 38, 0.08);
  border-radius: 0;
}

body.gallery-style-heritage-album .photo-tile-footer {
  position: static;
  display: grid;
  justify-content: center;
  padding: 12px 0 0;
  background: transparent;
  opacity: 1;
  transform: none;
  text-align: center;
}

body.gallery-style-heritage-album .photo-tile-footer p {
  color: var(--gallery-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
}

body.gallery-style-heritage-album .photo-downloads {
  display: none;
}

/* Concept fidelity pass: each admin-selectable gallery style gets its own image rhythm. */
body[class*="gallery-style-"] .photo-grid {
  width: min(100% - 40px, 1240px);
  margin-right: auto;
  margin-left: auto;
}

body[class*="gallery-style-"] .photo-tile {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body[class*="gallery-style-"] .photo-tile:hover {
  transform: translateY(-2px);
}

body.gallery-style-luxury-wedding .gallery-viewer-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0) 0 120px, rgba(255, 248, 232, 0.72) 120px),
    var(--gallery-paper);
}

body.gallery-style-luxury-wedding .photo-grid {
  max-width: 1180px;
  columns: 4 250px;
  column-gap: 14px;
}

body.gallery-style-luxury-wedding .photo-tile {
  margin-bottom: 14px;
  border-radius: 10px;
  background: #fff8e8;
}

body.gallery-style-luxury-wedding .photo-tile > button:not(.photo-favorite) {
  border-radius: 10px;
}

body.gallery-style-luxury-wedding .photo-tile:nth-child(7n+2) > button:not(.photo-favorite) {
  aspect-ratio: 16 / 10;
}

body.gallery-style-luxury-wedding .photo-tile:nth-child(7n+4) > button:not(.photo-favorite) {
  aspect-ratio: 1 / 1;
}

body.gallery-style-baptism-clean .gallery-hero-copy h1 {
  max-width: 620px;
  color: #151515;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  text-transform: none;
}

body.gallery-style-baptism-clean .gallery-hero-copy .title,
body.gallery-style-baptism-clean .gallery-hero-copy p:not(.title) {
  color: #2a2a2a;
  text-shadow: none;
}

body.gallery-style-baptism-clean .photo-grid {
  max-width: 940px;
  columns: 3 250px;
  column-gap: 18px;
}

body.gallery-style-baptism-clean .photo-tile {
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

body.gallery-style-baptism-clean .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: var(--photo-real-aspect, 4 / 3);
}

body.gallery-style-cinematic-gold .gallery-viewer-section {
  background:
    linear-gradient(90deg, rgba(205, 167, 91, 0.42), transparent 17%, transparent 83%, rgba(205, 167, 91, 0.42)),
    #050505;
}

body.gallery-style-cinematic-gold .gallery-viewer-hero {
  border-bottom: 1px solid var(--gallery-line);
}

body.gallery-style-cinematic-gold .gallery-hero-copy {
  margin-bottom: 34px;
}

body.gallery-style-cinematic-gold .photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  max-width: 1260px;
  padding-top: 8px;
}

body.gallery-style-cinematic-gold .photo-tile {
  display: block;
  margin: 0;
  border-color: rgba(205, 167, 91, 0.58);
}

body.gallery-style-cinematic-gold .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 3;
}

body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+1),
body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+6) {
  grid-column: span 2;
  grid-row: span 2;
}

body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+3),
body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+8) {
  grid-column: span 2;
}

body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+1) > button:not(.photo-favorite),
body.gallery-style-cinematic-gold .photo-tile:nth-child(10n+6) > button:not(.photo-favorite) {
  height: 100%;
}

body.gallery-style-black-gold {
  --gallery-paper: #020202;
  --gallery-panel: #080705;
  --gallery-accent: #d8b562;
  --gallery-line: rgba(216, 181, 98, 0.62);
}

body.gallery-style-black-gold .gallery-viewer-hero {
  height: min(52vh, 520px);
  min-height: 400px;
  background-position: center top;
}

body.gallery-style-black-gold .gallery-hero-copy {
  margin-bottom: 42px;
}

body.gallery-style-black-gold .gallery-toolbar {
  width: min(640px, calc(100vw - 42px));
  margin-top: -32px;
  background: #fffaf0;
}

body.gallery-style-black-gold .gallery-search-trigger {
  color: #241a12;
}

body.gallery-style-black-gold .photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  max-width: 1380px;
  padding-top: 22px;
}

body.gallery-style-black-gold .photo-tile {
  display: block;
  margin: 0;
  border: 1px solid var(--gallery-line);
  box-shadow: inset 0 0 0 1px rgba(216, 181, 98, 0.12);
}

body.gallery-style-black-gold .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 16 / 10;
}

body.gallery-style-black-gold .photo-tile:nth-child(9n+2),
body.gallery-style-black-gold .photo-tile:nth-child(9n+7) {
  grid-row: span 2;
}

body.gallery-style-black-gold .photo-tile:nth-child(9n+2) > button:not(.photo-favorite),
body.gallery-style-black-gold .photo-tile:nth-child(9n+7) > button:not(.photo-favorite) {
  height: 100%;
}

body.gallery-style-magazine-editorial .gallery-viewer-section {
  background:
    linear-gradient(180deg, #111111 0 210px, #151515 210px),
    #111111;
}

body.gallery-style-magazine-editorial .gallery-hero-copy {
  width: min(calc(100% - 64px), 1340px);
  margin: 0 auto 18px;
}

body.gallery-style-magazine-editorial .gallery-hero-copy p:not(.title) {
  max-width: 520px;
  font-size: 15px;
  text-transform: uppercase;
}

body.gallery-style-magazine-editorial .photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 8px;
  max-width: 1220px;
  padding: 16px 0 38px;
}

body.gallery-style-magazine-editorial .photo-tile {
  display: block;
  margin: 0;
  background: #050505;
}

body.gallery-style-magazine-editorial .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 1 / 1;
}

body.gallery-style-magazine-editorial .photo-tile:nth-child(12n+1) {
  grid-column: span 2;
  grid-row: span 3;
}

body.gallery-style-magazine-editorial .photo-tile:nth-child(12n+4),
body.gallery-style-magazine-editorial .photo-tile:nth-child(12n+9) {
  grid-column: span 2;
}

body.gallery-style-magazine-editorial .photo-tile:nth-child(12n+1) > button:not(.photo-favorite) {
  height: 100%;
}

body.gallery-style-soft-airy .gallery-cover-stack {
  inset: 70px 5vw 62px 48%;
  opacity: 0.78;
}

body.gallery-style-soft-airy .gallery-cover-stack img {
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
}

body.gallery-style-soft-airy .gallery-hero-copy {
  width: min(46vw, 620px);
  margin-right: auto;
  margin-left: min(8vw, 96px);
  text-align: left;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

body.gallery-style-soft-airy .gallery-hero-copy h1 {
  text-transform: none;
}

body.gallery-style-soft-airy .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  max-width: 1120px;
}

body.gallery-style-soft-airy .photo-tile {
  display: block;
  margin: 0;
  background: #ffffff;
}

body.gallery-style-soft-airy .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 5;
}

body.gallery-style-soft-airy .photo-tile:nth-child(8n+1),
body.gallery-style-soft-airy .photo-tile:nth-child(8n+6) {
  grid-row: span 2;
}

body.gallery-style-soft-airy .photo-tile:nth-child(8n+1) > button:not(.photo-favorite),
body.gallery-style-soft-airy .photo-tile:nth-child(8n+6) > button:not(.photo-favorite) {
  height: 100%;
}

body.gallery-style-documentary-film .gallery-viewer-hero {
  width: min(100% - 64px, 1360px);
  height: min(36vh, 340px);
  min-height: 260px;
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

body.gallery-style-documentary-film .gallery-hero-copy h1 {
  font-family: Rubik, Arial, sans-serif;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 900;
  text-transform: uppercase;
}

body.gallery-style-documentary-film .gallery-toolbar::before,
body.gallery-style-documentary-film .gallery-toolbar::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gallery-accent);
  box-shadow: 0 0 16px rgba(224, 54, 45, 0.8);
}

body.gallery-style-documentary-film .photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  max-width: 1310px;
  padding: 12px 0 40px;
}

body.gallery-style-documentary-film .photo-tile {
  display: block;
  grid-column: span 3;
  margin: 0;
  background: #090a09;
}

body.gallery-style-documentary-film .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 16 / 9;
}

body.gallery-style-documentary-film .photo-tile:nth-child(10n+1),
body.gallery-style-documentary-film .photo-tile:nth-child(10n+5) {
  grid-column: span 5;
}

body.gallery-style-documentary-film .photo-tile:nth-child(10n+8) {
  grid-column: span 12;
  padding: 22px 46px;
  background:
    repeating-linear-gradient(90deg, #050505 0 12px, #181818 12px 18px, #050505 18px 32px),
    #050505;
}

body.gallery-style-documentary-film .photo-tile:nth-child(10n+8) > button:not(.photo-favorite) {
  aspect-ratio: 5 / 1;
}

body.gallery-style-documentary-film .photo-tile:nth-child(10n+8) img {
  object-fit: cover;
}

body.gallery-style-fine-art-museum .gallery-viewer-hero {
  width: min(760px, calc(100vw - 42px));
  height: min(28vh, 260px);
  min-height: 210px;
  margin: 32px auto 0;
  border: 4px solid #171713;
  box-shadow: 0 0 0 1px rgba(23, 23, 19, 0.18);
}

body.gallery-style-fine-art-museum .gallery-hero-copy {
  position: absolute;
  top: -94px;
  left: 50%;
  width: min(100vw - 40px, 980px);
  color: var(--gallery-ink);
  text-align: center;
  text-shadow: none;
  transform: translateX(-50%);
}

body.gallery-style-fine-art-museum .gallery-hero-copy h1,
body.gallery-style-fine-art-museum .gallery-hero-copy p:not(.title),
body.gallery-style-fine-art-museum .gallery-hero-copy .title {
  color: var(--gallery-ink);
  text-shadow: none;
}

body.gallery-style-fine-art-museum .gallery-hero-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
}

body.gallery-style-fine-art-museum .photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  max-width: 1320px;
  border-top: 1px solid rgba(23, 23, 19, 0.32);
  padding-top: 34px;
}

body.gallery-style-fine-art-museum .photo-tile {
  display: block;
  margin: 0;
  border: 2px solid rgba(23, 23, 19, 0.72);
  background: #fffdf8;
}

body.gallery-style-fine-art-museum .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 5;
}

body.gallery-style-fine-art-museum .photo-tile:nth-child(7n+2),
body.gallery-style-fine-art-museum .photo-tile:nth-child(7n+6) {
  grid-row: span 2;
}

body.gallery-style-fine-art-museum .photo-tile:nth-child(7n+2) > button:not(.photo-favorite),
body.gallery-style-fine-art-museum .photo-tile:nth-child(7n+6) > button:not(.photo-favorite) {
  height: 100%;
}

body.gallery-style-slideshow-family .gallery-viewer-hero {
  height: min(60vh, 560px);
  min-height: 460px;
}

body.gallery-style-slideshow-family .gallery-cover-stack {
  inset: auto 0 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 74px;
  padding: 8px 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.52);
}

body.gallery-style-slideshow-family .gallery-cover-stack img,
body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(n) {
  position: relative;
  width: 96px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  box-shadow: none;
  opacity: 0.82;
  transform: none;
}

body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(3) {
  opacity: 1;
  outline: 2px solid #ffffff;
}

body.gallery-style-slideshow-family .gallery-hero-copy {
  text-align: center;
}

body.gallery-style-slideshow-family .photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  max-width: 1090px;
}

body.gallery-style-slideshow-family .photo-tile {
  display: block;
  margin: 0;
  border-radius: 9px;
}

body.gallery-style-slideshow-family .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
}

body.gallery-style-heritage-album .gallery-viewer-section {
  background:
    radial-gradient(circle at top, rgba(255, 250, 240, 0.9), rgba(245, 239, 226, 0.78) 42%, #efe5d2 100%),
    var(--gallery-paper);
}

body.gallery-style-heritage-album .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1320px;
  padding-bottom: 42px;
}

body.gallery-style-heritage-album .photo-tile {
  position: relative;
  display: block;
  margin: 0;
  min-height: 260px;
  padding: 28px;
}

body.gallery-style-heritage-album .photo-tile::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  background: rgba(67, 54, 38, 0.14);
  box-shadow: -12px 0 22px rgba(67, 54, 38, 0.08), 12px 0 22px rgba(67, 54, 38, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

body.gallery-style-heritage-album .photo-tile > button:not(.photo-favorite) {
  aspect-ratio: 9 / 5;
  width: calc(50% - 12px);
  margin-left: auto;
}

body.gallery-style-heritage-album .photo-tile:nth-child(even) > button:not(.photo-favorite) {
  margin-right: auto;
  margin-left: 0;
}

body.gallery-style-heritage-album .photo-tile:nth-child(3n+1) {
  grid-column: span 2;
}

body.gallery-style-heritage-album .photo-tile:nth-child(3n+1) > button:not(.photo-favorite) {
  width: calc(50% - 18px);
}

@media (max-width: 820px) {
  body.gallery-style-luxury-wedding .gallery-toolbar,
  body.gallery-style-baptism-clean .gallery-toolbar,
  body.gallery-style-cinematic-gold .gallery-toolbar,
  body.gallery-style-black-gold .gallery-toolbar,
  body.gallery-style-magazine-editorial .gallery-toolbar,
  body.gallery-style-soft-airy .gallery-toolbar,
  body.gallery-style-documentary-film .gallery-toolbar,
  body.gallery-style-fine-art-museum .gallery-toolbar,
  body.gallery-style-slideshow-family .gallery-toolbar,
  body.gallery-style-heritage-album .gallery-toolbar {
    width: min(100% - 28px, 720px);
    margin-right: auto;
    margin-left: auto;
    border-radius: 18px;
  }

  body[class*="gallery-style-"] .gallery-toolbar {
    align-items: stretch;
  }

  body[class*="gallery-style-"] .gallery-search-trigger {
    max-width: none;
    width: 100%;
  }

  body.gallery-style-magazine-editorial .gallery-hero-copy h1 {
    font-size: clamp(44px, 18vw, 82px);
  }

  body.gallery-style-heritage-album .photo-tile {
    padding: 14px;
  }

  body.gallery-style-cinematic-gold .photo-grid,
  body.gallery-style-black-gold .photo-grid,
  body.gallery-style-magazine-editorial .photo-grid,
  body.gallery-style-soft-airy .photo-grid,
  body.gallery-style-documentary-film .photo-grid,
  body.gallery-style-fine-art-museum .photo-grid,
  body.gallery-style-slideshow-family .photo-grid,
  body.gallery-style-heritage-album .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100% - 24px, 720px);
  }

  body.gallery-style-cinematic-gold .photo-tile,
  body.gallery-style-black-gold .photo-tile,
  body.gallery-style-magazine-editorial .photo-tile,
  body.gallery-style-soft-airy .photo-tile,
  body.gallery-style-documentary-film .photo-tile,
  body.gallery-style-fine-art-museum .photo-tile,
  body.gallery-style-slideshow-family .photo-tile,
  body.gallery-style-heritage-album .photo-tile,
  body.gallery-style-cinematic-gold .photo-tile:nth-child(n),
  body.gallery-style-black-gold .photo-tile:nth-child(n),
  body.gallery-style-magazine-editorial .photo-tile:nth-child(n),
  body.gallery-style-soft-airy .photo-tile:nth-child(n),
  body.gallery-style-documentary-film .photo-tile:nth-child(n),
  body.gallery-style-fine-art-museum .photo-tile:nth-child(n),
  body.gallery-style-slideshow-family .photo-tile:nth-child(n),
  body.gallery-style-heritage-album .photo-tile:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  body.gallery-style-documentary-film .photo-tile:nth-child(10n+8) {
    padding: 10px;
  }

  body.gallery-style-heritage-album .photo-tile > button:not(.photo-favorite),
  body.gallery-style-heritage-album .photo-tile:nth-child(n) > button:not(.photo-favorite) {
    width: 100%;
    margin: 0;
  }

  body.gallery-style-fine-art-museum .gallery-hero-copy {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 48px;
  background: rgba(9, 14, 17, 0.94);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 1120px);
  max-height: 82vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 30px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  padding: 8px 14px;
}

@media (min-width: 1440px) {
  .lane-6,
  .lane-7 {
    display: block;
  }
}

@media (min-width: 1920px) {
  .hero-lane {
    flex-basis: 270px;
  }
}

@media (max-width: 991px) {
  .site-header {
    padding: 0 28px;
  }

  .home-hero {
    min-height: 820px;
  }

  .hero-grid {
    margin-left: -65px;
  }

  .hero-lane {
    flex-basis: 270px;
  }

  .lane-5,
  .lane-6,
  .lane-7 {
    display: none;
  }

  .hero-logo { width: 88vw; }
  .scroll-down { bottom: 115px; }
  .service-row, .instagram-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { columns: 2 240px; }
  .face-search-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  .face-search-actions { justify-content: flex-start; }
  body[class*="gallery-style-"] .gallery-face-search .face-search-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  body[class*="gallery-style-"] .gallery-face-search .face-search-actions {
    grid-column: 1;
    justify-self: start;
  }
  body[class*="gallery-style-"] .gallery-face-search .face-search-status {
    grid-column: 1;
  }
  .roll-grid { grid-template-columns: repeat(3, 1fr); }
  .history-grid, .contact-grid, .client-login-grid, .admin-shell { grid-template-columns: 1fr; }
  .admin-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid {
    grid-template-columns: minmax(260px, 1.2fr) minmax(120px, 0.55fr) minmax(180px, 0.7fr);
    gap: 30px;
  }
  .about-copy { padding-right: 34px; }
  .about-copy p { margin-left: 0; }
  .team-layout { display: block; }
  .team-intro { width: 100%; min-height: 0; margin-bottom: 30px; }
  .team-arrow { position: static; display: block; margin-top: 24px; }
  .team-members { width: 100%; }
  .admin-detail-panel { grid-column: auto; }
  .client-login-grid { gap: 54px; }
  .gallery-card { grid-template-columns: 1fr; }
  .admin-overview-strip,
  .admin-gallery-management,
  .admin-readiness-grid,
  .admin-checklist,
  .admin-grid-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .content-wrapper {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    height: 60px;
    padding: 0 18px;
  }

  .brand img {
    width: 36px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .home-hero {
    min-height: 720px;
    padding-top: 60px;
  }

  .hero-grid {
    top: 60px;
    margin-left: -110px;
  }

  .hero-lane {
    flex-basis: 220px;
  }

  .hero-logo {
    width: 74vw;
    max-width: 74vw;
  }
  .content-section { padding: 72px 0; }
  .intro h1, .camera-roll h2, .instagram h2 { font-size: 27px; }
  .service-row, .roll-grid, .instagram-grid, .contact-form, .gallery-grid { grid-template-columns: 1fr; }
  .photo-grid { columns: 1; }
  .roll-grid button { height: 310px; }
  .about-band-inner { display: block; min-height: 0; }
  .about-copy-panel, .about-photo-panel { width: 100%; }
  .about-copy { max-width: none; padding: 64px 24px; }
  .about-copy h2 { font-size: 27px; line-height: 1.36; }
  .about-photo-panel { justify-content: center; }
  .about-photo-panel img { width: min(74vw, 330px); max-width: 100%; height: auto; max-height: none; }
  .team-section { padding-top: 48px; padding-bottom: 72px; }
  .team-members { display: grid; grid-template-columns: 1fr; gap: 36px; }
  .team-member { width: 100%; }
  .team-photo { max-width: 360px; }
  .team-signature { width: min(66vw, 230px); }
  .history h2 { font-size: 32px; }
  .client-home-heading h2 { font-size: 32px; }
  .gallery-face-search {
    margin-bottom: 14px;
    padding: 12px;
  }
  .face-search-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .face-search-copy h2 { font-size: 16px; }
  .face-search-list {
    width: calc(100% + 16px);
    padding-bottom: 6px;
  }
  .face-chip {
    min-height: 42px;
    padding: 4px 10px 4px 4px;
    font-size: 11px;
  }
  .face-chip img,
  .face-chip-icon {
    width: 34px;
    height: 34px;
  }
  .face-search-actions {
    justify-content: flex-start;
  }
  .face-search-action,
  .face-search-clear {
    width: auto;
  }
  body[class*="gallery-style-"] .gallery-face-search {
    margin-bottom: 14px;
    padding: 12px;
  }
  body[class*="gallery-style-"] .gallery-face-search .face-search-list {
    width: calc(100% + 16px);
    padding-bottom: 6px;
  }
  body[class*="gallery-style-"] .gallery-face-search .face-chip {
    min-height: 42px;
    padding: 4px 10px 4px 4px;
    font-size: 11px;
  }
  .gallery-viewer-hero { height: calc(100vh - 60px); min-height: 480px; padding-bottom: 0; }
  .gallery-hero-copy { width: min(calc(100% - 32px), var(--max)); }
  .gallery-hero-copy h1 { font-size: 42px; }
  .gallery-viewer-section { padding-top: 0; }
  .gallery-viewer-section { scroll-margin-top: 60px; }
  .gallery-toolbar {
    position: relative;
    flex-direction: row;
    align-items: center;
    top: auto;
    z-index: 1;
    margin-right: -16px;
    margin-left: -16px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .gallery-toolbar > div:first-child { min-width: 0; }
  .gallery-toolbar p { font-size: 14px; }
  .gallery-back { font-size: 14px; }
  .gallery-toolbar .client-session-actions {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  .gallery-toolbar .client-session-actions button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .gallery-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    flex-wrap: wrap;
    margin-right: -16px;
    margin-left: -16px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .gallery-tabs a,
  .gallery-tabs button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .admin-panel { padding: 20px; }
  .admin-dashboard-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(39, 49, 58, 0.1);
  }
  .admin-workspace {
    padding: 22px 16px 34px;
  }
  .admin-section-nav,
  .admin-tool-row,
  .admin-overview-strip,
  .admin-gallery-management,
  .admin-readiness-grid,
  .admin-checklist,
  .admin-grid-options,
  .admin-custom-style-list {
    grid-template-columns: 1fr;
  }
  .admin-overview-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(39, 49, 58, 0.1);
  }
  .admin-style-grid { grid-template-columns: 1fr; }
  .admin-tool-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-form.compact, .admin-row, .admin-gallery-row { grid-template-columns: 1fr; }
  .client-session-actions { align-items: flex-start; flex-direction: column; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .photo-tile-footer { align-items: flex-start; flex-direction: column; }
  .photo-downloads { justify-content: flex-start; }
  .gallery-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 18px;
  }
  .gallery-lightbox > img { max-height: calc(100vh - 230px); }
  .gallery-lightbox-close { top: 18px; right: 18px; }
  .gallery-lightbox-nav { width: 42px; height: 42px; }
  .gallery-lightbox-panel { align-items: flex-start; flex-direction: column; }
  .gallery-lightbox-strip button { flex-basis: 60px; width: 60px; height: 44px; }
  .page-hero { height: 300px; margin-top: 60px; }
  .page-hero h1 { font-size: 42px; }
  .contact-grid { gap: 54px; }
  .login-copy h2 { font-size: 30px; }
  .login-form { padding: 26px; }
  .gallery-card > div { padding: 24px; }
  .gallery-card h3 { font-size: 24px; }
  .contact-form select, .contact-form textarea, .contact-form button, .form-message { grid-column: auto; }
  .site-footer { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { width: 188px; }
}

@media (max-width: 767px) {
  body[class*="gallery-style-"] .gallery-viewer-hero,
  body.gallery-style-slideshow-family .gallery-viewer-hero,
  body.gallery-style-cinematic-gold .gallery-viewer-hero,
  body.gallery-style-black-gold .gallery-viewer-hero,
  body.gallery-style-bear-signature .gallery-viewer-hero,
  body.gallery-style-soft-airy .gallery-viewer-hero,
  body.gallery-style-luxury-wedding .gallery-viewer-hero,
  body.gallery-style-fine-art-museum .gallery-viewer-hero {
    width: 100%;
    height: calc(100vh - 60px);
    min-height: 520px;
    margin-top: 60px;
    border-radius: 0;
    place-items: center;
  }

  body[class*="gallery-style-"] .gallery-hero-copy,
  body.gallery-style-soft-airy .gallery-hero-copy,
  body.gallery-style-luxury-wedding .gallery-hero-copy {
    width: min(calc(100% - 32px), 520px);
    margin: 0 auto;
    text-align: center;
  }

  body[class*="gallery-style-"] .gallery-hero-copy h1,
  body.gallery-style-magazine-editorial .gallery-hero-copy h1,
  body.gallery-style-documentary-film .gallery-hero-copy h1,
  body.gallery-style-fine-art-museum .gallery-hero-copy h1 {
    font-size: clamp(38px, 14vw, 62px);
    line-height: 0.96;
  }

  body.gallery-style-soft-airy .gallery-cover-stack,
  body.gallery-style-luxury-wedding .gallery-cover-stack {
    display: none;
  }

  body.gallery-style-slideshow-family .gallery-cover-stack,
  body.gallery-style-documentary-film .gallery-cover-stack {
    height: 66px;
    padding-right: 10px;
    padding-left: 10px;
  }

  body.gallery-style-slideshow-family .gallery-cover-stack img,
  body.gallery-style-slideshow-family .gallery-cover-stack img:nth-child(1),
  body.gallery-style-documentary-film .gallery-cover-stack img,
  body.gallery-style-documentary-film .gallery-cover-stack img:nth-child(1) {
    width: 82px;
    height: 50px;
  }

  body.gallery-style-fine-art-museum .gallery-cover-stack {
    inset: 310px 16px auto;
    height: 160px;
  }

  body.gallery-style-fine-art-museum .gallery-cover-stack img:nth-child(1) {
    width: min(100%, 420px);
    height: 150px;
  }

  body.gallery-style-fine-art-museum .gallery-hero-copy {
    align-self: start;
    margin-top: 40px;
  }

  body[class*="gallery-style-"] .gallery-search-trigger {
    max-width: 100%;
  }

  body[class*="gallery-style-"] .gallery-toolbar-left {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 479px) {
  .hero-grid {
    margin-left: -120px;
  }

  .hero-lane {
    flex-basis: 170px;
  }

  .lane-4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal-ready="true"] {
    opacity: 1;
    transform: none;
  }

  .hero-lane {
    transform: none;
  }
}

/* Gallery quality contract: source order, source ratio, and usable client controls. */
.gallery-card > .gallery-card-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  min-height: 0;
  padding: 0;
  background: #263239;
}

.gallery-card > .gallery-card-placeholder::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: translate(-50%, -50%);
}

.gallery-card > .gallery-card-placeholder::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
}

.gallery-card.is-loading .gallery-card-placeholder {
  animation: gallery-placeholder-pulse 1.35s ease-in-out infinite alternate;
}

.site-menu {
  overflow: hidden;
}

@keyframes gallery-placeholder-pulse {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

body.gallery-style-luxury-wedding { --gallery-quality-columns: 4; }
body.gallery-style-baptism-clean { --gallery-quality-columns: 3; }
body.gallery-style-cinematic-gold { --gallery-quality-columns: 5; }
body.gallery-style-fine-art-museum { --gallery-quality-columns: 5; }
body.gallery-style-soft-airy { --gallery-quality-columns: 3; }
body.gallery-style-magazine-editorial { --gallery-quality-columns: 6; }
body.gallery-style-documentary-film { --gallery-quality-columns: 4; }
body.gallery-style-black-gold { --gallery-quality-columns: 5; }
body.gallery-style-slideshow-family { --gallery-quality-columns: 4; }
body.gallery-style-heritage-album { --gallery-quality-columns: 3; }

body[class*="gallery-style-"] .photo-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-quality-columns, 3), minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  column-gap: var(--gallery-grid-gap);
  row-gap: var(--gallery-grid-gap);
  columns: initial;
}

body[class*="gallery-style-"] .photo-tile,
body[class*="gallery-style-"] .photo-tile:nth-child(n) {
  display: block;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: start;
  width: auto;
  min-height: 0;
  margin: 0;
}

body[class*="gallery-style-"] .photo-tile > button:first-child,
body[class*="gallery-style-"] .photo-tile:nth-child(n) > button:first-child {
  width: 100%;
  height: auto !important;
  margin: 0;
  aspect-ratio: var(--photo-real-aspect, 4 / 3) !important;
}

body[class*="gallery-style-"] .photo-tile:nth-child(n) > .photo-options {
  position: absolute !important;
  inset: 10px 10px auto auto !important;
  display: block;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 7px !important;
  border-radius: 50% !important;
  aspect-ratio: auto !important;
  background: rgba(255, 255, 255, 0.78) !important;
  overflow: hidden;
}

body[class*="gallery-style-"] .photo-tile:nth-child(n) > .photo-select-control {
  position: absolute !important;
  inset: 0 !important;
  display: none;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: inherit !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

body.gallery-select-mode[class*="gallery-style-"] .photo-tile:nth-child(n) > .photo-select-control {
  display: block;
}

body[class*="gallery-style-"] .photo-tile img {
  object-fit: cover;
}

body.gallery-style-documentary-film .photo-tile:nth-child(10n+8) {
  padding: 12px;
}

body.gallery-style-heritage-album .photo-tile::before {
  display: none;
}

body[class*="gallery-style-"] .gallery-toolbar {
  flex-wrap: wrap;
  width: min(calc(100vw - 42px), 1180px);
  max-width: 1180px;
}

body[class*="gallery-style-"] .gallery-toolbar-left {
  flex: 1 1 320px;
}

body[class*="gallery-style-"] .gallery-toolbar .client-session-actions {
  display: flex !important;
  flex: 0 1 auto;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
}

.gallery-face-search {
  scroll-margin-top: 84px;
}

body[class*="gallery-style-"] .gallery-face-search {
  padding-right: 58px;
}

body[class*="gallery-style-"] .gallery-face-search .gallery-drawer-close {
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-color: var(--gallery-line);
  background: var(--gallery-chip);
  color: var(--gallery-ink);
}

.gallery-select-bar,
.gallery-select-bar div {
  min-width: 0;
}

.gallery-select-bar div {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  body.gallery-style-cinematic-gold,
  body.gallery-style-fine-art-museum,
  body.gallery-style-magazine-editorial,
  body.gallery-style-black-gold {
    --gallery-quality-columns: 4;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 820px) {
  .photo-favorite,
  .photo-options,
  .photo-tile .photo-favorite,
  .photo-tile .photo-options {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  body[class*="gallery-style-"] {
    --gallery-quality-columns: 2;
  }

  body[class*="gallery-style-"] .gallery-toolbar {
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  body[class*="gallery-style-"] .gallery-toolbar-left,
  body[class*="gallery-style-"] .gallery-toolbar .client-session-actions {
    width: 100%;
  }

  body[class*="gallery-style-"] .gallery-toolbar-left {
    flex: 0 0 auto;
  }

  body[class*="gallery-style-"] .gallery-toolbar .client-session-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body[class*="gallery-style-"] .gallery-toolbar .client-session-actions button {
    min-width: 0;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  body[class*="gallery-style-"] .gallery-face-search {
    scroll-margin-top: 70px;
    padding: 14px 52px 14px 14px;
  }

  body[class*="gallery-style-"] .gallery-face-search .face-search-list {
    width: 100%;
    max-width: 100%;
    padding-right: 2px;
  }

  body[class*="gallery-style-"] .gallery-face-search .face-search-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body[class*="gallery-style-"] .gallery-face-search .face-search-action,
  body[class*="gallery-style-"] .gallery-face-search .face-search-clear {
    width: 100%;
  }
}

@media (max-width: 767px) {
  body[class*="gallery-style-"] .gallery-viewer-hero,
  body.gallery-style-slideshow-family .gallery-viewer-hero,
  body.gallery-style-cinematic-gold .gallery-viewer-hero,
  body.gallery-style-black-gold .gallery-viewer-hero,
  body.gallery-style-soft-airy .gallery-viewer-hero,
  body.gallery-style-luxury-wedding .gallery-viewer-hero,
  body.gallery-style-fine-art-museum .gallery-viewer-hero {
    height: min(68svh, 560px);
    min-height: 420px;
  }

  .gallery-select-bar {
    bottom: 10px;
    display: grid;
    gap: 8px;
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 12px;
  }

  .gallery-select-bar p {
    text-align: center;
  }

  body[class*="gallery-style-"] .gallery-face-search {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body[class*="gallery-style-"] .gallery-face-search .face-search-copy,
  body[class*="gallery-style-"] .gallery-face-search .gallery-search-field,
  body[class*="gallery-style-"] .gallery-face-search .gallery-search-field input {
    min-width: 0;
    width: 100%;
  }

  .gallery-select-bar div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .gallery-select-bar button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 359px) {
  body[class*="gallery-style-"] {
    --gallery-quality-columns: 1;
  }
}
