.m1-component-gallery {
  --m1-gallery-ink: #3e2416;
  --m1-gallery-muted: #795d49;
  --m1-gallery-line: #e7cdb8;
  --m1-gallery-accent: #a64b1c;
  color: var(--m1-gallery-ink);
  background: #f8efe4;
  padding: clamp(36px, 5vw, 72px) 24px;
  scroll-margin-top: 92px;
}
.m1-component-gallery *, .m1-component-gallery *::before, .m1-component-gallery *::after { box-sizing: border-box; }
.m1-component-gallery [hidden] { display: none !important; }
.m1-gallery-shell { max-width: 1180px; margin-inline: auto; }
.m1-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.m1-gallery-eyebrow { margin: 0 0 14px; color: var(--m1-gallery-accent); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.m1-gallery-heading h2 { max-width: 620px; margin: 0; color: var(--m1-gallery-ink); font: 400 clamp(30px, 3.6vw, 46px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.m1-gallery-intro { max-width: 580px; margin: 14px 0 0; color: var(--m1-gallery-muted); font-size: 14px; line-height: 1.6; }
.m1-gallery-metrics { display: flex; flex-shrink: 0; align-items: start; gap: 26px; margin: 0 0 3px; }
.m1-gallery-metrics > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.m1-gallery-metrics dt { color: var(--m1-gallery-muted); font-size: 12px; line-height: 1.4; }
.m1-gallery-metrics dd { margin: 0; color: var(--m1-gallery-accent); font: 400 clamp(38px, 4vw, 52px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; }
.m1-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.m1-gallery-toolbar > p { margin: 0; color: var(--m1-gallery-muted); font-size: 12px; line-height: 1.5; }
.m1-gallery-actions { display: flex; gap: 8px; flex-shrink: 0; }
.m1-gallery-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--m1-gallery-line); border-radius: 999px; background: #fffaf3; color: var(--m1-gallery-ink); font: inherit; font-size: 12px; line-height: 1.25; cursor: pointer; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.m1-gallery-actions button:first-child { border-color: var(--m1-gallery-ink); background: var(--m1-gallery-ink); color: #fff8ed; }
.m1-gallery-actions button svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m1-gallery-actions button:hover { background: #f5e2d0; border-color: var(--m1-gallery-accent); }
.m1-gallery-actions button:first-child:hover { background: #603920; border-color: #603920; }
.m1-gallery-actions button:disabled { opacity: .48; cursor: default; background: #fffaf3; border-color: var(--m1-gallery-line); box-shadow: none; }
.m1-gallery-actions button:focus-visible, .m1-gallery-row:focus-visible, .m1-gallery-card[data-m1-component]:focus-visible { outline: 2px solid var(--m1-gallery-accent); outline-offset: 4px; }
.m1-gallery-stage { position: relative; display: grid; min-width: 0; gap: 14px; }
.m1-gallery-row { display: flex; gap: 14px; min-width: 0; margin: 0; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d4b39a transparent; overscroll-behavior-x: contain; list-style: none; }
.m1-gallery-card { flex: 0 0 240px; min-width: 0; overflow: hidden; border: 1px solid var(--m1-gallery-line); border-radius: 19px; background: #fffaf4; transition: border-color .2s ease, box-shadow .2s ease; }
.m1-gallery-image { position: relative; overflow: hidden; background: #f3f0eb; }
.m1-gallery-image img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; }
.m1-gallery-number { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #e7cdb8a6; border-radius: 50%; background: #fffaf4ed; color: var(--m1-gallery-accent); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m1-gallery-card-copy { padding: 14px 14px 16px; }
.m1-gallery-group { display: block; margin-bottom: 5px; color: var(--m1-gallery-accent); font-size: 9px; line-height: 1.4; letter-spacing: .055em; text-transform: uppercase; }
.m1-component-gallery .m1-gallery-card h3 { margin: 0; color: var(--m1-gallery-ink); font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.m1-component-gallery .m1-gallery-card p { margin: 9px 0 0; color: var(--m1-gallery-muted); font-size: 12px; line-height: 1.55; }
.m1-gallery-scanner { display: none; }
.m1-gallery-particles { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.m1-gallery-caption { margin: 14px 0 0; color: var(--m1-gallery-muted); font-size: 11px; line-height: 1.5; }
.m1-gallery-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; }
.m1-gallery-footer .m1-gallery-caption { margin: 0; }
.m1-gallery-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--m1-gallery-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.m1-gallery-link span { display: inline-block; transition: transform .2s ease; }
.m1-gallery-link:hover { color: var(--m1-gallery-ink); }
.m1-gallery-link:hover span { transform: translate(2px, -2px); }
.m1-gallery-link:focus-visible { outline: 2px solid var(--m1-gallery-accent); outline-offset: 4px; }
.m1-component-gallery[data-m1-minimal="true"] .m1-gallery-heading { margin-bottom: 28px; }
.m1-component-gallery[data-m1-minimal="true"] .m1-gallery-footer { justify-content: flex-end; margin-top: 22px; }
.m1-component-gallery[data-m1-minimal="true"] .m1-gallery-link { justify-content: center; min-height: 48px; padding: 13px 26px; border-radius: 999px; background: #f5821f; color: #321c11; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.m1-component-gallery[data-m1-minimal="true"] .m1-gallery-link:hover { background: #ff9b40; box-shadow: 0 5px 18px #a64b1c1a; transform: translateY(-2px); }
.m1-component-gallery[data-m1-minimal="true"] .m1-gallery-stage:focus-visible { outline: 2px solid var(--m1-gallery-accent); outline-offset: 4px; }
.m1-component-gallery[data-m1-ready="true"][data-m1-view="stream"] .m1-gallery-card p { display: none; }
.m1-component-gallery[data-m1-ready="true"][data-m1-view="stream"] .m1-gallery-card-copy { min-height: 83px; }
.m1-component-gallery[data-m1-ready="true"][data-m1-view="stream"] .m1-gallery-row { scrollbar-width: none; padding-bottom: 2px; }
.m1-component-gallery[data-m1-ready="true"][data-m1-view="stream"] .m1-gallery-row::-webkit-scrollbar { display: none; }
.m1-component-gallery[data-m1-ready="true"][data-m1-view="stream"] .m1-gallery-scanner { display: block; position: absolute; z-index: 2; top: 5px; bottom: 5px; left: 50%; width: 1px; pointer-events: none; background: linear-gradient(transparent, #e9a35f80 15%, #e6a266b3 50%, #e9a35f80 85%, transparent); box-shadow: 0 0 14px 3px #f3b67930; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-stage { overflow: hidden; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-card { flex-basis: 320px; border: 0; background: transparent; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-card-copy { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-card-copy p { display: block; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-number { display: none; }
.m1-component-gallery[data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-particles { display: block; }
.m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-scanner {
  z-index: 4;
  width: 2px;
  background: linear-gradient(transparent, #e65c39 10%, #ffcc88 50%, #e65c39 90%, transparent);
  box-shadow: 0 0 7px 2px #ed643a66, 0 0 24px 7px #e9583026;
}
.m1-component-gallery[data-m1-view="grid"] .m1-gallery-stage { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.m1-component-gallery[data-m1-view="grid"] .m1-gallery-row { display: contents; }
.m1-component-gallery[data-m1-view="grid"] .m1-gallery-card { width: auto; }
.m1-component-gallery[data-m1-view="grid"] [data-m1-clone] { display: none; }
.m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-image img {
  transition: filter .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-card:focus-visible {
  outline: 2px solid var(--m1-gallery-accent);
  outline-offset: 4px;
  border-color: #ca9264;
}
@media (hover: hover) {
  .m1-gallery-card:hover { border-color: #ca9264; box-shadow: 0 7px 22px #63381b0a; }
  .m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-image img { filter: grayscale(1); }
  .m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-card:hover .m1-gallery-image img {
    filter: grayscale(0);
    transform: scale(1.025);
  }
}
@media (hover: none) {
  .m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"][data-m1-colour-ready="true"] .m1-gallery-image img { filter: grayscale(1); }
}
.m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-card[data-m1-colour-active="true"] {
  border-color: #ca9264;
  box-shadow: 0 7px 22px #63381b0a;
}
.m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-card[data-m1-colour-active="true"] .m1-gallery-image img,
.m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-card:focus-visible .m1-gallery-image img {
  filter: grayscale(0);
  transform: scale(1.025);
}
@media (max-width: 1000px) {
  .m1-component-gallery[data-m1-view="grid"] .m1-gallery-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m1-gallery-metrics { gap: 20px; }
}
@media (max-width: 720px) {
  .m1-component-gallery { padding: 34px 18px; scroll-margin-top: 80px; }
  .m1-gallery-heading { display: block; margin-bottom: 20px; }
  .m1-gallery-heading h2 { max-width: 450px; font-size: clamp(30px, 6vw, 38px); }
  .m1-gallery-intro { max-width: 430px; margin-top: 12px; font-size: 13px; }
  .m1-gallery-metrics { gap: 30px; margin-top: 21px; }
  .m1-gallery-metrics dd { font-size: 38px; }
  .m1-gallery-metrics dt { font-size: 11px; }
  .m1-gallery-toolbar { align-items: start; }
  .m1-gallery-toolbar > p { display: none; }
  .m1-gallery-actions { flex-wrap: wrap; gap: 7px; }
  .m1-gallery-actions button { padding-inline: 13px; font-size: 11px; }
  .m1-gallery-card { flex-basis: 210px; border-radius: 15px; }
  .m1-component-gallery[data-m1-default-view="stream"][data-m1-effect="particles"][data-m1-view="stream"] .m1-gallery-card { flex-basis: 280px; }
  .m1-gallery-stage, .m1-gallery-row { gap: 10px; }
  .m1-component-gallery[data-m1-view="grid"] .m1-gallery-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m1-gallery-card-copy { padding: 12px 11px 14px; }
  .m1-component-gallery .m1-gallery-card h3 { font-size: 13px; line-height: 1.4; }
  .m1-component-gallery .m1-gallery-card p { font-size: 12px; line-height: 1.55; }
  .m1-gallery-number { top: 7px; left: 7px; width: 23px; height: 23px; font-size: 9px; }
  .m1-gallery-caption { font-size: 10px; }
  .m1-gallery-footer { display: block; margin-top: 14px; }
  .m1-gallery-link { font-size: 12px; }
}
@media (max-width: 360px) {
  .m1-component-gallery { padding-inline: 14px; }
  .m1-gallery-actions button { gap: 6px; padding-inline: 10px; }
  .m1-gallery-metrics { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .m1-component-gallery *, .m1-component-gallery *::before, .m1-component-gallery *::after { transition: none !important; scroll-behavior: auto !important; }
  .m1-gallery-scanner, .m1-gallery-particles { display: none !important; }
  .m1-component-gallery[data-m1-default-view="grid"][data-m1-view="grid"] .m1-gallery-image img { transform: none !important; }
}
