html.nml-lightbox-open,
html.nml-lightbox-open body {
  overflow: hidden;
}

.nml-lightbox-trigger {
  cursor: zoom-in;
}

.nml-lightbox-image {
  display: block;
  width: 100%;
}

.nml-video-thumb-link {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.nml-media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #000;
}

.nml-media-frame img,
.nml-media-frame .nml-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.nml-image-frame {
  line-height: 0;
}


/* Keep image thumbnails uncropped on all posts only. Allowed pages 1889 and 1901 remain 16:9. */
body.single-post .nml-image-frame {
  aspect-ratio: auto;
  background: transparent;
  height: auto;
}

body.single-post .nml-image-frame img,
body.single-post .nml-image-frame .nml-lightbox-image,
body.single-post .nml-image-frame .nml-lightbox-image img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.nml-video-card {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5em 0;
}

.nml-video-card a,
.nml-video-card a:link,
.nml-video-card a:visited,
.nml-video-title,
.nml-video-title a,
.nml-video-title a:link,
.nml-video-title a:visited,
.nml-video-title a:hover,
.nml-video-title a:focus,
.nml-video-title a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

h3.nml-video-title {
  margin: 0.7em 0 0 !important;
  color: #000 !important;
  font-family: "Fira Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-transform: capitalize !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
}

h3.nml-video-title > a.nml-video-title-link,
h3.nml-video-title > a.nml-video-title-link:link,
h3.nml-video-title > a.nml-video-title-link:visited,
h3.nml-video-title > a.nml-video-title-link:hover,
h3.nml-video-title > a.nml-video-title-link:focus,
h3.nml-video-title > a.nml-video-title-link:active {
  display: inline !important;
  color: inherit !important;
  font-family: "Fira Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-transform: capitalize !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  cursor: pointer;
}


.nml-video-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
}

.nml-video-thumb .nml-video-poster {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}


.nml-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.nml-video-play-triangle {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.nml-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.92);
}

.nml-overlay[hidden] {
  display: none;
}

.nml-dialog {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nml-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nml-stage-image,
.nml-video-frame-wrap,
.nml-video-frame-wrap iframe {
  max-width: 100%;
  width: auto;
}

.nml-stage-image {
  max-height: calc(100vh - 40px);
  object-fit: contain;
}

.nml-video-frame-wrap {
  width: min(calc((100vh - 40px) * 1.7777778), calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 40px);
}

.nml-video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.nml-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nml-video-play {
    width: 56px;
    height: 56px;
  }

  .nml-video-play-triangle {
    margin-left: 4px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
  }
}
