/* MSDS Events Manager 1.0 — styles deliberately scoped to this plugin. */
.msds-events,
.msds-event-single,
.msds-event-archive {
  --msds-ink: var(--msds-theme-primary, #173b56);
  --msds-accent: var(--msds-theme-accent, #188cad);
  --msds-body: #536373;
  --msds-muted: #728395;
  --msds-border: #e1eaf0;
  --msds-soft: #f5f9fc;
  --msds-shadow: 0 12px 34px rgba(15, 52, 79, .07);
  --msds-radius: 15px;
  color: var(--msds-body);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  max-width: 100%;
}
.msds-events *, .msds-events *::before, .msds-events *::after,
.msds-event-single *, .msds-event-single *::before, .msds-event-single *::after,
.msds-event-archive *, .msds-event-archive *::before, .msds-event-archive *::after {box-sizing: border-box;}
.msds-events a, .msds-event-single a, .msds-event-archive a {text-decoration: none;}
.msds-events a:focus-visible, .msds-events button:focus-visible,
.msds-event-single a:focus-visible, .msds-event-single button:focus-visible {outline: 3px solid var(--msds-accent);outline-offset: 3px;}
.msds-events-heading {font-size:clamp(26px,3vw,38px)!important;line-height:1.17!important;color:var(--msds-ink)!important;font-weight:700!important;letter-spacing:-.025em;margin:0 0 26px!important;}
.msds-events .msds-empty {margin:0;border:1px dashed var(--msds-border);background:var(--msds-soft);border-radius:var(--msds-radius);padding:28px;color:var(--msds-body);}
.msds-events-page {display:grid;gap:clamp(48px,7vw,90px);}
.msds-events {min-width:0;width:100%;}

/* Event preview cards */
.msds-event-card {display:flex;flex-direction:column;min-width:0;height:100%;background:#fff;border:1px solid var(--msds-border);border-radius:var(--msds-radius);overflow:hidden;box-shadow:var(--msds-shadow);transition:transform .25s ease,box-shadow .25s ease;}
.msds-event-card:hover {transform:translateY(-3px);box-shadow:0 16px 40px rgba(15,52,79,.12);}
.msds-event-card-media {display:block;position:relative;width:100%;aspect-ratio:1.51;overflow:hidden;background:#eef5f9;}
.msds-event-card-media img.msds-event-card-image {display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease;}
.msds-event-card:hover .msds-event-card-image {transform:scale(1.045);}
.msds-event-image-placeholder {width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#eaf4fa,#d7eaf4);color:#82acbf;font-size:70px;}
.msds-event-date-badge {position:absolute;top:16px;left:16px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:59px;height:63px;border-radius:10px;box-shadow:0 5px 14px rgba(0,0,0,.1);color:var(--msds-ink);}
.msds-event-date-badge strong {font-size:27px;line-height:1.05;font-weight:750;}
.msds-event-date-badge span {font-size:12px;font-weight:750;line-height:1.4;letter-spacing:.07em;text-transform:uppercase;color:var(--msds-accent);}
.msds-event-card-body {padding:24px 24px 26px;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;}
.msds-event-category {display:inline-flex;align-items:center;gap:7px;font-size:11px!important;line-height:1.35!important;letter-spacing:.12em;text-transform:uppercase;font-weight:800!important;color:var(--msds-accent);}
.msds-event-category::before {content:"";width:6px;height:6px;display:inline-block;border-radius:50%;background:currentColor;flex-shrink:0;}
.msds-event-card-title {color:var(--msds-ink)!important;font-size:clamp(19px,1.7vw,23px)!important;line-height:1.27!important;font-weight:700!important;letter-spacing:-.015em;margin:10px 0 12px!important;overflow-wrap:anywhere;}
.msds-event-card-title a {color:inherit!important;}
.msds-event-card-title a:hover {color:var(--msds-accent)!important;}
.msds-event-card-meta {display:grid;gap:7px;margin:0 0 12px;font-size:13px;line-height:1.55;color:var(--msds-body);}
.msds-event-card-meta>span {display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere;}
.msds-event-card-meta>span>span {color:var(--msds-accent);font-size:18px;line-height:19px;flex-shrink:0;}
.msds-event-card-excerpt {font-size:14px!important;line-height:1.7!important;color:var(--msds-body)!important;margin:0 0 18px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;}
.msds-event-card-more {display:inline-flex;align-items:center;gap:12px;margin-top:auto;font-size:14px;font-weight:750;color:var(--msds-ink)!important;min-height:32px;}
.msds-event-card-more span {transition:transform .2s ease;color:var(--msds-accent);font-size:18px;}
.msds-event-card-more:hover span {transform:translateX(5px);}

/* Upcoming: native scroll-snap carousel (supports touch/swipe without libraries). */
.msds-carousel {--msds-gap:22px;min-width:0;position:relative;}
.msds-carousel-viewport {overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:4px 2px 12px;margin:-4px -2px -12px;scroll-behavior:smooth;}
.msds-carousel-viewport::-webkit-scrollbar {display:none;}
.msds-carousel-track {display:flex;align-items:stretch;gap:var(--msds-gap);}
.msds-carousel-track>.msds-event-card {flex:0 0 calc((100% - (var(--msds-slides-desktop,3) - 1)*var(--msds-gap))/var(--msds-slides-desktop,3));width:calc((100% - (var(--msds-slides-desktop,3) - 1)*var(--msds-gap))/var(--msds-slides-desktop,3));scroll-snap-align:start;}
.msds-carousel-footer {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:26px;min-height:42px;}
.msds-carousel-dots {display:flex;flex-wrap:wrap;gap:9px;align-items:center;min-height:42px;}
.msds-carousel-dots[hidden] {display:none;}
.msds-carousel-dot {background:#cbdbe4!important;border:0!important;box-shadow:none!important;border-radius:100%!important;width:9px!important;height:9px!important;padding:0!important;min-height:0!important;min-width:0!important;cursor:pointer;transition:background .2s ease,transform .2s ease;}
.msds-carousel-dot.is-active {background:var(--msds-accent)!important;transform:scale(1.3);}
.msds-carousel-actions {display:flex;align-items:center;gap:9px;margin-left:auto;}
.msds-carousel-actions button {display:grid!important;place-items:center;width:42px!important;height:42px!important;min-width:42px;min-height:42px;padding:0!important;border-radius:50%!important;border:1px solid var(--msds-border)!important;background:#fff!important;color:var(--msds-ink)!important;font-family:inherit;cursor:pointer;box-shadow:none!important;transition:color .2s,background .2s,border-color .2s;}
.msds-carousel-actions button:hover:not(:disabled) {background:var(--msds-ink)!important;color:white!important;border-color:var(--msds-ink)!important;}
.msds-carousel-actions button:disabled {opacity:.36;cursor:not-allowed;}
.msds-carousel-actions button[hidden] {display:none!important;}
.msds-carousel-actions button span {font-size:20px;line-height:1;}
.msds-carousel-actions .msds-carousel-pause span {font-size:15px;font-weight:800;}
.msds-carousel:has(.msds-event-card:only-child) .msds-carousel-footer {display:none;}

/* Past events — always 9 items per page, 3 / 2 / 1 columns. */
.msds-past-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 23px;align-items:stretch;}
.msds-pagination {display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:40px;}
.msds-pagination .page-numbers {display:inline-grid;place-items:center;border:1px solid var(--msds-border);border-radius:9px;min-width:42px;height:42px;padding:0 11px;text-decoration:none!important;color:var(--msds-ink)!important;background:white;font-weight:650;}
.msds-pagination .page-numbers.current,.msds-pagination a.page-numbers:hover {background:var(--msds-ink);color:white!important;border-color:var(--msds-ink);}
.msds-pagination .page-numbers.dots {border:0;background:transparent;}

/* Internal page — WooCommerce simple product layout. */
.msds-event-single {background:#fff;padding:clamp(28px,4vw,56px) 0 clamp(60px,7vw,100px);}
.msds-single-container,.msds-archive-wrap {width:min(100% - 48px,1200px);margin-inline:auto;}
.msds-breadcrumb {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 34px;font-size:13px;line-height:1.5;color:var(--msds-muted);}
.msds-breadcrumb a {color:var(--msds-body)!important;}
.msds-breadcrumb a:hover {color:var(--msds-accent)!important;}
.msds-breadcrumb>span:last-child {max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.msds-single-product-layout {display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:clamp(30px,4.5vw,66px);align-items:start;}
.msds-single-gallery,.msds-single-summary {min-width:0;}
.msds-single-gallery-main {width:100%;border-radius:16px;background:var(--msds-soft);overflow:hidden;aspect-ratio:1.12;}
.msds-gallery-open {position:relative;width:100%;height:100%;display:block;background:transparent;border:none;padding:0;margin:0;cursor:zoom-in;}
.msds-gallery-main-image {display:block;width:100%;height:100%;object-fit:cover;}
.msds-gallery-zoom {position:absolute;right:17px;bottom:17px;width:42px;height:42px;display:grid;place-items:center;background:rgba(255,255,255,.93);color:var(--msds-ink);border-radius:10px;font-size:23px;box-shadow:0 4px 14px rgba(0,0,0,.12);}
.msds-single-gallery-placeholder {height:100%;width:100%;display:grid;place-items:center;background:linear-gradient(135deg,#eaf4fa,#d7eaf4);font-size:100px;color:#88acbd;}
.msds-gallery-thumbs {display:flex;gap:10px;margin-top:13px;padding:2px 1px 7px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;}
.msds-gallery-thumb {flex:0 0 88px;width:88px;height:75px;border:2px solid transparent;border-radius:10px;padding:2px;overflow:hidden;cursor:pointer;background:#fff;transition:border-color .2s;}
.msds-gallery-thumb.is-active,.msds-gallery-thumb:hover {border-color:var(--msds-accent);}
.msds-gallery-thumb img {width:100%;height:100%;object-fit:cover;display:block;border-radius:5px;}
.msds-photo-modal {padding:0;border:0;background:#101c28;border-radius:13px;max-width:min(95vw,1280px);max-height:95vh;overflow:hidden;box-shadow:0 25px 75px rgba(0,0,0,.4);}
.msds-photo-modal::backdrop {background:rgba(10,22,32,.88);}
.msds-photo-modal img {display:block;max-width:min(90vw,1200px);max-height:90vh;object-fit:contain;}
.msds-modal-close {z-index:2;position:absolute;right:12px;top:12px;color:#172a40!important;background:#fff!important;border:0!important;box-shadow:0 3px 12px rgba(0,0,0,.15);border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font-size:28px;cursor:pointer;}
.msds-single-eyebrow {margin:0 0 14px;}
.msds-single-title {margin:0 0 20px!important;padding:0!important;font-size:clamp(30px,3.5vw,49px)!important;line-height:1.16!important;font-weight:750!important;letter-spacing:-.035em;color:var(--msds-ink)!important;overflow-wrap:anywhere;}
.msds-single-lead {margin:0 0 25px!important;font-size:16px;line-height:1.75;color:var(--msds-body);}
.msds-single-lead p {margin:0 0 12px;}
.msds-event-details {display:grid;gap:21px;border-top:1px solid var(--msds-border);border-bottom:1px solid var(--msds-border);padding:25px 0;margin:0 0 26px;}
.msds-event-detail {display:flex;gap:13px;align-items:flex-start;min-width:0;}
.msds-detail-icon {display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;background:var(--msds-soft);border-radius:11px;color:var(--msds-accent);}
.msds-detail-icon svg {width:21px;height:21px;}
.msds-event-detail>div {min-width:0;overflow-wrap:anywhere;}
.msds-detail-label {display:block;font-size:12px;line-height:1.4;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--msds-muted);margin:1px 0 5px;}
.msds-event-detail strong {display:block;color:var(--msds-ink);font-weight:700;font-size:16px;line-height:1.5;}
.msds-detail-subtext {display:block;font-size:14px;margin-top:2px;color:var(--msds-body);line-height:1.6;}
.msds-button {display:inline-flex;align-items:center;justify-content:center;gap:13px;max-width:100%;min-height:53px;border-radius:9px;background:var(--msds-accent);color:white!important;font-weight:750!important;font-size:15px!important;line-height:1.35!important;padding:15px 27px;border:1px solid var(--msds-accent);text-align:center;text-decoration:none!important;transition:background .2s,transform .2s,box-shadow .2s;}
.msds-button:hover {background:var(--msds-ink);border-color:var(--msds-ink);color:white!important;transform:translateY(-1px);box-shadow:0 7px 16px rgba(15,52,79,.11);}
.msds-single-register {width:min(100%,325px);}
.msds-single-register span {font-size:17px;}
.msds-single-back-link {display:table;margin-top:18px;color:var(--msds-ink)!important;font-size:14px;font-weight:650;}
.msds-single-back-link:hover {color:var(--msds-accent)!important;}
.msds-single-content-layout {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(35px,5vw,70px);align-items:start;margin-top:clamp(65px,7vw,95px);}
.msds-single-content-layout:has(.msds-single-block:only-child) {grid-template-columns:1fr;}
.msds-single-block {min-width:0;}
.msds-section-heading {margin:0 0 22px;}
.msds-kicker {display:block;color:var(--msds-accent);font-size:12px;font-weight:800;letter-spacing:.12em;line-height:1.4;text-transform:uppercase;margin-bottom:7px;}
.msds-section-heading h2 {margin:0!important;padding:0!important;color:var(--msds-ink)!important;font-size:clamp(24px,2.7vw,32px)!important;font-weight:750!important;line-height:1.25!important;letter-spacing:-.02em;}
.msds-richtext {font-size:15px;line-height:1.85;color:var(--msds-body);overflow-wrap:anywhere;}
.msds-richtext p {line-height:inherit;margin:0 0 17px;}
.msds-richtext h2,.msds-richtext h3,.msds-richtext h4 {color:var(--msds-ink);line-height:1.3;margin:24px 0 12px;}
.msds-richtext ul,.msds-richtext ol {padding-left:22px;margin:0 0 18px;}
.msds-richtext li {margin-bottom:7px;}
.msds-richtext img {max-width:100%;height:auto;border-radius:10px;}
.msds-richtext iframe {max-width:100%;}
.msds-richtext a {color:var(--msds-accent)!important;text-decoration:underline;}
.msds-attendee-block {padding:27px;border-radius:14px;background:var(--msds-soft);border:1px solid var(--msds-border);}
.msds-sponsors {margin-top:clamp(64px,7vw,94px);}
.msds-sponsors-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.msds-sponsor {display:flex;flex-direction:column;gap:14px;justify-content:center;align-items:center;text-align:center;min-height:163px;padding:20px 16px;border:1px solid var(--msds-border);border-radius:12px;background:white;transition:border-color .2s,box-shadow .2s;min-width:0;}
a.msds-sponsor:hover {border-color:var(--msds-accent);box-shadow:var(--msds-shadow);}
.msds-sponsor-logo {display:grid;place-items:center;width:100%;height:76px;}
.msds-sponsor-logo img {max-height:76px;max-width:100%;width:auto;height:auto;object-fit:contain;}
.msds-sponsor-name {font-size:13px;font-weight:700;color:var(--msds-ink);line-height:1.4;overflow-wrap:anywhere;}
.msds-single-bottom {margin-top:50px;}
.msds-button-outline {background:transparent;border-color:var(--msds-border);color:var(--msds-ink)!important;}
.msds-button-outline:hover {background:var(--msds-ink);border-color:var(--msds-ink);color:white!important;}

/* Automatic listing /society-events/ */
.msds-archive-hero {padding:clamp(52px,7vw,95px) 0;background:linear-gradient(128deg,#173b56,#275b78);color:white;}
.msds-archive-hero .msds-kicker {color:#9bdbed;}
.msds-archive-hero h1 {font-size:clamp(38px,5vw,62px)!important;line-height:1.1!important;font-weight:750!important;color:white!important;margin:6px 0 17px!important;letter-spacing:-.03em;}
.msds-archive-hero p {font-size:clamp(15px,1.5vw,18px);max-width:670px;line-height:1.65;color:#e4f1f5;margin:0;}
.msds-archive-body {padding-top:clamp(45px,5vw,72px);padding-bottom:clamp(65px,7vw,110px);}

/* Tablets: landscape and portrait. */
@media(max-width:1024px) {
  .msds-carousel {--msds-gap:18px;}
  .msds-carousel-track>.msds-event-card {flex-basis:calc((100% - (var(--msds-slides-tablet,2) - 1)*var(--msds-gap))/var(--msds-slides-tablet,2));width:calc((100% - (var(--msds-slides-tablet,2) - 1)*var(--msds-gap))/var(--msds-slides-tablet,2));}
  .msds-past-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 19px;}
  .msds-event-card-body {padding:21px 20px 23px;}
  .msds-single-container,.msds-archive-wrap {width:min(100% - 44px,1200px);}
  .msds-single-product-layout {gap:28px;}
  .msds-single-title {font-size:clamp(29px,3.6vw,40px)!important;}
  .msds-single-content-layout {gap:32px;}
  .msds-sponsors-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:820px) {
  .msds-single-product-layout {grid-template-columns:minmax(0,1fr);gap:30px;}
  .msds-single-gallery-main {aspect-ratio:1.45;}
  .msds-single-summary {max-width:720px;}
  .msds-single-title {font-size:clamp(33px,4.8vw,43px)!important;}
  .msds-single-content-layout {grid-template-columns:1fr;gap:34px;}
  .msds-attendee-block {padding:25px;}
}
/* Mobile: full-width content, one card, compact type, touch targets. */
@media(max-width:767px) {
  .msds-events-page {gap:56px;}
  .msds-events-heading {font-size:clamp(25px,6.5vw,31px)!important;margin-bottom:20px!important;}
  .msds-carousel {--msds-gap:15px;}
  .msds-carousel-track>.msds-event-card {flex-basis:calc((100% - (var(--msds-slides-mobile,1) - 1)*var(--msds-gap))/var(--msds-slides-mobile,1));width:calc((100% - (var(--msds-slides-mobile,1) - 1)*var(--msds-gap))/var(--msds-slides-mobile,1));}
  .msds-past-grid {grid-template-columns:minmax(0,1fr);gap:19px;}
  .msds-event-card-media {aspect-ratio:1.57;}
  .msds-event-card-body {padding:20px 19px 23px;}
  .msds-event-card-title {font-size:21px!important;}
  .msds-event-card-excerpt {font-size:14px!important;}
  .msds-carousel-footer {margin-top:19px;}
  .msds-carousel-actions {gap:7px;}
  .msds-carousel-actions button {width:42px!important;height:42px!important;}
  .msds-pagination {margin-top:28px;}
  .msds-single-container,.msds-archive-wrap {width:calc(100% - 36px);}
  .msds-event-single {padding-top:24px;padding-bottom:60px;}
  .msds-breadcrumb {font-size:12px;gap:7px;margin-bottom:24px;}
  .msds-breadcrumb>span:last-child {max-width:180px;}
  .msds-single-product-layout {gap:27px;}
  .msds-single-gallery-main {aspect-ratio:1.22;border-radius:12px;}
  .msds-gallery-thumb {width:68px;height:64px;flex-basis:68px;}
  .msds-gallery-thumbs {gap:8px;}
  .msds-gallery-zoom {right:10px;bottom:10px;width:35px;height:35px;font-size:20px;}
  .msds-single-title {font-size:clamp(29px,8vw,39px)!important;line-height:1.14!important;margin-bottom:16px!important;}
  .msds-single-lead {font-size:15px;line-height:1.7;margin-bottom:20px!important;}
  .msds-event-details {gap:17px;margin-bottom:22px;padding:20px 0;}
  .msds-event-detail strong {font-size:15px;}
  .msds-detail-icon {flex-basis:40px;width:40px;height:40px;}
  .msds-single-register {width:100%;min-height:50px;}
  .msds-single-content-layout {margin-top:53px;gap:35px;}
  .msds-section-heading h2 {font-size:clamp(24px,6.5vw,29px)!important;}
  .msds-attendee-block {padding:22px 19px;}
  .msds-richtext {font-size:15px;line-height:1.8;}
  .msds-sponsors {margin-top:58px;}
  .msds-sponsors-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
  .msds-sponsor {min-height:143px;padding:15px 10px;gap:9px;}
  .msds-sponsor-logo {height:64px;}
  .msds-sponsor-logo img {max-height:64px;}
  .msds-sponsor-name {font-size:12px;}
  .msds-single-bottom {margin-top:38px;}
  .msds-archive-hero {padding:48px 0;}
  .msds-archive-body {padding-top:44px;padding-bottom:65px;}
}
@media(max-width:390px) {
  .msds-single-container,.msds-archive-wrap {width:calc(100% - 30px);}
  .msds-event-card-body {padding:18px 16px 21px;}
  .msds-event-card-title {font-size:20px!important;}
  .msds-event-date-badge {top:11px;left:11px;min-width:53px;height:56px;}
  .msds-event-date-badge strong {font-size:24px;}
  .msds-single-title {font-size:28px!important;}
  .msds-sponsor {padding:12px 8px;}
  .msds-sponsor-name {font-size:11px;}
}
@media(prefers-reduced-motion:reduce) {
  .msds-events *, .msds-event-single * {scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;}
}

/* v2: registration is optional and requires both fields. No synthesized descriptions. */
.msds-event-card-actions {margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%;}
.msds-event-card-actions .msds-event-card-more {margin-top:0;}
.msds-event-card-actions .msds-card-register {min-height:40px;padding:9px 16px;font-size:13px!important;border-radius:8px;}
.msds-event-card-actions .msds-card-register span {font-size:15px;}
.msds-event-single .msds-source-link {margin:clamp(25px,3vw,45px) 0 0;font-size:13px;overflow-wrap:anywhere;}
.msds-event-single .msds-source-link a {color:var(--msds-accent);text-decoration:underline;}
.msds-event-single .msds-attendee-block .msds-richtext li {line-height:1.65;margin-bottom:9px;}
.msds-events :is(img,svg), .msds-event-single :is(img,svg) {max-width:100%;}
@media(max-width:1024px) {
  .msds-event-card-title {font-size:clamp(19px,2.3vw,22px)!important;}
  .msds-single-content-layout {margin-top:clamp(38px,5vw,62px);}
  .msds-event-card-actions {align-items:flex-start;}
}
@media(max-width:767px) {
  .msds-events,.msds-event-single {overflow-wrap:break-word;}
  .msds-event-card {border-radius:12px;}
  .msds-event-card-media {aspect-ratio:1.55;}
  .msds-event-card-body {gap:0;}
  .msds-event-card-title {font-size:clamp(19px,5.5vw,22px)!important;line-height:1.32!important;}
  .msds-event-card-actions {gap:9px;}
  .msds-event-card-actions .msds-card-register {flex:0 1 auto;min-height:44px;}
  .msds-single-product-layout {grid-template-columns:minmax(0,1fr);}
  .msds-single-gallery-main {aspect-ratio:1.2;}
  .msds-single-gallery-main img {object-position:center 34%;}
  .msds-event-details {margin-bottom:16px;}
  .msds-attendee-block {padding:21px 18px;}
  .msds-sponsors-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .msds-sponsor {min-height:130px;}
}
@media(max-width:430px) {
  .msds-event-card-body {padding:18px 16px 21px;}
  .msds-event-card-actions {flex-direction:column;align-items:stretch;}
  .msds-event-card-actions .msds-card-register {width:100%;}
  .msds-event-card-actions .msds-event-card-more {width:fit-content;}
  .msds-sponsors-grid {grid-template-columns:1fr;}
  .msds-sponsor {min-height:110px;}
  .msds-sponsor-logo {max-height:62px;}
  .msds-event-single .msds-single-title {font-size:clamp(27px,7.4vw,34px)!important;}
}
/* Equal-height cards in every scroll-snap slide. */
.msds-carousel-track > .msds-event-card {height:auto;align-self:stretch;}
