body.media-detail-active {
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
  background: #f7f8fa;
}

body.media-detail-active .main-content {
  width: 100%;
  max-width: 1540px;
}

body.media-detail-active .sidebar {
  display: none !important;
}

body:not(.media-detail-active) #mediaDetailView {
  display: none !important;
}

#mediaDetailView {
  width: 100%;
  min-width: 0;
}

.media-detail-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 24px 54px;
  color: #101828;
}

.media-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 22px;
  font-size: .82rem;
  color: #667085;
}

.media-detail-breadcrumb a,
.media-detail-breadcrumb button {
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
}

.media-detail-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  color: #1d2939;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-detail-breadcrumb > i {
  color: #c4cbd4;
  font-size: .68rem;
}

.media-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 26px;
}

.media-detail-primary,
.media-album-detail,
.media-detail-side section,
.media-description {
  min-width: 0;
}

.media-video-frame,
.media-video-poster {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  background: #090d12;
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(16, 24, 40, .16);
}

.media-video-frame iframe,
.media-video-poster img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.media-video-poster span {
  position: fixed; z-index: 1000000;
  inset: 50% auto auto 50%;
  display: grid;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 5px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: #d90000;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 10px 35px rgba(217,0,0,.4);
}

.media-detail-title-block,
.media-description {
  padding: 22px 2px;
}

.media-detail-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #fff0f0;
  color: #c70000;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.media-detail-title-block h1,
.media-album-intro h1,
.media-emagazine-heading h1 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.media-detail-title-block > p,
.media-album-intro p,
.media-description > p {
  margin: 15px 0;
  color: #475467;
  font-size: .98rem;
  line-height: 1.75;
}

.media-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: #667085;
  font-size: .82rem;
}

.media-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.media-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.media-detail-actions a,
.media-detail-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: 700 .84rem "Be Vietnam Pro", "Inter", sans-serif;
  text-decoration: none;
}

.media-detail-actions a:first-child {
  border-color: #cc0000;
  background: #cc0000;
  color: #fff;
}

.media-detail-side {
  display: grid;
  gap: 18px;
}

.media-detail-side section {
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(16, 24, 40, .05);
}

.media-detail-side h2,
.media-description h2 {
  margin: 0 0 17px;
  color: #c90000;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.media-detail-side h3 {
  margin: 0 0 18px;
  color: #101828;
  font-size: 1.05rem;
  line-height: 1.45;
}

.media-detail-side dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.media-detail-side dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: .82rem;
}

.media-detail-side dt {
  color: #667085;
}

.media-detail-side dd {
  min-width: 0;
  margin: 0;
  color: #101828;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.media-related-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: transparent;
  color: #101828;
  cursor: pointer;
  text-align: left;
}

.media-related-item img {
  width: 100px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.media-related-item span {
  min-width: 0;
}

.media-related-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.media-related-item small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: .7rem;
}

.media-description {
  margin-top: 12px;
  border-top: 1px solid #e4e7ec;
}

.media-description > div {
  color: #344054;
  font-size: .96rem;
  line-height: 1.78;
}

.media-description iframe {
  display: none;
}

.media-back-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font: 650 .82rem "Be Vietnam Pro", "Inter", sans-serif;
}

.media-album-intro {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 1px solid #e4e7ec;
  background: #fff;
}

.media-album-intro > img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.media-album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 15px;
  border-bottom: 1px solid #e4e7ec;
}

.media-album-toolbar h2 {
  margin: 0;
  padding: 0 0 13px;
  border-bottom: 3px solid #d00000;
  color: #101828;
  font-size: 1rem;
}

.media-album-toolbar h2 span {
  color: #98a2b3;
  font-weight: 500;
}

.media-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.media-album-grid button {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eaecf0;
  cursor: zoom-in;
}

.media-album-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .25s ease;
}

.media-album-grid button:hover img {
  transform: scale(1.035);
}

.media-document-viewer {
  overflow: hidden;
  border-radius: 7px;
  background: #161d26;
  box-shadow: 0 14px 35px rgba(16, 24, 40, .14);
}

.media-viewer-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 18px;
  background: #222a34;
  color: #fff;
  font-size: .82rem;
}

.media-viewer-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-viewer-bar span {
  flex: 0 0 auto;
  color: #d0d5dd;
  font-size: .72rem;
}

.media-infographic-viewer > button {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  background: #111820;
  cursor: zoom-in;
}

.media-infographic-viewer img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}

.media-emagazine-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.media-emagazine-heading > div:first-child {
  min-width: 0;
}

.media-emagazine-viewer iframe {
  display: block;
  width: 100%;
  height: min(76vh, 850px);
  border: 0;
  background: #fff;
}

.media-emagazine-cover {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 560px;
  align-content: center;
  padding: 28px;
  color: #d0d5dd;
  text-align: center;
}

.media-emagazine-cover img {
  max-width: min(100%, 660px);
  max-height: 590px;
  object-fit: contain;
}

.media-detail-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 6px;
  color: #667085;
  font-size: .82rem;
  text-align: center;
}

.media-asset-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(4, 9, 17, .94);
}

.media-asset-lightbox.show {
  display: flex;
}

.media-asset-lightbox > button {
  position: fixed; z-index: 1000000;
  top: 18px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.media-asset-lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .media-detail-columns {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .media-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .media-detail-shell {
    padding: 16px 14px 42px;
  }
  .media-detail-columns {
    grid-template-columns: 1fr;
  }
  .media-detail-side {
    grid-template-columns: 1fr;
  }
  .media-album-intro {
    grid-template-columns: 1fr;
  }
  .media-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-emagazine-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .media-emagazine-viewer iframe {
    height: 70vh;
  }
}

@media (max-width: 520px) {
  .media-detail-shell {
    padding: 12px 10px 34px;
  }
  .media-detail-breadcrumb {
    margin-bottom: 14px;
    font-size: .68rem;
  }
  .media-detail-breadcrumb span {
    display: none;
  }
  .media-video-frame,
  .media-video-poster {
    border-radius: 4px;
  }
  .media-detail-title-block {
    padding: 17px 2px;
  }
  .media-detail-title-block h1,
  .media-album-intro h1,
  .media-emagazine-heading h1 {
    font-size: 1.25rem;
  }
  .media-detail-meta {
    gap: 7px 12px;
    font-size: .72rem;
  }
  .media-detail-side section {
    padding: 17px 14px;
  }
  .media-album-intro {
    gap: 15px;
    padding: 12px;
  }
  .media-album-grid {
    gap: 6px;
  }
  .media-album-grid img {
    aspect-ratio: 1/1;
  }
  .media-viewer-bar span {
    display: none;
  }
  .media-infographic-viewer > button {
    padding: 6px;
  }
  .media-emagazine-viewer iframe {
    height: 68vh;
  }
  .media-emagazine-cover {
    min-height: 400px;
    padding: 16px;
  }
  .media-asset-lightbox {
    padding: 18px;
  }
}
