[hidden] { display: none !important; }

* { box-sizing: border-box; }

:root {
  --red: #9c1c2c;
  --ink: #171717;
  --muted: #707070;
  --line: #e8e8e8;
  --paper: #fff;
  --soft: #f7f7f7;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button, input { font: inherit; }

.password-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background-image: var(--password-bg-image);
  background-size: cover;
  background-position: center;
  background-color: #111;
  overflow: hidden;
  opacity: 1;
  transition: opacity .9s ease;
}

.password-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  pointer-events: none;
}

.password-screen.is-unlocking {
  opacity: 0;
  pointer-events: none;
}

.password-card {
  position: relative;
  z-index: 1;
}

.password-card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  padding: 56px 58px 52px;
  box-shadow: 0 18px 55px rgba(0,0,0,.09);
  border-top: 4px solid var(--red);
}

.brand-mark {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 15px;
  line-height: 1.3;
}

.brand-mark span { color: var(--red); }

.eyebrow {
  margin-top: 38px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
}

.password-card h1,
.gallery-header h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
}

.password-card .muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.password-card form {
  margin-top: 34px;
}

.password-card label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.password-row {
  display: flex;
  width: 100%;
  gap: 10px;
}

.password-row input {
  min-width: 0;
  flex: 1 1 auto;
  height: 50px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.password-row input::placeholder { color: #999; }

.password-row input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.password-row button {
  flex: 0 0 auto;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: #fff;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.password-row button:hover { opacity: .92; }

.error {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--red);
  font-size: 12px;
}

.gallery-shell {
  position: relative;
  width: 100%;
  opacity: 1;
  transition: opacity .9s ease;
  max-width: none;
  margin: 0;
  padding: 0 clamp(16px, 2.2vw, 40px);
}

/* The signpost starts at the top edge of the gallery-name sign and continues down the page. */
.gallery-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  top: var(--pole-start-offset, calc(100svh + 64px));
  bottom: 0;
  width: 5px;
  background: #777;
  opacity: 0.5;
}

/* The pole is fully opaque only while the viewer is actively scrolling. */
.gallery-shell.is-scrolling::before {
  opacity: 1;
}

/* In dark theme, dim the idle pole further; light theme keeps its existing 50% opacity. */
.gallery-shell[data-gallery-theme="dark"]:not(.is-scrolling)::before {
  opacity: 0.3;
}

/* The thumb stays anchored to the pole's top edge and reveals downward via scaleY.
   Keeping its full height fixed avoids the abrupt height changes that looked like it
   was emerging from behind the sign. */
.scroll-position-indicator {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 5px;
  height: 64px;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top left;
  will-change: transform;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background-color 180ms ease;
}

.gallery-shell[data-gallery-theme="light"] .scroll-position-indicator {
  background: #000;
}

.gallery-shell[data-gallery-theme="dark"] .scroll-position-indicator {
  background: #fff;
}

.scroll-position-indicator.is-visible {
  opacity: 1;
}

/* Keep the gallery content above the grey pole; the scroll thumb itself sits above the sign's narrow grey accent. */
.gallery-intro,
#galleryGroups,
.footer {
  position: relative;
  z-index: 1;
}

/* Gallery theme --------------------------------------------------------- */
.gallery-shell[data-gallery-theme="light"] {
  --gallery-bg: #fff;
  --gallery-text: #000;
  --gallery-muted: #333;
  --gallery-line: #d9d9d9;
  --gallery-item-bg: #fff;
}

.gallery-shell[data-gallery-theme="dark"] {
  --gallery-bg: #000;
  --gallery-text: #fff;
  --gallery-muted: #ddd;
  --gallery-line: #333;
  --gallery-item-bg: #000;
}

.gallery-shell[data-gallery-theme] {
  background: var(--gallery-bg);
  color: var(--gallery-text);
}

.gallery-shell > .hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-image {
  display: block;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  border: 0;
  padding: 0;
  background: #222;
  overflow: hidden;
}

.hero-image > .hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}


.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 66.666%,
    rgba(0,0,0,.48) 84%,
    rgba(0,0,0,.72) 93%,
    rgba(0,0,0,.98) 100%
  );
  pointer-events: none;
}

