.mf-home-bottom,
.mf-home-bottom * {
  box-sizing: border-box;
}

.mf-home-bottom {
  --mf-navy: #071a39;
  --mf-navy-soft: #112b52;
  --mf-gold: #b78122;
  --mf-gold-light: #e6c27d;
  --mf-paper: #fbfaf7;
  --mf-white: #fff;
  --mf-border: #e7dece;
  --mf-muted: #5f6570;
  --mf-shadow: 0 18px 50px rgba(7, 26, 57, .08);
  width: calc(100% - 40px);
  max-width: 1880px;
  margin: 0 auto;
  color: var(--mf-navy);
  overflow: clip;
}

.mf-home-bottom__videos {
  --mf-navy: #071a39;
  --mf-navy-soft: #112b52;
  --mf-gold: #b78122;
  --mf-gold-light: #e6c27d;
  --mf-paper: #fbfaf7;
  --mf-white: #fff;
  --mf-border: #e7dece;
  --mf-muted: #5f6570;
  --mf-shadow: 0 18px 50px rgba(7, 26, 57, .08);
  width: 100%;
  color: var(--mf-navy);
  overflow: hidden;
  border-radius: 16px;
}

.mf-home-bottom__videos,
.mf-home-bottom__videos * {
  box-sizing: border-box;
}

body.home .vc_row.vc_custom_1759740830509,
body.home .vc_row.vc_custom_1759740510870,
body.page-id-366 .vc_row.vc_custom_1759740830509,
body.page-id-366 .vc_row.vc_custom_1759740510870 {
  display: none !important;
}

html[data-mfhb-video-relocated="true"] body.home .vc_row.vc_custom_1759740830509,
html[data-mfhb-video-relocated="true"] body.page-id-366 .vc_row.vc_custom_1759740830509 {
  display: block !important;
}

.mf-home-bottom__videos,
.mf-home-bottom__gallery {
  padding: clamp(64px, 6vw, 112px) clamp(24px, 3vw, 58px);
}

.mf-home-bottom__videos {
  background: #fff;
}

.mf-home-bottom__gallery {
  background: #fff;
}

.mf-home-bottom__section-header {
  max-width: 1180px;
  margin: 0 0 clamp(34px, 3vw, 54px);
}

.mf-home-bottom__eyebrow,
.mf-home-bottom__card-label {
  margin: 0;
  color: var(--mf-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mf-home-bottom__section-header h2,
.mf-home-bottom__service-content h2 {
  margin: 12px 0 14px;
  color: var(--mf-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.35vw, 78px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.mf-home-bottom__section-lead {
  max-width: 920px;
  margin: 0;
  color: var(--mf-muted);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.55;
}

.mf-home-bottom__video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
}

.mf-home-bottom__video-card {
  min-width: 0;
  overflow: hidden;
  background: var(--mf-white);
  border: 1px solid var(--mf-border);
  border-radius: 18px;
  box-shadow: var(--mf-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mf-home-bottom__video-card:hover,
.mf-home-bottom__video-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(7, 26, 57, .13);
}

.mf-home-bottom__video-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mf-home-bottom__video-card > a:focus-visible,
.mf-home-bottom__gallery-item button:focus-visible,
.mf-home-bottom__secondary-cta:focus-visible,
.mf-home-bottom__primary-cta:focus-visible,
.mf-home-bottom__modal-close:focus-visible {
  outline: 3px solid var(--mf-gold-light);
  outline-offset: 4px;
}

.mf-home-bottom__video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-home-bottom__video-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 46%, rgba(4, 15, 33, .28) 100%);
}

.mf-home-bottom__video-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.mf-home-bottom__video-card:hover .mf-home-bottom__video-cover img {
  transform: scale(1.025);
}

.mf-home-bottom__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(68px, 5vw, 92px);
  height: clamp(68px, 5vw, 92px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(7, 26, 57, .94);
  border: 1px solid rgba(230, 194, 125, .8);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  transition: transform .25s ease, background .25s ease;
}

.mf-home-bottom__video-card:hover .mf-home-bottom__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--mf-navy);
}

.mf-home-bottom__play span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--mf-gold-light);
}

.mf-home-bottom__video-body {
  min-height: 200px;
  padding: clamp(20px, 1.6vw, 28px);
  display: flex;
  flex-direction: column;
}

