.hmsc-spad { container-type: inline-size; position: relative; --hmsc-gutter: clamp(2rem, 5%, 3rem); }
.hmsc-spad .hmsc-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: .25rem .75rem; }
.hmsc-spad:has(.hmsc-controls:not([hidden])) .hmsc-track { margin-inline: var(--hmsc-gutter); }
.hmsc-spad .hmsc-track { scrollbar-width: none; }
.hmsc-spad .hmsc-track::-webkit-scrollbar { display: none; }
@container (min-width: 540px) {
    .hmsc-spad .hmsc-track { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@container (min-width: 850px) {
    .hmsc-spad .hmsc-track { grid-auto-columns: calc((100% - 3rem) / 4); }
}
.hmsc-spad .hmsc-card { min-width: 0; margin: 0; border: 1px solid #ccc; border-radius: .75rem; scroll-snap-align: start; }
.hmsc-spad .hmsc-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.hmsc-spad .hmsc-card a:focus-visible { outline-offset: -3px; }
.hmsc-spad .hmsc-card a:hover span { text-decoration: underline; }
.hmsc-spad .hmsc-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .7rem .7rem 0 0; }
.hmsc-spad .hmsc-card span { display: block; padding: .875rem; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.hmsc-spad .hmsc-controls[hidden] { display: none; }
.hmsc-spad .hmsc-controls button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: calc(var(--hmsc-gutter) - .25rem); aspect-ratio: 1; padding: 0; border: 1px solid #ccc; border-radius: 50%; background: #fff; color: #222; font: 1.5rem/1 sans-serif; cursor: pointer; }
.hmsc-spad .hmsc-controls button:first-child { inset-inline-start: 0; }
.hmsc-spad .hmsc-controls button:last-child { inset-inline-end: 0; }
.hmsc-spad .hmsc-controls button:disabled { opacity: .5; cursor: default; }
