/*
 * NS Management Bermuda — unified DEV-aligned layout / v2.3.0
 * Native markup only. Replaces the earlier child-theme DOM transformations.
 */
:root {
  --nsmb-wide-gutter: clamp(18px, 2.7vw, 54px);
  --nsmb-card-blue: #367fae;
  --nsmb-panel-bg: #edf1f5;
}

/* Fluid containers: no artificial 1280px content cap on Bermuda sections. */
body.nsmb-bermuda-site .nsmb-page:not(.nsmb-legal) .nsmb-section,
body.nsmb-bermuda-site .nsmb-home-page .nsmb-section {
  padding-inline: var(--nsmb-wide-gutter) !important;
}
body.nsmb-bermuda-site .nsmb-page:not(.nsmb-legal) .nsmb-container {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  min-width: 0 !important;
}
body.nsmb-bermuda-site .nsmb-page:not(.nsmb-legal) .nsmb-title-xl,
body.nsmb-bermuda-site .nsmb-page:not(.nsmb-legal) .nsmb-hero-inner {
  max-width: none;
}
body.nsmb-bermuda-site .nsmb-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Site Identity (actual media, not recreated text/SVG). */
.site-header .nav-inner {
  padding-inline: var(--nsmb-wide-gutter) !important;
  gap: clamp(12px, 2vw, 36px) !important;
}
.site-header .nav-logo,
.site-header a.nav-logo {
  min-width: 0 !important;
  max-width: 200px !important;
  height: 100% !important;
  flex: 0 1 auto !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-header .nav-logo img.nsmb-official-logo,
.site-header a.nav-logo > img.nsmb-official-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: 50px !important;
  max-width: 188px !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .nav-logo-text { display: none !important; }
.site-header #ns-primary-menu > li > a,
.site-header .ns-primary-menu > li > a {
  font-family: 'Montserrat','Century Gothic',Arial,sans-serif !important;
  font-size: clamp(10px, .65vw, 12px) !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}
.mobile-nav a.mobile-nav-logo { max-width: 100%; }
.mobile-nav .mobile-nav-logo img.nsmb-official-logo {
  width: auto !important;
  height: auto !important;
  max-height: 55px !important;
  max-width: min(230px, 65vw) !important;
  object-fit: contain !important;
}

/* Service cards: same pale panel + photo-filled initial treatment as DEV. */
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin-top: 42px !important;
  align-items: stretch !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card {
  min-width: 0 !important;
  height: 100% !important;
  border: 1px solid #d9dfe5 !important;
  border-right: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background: #fff !important;
  transform: none !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card:last-child {
  border-right: 1px solid #d9dfe5 !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-card-img,
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-service-letter-panel.nsmb-native-photo-letter {
  width: 100% !important;
  height: clamp(200px, 15.4vw, 272px) !important;
  min-height: clamp(200px, 15.4vw, 272px) !important;
  border: none !important;
  border-radius: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(128deg, #f4f5f6 0%, #eaf0f7 100%) !important;
  box-shadow: inset 0 -2px 0 var(--nsmb-card-blue) !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  isolation: isolate !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-service-letter-panel.nsmb-native-photo-letter:before {
  content: attr(data-num) !important;
  position: absolute !important;
  top: 22px !important;
  left: 26px !important;
  right: auto !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  line-height: 1 !important;
  color: #6191bd !important;
  background: transparent !important;
  z-index: 2 !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-service-letter-panel.nsmb-native-photo-letter > img.nsmb-native-letter-img {
  display: block !important;
  position: relative !important;
  width: min(84%, 350px) !important;
  height: min(90%, 250px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  z-index: 1 !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-card-body {
  padding: clamp(24px, 2.4vw, 40px) !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card-body .nsmb-card-num {
  display: none !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card-title {
  margin: 0 0 16px !important;
  color: #102338 !important;
  font-size: clamp(17px, 1.4vw, 23px) !important;
  font-weight: 600 !important;
  letter-spacing: .03em !important;
  line-height: 1.32 !important;
}
body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card-text {
  font-size: clamp(13px, .95vw, 16px) !important;
  line-height: 1.7 !important;
}

/* Five original profiles rendered server-side. A single CSS grid, no JS clones. */
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: clamp(26px, 3vw, 46px) 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-top: 3px solid var(--nsmb-card-blue) !important;
  border-right: 1px solid #d9dfe5 !important;
  box-shadow: 0 18px 55px rgba(7,21,34,.08) !important;
  background: white !important;
  align-items: stretch !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card {
  position: relative !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 340px !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(22px, 2vw, 36px) clamp(16px, 1.75vw, 32px) 96px !important;
  border: 0 !important;
  border-left: 1px solid #d9dfe5 !important;
  background: white !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  transition: background .2s ease !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card:hover {
  background: #eff4f8 !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card h3 {
  margin: 0 0 22px !important;
  font-family: 'Montserrat','Century Gothic',Arial,sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(9px, .74vw, 11.5px) !important;
  line-height: 1.6 !important;
  letter-spacing: .17em !important;
  text-transform: uppercase !important;
  color: #2f79b2 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
  z-index: 1 !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card p {
  margin: 0 !important;
  font-size: clamp(12px, .87vw, 15px) !important;
  line-height: 1.76 !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  color: #5d646d !important;
  overflow-wrap: break-word !important;
  z-index: 1 !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card .nsmb-profile-number {
  position: absolute !important;
  right: clamp(16px, 1.5vw, 26px) !important;
  bottom: 16px !important;
  color: rgba(54,129,176,.10) !important;
  font-size: clamp(56px, 4.7vw, 86px) !important;
  font-weight: 200 !important;
  line-height: 1 !important;
  letter-spacing: -.08em !important;
  z-index: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
body.nsmb-bermuda-site #investment-profiles .nsmb-note {
  margin-top: 32px !important;
}

/* Regulatory file actions keep the same DEV-like button rhythm. */
.nsmb-regulatory-downloads { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.nsmb-regulatory-downloads a { max-width: 100%; }

/* Responsive: progressive layout instead of forcing five 180px cards on tablets. */
@media (max-width: 1100px) {
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card {
    border-bottom: 1px solid #d9dfe5 !important;
    min-height: 320px !important;
  }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card h3 { font-size: 11px !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card p { font-size: 14px !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card { border-bottom: 1px solid #d9dfe5 !important; }
}
@media (max-width: 760px) {
  .site-header .nav-inner { padding-inline: 18px !important; }
  .site-header .nav-logo img.nsmb-official-logo { max-width: min(168px, 48vw) !important; max-height: 48px !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card { min-height: 295px !important; padding: 24px 22px 76px !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-grid-3 { grid-template-columns: 1fr !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card { border-right: 1px solid #d9dfe5 !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-card-img,
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-service-letter-panel.nsmb-native-photo-letter {
    height: 225px !important;
    min-height: 225px !important;
  }
  .nsmb-regulatory-downloads a { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  :root { --nsmb-wide-gutter: 16px; }
  .site-header .nav-logo img.nsmb-official-logo { max-width: min(155px, 53vw) !important; max-height: 44px !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-grid { grid-template-columns: 1fr !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card {
    min-height: 0 !important;
    padding: 26px 26px 85px !important;
  }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card h3 { font-size: 11px !important; margin-bottom: 15px !important; }
  body.nsmb-bermuda-site #investment-profiles .nsmb-profile-card p { font-size: 14px !important; }
  body.nsmb-bermuda-site .nsmb-page .nsmb-services-letter-section .nsmb-card .nsmb-card-body { padding: 24px !important; }
}

/* Home page and split panels: keep the same full-bleed section rhythm as DEV. */
body.nsmb-bermuda-site .nsmb-page.nsmb-home-page .nsmb-bermuda-facts-section {
  padding-inline: var(--nsmb-wide-gutter) !important;
}
body.nsmb-bermuda-site .nsmb-page.nsmb-home-page .nsmb-bermuda-facts-inner {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
}
body.nsmb-bermuda-site .nsmb-page.nsmb-home-page .nsmb-split-panel {
  padding-inline: clamp(26px, 3vw, 62px) !important;
}


/* Bermuda v2.3.3: centered one-at-a-time team carousel.
   No cropped photos, no partial cards, complete biographies at all breakpoints. */
body.nsmb-bermuda-site .nsmb-page.nsmb-about-page .nsmb-team-section {
  overflow: visible !important;
}
body.nsmb-bermuda-site .nsmb-page.nsmb-about-page .nsmb-team-section .nsmb-container {
  width: 100% !important;
  max-width: 1270px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.nsmb-bermuda-site .nsmb-team-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:25px;
  margin-bottom:clamp(25px,3.1vw,44px);
}
body.nsmb-bermuda-site .nsmb-team-heading { min-width:0; }
body.nsmb-bermuda-site .nsmb-team-header .nsmb-kicker { margin-bottom:14px; }
body.nsmb-bermuda-site .nsmb-team-header .nsmb-title-xl {
  margin:0 !important;
  font-size:clamp(31px,3.15vw,53px) !important;
  line-height:1.08 !important;
}
body.nsmb-bermuda-site .nsmb-team-controls {
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
  flex:0 0 auto;padding-bottom:5px;
}
body.nsmb-bermuda-site .nsmb-team-counter {
  color:#77848d;font-size:11px;font-weight:600;letter-spacing:.16em;
  font-variant-numeric:tabular-nums;margin-right:12px;white-space:nowrap;
}
body.nsmb-bermuda-site .nsmb-team-prev,
body.nsmb-bermuda-site .nsmb-team-next {
  appearance:none;border:1px solid #cdd7dd;border-radius:0;background:#fff;
  color:#287db0;width:46px;min-width:46px;height:45px;
  display:inline-flex;align-items:center;justify-content:center;
  font:400 23px/1 Arial,sans-serif;cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
body.nsmb-bermuda-site .nsmb-team-prev:hover,
body.nsmb-bermuda-site .nsmb-team-next:hover,
body.nsmb-bermuda-site .nsmb-team-prev:focus-visible,
body.nsmb-bermuda-site .nsmb-team-next:focus-visible {
  background:#367fae;color:#fff;border-color:#367fae;
}
body.nsmb-bermuda-site .nsmb-team-carousel {width:100%;min-width:0;max-width:100%;margin:0 auto;}
body.nsmb-bermuda-site .nsmb-team-stage {
  width:100%;min-width:0;position:relative;
  border:1px solid #e0e5e9;background:#fff;
  box-shadow:0 16px 45px rgba(14,31,45,.055);
  outline-offset:6px;
}
body.nsmb-bermuda-site .nsmb-team-slide,
body.nsmb-bermuda-site .nsmb-team-slide[hidden] {display:none !important;}
body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {
  display:grid !important;
  grid-template-columns:minmax(0,45%) minmax(0,55%);
  align-items:stretch;
  width:100%;min-width:0;margin:0;gap:0;
  animation:nsmbTeamFade .23s ease-out both;
}
@keyframes nsmbTeamFade {from{opacity:.68}to{opacity:1}}
body.nsmb-bermuda-site .nsmb-team-photo {
  background:#f2f5f8;
  display:flex;align-items:center;justify-content:center;
  padding:clamp(18px,2vw,34px);
  min-height:clamp(350px,33vw,545px);
  width:100%;min-width:0;overflow:hidden;
}
body.nsmb-bermuda-site .nsmb-team-photo img {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:530px !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  filter:none !important;
  transform:none !important;
  border-radius:0 !important;
}
body.nsmb-bermuda-site .nsmb-team-photo .nsmb-team-initials {
  display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:1/1;color:#367fae;
  font:400 clamp(65px,10vw,130px)/1 'Montserrat',Arial,sans-serif;
}
body.nsmb-bermuda-site .nsmb-team-copy {
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(26px,3.6vw,63px);
  min-width:0;color:#102033;
}
body.nsmb-bermuda-site .nsmb-team-number {
  font-size:10px !important;letter-spacing:.24em !important;
  color:#367fae !important;font-weight:700 !important;
  margin:0 0 24px !important;
}
body.nsmb-bermuda-site .nsmb-team-number span {color:#778993;font-weight:500;}
body.nsmb-bermuda-site .nsmb-team-name {
  margin:0 0 9px !important;
  font-size:clamp(27px,2.45vw,39px) !important;
  font-weight:600 !important;letter-spacing:.005em !important;
  line-height:1.15 !important;text-transform:uppercase;
  color:#0b1a2a !important;
}
body.nsmb-bermuda-site .nsmb-team-role {
  margin:0 0 clamp(23px,2.4vw,37px) !important;
  color:#367fae !important;
  font-size:10px !important;font-weight:600 !important;
  line-height:1.6 !important;letter-spacing:.14em !important;
  text-transform:uppercase;
}
body.nsmb-bermuda-site .nsmb-team-bio-text {border-top:1px solid #e3e8ec;padding-top:clamp(18px,2vw,28px);}
body.nsmb-bermuda-site .nsmb-team-bio-text p,
body.nsmb-bermuda-site .nsmb-team-bio-text blockquote {
  font-size:clamp(13px,.93vw,15px) !important;
  font-weight:400 !important;line-height:1.82 !important;
  color:#56636e !important;
  margin:0 0 17px !important;
  max-width:74ch;
}
body.nsmb-bermuda-site .nsmb-team-bio-text blockquote {
  border-left:3px solid #367fae;
  padding:2px 0 2px 17px;
  font-style:italic !important;
  color:#415260 !important;
}
body.nsmb-bermuda-site .nsmb-team-choices {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;max-width:850px;margin:22px auto 0;
}
body.nsmb-bermuda-site .nsmb-team-choice {
  min-width:0;min-height:70px;border:1px solid #e1e6e9;
  border-top:3px solid #e1e6e9;background:#fff;
  padding:13px clamp(11px,1.5vw,20px);display:flex;
  flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;
  cursor:pointer;text-align:left;transition:background .18s ease,border-color .18s ease;
}
body.nsmb-bermuda-site .nsmb-team-choice span {
  color:#3681b0;letter-spacing:.18em;font-size:10px;font-weight:600;
}
body.nsmb-bermuda-site .nsmb-team-choice strong {
  font-size:clamp(11px,.9vw,13px);font-weight:600;
  color:#243343;line-height:1.4;
}
body.nsmb-bermuda-site .nsmb-team-choice:hover,
body.nsmb-bermuda-site .nsmb-team-choice:focus-visible,
body.nsmb-bermuda-site .nsmb-team-choice.is-active {
  background:#f5f8fa;border-top-color:#3681b0;
}
@media (max-width:950px) {
  body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {
    grid-template-columns:minmax(0,42%) minmax(0,58%);
  }
  body.nsmb-bermuda-site .nsmb-team-photo {
    padding:18px;min-height:360px;
  }
  body.nsmb-bermuda-site .nsmb-team-copy {padding:clamp(20px,3.2vw,35px);}
  body.nsmb-bermuda-site .nsmb-team-bio-text p,
  body.nsmb-bermuda-site .nsmb-team-bio-text blockquote {font-size:13px !important;line-height:1.65 !important;}
}
@media (max-width:730px) {
  body.nsmb-bermuda-site .nsmb-team-header {flex-wrap:wrap;align-items:flex-end;gap:15px;}
  body.nsmb-bermuda-site .nsmb-team-controls {margin-left:auto;}
  body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {grid-template-columns:minmax(0,1fr);}
  body.nsmb-bermuda-site .nsmb-team-photo {
    padding:18px;min-height:0;height:auto;max-height:none;aspect-ratio:1.45 / 1;
  }
  body.nsmb-bermuda-site .nsmb-team-photo img {width:auto !important;height:100% !important;max-height:100% !important;max-width:100% !important;object-fit:contain !important;}
  body.nsmb-bermuda-site .nsmb-team-copy {padding:clamp(20px,5vw,35px);}
  body.nsmb-bermuda-site .nsmb-team-number {margin-bottom:17px !important;}
  body.nsmb-bermuda-site .nsmb-team-role {margin-bottom:19px !important;}
  body.nsmb-bermuda-site .nsmb-team-choices {gap:7px;margin-top:15px;}
  body.nsmb-bermuda-site .nsmb-team-choice {padding:10px;min-height:63px;}
}
@media (max-width:480px) {
  body.nsmb-bermuda-site .nsmb-team-photo {aspect-ratio:1 / 1;}
}
@media (max-width:410px) {
  body.nsmb-bermuda-site .nsmb-team-header .nsmb-title-xl {font-size:31px !important;}
  body.nsmb-bermuda-site .nsmb-team-prev,
  body.nsmb-bermuda-site .nsmb-team-next {width:41px;min-width:41px;height:41px;}
  body.nsmb-bermuda-site .nsmb-team-counter {margin-right:3px;}
  body.nsmb-bermuda-site .nsmb-team-choice strong {font-size:10px;}
}
@media (prefers-reduced-motion:reduce) {
  body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {animation:none;}
  body.nsmb-bermuda-site .nsmb-team-choice,
  body.nsmb-bermuda-site .nsmb-team-prev,
  body.nsmb-bermuda-site .nsmb-team-next {transition:none;}
}

/* Bermuda v2.3.2 — home CTA de-duplication, including legacy child theme injection. */
body.nsmb-bermuda-site .nsmb-home-page .nsmb-actions:has(.nsmb-home-crs-primary) > a.nsmb-btn.outline[href*="crs" i] {
  display:none !important;
}

/* Bermuda v2.4.2 — full, uncropped ORIGINAL photo render.
   Prior v2.4.1 fallbacks were embedded into oversized 700x700 grey canvases;
   the image files are now trimmed to native photo boundaries. */
body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    align-items: stretch;
}
body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide .nsmb-team-photo {
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f6f8fa !important;
    padding: clamp(16px, 2vw, 28px) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}
body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide .nsmb-team-photo img.nsmb-team-portrait {
    box-sizing: border-box !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(620px, 70vh) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    scale: 1 !important;
    clip-path: none !important;
    border-radius: 0 !important;
    filter: none !important;
    margin: 0 auto !important;
}
@media (max-width: 730px) {
    body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide.is-active:not([hidden]) {
        grid-template-columns: minmax(0, 1fr);
    }
    body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide .nsmb-team-photo {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 12px !important;
    }
    body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide .nsmb-team-photo img.nsmb-team-portrait {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: min(62vh, 500px) !important;
    }
}
@media (max-width: 480px) {
    body.nsmb-bermuda-site .nsmb-team-stage .nsmb-team-slide .nsmb-team-photo {
        aspect-ratio: auto !important;
    }
}