.mf-home-bottom__video-body h3 {
  margin: 10px 0 10px;
  color: var(--mf-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.45vw, 29px);
  font-weight: 400;
  line-height: 1.12;
}

.mf-home-bottom__video-meta {
  margin: 0 0 22px;
  color: var(--mf-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mf-home-bottom__text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  color: var(--mf-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.mf-home-bottom__gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}

.mf-home-bottom__gallery-item {
  min-width: 0;
  margin: 0;
  grid-column: span 6;
}

.mf-home-bottom__gallery-item[hidden] {
  display: none !important;
}

.mf-home-bottom__gallery-grid[data-visible-count="1"] .mf-home-bottom__gallery-item:not([hidden]) {
  grid-column: 1 / -1;
}

.mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(1) {
  grid-column: span 8;
}

.mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(2) {
  grid-column: span 4;
}

.mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(1) {
  grid-column: span 6;
}

.mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(2),
.mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(3) {
  grid-column: span 3;
}

.mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(1),
.mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(4) {
  grid-column: span 8;
}

.mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(2),
.mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(3) {
  grid-column: span 4;
}

.mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item:nth-child(-n+3) {
  grid-column: span 4;
}

.mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item:nth-child(n+4) {
  grid-column: span 6;
}

.mf-home-bottom__gallery-item button {
  position: relative;
  width: 100%;
  height: clamp(430px, 42vw, 720px);
  display: block;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--mf-navy);
  border: 0;
  border-radius: 18px;
  cursor: zoom-in;
  box-shadow: var(--mf-shadow);
}

.mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item button,
.mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item button {
  height: clamp(430px, 30vw, 560px);
}

.mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item button {
  height: clamp(300px, 28vw, 500px);
}

.mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item button {
  height: clamp(300px, 25vw, 460px);
}

.mf-home-bottom__gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease;
}

.mf-home-bottom__gallery-grid[data-visible-count="1"] .mf-home-bottom__gallery-item:first-child img {
  object-position: center 43%;
}

.mf-home-bottom__gallery-item:nth-child(2) img {
  object-position: center 52%;
}

.mf-home-bottom__gallery-item button::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(4, 15, 33, .78));
}

.mf-home-bottom__gallery-item button:hover img {
  transform: scale(1.025);
}

.mf-home-bottom__gallery-caption {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 2vw, 34px);
  bottom: clamp(20px, 2vw, 34px);
  left: clamp(20px, 2vw, 34px);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.mf-home-bottom__video-actions,
.mf-home-bottom__gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 48px);
}

.mf-home-bottom__secondary-cta,
.mf-home-bottom__primary-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 30px;
  border-radius: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.mf-home-bottom__secondary-cta {
  color: var(--mf-gold);
  background: #fff;
  border: 1px solid var(--mf-gold);
  cursor: pointer;
}

.mf-home-bottom__secondary-cta:hover {
  color: #fff;
  background: var(--mf-gold);
  transform: translateY(-2px);
}

.mf-home-bottom__service {
  position: relative;
  min-height: clamp(480px, 34vw, 520px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-home-bottom__media,
.mf-home-bottom__media img,
.mf-home-bottom__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mf-home-bottom__media img {
  object-fit: cover;
  object-position: center;
}

.mf-home-bottom__shade {
  background: linear-gradient(90deg, rgba(5, 19, 43, .94) 0%, rgba(5, 19, 43, .82) 39%, rgba(5, 19, 43, .36) 68%, rgba(5, 19, 43, .12) 100%);
}

.mf-home-bottom__service-content {
  position: relative;
  z-index: 1;
  width: min(760px, 58%);
  padding: clamp(32px, 3.2vw, 52px);
}

.mf-home-bottom__service-content h2,
.mf-home-bottom__service .mf-home-bottom__eyebrow {
  color: #fff;
}

.mf-home-bottom__service .mf-home-bottom__eyebrow {
  color: var(--mf-gold-light);
}

.mf-home-bottom__service-content h2 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 3.3vw, 56px);
}

.mf-home-bottom__lead {
  max-width: 650px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.45;
}

.mf-home-bottom__primary-cta {
  color: var(--mf-navy);
  background: var(--mf-gold-light);
  border: 1px solid var(--mf-gold-light);
}

.mf-home-bottom__primary-cta:hover {
  color: var(--mf-navy);
  background: #f3d797;
  transform: translateY(-2px);
}

