/* The quote gallery fills its stage with columns that share a baseline. */
.quote-event-gallery[open] { animation: quote-gallery-fade-in .25s ease-out both; }
.quote-event-gallery::backdrop { background: #fff; }
.quote-event-gallery[data-view="grid"] .eg-viewer-stage {
  --quote-gallery-columns: 4;
  --quote-gallery-footer-space: calc(104px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: var(--quote-gallery-footer-space);
}
.quote-event-gallery .quote-gallery-heading { flex: none; width: min(100%, 1500px); margin: 0 auto 26px; padding: 0 46px; text-align: center; }
.quote-event-gallery .quote-gallery-heading:focus { outline: none; }
.quote-event-gallery .quote-progress--gallery { margin-bottom: 18px; }
.quote-event-gallery .quote-gallery-title { max-width: 920px; margin: 0 auto; color: #0c1a33; font: 700 clamp(32px, 3vw, 38px)/1.15 'Plus Jakarta Sans', sans-serif; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
.quote-event-gallery[data-view="grid"] .eg-grid {
  flex: 1 0 0;
  width: 100%;
  min-height: 240px;
  grid-template: minmax(0, 1fr) / repeat(var(--quote-gallery-columns), minmax(0, 1fr));
  grid-auto-rows: auto;
}
.quote-event-gallery[data-view="grid"] .eg-grid-cell { position: relative; grid-row: 1; height: 0; animation: quote-gallery-tile-in .35s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--quote-tile-order, 0) * 40ms); }
.quote-event-gallery[data-view="grid"] .eg-grid-cell:focus-within { animation: none; opacity: 1; transform: none; }
.quote-event-gallery :is(button, video):focus-visible { outline: 2px solid #718096; outline-offset: 3px; }
.quote-event-gallery .eg-hit:focus-visible { outline-offset: -5px; }
.quote-event-gallery .eg-media.is-playing .eg-hit:focus-visible .eg-play { opacity: 1; }

.quote-event-gallery .quote-gallery-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 32px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #ffffff00 0%, #fffffff2 49%, #fff 100%);
  pointer-events: none;
}
.quote-event-gallery :is(.quote-gallery-back, .quote-gallery-choose) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  margin: 0;
  border: 1px solid;
  border-radius: 999px;
  font: 600 13px/1.4 'Plus Jakarta Sans', sans-serif;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.quote-event-gallery .quote-gallery-back { padding: 14px 18px; border-color: #d9dee5; background: #fff; color: #0c1a33; }
.quote-event-gallery .quote-gallery-back:hover { border-color: #bac3d0; background: #f7f8fa; }
.quote-event-gallery .quote-gallery-choose { min-width: 198px; padding: 14px 27px; border-color: #0c1a33; background: #0c1a33; color: #fff; box-shadow: 0 5px 20px #0c1a3317; }
.quote-event-gallery .quote-gallery-choose:hover { border-color: #253b5e; background: #253b5e; box-shadow: 0 5px 24px #0c1a3321; }
.quote-event-gallery :is(.quote-gallery-back, .quote-gallery-choose) svg { width: 16px; height: 16px; flex: none; }
.quote-event-gallery .quote-gallery-error { max-width: 440px; margin: 12px auto; color: #9d3545; font: 400 11px/1.5 'Plus Jakarta Sans', sans-serif; text-align: center; overflow-wrap: anywhere; }
.quote-event-gallery .quote-gallery-error:empty { display: none; }

@keyframes quote-gallery-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes quote-gallery-tile-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 761px) and (max-width: 920px) {
  .quote-event-gallery[data-view="grid"] .eg-viewer-stage { --quote-gallery-columns: 3; }
}

@media (max-width: 760px) {
  .quote-event-gallery[data-view="grid"] .eg-viewer-stage {
    --quote-gallery-columns: 2;
    --quote-gallery-footer-space: calc(92px + env(safe-area-inset-bottom, 0px));
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }
  .quote-event-gallery .quote-gallery-heading { margin-bottom: 20px; padding-inline: 4px; }
  .quote-event-gallery .quote-progress--gallery { margin-bottom: 14px; }
  .quote-event-gallery .quote-gallery-title { max-width: 560px; font-size: clamp(24px, 5vw, 28px); line-height: 1.18; }
  .quote-event-gallery .quote-gallery-footer { gap: 10px; padding: 24px max(18px, env(safe-area-inset-right, 0px)) calc(19px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); }
  .quote-event-gallery :is(.quote-gallery-back, .quote-gallery-choose) { min-height: 49px; }
  .quote-event-gallery .quote-gallery-back { padding-inline: 14px; }
  .quote-event-gallery .quote-gallery-choose { flex: 0 1 194px; min-width: 0; padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-event-gallery[open] { animation: none; }
  .quote-event-gallery[data-view="grid"] .eg-grid-cell { animation: none; opacity: 1; transform: none; }
  .quote-event-gallery :is(.quote-gallery-back, .quote-gallery-choose) { transition: none; }
}
