soulmate-mobile-events {
  --events-card-width: min(72vw, 340px);
  --events-gap: 16px;
  --events-row-gap: 18px;
  --events-radius: 19px;
  --events-opacity: 1;
  display: block;
  position: relative;
  padding-block: 44px 100px;
  color: #faf5f8;
  scroll-margin-top: calc(100px + env(safe-area-inset-top, 0px));
}
soulmate-mobile-events *, soulmate-mobile-events *::before, soulmate-mobile-events *::after { box-sizing: border-box; }
.sm-events-section { opacity: var(--events-opacity); }
.sm-events-heading { padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); margin: 0 auto 30px; max-width: 460px; text-align: center; }
.sm-events-title { margin: 0; font: 800 clamp(1.5rem, 6.6vw, 1.9rem)/1.08 var(--font-primary); letter-spacing: -.045em; text-wrap: balance; }
.sm-events-intro { margin: 14px auto 0; max-width: 30ch; color: #bfb4c7; font: 400 .9375rem/1.55 var(--font-primary); text-wrap: balance; }
.sm-events-gallery { display: grid; gap: var(--events-row-gap); overflow: hidden; width: 100%; }
.sm-events-row {
  position: relative;
  height: calc(var(--events-card-width) / 1.18);
  column-gap: var(--events-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-events-item { position: absolute; inset: 0 auto auto 0; width: var(--events-card-width); height: 100%; will-change: transform; }
.sm-events-card { position: relative; overflow: hidden; width: 100%; height: 100%; margin: 0; border-radius: var(--events-radius); background: #1c1923; isolation: isolate; opacity: calc(.8 + var(--event-focus, 0) * .2); }
.sm-events-card::after { content: ''; position: absolute; inset: 0; z-index: 3; border: 1px solid #e1f6ff18; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 #82e4e516; }
.sm-events-cover, .sm-events-secondary-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-events-secondary, .sm-events-tertiary { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 0 0 calc(100% - var(--event-reveal-2, 0) * 100%)); }
.sm-events-tertiary { z-index: 2; clip-path: inset(0 0 0 calc(100% - var(--event-reveal-3, 0) * 100%)); }
.sm-events-secondary[hidden], .sm-events-tertiary[hidden] { display: none; }
.sm-events-caption { position: absolute; z-index: 2; inset: auto 0 0; padding: 56px 18px 18px; background: linear-gradient(transparent, #090810d9); opacity: var(--event-focus, 0); font: 750 clamp(1rem, 4.5vw, 1.25rem)/1.12 var(--font-primary); letter-spacing: -.03em; text-shadow: 0 2px 12px #0008; }
.sm-events-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1024px) {
  soulmate-mobile-events {
    --events-card-width: clamp(230px, 20vw, 320px);
    --events-row-gap: 16px;
    padding-block: 28px 60px;
  }
  .sm-events-heading { margin-bottom: 24px; }
}
                                                                                 
soulmate-mobile-events[data-reduced] .sm-events-gallery { padding-inline: 20px; gap: 18px; }
soulmate-mobile-events[data-reduced] .sm-events-row { display: contents; }
soulmate-mobile-events[data-reduced] .sm-events-item { position: relative; inset: auto; width: 100%; max-width: 340px; height: auto; aspect-ratio: 1.18; margin-inline: auto; transform: none !important; will-change: auto; }
soulmate-mobile-events[data-reduced] [data-duplicate] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sm-events-section { opacity: 1; }
  .sm-events-item { will-change: auto; }
}
