:root {
  --red: #c8102e;
  --orange: #ff5a1f;
  --cream: #f7f1e6;
  --paper: #fffaf1;
  --navy: #111827;
  --blue: #1264e8;
  --lime: #b6d600;
  --ink: #16191f;
  --muted: #64666b;
  --line: rgba(17, 24, 39, .14);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.brand-mark strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: .045em;
}
.brand-mark small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: .72;
}
.brand-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: 8px -6px 0 var(--orange), 12px 5px 0 var(--lime);
  flex: 0 0 auto;
}
.connectors-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}
.connectors-logo {
  width: 166px;
  height: 96px;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: #fff url("bni-connectors-logo.jpeg") center / 286px 286px no-repeat;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.connectors-brand__event {
  max-width: 72px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .82;
}
.connectors-brand--dark { color: var(--navy); }
.connectors-brand--dark .connectors-logo {
  border-color: rgba(17,24,39,.1);
  box-shadow: 0 12px 32px rgba(17,24,39,.12);
}
.eyebrow {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--red); }

/* Slideshow */
.slideshow-page {
  height: 100svh;
  overflow: hidden;
  background: #07090d;
  color: #fff;
}
.slideshow {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: #080b11;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.slide-stage,
.slide-panel,
.slide-wash,
.slide-grain { position: absolute; inset: 0; }
.slide-stage { z-index: -2; overflow: hidden; background: #080b11; }
.slide-panel {
  --accent: var(--red);
  --accent-two: var(--blue);
  overflow: hidden;
  opacity: 0;
  background: var(--navy);
  transform: scale(1.018);
  transition: opacity 1s ease, transform 1.15s ease;
  will-change: opacity, transform;
}
.slide-panel.is-active { opacity: 1; transform: scale(1); }
.slide-panel::before {
  content: "";
  position: absolute;
  inset: -35px;
  background-image: linear-gradient(rgba(5,8,13,.43),rgba(5,8,13,.43)), var(--panel-bg);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(.85);
  transform: scale(1.08);
}
.slide-frame { position: absolute; z-index: 2; margin: 0; overflow: hidden; background: #0b0f17; }
.slide-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.layout-single .slide-frame { inset: 0; }
.layout-single .slide-frame img { animation: slowPush 7s linear both; }
.layout-single .slide-frame.is-portrait { inset: 3.5vh 23vw; border: 9px solid rgba(255,255,255,.96); box-shadow: 0 25px 80px rgba(0,0,0,.42); }
.layout-single .slide-frame.is-portrait img { object-fit: contain; }

.layout-duo,
.layout-triptych {
  background:
    radial-gradient(circle at 78% 18%, rgba(18,100,232,.68), transparent 25%),
    linear-gradient(130deg, #0c1422 0%, #121d2f 55%, #070b12 100%);
}
.layout-duo::before,
.layout-triptych::before { display: none; }
.layout-duo .panel-accent,
.layout-triptych .panel-accent { position: absolute; z-index: 1; width: 38vw; height: 14vh; right: -5vw; bottom: 12vh; background: var(--accent); transform: rotate(-9deg); opacity: .92; }
.layout-duo .slide-frame { border: 9px solid var(--cream); box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.layout-duo .frame-1 { left: 4.5vw; top: 8vh; bottom: 8vh; width: 52vw; transform: rotate(-1.5deg); }
.layout-duo .frame-2 { right: 5vw; top: 15vh; bottom: 10vh; width: 38vw; transform: rotate(2deg); }
.layout-duo .slide-frame.is-portrait img { object-fit: contain; }
.layout-duo.is-active .frame-1 { animation: duoLeft 6.9s ease-out both; }
.layout-duo.is-active .frame-2 { animation: duoRight 6.9s ease-out both; }

.layout-triptych { background: linear-gradient(145deg, var(--cream) 0 61%, var(--navy) 61% 100%); }
.layout-triptych .panel-accent { width: 45vw; height: 12vh; left: -8vw; right: auto; top: 9vh; bottom: auto; background: var(--accent-two); transform: rotate(8deg); }
.layout-triptych .slide-frame { border: 10px solid #fff; box-shadow: 0 26px 65px rgba(17,24,39,.3); }
.layout-triptych .frame-1 { left: 3.5vw; top: 10vh; width: 39vw; height: 67vh; transform: rotate(-2.8deg); }
.layout-triptych .frame-2 { left: 34vw; top: 18vh; width: 35vw; height: 65vh; transform: rotate(1.8deg); }
.layout-triptych .frame-3 { right: 3vw; top: 12vh; width: 31vw; height: 61vh; transform: rotate(3.2deg); }
.layout-triptych .slide-frame.is-portrait img { object-fit: contain; background: #101722; }
.layout-triptych.is-active .frame-1 { animation: collageOne 7.6s ease-out both; }
.layout-triptych.is-active .frame-2 { animation: collageTwo 7.6s ease-out both; }
.layout-triptych.is-active .frame-3 { animation: collageThree 7.6s ease-out both; }
@keyframes slowPush {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.11) translate3d(-.8%, -.4%, 0); }
}
@keyframes duoLeft { from { transform: translateX(-4vw) rotate(-4deg) scale(.96); } to { transform: translateX(0) rotate(-1.5deg) scale(1.02); } }
@keyframes duoRight { from { transform: translateX(5vw) rotate(5deg) scale(.95); } to { transform: translateX(0) rotate(2deg) scale(1.03); } }
@keyframes collageOne { from { transform: translate(-3vw, 4vh) rotate(-7deg) scale(.92); } to { transform: translate(0, 0) rotate(-2.8deg) scale(1.02); } }
@keyframes collageTwo { from { transform: translateY(-5vh) rotate(5deg) scale(.9); } to { transform: translateY(0) rotate(1.8deg) scale(1.03); } }
@keyframes collageThree { from { transform: translate(4vw, 4vh) rotate(8deg) scale(.92); } to { transform: translate(0, 0) rotate(3.2deg) scale(1.02); } }
.slide-wash {
  background:
    linear-gradient(180deg, rgba(4, 7, 12, .58) 0%, transparent 25%),
    linear-gradient(0deg, rgba(4, 7, 12, .62) 0%, transparent 27%);
  pointer-events: none;
}
.slide-grain {
  opacity: .1;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255,255,255,.4) 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}
.slideshow-brand {
  position: absolute;
  top: max(25px, env(safe-area-inset-top));
  left: max(28px, env(safe-area-inset-left));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
}
.photo-total {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.qr-card {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: max(26px, env(safe-area-inset-right));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  color: var(--navy);
  background: rgba(255, 250, 241, .94);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}
.qr-card:hover { transform: translateY(-2px) rotate(-.5deg); background: #fff; }
.qr-card img { width: 106px; height: 106px; display: block; border-radius: 8px; }
.qr-card__copy { padding-left: 8px; text-align: right; }
.qr-card__copy strong { display: block; max-width: 104px; font-family: var(--display); font-size: 18px; line-height: .94; letter-spacing: .04em; }
.qr-card__copy small { display: block; margin-top: 8px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #65686f; }
.slide-controls {
  position: absolute;
  left: max(28px, env(safe-area-inset-left));
  right: max(28px, env(safe-area-inset-right));
  bottom: calc(30px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
}
.control-button,
.gallery-button {
  min-width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 15, 23, .38);
  backdrop-filter: blur(9px);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.control-button:hover,
.gallery-button:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.control-button--primary { color: var(--navy); background: #fff; border-color: #fff; font-weight: 900; }
.control-button--primary:hover { background: var(--cream); }
.gallery-button {
  width: auto;
  border-radius: 999px;
  padding: 0 17px;
  margin-left: 5px;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.gallery-button span { color: var(--lime); font-size: 16px; }
.fullscreen-button { margin-left: auto; font-size: 19px; }
.slide-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 4px;
  background: rgba(255,255,255,.14);
}
.slide-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--orange), var(--lime)); }
.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 13px;
  text-align: center;
  background: var(--navy);
  transition: opacity .6s ease, visibility .6s ease;
}
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-connectors-logo {
  width: 196px;
  height: 112px;
  display: block;
  margin: 0 auto 7px;
  border-radius: 14px;
  background: #fff url("bni-connectors-logo.jpeg") center / 334px 334px no-repeat;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  animation: loadingFloat 1.4s ease-in-out infinite alternate;
}
.loading-screen p { margin: 0; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.loading-meter { width: min(280px, 72vw); height: 7px; margin: 7px auto 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.loading-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--orange), var(--lime)); transition: width .28s ease; }
.loading-percent { color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: .08em; }
.loading-gallery-link { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-decoration-color: var(--red); text-underline-offset: 4px; }
.loading-gallery-link span { color: var(--lime); font-size: 13px; }
.loading-screen.is-recoverable p { max-width: min(390px, 84vw); margin-inline: auto; color: #fff; line-height: 1.55; }
.loading-screen.is-recoverable .loading-meter span { background: var(--orange); }
.loading-screen.is-recoverable .loading-gallery-link { color: #fff; }
@keyframes loadingFloat { to { transform: translateY(-4px); } }

/* Gallery */
.gallery-page { background: var(--cream); min-height: 100vh; }
.gallery-hero { position: relative; min-height: 720px; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.gallery-hero::before,
.gallery-hero::after { content: ""; position: absolute; pointer-events: none; }
.gallery-hero::before { width: 340px; height: 120px; right: -40px; top: 100px; background: var(--orange); transform: rotate(-10deg); opacity: .92; }
.gallery-hero::after { width: 260px; height: 64px; left: -70px; bottom: 64px; background: var(--blue); transform: rotate(8deg); }
.gallery-nav {
  position: relative;
  z-index: 5;
  min-height: 86px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark--dark { color: var(--navy); }
.brand-mark--dark .brand-dot { border-color: var(--navy); }
.start-show-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  transition: transform .15s ease, background .15s ease;
}
.start-show-button:hover { transform: translateY(-1px); background: var(--red); }
.gallery-hero__photo {
  position: absolute;
  z-index: 2;
  width: min(56vw, 860px);
  height: 530px;
  right: clamp(18px, 5vw, 78px);
  top: 125px;
  background: url("../photos/display/DSC05442.jpg") center / cover no-repeat;
  border: 12px solid #fff;
  box-shadow: 0 34px 80px rgba(17,24,39,.2);
  transform: rotate(1.4deg);
}
.gallery-hero__photo::before {
  content: "THE CREW";
  position: absolute;
  top: -21px;
  right: 36px;
  padding: 8px 18px;
  background: var(--lime);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  transform: rotate(-3deg);
}
.gallery-hero__content {
  position: relative;
  z-index: 3;
  width: min(50vw, 700px);
  padding: 116px 0 80px clamp(24px, 5vw, 82px);
}
.gallery-hero__content h1 {
  margin: 15px 0 20px;
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 150px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--navy);
}
.gallery-hero__content h1 em { color: var(--red); font-style: normal; }
.gallery-hero__content .connections-headline {
  font-size: clamp(55px, 7.1vw, 112px);
  line-height: .84;
}
.gallery-hero__content > p { max-width: 520px; margin: 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; color: #555b65; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 35px; }
.hero-stats span { color: #555b65; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.hero-stats strong { margin-right: 5px; color: var(--navy); font-family: var(--display); font-size: 24px; letter-spacing: 0; vertical-align: -2px; }
.gallery-main { max-width: 1500px; margin: auto; padding: 68px clamp(14px, 3vw, 48px) 90px; }
.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.gallery-toolbar h2 { margin: 7px 0 0; font-family: var(--display); font-size: clamp(42px, 5vw, 72px); line-height: .9; text-transform: uppercase; color: var(--navy); }
.gallery-toolbar__help { max-width: 390px; }
.save-hint { max-width: 390px; margin: 0; color: #696b70; font-size: 13px; line-height: 1.5; }
.save-hint strong { color: var(--red); }
.request-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-decoration-color: var(--red); text-underline-offset: 4px; }
.request-jump span { color: var(--red); font-size: 15px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0 26px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: #575b63;
  background: rgba(255,255,255,.56);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 17px); }
.photo-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #dcd8cf;
  cursor: zoom-in;
}
.photo-card:nth-child(11n + 2),
.photo-card:nth-child(11n + 7) { grid-row: span 2; aspect-ratio: auto; }
.photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.photo-card::after {
  content: attr(data-number);
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 14, 22, .66);
  backdrop-filter: blur(5px);
  font-size: 9px;
  font-weight: 900;
  opacity: 0;
  transition: opacity .2s ease;
}
.photo-card:hover img { transform: scale(1.04); filter: saturate(1.06); }
.photo-card:hover::after { opacity: 1; }
.photo-card[hidden] { display: none; }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }
.request-edit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(38px, 6vw, 92px);
  margin-top: clamp(70px, 8vw, 120px);
  padding: clamp(38px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(17,24,39,.18);
}
.request-edit::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 76px;
  left: -72px;
  bottom: 45px;
  background: var(--red);
  transform: rotate(-9deg);
  opacity: .95;
}
.request-edit::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -110px;
  left: 42%;
  border-radius: 50%;
  background: var(--lime);
  opacity: .94;
}
.request-edit__intro,
.request-form { position: relative; z-index: 1; }
.request-edit__intro { align-self: center; }
.request-edit__intro h2 {
  max-width: 620px;
  margin: 13px 0 24px;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.request-edit__intro > p { max-width: 570px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.request-edit__intro .cutting-floor-note {
  margin-top: 28px;
  padding: 18px 20px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 14px;
  transform: rotate(-1deg);
  box-shadow: 8px 8px 0 var(--red);
}
.cutting-floor-note strong { color: var(--navy); }
.request-form {
  display: grid;
  gap: 15px;
  align-self: center;
  padding: clamp(24px, 4vw, 44px);
  color: var(--navy);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--blue);
}
.request-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.request-form label { display: grid; gap: 7px; }
.request-form label > span { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(17,24,39,.18);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--navy);
  background: #fff;
  font: 500 14px/1.4 var(--sans);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.request-form textarea { resize: vertical; min-height: 116px; }
.request-form input:focus,
.request-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,100,232,.13); }
.request-form__check { grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; cursor: pointer; }
.request-form__check input { width: 18px; height: 18px; accent-color: var(--red); }
.request-form__check span { letter-spacing: 0 !important; text-transform: none !important; color: #50545c; font-size: 12px !important; }
.request-submit {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.request-submit:hover { transform: translateY(-2px); background: var(--navy); }
.request-submit span { font-size: 17px; }
.request-form__fallback { margin: 0; color: #72757b; font-size: 11px; line-height: 1.5; }
.request-form__fallback a { color: var(--red); font-weight: 800; }
.gallery-footer { padding: 36px clamp(20px, 5vw, 70px); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.66); background: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gallery-footer p { margin: 0; }
.gallery-footer strong { color: #fff; }
.gallery-footer span { color: var(--lime); }
.gallery-footer a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  color: #fff;
  background: rgba(5, 8, 13, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-close,
.lightbox-arrow {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255,255,255,.18); }
.lightbox-close { position: absolute; top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lightbox-arrow { width: 54px; height: 54px; border-radius: 50%; font-size: 22px; }
.lightbox-figure { min-width: 0; max-width: 1200px; max-height: calc(100svh - 56px); margin: auto; display: flex; flex-direction: column; }
.lightbox-figure img { max-width: 100%; max-height: calc(100svh - 138px); width: auto; height: auto; margin: auto; display: block; object-fit: contain; box-shadow: 0 18px 65px rgba(0,0,0,.35); }
.lightbox-figure figcaption { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; }
.lightbox-figure figcaption span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.lightbox-figure figcaption strong { font-size: 12px; text-transform: capitalize; }
.lightbox-actions { display: flex; gap: 8px; }
.lightbox-actions button,
.lightbox-actions a { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 14px; color: #fff; background: transparent; font-size: 10px; font-weight: 900; text-decoration: none; cursor: pointer; }
.lightbox-actions a { color: var(--navy); background: #fff; border-color: #fff; }
.gallery-toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; color: #fff; background: var(--navy); box-shadow: 0 12px 36px rgba(0,0,0,.25); font-size: 11px; font-weight: 800; opacity: 0; visibility: hidden; transition: .2s ease; }
.gallery-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .qr-card__copy { display: none; }
  .qr-card img { width: 92px; height: 92px; }
  .layout-single .slide-frame.is-portrait { inset: 4vh 16vw; }
  .layout-duo .frame-1 { left: 3vw; width: 58vw; }
  .layout-duo .frame-2 { right: 3vw; width: 42vw; }
  .layout-triptych .frame-1 { left: 2vw; width: 44vw; }
  .layout-triptych .frame-2 { left: 31vw; width: 38vw; }
  .layout-triptych .frame-3 { right: 2vw; width: 34vw; }
  .gallery-hero { min-height: 790px; }
  .gallery-hero__photo { width: 64vw; height: 450px; top: 255px; right: 3vw; }
  .gallery-hero__content { width: 70vw; padding-top: 55px; }
  .gallery-hero__content h1 { font-size: 94px; }
  .gallery-hero__content .connections-headline { font-size: clamp(58px, 9vw, 84px); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .request-edit { grid-template-columns: 1fr; }
  .request-edit::after { left: auto; right: -65px; }
}

@media (max-width: 700px) {
  .slideshow-brand { top: max(18px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); }
  .connectors-logo { width: 118px; height: 68px; border-radius: 9px; background-size: 203px 203px; }
  .connectors-brand__event { display: none; }
  .photo-total { display: none; }
  .qr-card { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); padding: 7px; border-radius: 12px; }
  .qr-card img { width: 72px; height: 72px; border-radius: 5px; }
  .layout-single .slide-frame.is-portrait { inset: 14vh 6vw 12vh; border-width: 6px; }
  .layout-duo .slide-frame,
  .layout-triptych .slide-frame { border-width: 6px; }
  .layout-duo .frame-1 { left: 3vw; top: 15vh; bottom: auto; width: 72vw; height: 55vh; }
  .layout-duo .frame-2 { right: 3vw; top: 42vh; bottom: auto; width: 52vw; height: 37vh; }
  .layout-duo .panel-accent { width: 80vw; height: 10vh; right: -16vw; bottom: 12vh; }
  .layout-triptych .frame-1 { left: 3vw; top: 18vh; width: 72vw; height: 43vh; }
  .layout-triptych .frame-2 { left: auto; right: 3vw; top: 13vh; width: 52vw; height: 32vh; }
  .layout-triptych .frame-3 { left: 22vw; right: auto; top: 52vh; width: 70vw; height: 31vh; }
  .layout-triptych .panel-accent { width: 80vw; height: 9vh; top: 11vh; }
  .slide-controls { left: max(18px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right)); bottom: calc(27px + env(safe-area-inset-bottom)); }
  .fullscreen-button { display: none; }
  .gallery-button { margin-left: auto; }
  .slide-wash { background: linear-gradient(180deg, rgba(4,7,12,.54), transparent 32%), linear-gradient(0deg, rgba(4,7,12,.88), transparent 55%); }
  .gallery-nav { min-height: 76px; padding: 18px 18px; }
  .start-show-button { padding: 11px 13px; font-size: 9px; }
  .gallery-hero { display: flex; flex-direction: column; min-height: auto; padding-bottom: 28px; }
  .gallery-hero::before,
  .gallery-hero::after { display: none; }
  .gallery-hero__content { order: 1; width: 100%; padding: 28px 20px 22px; }
  .gallery-hero__content .connections-headline { font-size: clamp(43px, 13.3vw, 60px); line-height: .88; }
  .gallery-hero__content > p { max-width: 100%; font-size: 14px; }
  .hero-stats { gap: 10px 16px; margin-top: 16px; }
  .gallery-hero__photo { position: relative; order: 2; width: calc(100% - 32px); height: auto; aspect-ratio: 4 / 3; inset: auto; margin: 0 16px; border-width: 7px; transform: rotate(.6deg); }
  .gallery-main { padding: 46px 10px 65px; }
  .gallery-toolbar { display: block; padding: 0 9px; }
  .gallery-toolbar h2 { font-size: 50px; }
  .save-hint { margin-top: 16px; }
  .filter-row { padding-left: 9px; padding-right: 9px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .photo-card:nth-child(11n + 2),
  .photo-card:nth-child(11n + 7) { grid-row: auto; aspect-ratio: 4 / 3; }
  .photo-card:nth-child(9n + 4) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .request-edit { margin: 60px 0 0; padding: 34px 20px; border-radius: 20px; }
  .request-edit__intro h2 { font-size: clamp(58px, 19vw, 84px); }
  .request-edit__intro > p { font-size: 14px; }
  .request-edit::before { width: 220px; height: 55px; left: -80px; bottom: 52%; }
  .request-edit::after { width: 130px; height: 130px; top: -84px; right: -48px; }
  .request-form { padding: 22px 16px; border-radius: 16px; box-shadow: 7px 7px 0 var(--blue); }
  .request-form__row { grid-template-columns: 1fr; }
  .gallery-footer { display: block; text-align: center; line-height: 1.8; }
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox-arrow { position: absolute; z-index: 2; width: 43px; height: 43px; top: 48%; background: rgba(5,8,13,.58); }
  .lightbox-arrow--prev { left: 10px; }
  .lightbox-arrow--next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; width: 42px; height: 42px; background: rgba(5,8,13,.62); }
  .lightbox-figure { max-height: calc(100svh - 32px); width: 100%; }
  .lightbox-figure img { max-height: calc(100svh - 130px); }
  .lightbox-figure figcaption { align-items: flex-start; padding: 12px 2px 0; }
  .lightbox-figure figcaption strong { display: block; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lightbox-actions button,
  .lightbox-actions a { padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .slide-panel,
  .slide-frame,
  .slide-frame img { animation: none !important; transition-duration: .15s; }
  .loading-connectors-logo { animation: none; }
  .photo-card img { transition: none; }
}
