/* =========================================================
   MEDIA HUB STYLES
   ========================================================= */

.media-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}

.media-hero__lede {
  color: var(--text-muted);
}

.media-tabs-wrap {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* ---------- Tabs ---------- */
.media-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.media-tab {
  background: none;
  border: none;
  padding: 0.85rem 0.25rem;
  margin-right: 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.media-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.media-tab:hover {
  color: var(--navy);
}

.media-tab.is-active {
  color: var(--navy);
}

.media-tab.is-active::after {
  background: var(--amber);
}

.media-panel.is-hidden {
  display: none;
}

.media-empty {
  color: var(--text-muted);
  font-size: var(--step-0);
  padding: 2.5rem 0;
  text-align: center;
  max-width: none;
}

.media-card__thumb[disabled] {
  cursor: default;
  opacity: 0.7;
}

/* ---------- Radio list ---------- */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.radio-item__outlet {
  font-size: var(--step--1);
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.radio-item__title {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.radio-item__meta {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.radio-item__player {
  height: 40px;
  max-width: 320px;
  width: 100%;
}

@media (max-width: 640px) {
  .radio-item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.14);
}

.gallery-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: var(--navy);
}

.gallery-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.gallery-card__count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.gallery-card__body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.gallery-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: var(--step-0);
  margin-bottom: 0.3rem;
}

.gallery-card__meta {
  font-size: var(--step--1);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Deep-link highlight ---------- */
.media-card.is-highlighted,
.radio-item.is-highlighted,
.gallery-card.is-highlighted {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  transition: outline-color 0.3s var(--ease);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(900px, 100%);
  width: 100%;
}

.lightbox__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__media iframe,
.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

.lightbox__caption {
  color: var(--text-on-dark-muted);
  font-size: var(--step--1);
  text-align: center;
  margin: 1rem 0 0;
}

.lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(248, 250, 252, 0.14);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.lightbox__nav:hover {
  background: rgba(248, 250, 252, 0.28);
}

.lightbox__nav--prev {
  left: -3.5rem;
}

.lightbox__nav--next {
  right: -3.5rem;
}

@media (max-width: 760px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }
}











/* =========================================================
   MEDIA PAGE
   Fifi Peters
   Light / Corporate Theme
========================================================= */




/* =========================================================
   FEATURED MEDIA
========================================================= */

.feature-video {
  position: relative;
  width: 100%;
  margin-bottom: 70px;
}

.feature-video .video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;

  aspect-ratio: 16 / 9;

  background: var(--color-heading);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(34, 48, 71, 0.12);
}

.feature-video iframe {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;

  max-width: 100%;
  border: 0;
}

.video-caption {
  padding: 22px 4px 0;
}

.video-caption h3 {
  margin: 0 0 8px;

  font-size: 22px;
  color: var(--color-heading);
}

.video-caption p {
  margin: 0;
  color: var(--color-body);
}


/* =========================================================
   MEDIA LIBRARY
========================================================= */

.media-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;

  width: 100%;
}


/* =========================================================
   MEDIA CARD
========================================================= */

.media-item {
  position: relative;

  min-width: 0;
  width: 100%;

  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid rgba(34, 48, 71, 0.09);
  border-radius: 16px;

  box-shadow: 0 8px 25px rgba(34, 48, 71, 0.06);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.media-item:hover {
  transform: translateY(-5px);

  border-color: rgba(200, 169, 106, 0.45);

  box-shadow: 0 18px 40px rgba(34, 48, 71, 0.11);
}


/* =========================================================
   GALLERY MEDIA
========================================================= */

.media-item.image {
  cursor: pointer;
}

.media-image-wrapper {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: var(--color-surface-alt);
}

.media-item.image img,
.media-image-wrapper img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.media-item.image:hover img,
.media-image-wrapper:hover img {
  transform: scale(1.05);
}


/* =========================================================
   GALLERY OVERLAY
========================================================= */

.media-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(18, 53, 91, 0.45);

  opacity: 0;

  transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
  opacity: 1;
}