.mf-home-bottom__features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mf-home-bottom__features li {
  min-width: 112px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.mf-home-bottom__features svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--mf-gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-home-bottom__modal[hidden] {
  display: none !important;
}

.mf-home-bottom__modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.mf-home-bottom__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 21, .88);
  backdrop-filter: blur(8px);
}

.mf-home-bottom__modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  max-height: 90vh;
}

.mf-home-bottom__modal-close {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--mf-navy);
  border: 1px solid rgba(230, 194, 125, .75);
  border-radius: 50%;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.mf-home-bottom__modal-stage {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020915;
  border: 1px solid rgba(230, 194, 125, .42);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.mf-home-bottom__modal-stage iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.mf-home-bottom__modal-stage video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 86vh;
  display: block;
  background: #000;
}

.mf-home-bottom__modal-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 86vh;
  display: block;
  object-fit: contain;
}

body.mfhb-modal-open {
  overflow: hidden !important;
}

@media (max-width: 1100px) {
  .mf-home-bottom__video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(1),
  .mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(2) {
    grid-column: span 6;
  }

  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(1) {
    grid-column: 1 / -1;
  }

  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(2),
  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(3) {
    grid-column: span 6;
  }

  .mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(n) {
    grid-column: span 6;
  }

  .mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item:nth-child(n) {
    grid-column: span 6;
  }

  .mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .mf-home-bottom__service-content {
    width: min(760px, 72%);
  }
}

@media (max-width: 767px) {
  .mf-home-bottom {
    width: calc(100% - 24px);
  }

  .mf-home-bottom__videos,
  .mf-home-bottom__gallery {
    padding: 54px 18px;
  }

  .mf-home-bottom__section-header {
    margin-bottom: 28px;
  }

  .mf-home-bottom__section-header h2,
  .mf-home-bottom__service-content h2 {
    font-size: clamp(37px, 11vw, 52px);
  }

  .mf-home-bottom__video-grid {
    grid-template-columns: 1fr;
  }


  .mf-home-bottom__video-body {
    min-height: 210px;
    padding: 24px;
  }

  .mf-home-bottom__gallery-grid {
    grid-template-columns: 1fr;
  }

  .mf-home-bottom__gallery-grid[data-visible-count] .mf-home-bottom__gallery-item,
  .mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(1),
  .mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item:nth-child(2),
  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(1),
  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(2),
  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item:nth-child(3),
  .mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item:nth-child(n),
  .mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item:nth-child(n) {
    grid-column: auto;
  }

  .mf-home-bottom__gallery-item button,
  .mf-home-bottom__gallery-grid[data-visible-count="2"] .mf-home-bottom__gallery-item button,
  .mf-home-bottom__gallery-grid[data-visible-count="3"] .mf-home-bottom__gallery-item button,
  .mf-home-bottom__gallery-grid[data-visible-count="4"] .mf-home-bottom__gallery-item button,
  .mf-home-bottom__gallery-grid[data-visible-count="5"] .mf-home-bottom__gallery-item button {
    height: min(118vw, 560px);
  }

  .mf-home-bottom__gallery-grid[data-visible-count="1"] .mf-home-bottom__gallery-item:first-child button {
    height: min(86vw, 430px);
  }

  .mf-home-bottom__secondary-cta,
  .mf-home-bottom__primary-cta {
    width: 100%;
  }

  .mf-home-bottom__service {
    min-height: 520px;
    align-items: end;
  }

  .mf-home-bottom__media img {
    object-position: 62% center;
  }

  .mf-home-bottom__shade {
    background: linear-gradient(180deg, rgba(5, 19, 43, .14) 0%, rgba(5, 19, 43, .55) 39%, rgba(5, 19, 43, .96) 71%, #05132b 100%);
  }

  .mf-home-bottom__service-content {
    width: 100%;
    padding: 36px 22px 28px;
  }

  .mf-home-bottom__service-content h2 {
    margin: 7px 0 10px;
    font-size: clamp(34px, 9vw, 40px);
  }

  .mf-home-bottom__lead {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .mf-home-bottom__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .mf-home-bottom__features li {
    width: auto;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  .mf-home-bottom__modal {
    padding: 14px;
  }

  .mf-home-bottom__modal-dialog {
    width: 100%;
  }

  .mf-home-bottom__modal-close {
    top: -12px;
    right: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-home-bottom *,
  .mf-home-bottom *::before,
  .mf-home-bottom *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
