/* Editorial social examples inside the presentation's optional gallery sheet. */
#gallery-dialog {
  --sg-paper: var(--paper, #f4f0e8);
  --sg-ink: var(--ink, #202623);
  --sg-accent: var(--accent, #a62d2d);
  --sg-muted: var(--muted, #65665f);
  --sg-line: var(--line, #d7d0c6);
  --sg-media-height: clamp(280px, calc(92dvh - 290px), 430px);
  color: var(--sg-ink);
  background: var(--sg-paper);
  font-family: 'Outfit', sans-serif;
}
#gallery-dialog .social-gallery { width: 100%; min-width: 0; margin: 0; }
#gallery-dialog .social-gallery *, #gallery-dialog .social-gallery *::before, #gallery-dialog .social-gallery *::after { box-sizing: border-box; }
#gallery-dialog .sg-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: end; margin: 0 0 20px; }
#gallery-dialog .sg-heading .demo-tag { display: none; }
#gallery-dialog #sg-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
#gallery-dialog .sg-heading > p { max-width: 470px; margin: 0; color: var(--sg-muted); font-size: 13px; line-height: 1.45; }
#gallery-dialog .sg-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); margin-bottom: 20px; }
#gallery-dialog .sg-lines button { position: relative; display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; min-width: 0; min-height: 68px; margin: 0; padding: 12px; border: 0; border-radius: 0; background: transparent; color: var(--sg-muted); font: inherit; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
#gallery-dialog .sg-lines button + button { border-left: 1px solid var(--sg-line); }
#gallery-dialog .sg-lines button > span { grid-row: 1 / 3; padding-top: 2px; color: var(--sg-accent); font-size: 10px; font-variant-numeric: tabular-nums; }
#gallery-dialog .sg-lines strong { font-size: 15px; font-weight: 550; line-height: 1.15; }
#gallery-dialog .sg-lines small { margin-top: 5px; color: var(--sg-muted); font-size: 11px; line-height: 1.2; }
#gallery-dialog .sg-lines button[aria-pressed='true'] { background: #eae1d6; color: var(--sg-ink); }
#gallery-dialog .sg-lines button[aria-pressed='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sg-accent); }
#gallery-dialog .sg-lines button:hover { background: #eee7de; color: var(--sg-ink); }
#gallery-dialog .sg-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 46px); align-items: start; }
#gallery-dialog .sg-stage { position: relative; min-width: 0; min-height: calc(var(--sg-media-height) + 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; margin: 0; padding: 34px 16px 14px; border: 1px solid var(--sg-line); border-radius: 0; background: #eae5dc; overflow: hidden; }
#gallery-dialog .sg-atmosphere { display: none; }
#gallery-dialog .sg-stage-label { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; color: var(--sg-muted); font-size: 8px; line-height: 1.1; letter-spacing: .1em; }
#gallery-dialog .sg-stage-label > span:first-child { color: var(--sg-ink); }
#gallery-dialog .sg-frame { position: relative; width: calc(var(--sg-media-height) * 9 / 16); max-width: 100%; max-height: 430px; aspect-ratio: 9 / 16; min-width: 0; margin: 0; background: var(--sg-paper); border: 1px solid rgba(32, 38, 35, .12); border-radius: 0; box-shadow: 0 4px 14px rgba(32, 38, 35, .06); overflow: hidden; }
#gallery-dialog .sg-stage[data-format='carousel'] .sg-frame { width: calc((var(--sg-media-height) - 52px) * 4 / 5); aspect-ratio: 4 / 5; }
#gallery-dialog .sg-frame > video, #gallery-dialog .sg-frame > img { display: block; width: 100%; height: 100%; object-fit: contain; }
#gallery-dialog .sg-frame > [hidden], #gallery-dialog .sg-carousel-controls[hidden] { display: none !important; }
#gallery-dialog .sg-media-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; color: var(--sg-muted); background: var(--sg-paper); text-align: center; font-size: 13px; line-height: 1.45; pointer-events: none; }
#gallery-dialog .sg-stage[data-state='ready'] .sg-media-status { display: none; }
#gallery-dialog .sg-stage[data-state='error'] .sg-frame > video, #gallery-dialog .sg-stage[data-state='error'] .sg-frame > img { visibility: hidden; }
#gallery-dialog .sg-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; }
#gallery-dialog .sg-carousel-controls > button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--sg-line); border-radius: 0; color: var(--sg-ink); background: var(--sg-paper); font: inherit; font-size: 19px; cursor: pointer; }
#gallery-dialog .sg-carousel-controls > button:hover { color: var(--sg-accent); border-color: var(--sg-accent); }
#gallery-dialog .sg-carousel-controls > span { min-width: 50px; color: var(--sg-muted); text-align: center; font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
#gallery-dialog .sg-editorial { min-width: 0; padding: 0; }
#gallery-dialog .sg-format-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--sg-line); }
#gallery-dialog .sg-format-tabs > button { position: relative; min-height: 44px; padding: 8px 0 12px; border: 0; border-radius: 0; background: transparent; color: var(--sg-muted); font: inherit; font-size: 15px; cursor: pointer; }
#gallery-dialog .sg-format-tabs > button[aria-selected='true'] { color: var(--sg-ink); font-weight: 550; }
#gallery-dialog .sg-format-tabs > button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sg-accent); }
#gallery-dialog .sg-format-tabs > button:hover { color: var(--sg-accent); }
#gallery-dialog .sg-channel { margin: 9px 0 0; color: var(--sg-muted); font-size: 11px; line-height: 1.35; }
#gallery-dialog .sg-copy { margin-top: 22px; }
#gallery-dialog .sg-copy > .eyebrow { margin: 0; color: var(--sg-accent); font-size: 9px; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
#gallery-dialog .sg-copy h4 { margin: 10px 0 12px; max-width: 480px; color: var(--sg-ink); font-size: clamp(22px, 2.2vw, 29px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
#gallery-dialog .sg-copy > p:last-child { max-width: 480px; margin: 0; color: var(--sg-muted); font-size: 13px; line-height: 1.5; }
#gallery-dialog .sg-invitation { margin: 19px 0; padding-left: 13px; border-left: 2px solid var(--sg-accent); }
#gallery-dialog .sg-invitation > span { color: var(--sg-muted); font-size: 9px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
#gallery-dialog .sg-invitation > p { margin: 6px 0 0; max-width: 460px; color: var(--sg-ink); font-size: 13px; line-height: 1.45; }
#gallery-dialog .sg-download { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; min-height: 46px; margin: 0; padding: 12px 15px; border: 1px solid var(--sg-ink); border-radius: 0; background: var(--sg-ink); color: #fffaf2; text-decoration: none; font-size: 13px; line-height: 1.2; }
#gallery-dialog .sg-download:hover { background: var(--sg-accent); border-color: var(--sg-accent); }
#gallery-dialog .sg-download[aria-disabled='true'] { opacity: .5; cursor: wait; }
#gallery-dialog .sg-caption-download { display: block; width: fit-content; max-width: 100%; margin-top: 11px; color: var(--sg-accent); text-decoration: none; font-size: 12px; line-height: 1.4; }
#gallery-dialog .sg-caption-download > span { margin-left: 10px; }
#gallery-dialog .sg-caption-download:hover { text-decoration: underline; text-underline-offset: 4px; }
#gallery-dialog .sg-file-note { margin: 9px 0 0; color: var(--sg-muted); font-size: 10px; line-height: 1.45; }
#gallery-dialog .sg-disclaimer { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--sg-line); color: var(--sg-muted); font-size: 10px; line-height: 1.45; }
#gallery-dialog .social-gallery button:focus-visible, #gallery-dialog .social-gallery a:focus-visible, #gallery-dialog .sg-stage:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 4px; }
@media (max-width: 760px) {
  #gallery-dialog { --sg-media-height: clamp(280px, 44dvh, 390px); }
  #gallery-dialog .sg-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  #gallery-dialog #sg-title { max-width: 480px; font-size: clamp(24px, 4.6vw, 31px); }
  #gallery-dialog .sg-heading > p { font-size: 12px; line-height: 1.4; }
  #gallery-dialog .sg-lines { margin-bottom: 12px; }
  #gallery-dialog .sg-lines button { display: block; min-height: 72px; padding: 10px 8px; }
  #gallery-dialog .sg-lines button > span { display: none; }
  #gallery-dialog .sg-lines strong { display: block; font-size: 12px; line-height: 1.2; }
  #gallery-dialog .sg-lines small { display: block; font-size: 9px; line-height: 1.2; }
  #gallery-dialog .sg-showcase { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  #gallery-dialog .sg-editorial { display: contents; }
  #gallery-dialog .sg-format-tabs { order: -3; gap: 30px; }
  #gallery-dialog .sg-channel { order: -2; margin: 9px 0 14px; font-size: 10px; }
  #gallery-dialog .sg-stage { order: -1; padding: 32px 12px 12px; min-height: calc(var(--sg-media-height) + 44px); }
  #gallery-dialog .sg-stage-label { left: 12px; right: 12px; top: 11px; font-size: 7px; }
  #gallery-dialog .sg-copy { margin-top: 23px; }
  #gallery-dialog .sg-copy h4 { max-width: none; font-size: 26px; }
  #gallery-dialog .sg-copy > p:last-child { max-width: none; font-size: 13px; }
  #gallery-dialog .sg-invitation { margin: 18px 0; }
  #gallery-dialog .sg-invitation > p { max-width: none; }
  #gallery-dialog .sg-disclaimer { margin-top: 16px; }
}
@media (max-width: 360px) {
  #gallery-dialog .sg-lines button { padding-inline: 6px; }
  #gallery-dialog .sg-lines strong { font-size: 11px; }
  #gallery-dialog .sg-lines small { font-size: 9px; }
  #gallery-dialog .sg-format-tabs { justify-content: space-between; gap: 12px; }
  #gallery-dialog .sg-format-tabs > button { font-size: 14px; }
  #gallery-dialog .sg-copy h4 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #gallery-dialog .social-gallery * { transition: none !important; animation: none !important; }
}
body.reduced-motion #gallery-dialog .social-gallery * { transition: none !important; animation: none !important; }
@media print {
  #gallery-dialog .sg-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  #gallery-dialog .sg-format-tabs, #gallery-dialog .sg-lines, #gallery-dialog .sg-download, #gallery-dialog .sg-caption-download, #gallery-dialog .sg-carousel-controls { display: none !important; }
  #gallery-dialog .sg-editorial { display: block; }
  #gallery-dialog .sg-stage { min-height: 0; padding: 0; border: 0; background: transparent; }
  #gallery-dialog .sg-stage-label { display: none; }
  #gallery-dialog .sg-frame { max-height: 300px; width: 169px; box-shadow: none; }
}