.media-overlay-content {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;

  background: rgba(255, 255, 255, 0.95);

  border-radius: 100px;

  color: var(--color-heading);

  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   MEDIA CARD CONTENT
========================================================= */

.media-card-content {
  padding: 20px;
}

.media-card-content h3,
.media-card-content h4 {
  margin: 0 0 8px;

  color: var(--color-heading);

  font-size: 18px;
  line-height: 1.35;
}

.media-card-content p {
  margin: 0;

  color: var(--color-body);

  font-size: 14px;
  line-height: 1.65;
}

.media-meta {
  display: block;

  margin-bottom: 8px;

  color: var(--color-accent);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   EMBEDDED MEDIA
   IMPORTANT:
   Prevent iframe/embed content from overflowing cards.
========================================================= */

.media-item.embed,
.media-item.video,
.media-embed-card,
.media-appearance-card {
  min-width: 0;
  overflow: hidden;
}


/*
   Generic embedded-content wrapper
*/

.media-embed,
.media-embed-content,
.media-content-embed {
  position: relative;

  width: 100%;
  max-width: 100%;

  min-width: 0;

  overflow: hidden;
}


/*
   Aspect-ratio container for YouTube,
   podcasts and other iframe embeds.
*/

.media-embed {
  aspect-ratio: 16 / 9;

  background: var(--color-surface-alt);
}


/*
   Catch iframe elements regardless of the
   inline styles stored in media_content.
*/

.media-embed iframe,
.media-embed-content iframe,
.media-content-embed iframe,
.media-item iframe {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  height: 100% !important;

  min-width: 0;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}


/*
   Prevent embedded HTML from introducing
   fixed-width containers.
*/

.media-embed *,
.media-embed-content *,
.media-content-embed * {
  max-width: 100%;
}


/*
   Handle old iframe wrappers that may have
   fixed dimensions or inline styles.
*/

.media-embed>div,
.media-embed-content>div,
.media-content-embed>div {
  width: 100% !important;
  max-width: 100% !important;

  min-width: 0;

  overflow: hidden;
}


/* =========================================================
   EMBEDDED CARD
========================================================= */

.media-embed-card {
  background: var(--color-surface);

  border-radius: 16px;
}

.media-embed-card .media-card-content {
  padding: 20px;
}


/* =========================================================
   PODCAST
========================================================= */

.podcast-card {
  width: 100%;
  min-width: 0;

  padding: 24px;

  background: var(--color-surface);

  border: 1px solid rgba(34, 48, 71, 0.09);
  border-radius: 16px;

  box-shadow: 0 8px 25px rgba(34, 48, 71, 0.06);
}

.podcast-card h3,
.podcast-card h4 {
  margin-bottom: 10px;

  color: var(--color-heading);
}

.podcast-card p {
  margin-bottom: 0;

  color: var(--color-body);

  line-height: 1.7;
}


/* =========================================================
   NATIVE VIDEO
========================================================= */

.media-video {
  position: relative;

  width: 100%;
  max-width: 100%;

  overflow: hidden;

  background: var(--color-heading);

  border-radius: 14px;
}

.media-video video,
.media-item video {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;

  margin: 0;

  object-fit: contain;
}


/*
   Older video markup may have inline width/height.
   Override those values safely.
*/

.media-video video[width],
.media-video video[height],
.media-item video[width],
.media-item video[height] {
  width: 100% !important;
  height: auto !important;
}


/* =========================================================
   MEDIA TITLE / DESCRIPTION
========================================================= */

.media-item-title {
  padding: 16px 18px 0;

  color: var(--color-heading);

  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.media-item-description {
  padding: 8px 18px 18px;

  color: var(--color-body);

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.play-icon {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border: 2px solid #fff;
  border-radius: 50%;

  background: rgba(18, 53, 91, 0.75);

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.play-icon::after {
  content: "";

  width: 0;
  height: 0;

  margin-left: 4px;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.media-item:hover .play-icon {
  transform: scale(1.08);

  background: var(--color-primary);
}


/* =========================================================
   GALLERY COUNT
========================================================= */

.gallery-count {
  position: absolute;

  right: 14px;
  bottom: 14px;

  padding: 6px 10px;

  background: rgba(18, 53, 91, 0.88);

  border-radius: 100px;

  color: #fff;

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   PAGINATION
========================================================= */

.media-pagination {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 7px;

  margin-top: 55px;
}

.media-pagination a,
.media-pagination span {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;

  padding: 0 10px;

  border: 1px solid rgba(34, 48, 71, 0.12);
  border-radius: 8px;

  background: var(--color-surface);

  color: var(--color-heading);

  font-size: 13px;
  text-decoration: none;

  transition: all 0.3s ease;
}

.media-pagination a:hover {
  border-color: var(--color-accent);

  color: var(--color-accent);
}

.media-pagination .active {
  background: var(--color-primary);

  border-color: var(--color-primary);

  color: #fff;
}

.media-pagination .disabled {
  opacity: 0.4;

  pointer-events: none;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.media-lightbox {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(18, 53, 91, 0.94);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;

  z-index: 9999;
}

.media-lightbox.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}


/* =========================================================
   LIGHTBOX CLOSE
========================================================= */

.media-lightbox-close {
  position: absolute;

  top: 25px;
  right: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  z-index: 3;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.media-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);

  transform: rotate(90deg);
}


/* =========================================================
   LIGHTBOX CONTENT
========================================================= */

.lightbox-content {
  position: relative;

  width: min(1100px, 100%);

  max-height: 90vh;

  min-width: 0;

  overflow: hidden;

  border-radius: 14px;

  background: var(--color-surface);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.lightbox-content img {
  display: block;

  width: 100%;
  max-width: 100%;

  max-height: 85vh;

  height: auto;

  margin: auto;

  object-fit: contain;
}


/* =========================================================
   LIGHTBOX VIDEO / EMBED
========================================================= */

.lightbox-content iframe {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  aspect-ratio: 16 / 9;

  height: auto !important;

  border: 0 !important;
}

.lightbox-content video {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  max-height: 85vh;

  height: auto !important;

  margin: auto;
}


/* =========================================================
   GALLERY LIGHTBOX NAVIGATION
========================================================= */

.gallery-lightbox {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.gallery-lightbox-image {
  display: block;

  width: auto;
  max-width: 100%;

  height: auto;
  max-height: 82vh;

  object-fit: contain;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  background: rgba(18, 53, 91, 0.75);

  color: #fff;

  font-size: 22px;

  cursor: pointer;

  z-index: 2;
}

.gallery-lightbox-prev {
  left: 20px;
}

.gallery-lightbox-next {
  right: 20px;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: var(--color-primary);
}


/* =========================================================
   LIGHTBOX GALLERY INFORMATION
========================================================= */

.gallery-lightbox-info {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 18px 22px;

  background: linear-gradient(to top,
      rgba(18, 53, 91, 0.9),
      rgba(18, 53, 91, 0));

  color: #fff;
}

.gallery-lightbox-info h3 {
  margin: 0 0 5px;

  color: #fff;

  font-size: 17px;
}

.gallery-lightbox-info p {
  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 13px;
}


/* =========================================================
   EMPTY MEDIA STATE
========================================================= */

.media-empty {
  width: 100%;

  padding: 70px 30px;

  text-align: center;

  background: var(--color-surface);

  border: 1px dashed rgba(34, 48, 71, 0.18);
  border-radius: 16px;
}

.media-empty h3 {
  margin-bottom: 10px;

  color: var(--color-heading);
}

.media-empty p {
  margin: 0;

  color: var(--color-body);
}


/* =========================================================
   CTA
========================================================= */

.media-cta {
  text-align: center;
}

.media-cta h2 {
  color: var(--color-heading);
}

.media-cta p {
  max-width: 620px;

  margin: 15px auto 25px;

  color: var(--color-body);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

  .media-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .media-hero {
    min-height: 48vh;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767px) {

  .media-hero {
    min-height: 55vh;
  }

  .media-hero-bg {
    background:
      linear-gradient(180deg,
        rgba(248, 246, 242, 0.92) 0%,
        rgba(248, 246, 242, 0.82) 100%),
      url("../../img/profile/wef_conversation.jpg") center / cover no-repeat;
  }

  .media-hero h1 {
    font-size: 40px;
  }

  .media-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .feature-video {
    margin-bottom: 50px;
  }

  .media-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .media-lightbox {
    padding: 20px;
  }

  .media-lightbox-close {
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    font-size: 25px;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox-prev {
    left: 10px;
  }

  .gallery-lightbox-next {
    right: 10px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

  .media-hero h1 {
    font-size: 34px;
  }

  .media-hero p {
    font-size: 15px;
  }

  .media-card-content {
    padding: 16px;
  }

  .podcast-card {
    padding: 18px;
  }

  .media-pagination {
    gap: 4px;
  }

  .media-pagination a,
  .media-pagination span {
    min-width: 34px;
    height: 34px;

    padding: 0 7px;
  }

}















.media-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #f1eee8;
}

.media-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-embed-frame iframe,
.media-embed-frame video,
.media-embed-frame embed,
.media-embed-frame object {
  position: absolute !important;
  inset: 0 !important;

  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}



.media-gallery-trigger {
  position: relative;

  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 16px;

  overflow: hidden;

  background: #f1eee8;

  cursor: pointer;

  text-align: left;
}

.media-gallery-trigger img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.media-gallery-trigger:hover img {
  transform: scale(1.04);
}

.media-gallery-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 8px;

  background: rgba(18, 53, 91, 0.58);

  color: #fff;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.media-gallery-trigger:hover .media-gallery-overlay,
.media-gallery-trigger:focus-visible .media-gallery-overlay {
  opacity: 1;
}

.media-gallery-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;

  font-size: 24px;
  line-height: 1;
}



/* =========================================================
   GALLERY LIGHTBOX
========================================================= */

.media-gallery-lightbox {
  position: fixed;

  inset: 0;

  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(13, 39, 68, 0.94);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.media-gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   CONTENT
========================================================= */

.media-gallery-lightbox-content {
  position: relative;

  width: min(1100px, 90vw);

  max-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================================================
   IMAGE
========================================================= */

.media-gallery-image-wrapper {
  width: 100%;

  max-height: 78vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.media-gallery-image-wrapper img {
  display: block;

  max-width: 100%;
  max-height: 78vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 8px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   CLOSE
========================================================= */

.media-gallery-close {
  position: absolute;

  top: 25px;
  right: 30px;

  z-index: 3;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.media-gallery-close:hover {
  background: rgba(255, 255, 255, 0.18);

  border-color: #fff;

  transform: rotate(90deg);
}


/* =========================================================
   NAVIGATION
========================================================= */

.media-gallery-navigation {
  position: absolute;

  top: 50%;

  z-index: 3;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  font-size: 24px;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.media-gallery-navigation:hover {
  background: rgba(255, 255, 255, 0.18);

  border-color: #fff;
}


.media-gallery-prev {
  left: 25px;
}

.media-gallery-next {
  right: 25px;
}


/* =========================================================
   CAPTION
========================================================= */

.media-gallery-caption {
  margin-top: 18px;

  color: #fff;

  font-size: 15px;

  text-align: center;
}


/* =========================================================
   COUNTER
========================================================= */

.media-gallery-counter {
  margin-top: 8px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 13px;

  letter-spacing: 0.08em;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.media-lightbox-open {
  overflow: hidden;
}



@media (max-width: 768px) {

  .media-gallery-lightbox {
    padding: 20px;
  }

  .media-gallery-lightbox-content {
    width: 100%;
  }

  .media-gallery-image-wrapper {
    max-height: 72vh;
  }

  .media-gallery-image-wrapper img {
    max-height: 72vh;
  }

  .media-gallery-navigation {
    width: 42px;
    height: 42px;

    font-size: 18px;
  }

  .media-gallery-prev {
    left: 10px;
  }

  .media-gallery-next {
    right: 10px;
  }

  .media-gallery-close {
    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    font-size: 24px;
  }

}

/* =========================================================
   MEDIA PAGINATION
========================================================= */

.media-pagination {
  padding-top: 30px;
  padding-bottom: 30px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-page,
.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  height: 40px;

  padding: 0 12px;

  border: 1px solid #ddd6ca;
  border-radius: 4px;

  background: #fff;
  color: #223047;

  text-decoration: none;

  font-size: 14px;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.pagination-page:hover,
.pagination-arrow:hover {
  border-color: #c8a96a;
  color: #12355b;

  transform: translateY(-2px);
}

.pagination-page.active {
  border-color: #12355b;
  background: #12355b;
  color: #fff;
}

.pagination-arrow.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 4px;

  color: #777;

  user-select: none;
}

@media (max-width: 576px) {

  .pagination-nav {
    gap: 10px;
  }

  .pagination-pages {
    gap: 4px;
  }

  .pagination-page,
  .pagination-arrow {
    min-width: 36px;
    height: 36px;

    padding: 0 8px;
  }

  /*
     * Keep the pagination compact on small screens.
     */

  .pagination-page:nth-child(n + 6) {
    display: none;
  }

}







/* =========================================================
   MEDIA FILTERS
   ========================================================= */

.media-filters-section {
  padding: 0 0 55px;
}


/* =========================================================
   FILTER HEADER
   ========================================================= */

.media-filter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;

  margin-bottom: 30px;
}

.media-filter-header h2 {
  margin: 8px 0 0;

  color: var(--color-heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.media-filter-header>p {
  max-width: 500px;
  margin: 0;

  color: var(--color-body);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   FILTER NAVIGATION
   ========================================================= */

.media-filters {
  display: flex;
  align-items: stretch;
  gap: 10px;

  flex-wrap: wrap;
}


/* =========================================================
   FILTER ITEM
   ========================================================= */

.media-filter {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 145px;
  min-height: 62px;

  padding: 10px 18px;

  border: 1px solid #ddd8ce;
  border-radius: 10px;

  background: var(--color-surface);

  text-decoration: none;

  transition:
    border-color .3s ease,
    background-color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.media-filter:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(34, 48, 71, .06);
}


/* =========================================================
   FILTER LABEL
   ========================================================= */

.media-filter-label {
  color: var(--color-heading);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.media-filter-description {
  margin-top: 4px;

  color: #7b838d;

  font-size: 11px;
  line-height: 1.3;
}


/* =========================================================
   ACTIVE FILTER
   ========================================================= */

.media-filter.active {
  background: var(--color-primary);
  border-color: var(--color-primary);

  box-shadow: 0 8px 22px rgba(18, 53, 91, .12);
}

.media-filter.active .media-filter-label {
  color: #fff;
}

.media-filter.active .media-filter-description {
  color: rgba(255, 255, 255, .72);
}


/* =========================================================
   FOCUS
   ========================================================= */

.media-filter:focus-visible {
  outline: 3px solid rgba(200, 169, 106, .3);
  outline-offset: 3px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .media-filter-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .media-filter-header>p {
    max-width: 650px;
  }
}


@media (max-width: 767px) {

  .media-filters-section {
    padding-bottom: 40px;
  }

  .media-filters {
    flex-wrap: nowrap;

    overflow-x: auto;

    padding: 3px 2px 12px;

    scrollbar-width: none;
  }

  .media-filters::-webkit-scrollbar {
    display: none;
  }

  .media-filter {
    flex: 0 0 auto;

    min-width: 135px;
  }
}


@media (max-width: 576px) {

  .media-filter-header h2 {
    font-size: 30px;
  }

  .media-filter-header>p {
    font-size: 13px;
  }

  .media-filter {
    min-width: 125px;
    min-height: 58px;

    padding: 9px 15px;
  }
}


/* =========================================================
   FEATURED MEDIA
   ========================================================= */

.featured-media {
  position: relative;
  margin-bottom: 80px;
}

.featured-media-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  align-items: stretch;

  min-height: 460px;

  background: var(--color-surface, #fff);
  border: 1px solid var(--border-color, #e4dfd6);
  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 18px 45px rgba(34, 48, 71, .07);
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.featured-media-content {
  position: relative;

  min-width: 0;
  min-height: 460px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--color-surface-alt, #f1eee8);

  overflow: hidden;
}


/*
 * Anything returned by render_media_content()
 * must remain constrained to this container.
 */

.featured-media-content>* {
  max-width: 100%;
}


/* Images */

.featured-media-content img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;

  object-fit: cover;
}


/* =========================================================
   EMBEDDED MEDIA
   ========================================================= */

.featured-media-content iframe,
.featured-media-content video,
.featured-media-content embed,
.featured-media-content object {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  border: 0;
}


/*
 * YouTube / iframe embeds.
 *
 * The wrapper generated by render_media_content()
 * should normally provide the aspect ratio.
 */

.featured-media-content iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
}


/* Native video */

.featured-media-content video {
  height: auto;
  max-height: 560px;

  object-fit: contain;

  background: #000;
}


/* =========================================================
   EMBED WRAPPER
   ========================================================= */

.featured-media-content .media-embed,
.featured-media-content .media-embed-wrapper,
.featured-media-content .embed-responsive {
  position: relative;

  width: 100%;
  max-width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;
}

.featured-media-content .media-embed iframe,
.featured-media-content .media-embed-wrapper iframe,
.featured-media-content .embed-responsive iframe {
  position: absolute;

  inset: 0;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
}


/* =========================================================
   FEATURED DETAILS
   ========================================================= */

.featured-media-details {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;

  padding: 55px 48px;

  background: var(--color-surface, #fff);
}


.featured-media-eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 18px;

  color: var(--color-accent, #C8A96A);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: .14em;
  text-transform: uppercase;
}


.featured-media-details h2 {
  margin: 0 0 18px;

  color: var(--color-heading, #223047);

  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}


.featured-media-details p {
  margin: 0 0 20px;

  color: var(--color-body, #4d5663);

  font-size: 15px;
  line-height: 1.8;
}


/* =========================================================
   META
   ========================================================= */

.featured-media-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;

  margin-bottom: 25px;

  color: #7a818b;

  font-size: 12px;
}


.featured-media-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.featured-media-meta span+span::before {
  content: "";

  width: 4px;
  height: 4px;

  margin-right: 8px;

  border-radius: 50%;

  background: var(--color-accent, #C8A96A);
}


/* =========================================================
   FEATURED CTA
   ========================================================= */

.featured-media-action {
  margin-top: auto;
  padding-top: 15px;
}

.featured-media-action .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
}


/* =========================================================
   FEATURED GALLERY
   ========================================================= */

.featured-media-content.media-gallery {
  position: relative;
}

.featured-media-content.media-gallery img {
  cursor: pointer;
}


/* =========================================================
   MEDIA TYPE LABEL
   ========================================================= */

.featured-media-type {
  position: absolute;

  top: 20px;
  left: 20px;

  z-index: 5;

  padding: 7px 12px;

  border-radius: 999px;

  background: rgba(255, 255, 255, .94);

  color: var(--color-primary, #12355B);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .1em;
  text-transform: uppercase;

  box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
}


/* =========================================================
   FEATURED PLAY BUTTON
   ========================================================= */

.featured-media-play {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;

  background: rgba(18, 53, 91, .9);

  color: #fff;

  transition:
    transform .3s ease,
    background-color .3s ease;
}

.featured-media-play::after {
  content: "";

  width: 0;
  height: 0;

  margin-left: 4px;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.featured-media-content:hover .featured-media-play {
  transform: translate(-50%, -50%) scale(1.08);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .featured-media-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  }

  .featured-media-details {
    padding: 40px 32px;
  }
}


@media (max-width: 900px) {

  .featured-media-inner {
    grid-template-columns: 1fr;
  }

  .featured-media-content {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .featured-media-details {
    min-height: auto;
    padding: 35px 30px;
  }

  .featured-media-action {
    margin-top: 5px;
  }
}


@media (max-width: 576px) {

  .featured-media {
    margin-bottom: 55px;
  }

  .featured-media-inner {
    border-radius: 14px;
  }

  .featured-media-content {
    aspect-ratio: 16 / 10;
  }

  .featured-media-details {
    padding: 30px 22px;
  }

  .featured-media-details h2 {
    font-size: 27px;
  }

  .featured-media-details p {
    font-size: 14px;
    line-height: 1.7;
  }

  .featured-media-play {
    width: 54px;
    height: 54px;
  }
}




/* =========================================================
   MEDIA LIBRARY
   ========================================================= */

.media-library {
  padding: 20px 0 90px;
}


/* =========================================================
   LIBRARY HEADER
   ========================================================= */

.media-library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;
  margin-bottom: 35px;
}

.media-library-header h2 {
  margin: 7px 0 0;

  color: var(--color-heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.media-library-header p {
  max-width: 480px;
  margin: 0;

  color: var(--color-body);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   MEDIA GRID
   ========================================================= */

.media-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}


/* =========================================================
   MEDIA CARD
   ========================================================= */

.media-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;

  background: var(--color-surface);
  border: 1px solid #e5e0d7;
  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 8px 25px rgba(34, 48, 71, .045);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.media-card:hover {
  transform: translateY(-5px);

  border-color: rgba(200, 169, 106, .6);

  box-shadow: 0 18px 38px rgba(34, 48, 71, .09);
}


/* =========================================================
   MEDIA VISUAL
   ========================================================= */

.media-card-media {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: var(--color-surface-alt);
}


/*
 * Images
 */

.media-card-media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s ease;
}

.media-card:hover .media-card-media img {
  transform: scale(1.04);
}


/* =========================================================
   EMBEDDED CONTENT
   ========================================================= */

.media-card-media iframe,
.media-card-media video,
.media-card-media embed,
.media-card-media object {
  display: block;

  width: 100% !important;
  max-width: 100% !important;

  height: 100% !important;

  border: 0;
}


/*
 * Important:
 * iframe content must stay inside the card.
 */

.media-card-media iframe {
  position: absolute;

  inset: 0;

  aspect-ratio: 16 / 9;
}


/* =========================================================
   EMBED WRAPPERS
   ========================================================= */

.media-card-media .media-embed,
.media-card-media .media-embed-wrapper,
.media-card-media .embed-responsive {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

.media-card-media .media-embed iframe,
.media-card-media .media-embed-wrapper iframe,
.media-card-media .embed-responsive iframe {
  position: absolute;

  inset: 0;

  width: 100% !important;
  height: 100% !important;
}


/* =========================================================
   VIDEO
   ========================================================= */

.media-card-media video {
  object-fit: cover;

  background: #111;
}


/* =========================================================
   MEDIA TYPE BADGE
   ========================================================= */

.media-card-type {
  position: absolute;

  top: 14px;
  left: 14px;

  z-index: 5;

  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(255, 255, 255, .94);

  color: var(--color-primary);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: .1em;
  text-transform: uppercase;

  box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}


/* =========================================================
   PLAY BUTTON
   ========================================================= */

.media-card-play {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 4;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;

  background: rgba(18, 53, 91, .9);

  pointer-events: none;

  transition: transform .3s ease;
}

.media-card:hover .media-card-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.media-card-play::after {
  content: "";

  width: 0;
  height: 0;

  margin-left: 3px;

  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}


/* =========================================================
   GALLERY INDICATOR
   ========================================================= */

.media-gallery-count {
  position: absolute;

  right: 14px;
  bottom: 14px;

  z-index: 5;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(18, 53, 91, .9);

  color: #fff;

  font-size: 10px;
  font-weight: 600;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.media-card-body {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 20px 20px 22px;
}


/* =========================================================
   META
   ========================================================= */

.media-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  padding: 0 15px 0 15px;

  gap: 8px 14px;

  margin-bottom: 9px;

  color: #858b93;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: .03em;
}

.media-card-meta span+span::before {
  content: "";

  display: inline-block;

  width: 4px;
  height: 4px;

  margin-right: 9px;

  vertical-align: middle;

  border-radius: 50%;

  background: var(--color-accent);
}


/* =========================================================
   TITLE
   ========================================================= */

.media-card-title {
  margin: 0 0 9px;

  color: var(--color-heading);

  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.media-card-title a {
  color: inherit;
  text-decoration: none;

  transition: color .25s ease;
}

.media-card-title a:hover {
  color: var(--color-primary-light);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.media-card-description {
  display: -webkit-box;

  margin: 0;

  color: var(--color-body);

  font-size: 13px;
  line-height: 1.65;

  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: auto;
  padding-top: 18px;
}

.media-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--color-primary);

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;

  transition: gap .25s ease;
}

.media-card-link:hover {
  gap: 11px;
}

.media-card-link::after {
  content: "→";

  color: var(--color-accent);

  font-size: 15px;
}


/* =========================================================
   GALLERY CARD
   ========================================================= */

.media-card.is-gallery .media-card-media {
  cursor: pointer;
}

.media-card.is-gallery .media-card-media::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(to top,
      rgba(18, 53, 91, .35),
      transparent 45%);

  pointer-events: none;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.media-library-empty {
  padding: 70px 30px;

  border: 1px dashed #d8d2c8;
  border-radius: 14px;

  text-align: center;

  background: var(--color-surface-alt);
}

.media-library-empty h3 {
  margin: 0 0 8px;

  color: var(--color-heading);
}

.media-library-empty p {
  margin: 0;

  color: var(--color-body);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 900px) {

  .media-library-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }

  .media-library-header p {
    max-width: 650px;
  }
}


@media (max-width: 650px) {

  .media-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .media-card-media {
    aspect-ratio: 16 / 10;
  }

  .media-card-body {
    padding: 18px 18px 20px;
  }

  .media-card-title {
    font-size: 17px;
  }
}