.hero-title-backdrop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 900px);
  height: min(28vh, 300px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,.24) 0%,
    rgba(0,0,0,.14) 42%,
    rgba(0,0,0,0) 76%
  );
  pointer-events: none;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 1200px);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 22px rgba(0,0,0,.45);
  pointer-events: none;
}


.hero-powered-by {
  position: absolute;
  top: 30px;
  left: calc(50% + 24px);
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  text-shadow: 1px 1px 0 rgba(0,0,0,.95);
}

.hero-logo {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 220px;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.95));
  z-index: 3;
  pointer-events: none;
}

.hero-title strong {
  display: block;
  margin: 0;
  padding: 0;
  font-size: clamp(48px, 6vw, 104px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.045em;
}

.hero-subtitle {
  display: block;
  margin: 18px 0 0;
  padding: 0;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .04em;
}

.hero-view-gallery {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 16px 30px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.22);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hero-view-gallery:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,.36);
}

.hero-view-gallery:active {
  transform: translateX(-50%) scale(.97);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  pointer-events: none;
}

.scroll-arrow {
  font-size: 28px;
  line-height: .8;
  font-weight: 300;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.gallery-intro {
  position: relative;
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--gallery-line);
  background: var(--gallery-bg);
}

.gallery-details {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gallery-intro .eyebrow {
  display: inline-block;
  position: relative;
  width: fit-content;
  margin: 0 30px 8px calc(-1 * clamp(16px, 2.2vw, 40px));
  padding: 8px 24px 8px 18px;
  color: #000;
  background: #fff;
  border-left: 5px solid #9c1c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .045em;
  transform-origin: left center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}


@keyframes gallery-title-superbar-in {
  from {
    opacity: 0;
    transform: translateX(-48px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  }
}

@keyframes gallery-title-rule-in {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-intro.title-enter .eyebrow {
    animation: none;
    transform: none;
  }
}

/* Invert the gallery-name badge against the active gallery theme. */
.gallery-shell[data-gallery-theme="light"] .gallery-intro .eyebrow {
  color: #fff;
  background: #000;
  border-left-color: #777;
}

.gallery-shell[data-gallery-theme="dark"] .gallery-intro .eyebrow {
  color: #000;
  background: #fff;
  border-left-color: #777;
}

.gallery-intro .address {
  margin: 0;
  font-size: 13px;
  color: var(--gallery-muted);
}

.gallery-meta {
  display: flex;
  gap: 16px;
  color: var(--gallery-muted);
  font-size: 11px;
  white-space: nowrap;
}

.gallery-group-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  flex: 1 1 auto;
  min-width: 0;
}

.gallery-group-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gallery-muted);
  padding: 4px 0;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.gallery-group-nav button:hover,
.gallery-group-nav button:focus-visible {
  color: var(--gallery-text);
}

.gallery-group-nav button:focus-visible {
  outline: 1px solid var(--gallery-text);
  outline-offset: 5px;
}

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
}

.gallery-image-count {
  color: var(--gallery-muted);
  font-size: 11px;
  white-space: nowrap;
}

.download-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 40px;
  height: 37px;
  padding: 0;
  transition: none;
  border: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
} 

.download-all-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-all-button:hover {
  background: #f0f0f0;
  color: #000;
}

.gallery-group {
  width: 100%;
  scroll-margin-top: 24px;
}

.gallery-group + .gallery-group {
  margin-top: 48px;
  padding-top: 1px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.gallery-group + .gallery-group .gallery-group-heading {
  margin-top: 22px;
}

.gallery-group-heading {
  margin: 68px 0 20px;
  color: var(--gallery-text);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 6px;
}

.gallery-group-heading-name {
  min-width: 0;
}

.gallery-group-image-count {
  color: var(--gallery-muted, rgba(255,255,255,.62));
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.gallery-grid {
  width: 100%;
  scroll-margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, .8vw, 14px);
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--gallery-item-bg);
  overflow: hidden;
}

.gallery-image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gallery-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover .gallery-image-button img { transform: scale(1.035); }

.gallery-download-button {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(0,0,0,.78);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, 100%);
  opacity: 0;
  transition: transform .28s ease, opacity .22s ease, background .2s ease;
}

.gallery-download-button svg {
  width: 19px;
  height: 19px;
}

.gallery-item:hover .gallery-download-button,
.gallery-download-button:focus-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.gallery-download-button:hover {
  background: #fff;
  color: #000;
}

.gallery-download-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer {
  border-top: 1px solid var(--gallery-line);
  margin-top: 70px;
  padding: 28px 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--gallery-muted);
  font-size: 11px;
  text-align: center;
  background: var(--gallery-bg);
}

.footer strong { color: var(--gallery-text); font-size: 11px; letter-spacing: .08em; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10,10,10,.97);
  display: grid;
  place-items: center;
  padding: 60px 90px;
}

.lightbox figure {
  margin: 0;
  width: min(1400px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.lightbox-image-stage { position: relative; width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-image-stage > img { display:block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  color: #ccc;
  font-size: 12px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close { top: 18px; right: 25px; font-size: 42px; font-weight: 200; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 58px; padding: 20px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.download-button { padding: 9px 13px; font-size: 11px; }

@media (max-width: 1250px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1250px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gallery-shell {
    padding: 0 12px;
  }

  .gallery-shell > .hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .gallery-group + .gallery-group {
    margin-top: 34px;
    padding-top: 1px;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  .gallery-group + .gallery-group .gallery-group-heading {
    margin-top: 18px;
  }

  .gallery-group-heading {
    margin: 52px 0 15px;
    font-size: 15px;
  }

  .gallery-intro .eyebrow {
    margin-left: -26px;
    font-size: 21px;
  }

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

  .hero-image {
    height: 100dvh;
    min-height: 500px;
  }

  .gallery-intro {
    display: block;
    padding: 20px 14px;
  }

  .gallery-group-nav {
    position: static;
    left: auto;
    transform: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 10px;
    margin-top: 15px;
    overflow: visible;
    padding: 2px 0 0;
  }

  .gallery-details {
    display: block;
  }

  .gallery-intro .address {
    margin-top: 7px;
  }

  .gallery-actions {
    margin-top: 16px;
    justify-content: flex-start;
    width: 100%;
  }

  .gallery-image-count {
    flex: 0 0 auto;
  }

  .download-all-button {
    margin-top: 0;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
  }

  .footer {
    display: block;
  }

  .footer > span {
    display: block;
    margin-top: 20px;
  }

  .password-screen {
    align-items: flex-start;
    padding: 18px 14px;
  }

  .password-card {
    margin-top: 8vh;
    padding: 38px 24px 34px;
  }

  .password-card .eyebrow {
    margin-top: 32px;
  }

  .password-row {
    display: grid;
    gap: 10px;
  }

  .password-row input,
  .password-row button {
    width: 100%;
  }

  .lightbox {
    padding: 45px 14px;
  }
}

@media (max-width: 520px) {
  .hero-powered-by {
    top: 23px;
    left: calc(50% + 22px);
    font-size: 8px;
    letter-spacing: .12em;
  }

  .hero-logo {
    top: 24px;
    width: 170px;
    height: auto;
  }

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

  .gallery-meta {
    gap: 10px;
  }

  .hero-image {
    height: 100dvh;
    min-height: 460px;
  }

  .hero-title-backdrop {
    width: 92vw;
    height: 240px;
  }

  .hero-title {
    left: 50%;
    top: 50%;
    width: 92vw;
    margin: 0;
    transform: translate(-50%, -50%);
  }


  .hero-title strong {
    font-size: clamp(40px, 11vw, 60px);
  }

  .hero-subtitle {
    margin-top: 12px;
    font-size: 13px;
  }

  .hero-view-gallery {
    bottom: 70px;
    min-width: 190px;
    padding: 14px 26px;
    font-size: 12px;
  }

  .hero-scroll {
    bottom: 20px;
  }
}


/* Client branding panel -------------------------------------------------- */
.client-branding {
  position: absolute;
  top: auto;
  left: 50%;
  right: auto;
  bottom: 150px;
  width: min(360px, 82vw);
  transform: translateX(-50%);
  color: var(--client-text, #111);
  background: rgba(255,255,255,.96);
  border: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  overflow: hidden;
  z-index: 4;
}

.client-branding-accent {
  height: 8px;
  width: 100%;
  background: var(--client-brand, #9c1c2c);
}

.client-branding-inner {
  position: relative;
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 22px;
}

.client-agent-photo-wrap {
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 50%;
}

.client-agent-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-branding-copy {
  min-width: 0;
}

.client-branding-label {
  margin: 0 0 5px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.client-branding-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
}

.client-agency-name {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
}

.client-contact {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.35;
}

.client-contact a {
  color: inherit;
  text-decoration: none;
}

.client-contact a:hover {
  text-decoration: underline;
}

.client-agency-logo-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.1);
}

.client-agency-logo {
  display: block;
  max-width: 150px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .client-branding {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 150px;
    width: min(340px, calc(100vw - 28px));
    transform: translateX(-50%);
  }

  .client-branding-inner {
    grid-template-columns: min-content minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    padding: 17px;
  }

  .client-agent-photo-wrap {
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }

  .client-branding-copy h2 {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .client-branding {
    left: 50%;
    right: auto;
    bottom: 148px;
    width: min(340px, calc(100vw - 48px));
    transform: translateX(-50%);
  }

  .client-branding-inner {
    padding: 15px;
  }
}

/* Below 4:3, keep the gallery title and actions on the first row, with
   the centred group navigation on its own row underneath. */
@media (max-aspect-ratio: 4/3) {
  /* Remove the long grey pole on narrower aspect ratios, while retaining the
     small grey accent strip attached to the gallery-name sign itself. */
  .gallery-shell::before {
    display: none;
  }

  /* Hide the desktop pole scroll indicator on narrower aspect ratios. */
  .scroll-position-indicator {
    display: none;
  }

  .gallery-intro {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px 20px;
  }

  .gallery-details {
    order: 1;
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    width: auto;
    min-width: 0;
  }

  /* Centre the sign and all gallery controls together as one row below 4:3. */
  .gallery-intro .eyebrow {
    margin-left: 0;
    margin-right: 0;
  }

  .gallery-actions {
    order: 2;
    flex: 0 0 auto;
    justify-content: center;
    flex-wrap: nowrap;
    width: auto;
    margin-top: 0;
    gap: 14px;
  }

  .gallery-group-nav {
    position: static;
    left: auto;
    transform: none;
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--gallery-line);
    box-sizing: border-box;
    overflow: visible;
  }
}

/* At 3:4 and narrower, switch to the fully stacked mobile arrangement. */
@media (max-aspect-ratio: 3/4) {
  .gallery-intro {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .gallery-details {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gallery-actions {
    order: 2;
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }

  .gallery-group-nav {
    order: 3;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 10px;
  }
}

/* Viewer theme toggle and share controls -------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  background: transparent;
  color: var(--gallery-text);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--gallery-text) 7%, var(--gallery-bg));
}

.theme-toggle:focus-visible,
.share-button:focus-visible,
.download-all-button:focus-visible {
  outline: 2px solid var(--gallery-text);
  outline-offset: 3px;
}

.theme-toggle-moon,
.theme-toggle-sun {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
}

.theme-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 25px;
  height: 14px;
  padding: 2px;
  border-radius: 999px;
  background: var(--gallery-muted);
  transition: background .2s ease;
}

.theme-toggle-knob {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gallery-bg);
  transform: translateX(0);
  transition: transform .2s ease, background .2s ease;
}

.theme-toggle[data-active-theme="light"] .theme-toggle-track {
  background: #777;
}

.theme-toggle[data-active-theme="light"] .theme-toggle-knob {
  transform: translateX(11px);
  background: #fff;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 40px;
  height: 39px;
  min-height: 39px;
  padding: 0;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: none;
}

.share-button-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-button:hover {
  background: #f0f0f0;
  color: #000;
}

@media (max-width: 800px) {
  .gallery-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .theme-toggle {
    min-height: 34px;
  }

  .share-button {
    padding: 0;
  }
}

/* Keep the primary action buttons inverted against the active gallery theme. */
.gallery-shell[data-gallery-theme="light"] .download-all-button,
.gallery-shell[data-gallery-theme="light"] .share-button {
  background: #000;
  color: #fff;
  border-color: #000;
}

.gallery-shell[data-gallery-theme="light"] .download-all-button:hover,
.gallery-shell[data-gallery-theme="light"] .share-button:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

.gallery-shell[data-gallery-theme="dark"] .download-all-button,
.gallery-shell[data-gallery-theme="dark"] .share-button {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.gallery-shell[data-gallery-theme="dark"] .download-all-button:hover,
.gallery-shell[data-gallery-theme="dark"] .share-button:hover {
  background: #f0f0f0;
  color: #000;
  border-color: #f0f0f0;
}

/* Hide the browser's native page scrollbar while keeping scrolling enabled. */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Older versions of Edge and Internet Explorer */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Chromium-based browsers */
}

/* Gallery download selection */
.download-options-modal[hidden] { display: none !important; }
.download-options-modal {
  position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0,0,0,.62); overflow-y: auto;
}
.download-options-card {
  position: relative; width: min(100%, 480px); max-height: min(82vh, 720px); overflow-y: auto;
  padding: 34px; background: #fff; color: #171717; border-top: 4px solid var(--red);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.download-options-card h2 { margin: 12px 28px 8px 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; font-weight: 500; }
.download-options-description { margin: 0 0 22px; color: #666; line-height: 1.5; font-size: 14px; }
.download-options-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: #333; }
.download-options-list { display: grid; gap: 9px; }
.download-option-button { width: 100%; min-height: 48px; padding: 13px 15px; border: 1px solid #d4d4d4; background: #fff; color: #171717; text-align: left; font: inherit; font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.download-option-button:hover, .download-option-button:focus-visible { border-color: #171717; background: #f4f4f4; }
.download-option-all { border-color: #171717; background: #171717; color: #fff; font-weight: 700; }
.download-option-all:hover, .download-option-all:focus-visible { background: #333; color: #fff; }
.download-option-button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .download-options-card { padding: 28px 22px; } }

/* Email access and client-specific share grant prototype */
.access-field { margin: 0 0 18px; }
.access-field input { width: 100%; min-width: 0; }
.password-row { display: flex; }
.password-row button { width: 100%; }
.share-access-modal[hidden] { display: none !important; }
.share-access-modal {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0,0,0,.62); overflow-y: auto;
}
.share-access-card {
  position: relative; width: min(100%, 520px); padding: 34px; background: #fff; color: #171717;
  border-top: 4px solid var(--red); box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.share-access-card h2 { margin: 12px 0; font-size: clamp(26px, 4vw, 34px); font-weight: 500; }
.share-access-card .muted { color: #666; font-size: 14px; line-height: 1.5; }
.share-access-card label { display: block; margin: 18px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.share-access-card input { display: block; width: 100%; padding: 13px 14px; border: 1px solid #d4d4d4; background: #fff; color: #111; }
.share-access-close { position: absolute; z-index: 2; top: 10px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #333; }
.grant-access-submit, .general-share-link { width: 100%; margin-top: 12px; padding: 13px 16px; border: 1px solid #111; background: #111; color: #fff; cursor: pointer; font-weight: 700; }
.general-share-link { background: #fff; color: #111; }
.share-methods { display: grid; gap: 12px; margin-top: 22px; }
.share-method { min-width: 0; }
.share-method-button { display: block; width: 100%; min-height: 48px; padding: 13px 16px; border: 1px solid #171717; border-radius: 0; background: #fff; color: #171717; text-align: center; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease; }
.share-method-primary { background: #171717; color: #fff; }
.share-method-button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.share-method-button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.share-method-description { margin: 7px 2px 0; color: #707070; font-size: 12px; line-height: 1.45; }
.share-access-card #grantAccessFeedback { font-size: 13px; }
#grantLinkWrap { margin-top: 18px; }
#grantLinkWrap[hidden] { display: none !important; }

@media (max-width: 560px) {
  .share-access-card { padding: 28px 22px; }
}
.access-field input {
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  background: #fff;
  color: #171717;
  outline: none;
}
.access-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}


/* Align the client-sharing label with the email invitation preview heading. */
.share-gallery-card > .eyebrow { margin-top: 0; }

/* Two-panel client sharing dialog: keep the original composer width and add an equally sized preview beside it. */
.share-modal-layout {
  position: relative; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 520px); gap: 0;
  width: min(100%, 1064px); max-height: calc(100dvh - 48px); min-height: 0; align-items: stretch;
  background: #fff; border-top: 4px solid var(--red); box-shadow: 0 22px 70px rgba(0,0,0,.28); overflow: hidden;
}
.share-access-card { position: relative; width: 100%; min-width: 0; min-height: 0; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 34px; border: 0; box-shadow: none; background: #fff; }
.share-access-card input, .share-access-card textarea {
  display: block; width: 100%; min-width: 0; box-sizing: border-box; padding: 13px 14px;
  border: 1px solid #d4d4d4; border-radius: 0; background: #fff; color: #111; font: inherit; font-size: 14px;
}
.share-access-card textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.share-field-help { margin: 7px 0 0; color: #777; font-size: 12px; line-height: 1.4; }
.share-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: #888; font-size: 10px; letter-spacing: .15em; }
.share-divider::before, .share-divider::after { content: ""; height: 1px; flex: 1; background: #e4e4e4; }
.share-gallery-card #shareGalleryFeedback { margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.share-branding-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e6e6e6; color: #777; font-size: 11px; letter-spacing: .02em; }
.share-branding-note strong { color: #222; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) {
  .share-access-modal { padding: 12px; }
  .share-access-card { max-height: calc(100dvh - 24px); padding: 28px 22px; }
}


/* Recipient email chips in the gallery share composer */
.share-recipient-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; min-height: 48px; box-sizing: border-box;
  padding: 7px 9px; border: 1px solid #d4d4d4; background: #fff; cursor: text;
}
.share-recipient-entry:focus-within { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.share-recipient-chips { display: contents; }
.share-recipient-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 6px 5px 10px; border: 1px solid #dedede; border-radius: 4px; background: #f3f3f3; color: #222; font-size: 13px; line-height: 1.3; }
.share-recipient-chip-email { overflow-wrap: anywhere; cursor: pointer; }
.share-recipient-chip-email:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.share-recipient-chip-remove { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #555; font-size: 17px; line-height: 1; cursor: pointer; }
.share-recipient-chip-remove:hover { background: #e2e2e2; color: #111; }
.share-access-card .share-recipient-entry input { flex: 1 1 170px; width: auto; min-width: 130px; min-height: 30px; padding: 5px 2px; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 14px; }
.share-access-card .share-recipient-entry input:focus { border: 0; outline: 0; box-shadow: none; }
.share-access-card .share-recipient-entry input::placeholder { color: #888; }

/* Message composer stays in the original client-sharing panel. */
.share-message-composer { min-width: 0; }
.share-message-composer label { margin-top: 18px; }

/* Live preview occupies its own panel, visible even before a message is entered. */
.share-email-preview-section { min-width: 0; min-height: 0; max-height: calc(100dvh - 52px); margin: 0; padding: 34px; background: #fff; color: #171717; border-left: 1px solid #e7e7e7; overflow-y: auto; overscroll-behavior: contain; }
.share-email-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.share-email-preview-heading h3 { margin: 0; color: #9c1c2c; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.share-email-preview-live { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #e3e3e3; color: #666; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.share-email-preview { overflow: hidden; border: 1px solid #dedede; background: #fff; color: #242424; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.share-email-preview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #252525; background: #000; }
.share-email-preview-logo { display: block; width: 145px; max-width: 55%; height: auto; object-fit: contain; }
.share-email-preview-topbar > span { color: #d0d0d0; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.share-email-preview-content { padding: 28px 24px 30px; }
.share-email-preview-introduction { margin: 0 0 20px; text-align: center; }
.share-email-preview-kicker { margin: 0 0 9px; color: #777; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.share-email-preview-content h4 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; }
.share-email-preview-content h4 a { color: inherit; text-decoration: none; }
.share-email-preview-content h4 a:hover, .share-email-preview-content h4 a:focus-visible { text-decoration: underline; }
.share-email-preview-intro { margin: 0; color: #555; font-size: 13px; line-height: 1.6; }
.share-email-preview-hero-image { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 24px; object-fit: cover; background: #eee; }
.share-email-preview-message { margin: 0 0 22px; color: #333; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-email-preview-message.is-placeholder { color: #999; font-style: italic; }
.share-email-preview-cta-wrap { text-align: center; }
.share-email-preview-cta { display: inline-block; padding: 13px 22px; background: #9c1c2c; color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.share-email-preview-link-text { display: none; }
.share-email-preview-footer { padding: 20px 24px; border-top: 1px solid #e7e7e7; background: #f7f7f7; text-align: center; }
.share-email-preview-footer strong { display: block; font-size: 10px; letter-spacing: .14em; }
.share-email-preview-footer > span { display: block; margin-top: 5px; color: #666; font-size: 11px; }
.share-email-preview-footer p { margin: 12px 0; color: #777; font-size: 11px; }
.share-email-preview-footer small { display: block; max-width: 420px; margin: 14px auto 0; color: #858585; font-size: 9px; line-height: 1.6; }
.share-email-preview-footer small a { color: #555; text-decoration: underline; }
.share-email-preview-disclaimer { margin: 9px 0 0; color: #8a6b34; font-size: 11px; line-height: 1.5; }
@media (max-width: 1100px) {
  .share-modal-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .share-access-card, .share-email-preview-section { padding: 34px 22px 28px; }
}
@media (max-width: 820px) {
  .share-access-modal { align-items: flex-start; }
  .share-modal-layout { grid-template-columns: minmax(0, 1fr); width: min(100%, 520px); max-height: calc(100dvh - 24px); margin: auto; overflow-y: auto; overscroll-behavior: contain; }
  .share-access-card, .share-email-preview-section { max-height: none; overflow: visible; }
  .share-access-card { padding-top: 34px; }
  .share-email-preview-section { border-left: 0; border-top: 1px solid #e7e7e7; padding-top: 28px; }
}
@media (max-width: 560px) {
  .share-email-preview-topbar { padding: 15px; }
  .share-email-preview-content { padding: 22px 17px 24px; }
  .share-email-preview-content h4 { font-size: 21px; }
  .share-email-preview-footer { padding: 18px 16px; }
}


/* Email-app picker for preparing personal email drafts. */
.email-app-options { margin-top: 12px; padding: 14px; border: 1px solid #dedede; background: #fafafa; }
.email-app-options[hidden] { display: none !important; }
.email-app-options label { display: block; margin: 0 0 7px; color: #555; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.email-app-select { display: block; width: 100%; min-height: 44px; padding: 10px 36px 10px 12px; border: 1px solid #d4d4d4; border-radius: 0; background: #fff; color: #171717; font: inherit; font-size: 14px; }
.email-app-select:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.email-app-prepare { margin-top: 12px; }
.email-app-ready-help { margin-top: 8px; }
.email-app-ready-help[hidden] { display: none !important; }


/* Branded email-client chooser: custom buttons are used because native select options cannot reliably display logos. */
.email-app-select-native { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.email-app-logo-list { display:grid; grid-template-columns:1fr; gap:6px; margin-top:2px; }
.email-app-option { display:flex; align-items:center; gap:11px; width:100%; min-height:48px; padding:8px 11px; border:1px solid #dedede; border-radius:4px; background:#fff; color:#171717; text-align:left; font:inherit; font-size:14px; cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.email-app-option:hover { border-color:#999; background:#f8f8f8; }
.email-app-option.is-selected { border-color:var(--red); background:#fff8f8; box-shadow:inset 3px 0 0 var(--red); }
.email-app-option:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.email-app-logo { display:inline-flex; flex:0 0 30px; width:30px; height:30px; align-items:center; justify-content:center; }
.email-app-logo svg { display:block; width:30px; height:30px; }
.email-app-option small { display:block; margin-top:2px; color:#666; font-size:11px; }
@media (min-width:560px) { .email-app-logo-list { grid-template-columns:1fr 1fr; } }

/* Use Samsung's supplied Email app icon asset. */
.email-app-option[data-email-app="samsung-email"] .email-app-logo img { display:block; width:100%; height:100%; object-fit:cover; border-radius:10px; }


/* Two-step email preparation and copy/open progress states. */
.email-app-prepare { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 48px; }
.email-app-prepare:disabled { opacity: 1; cursor: progress; }
.email-app-prepare.is-preparing { background: #7f1724; }
.email-app-prepare.is-ready { background: #9c1c2c; color: #fff; }
.email-app-prepare.is-attention-flash {
  animation: emailPrepareAttentionFlash 0.8s steps(1, end) infinite;
  border: 2px solid #9c1c2c;
}
@keyframes emailPrepareAttentionFlash {
  0%, 49% { background: #9c1c2c; color: #fff; }
  50%, 100% { background: #fff; color: #9c1c2c; }
}
/* Keep the explicit post-help attention cue working even when the device requests reduced motion.
   This is a brief, user-triggered state that points to the next required action. */
.email-prepare-progress-label { position: relative; z-index: 1; line-height: 1.25; text-align: center; }
.email-prepare-progress-track { display: block; width: min(100%, 260px); height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.3); }
.email-prepare-progress-fill { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .12s ease; }


/* Small Outlook Desktop paste-help popup shown after preparing that email option. */
.outlook-paste-help-overlay {
  position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
  padding: 18px; background: rgba(0,0,0,.58);
}
.outlook-paste-help-overlay.is-visible { display: flex; }
.outlook-paste-help-dialog {
  position: relative; width: min(100%, 430px); max-height: min(85vh, 680px); overflow-y: auto;
  padding: 25px 25px 22px; border: 1px solid #dedede; border-radius: 8px; background: #fff; color: #222;
  box-shadow: 0 18px 55px rgba(0,0,0,.28); font-family: Arial, Helvetica, sans-serif; line-height: 1.5;
}
.outlook-paste-help-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #666; font-size: 28px; line-height: 1; cursor: pointer; }
.outlook-paste-help-icon { margin-bottom: 8px; font-size: 27px; }
.outlook-paste-help-dialog h2 { margin: 0 28px 12px 0; font-size: 20px; line-height: 1.25; }
.outlook-paste-help-dialog p { margin: 0 0 12px; font-size: 14px; }
.outlook-paste-help-dialog ol { margin: 0 0 15px; padding-left: 22px; font-size: 14px; }
.outlook-paste-help-dialog li { margin: 0 0 8px; padding-left: 2px; }
.outlook-paste-help-dialog kbd { display: inline-block; padding: 1px 5px; border: 1px solid #ccc; border-radius: 4px; background: #f6f6f6; font: inherit; font-size: 12px; }
.outlook-paste-help-example { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 11px 13px; border: 1px solid #e2e2e2; border-radius: 6px; background: #f7f7f7; font-size: 13px; }
.outlook-paste-help-clipboard { font-size: 25px; white-space: nowrap; }
.outlook-paste-help-example span span { color: #666; font-size: 12px; }
.outlook-paste-help-dialog .outlook-paste-help-note { color: #666; font-size: 12px; }
.outlook-paste-help-done { display: block; width: 100%; margin-top: 14px; padding: 11px 16px; border: 0; border-radius: 4px; background: #9c1c2c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.outlook-paste-help-done:hover { background: #7f1724; }
@media (max-width: 480px) { .outlook-paste-help-dialog { padding: 22px 18px 18px; } }

/* Client gallery watermark overlay */
.watermark-container{position:relative!important;isolation:isolate}.gallery-watermark-overlay{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:35%;height:auto!important;max-width:90%;max-height:90%;aspect-ratio:auto!important;object-fit:contain!important;pointer-events:none!important;z-index:2;transition:none!important}#lightbox figure{position:relative}#lightbox .gallery-watermark-overlay{z-index:3}
