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

.mmg-source-gallery {
  display: none !important;
}

.mmg-wrap {
  width: 100%;
  padding: 0 26px 24px;
  box-sizing: border-box;
}

.mmg-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.mmg-filters button {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mmg-filters button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.30);
}

.mmg-filters button.is-active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.38);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* ========================================
   GALLERY, FEATURED HERO
   ======================================== */

.mmg-featured {
  position: relative;
  display: block;
  margin: 0 0 26px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 20px 52px rgba(0,0,0,0.22);
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.38s ease;
  transform-origin: center center;
  will-change: opacity, transform;
}

.mmg-featured-inner {
  position: relative;
  display: block;
}

.mmg-featured-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  transform: none;
}

/* Defeat Salient generic img width:auto rule */
.mmg-featured .mmg-featured-media img,
.row .col .mmg-featured .mmg-featured-media img,
.row .col .mmg-featured .mmg-featured-media img:not([srcset]) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 0.45s ease;
}

.mmg-featured-media:hover img {
  transform: scale(1.03);
}

.mmg-featured-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding: 28px 30px 24px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.68) 34%,
    rgba(0,0,0,0.28) 62%,
    rgba(0,0,0,0) 100%
  );
}

.mmg-featured-label {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.mmg-featured-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.mmg-featured-type {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.76);
}

.mmg-featured-media .mmg-play {
  z-index: 2;
}

.mmg-wrap .mmg-featured-mobile {
  display: none !important;
  margin: 0 0 26px;
}

.mmg-featured-mobile-inner {
  position: relative;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(38, 10, 20, 0.84), rgba(14, 6, 11, 0.96));
  box-shadow: 0 20px 52px rgba(0,0,0,0.28);
  overflow: hidden;
  padding: 16px;
}

.mmg-featured-mobile-label {
  padding: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.mmg-featured-mobile-media {
  position: relative;
  display: block;
  width: 100%;
  margin: 14px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}

.mmg-featured-mobile .mmg-featured-mobile-media img,
.row .col .mmg-featured-mobile .mmg-featured-mobile-media img,
.row .col .mmg-featured-mobile .mmg-featured-mobile-media img:not([srcset]) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.mmg-featured-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 2px;
}

.mmg-featured-mobile-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  color: #fff;
}

.mmg-featured-mobile-type {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.76);
}

.mmg-featured-mobile .mmg-play {
  z-index: 4;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mmg-featured-mobile .mmg-featured-mobile-media:hover .mmg-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.56);
}

/* ========================================
   GALLERY, GRID
   ======================================== */

.mmg-grid {
  column-count: 3;
  column-gap: 18px;
}

.mmg-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.mmg-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 20px 42px rgba(0,0,0,0.24);
}

.mmg-item img,
.row .col .mmg-item img,
.row .col .mmg-item img:not([srcset]) {
  width: 100%;
  max-width: none !important;
  min-width: 0 !important;
  height: auto;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.mmg-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.03);
}

.mmg-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.24);
  pointer-events: none;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.mmg-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.mmg-item:hover .mmg-play,
.mmg-featured-media:hover .mmg-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.56);
}

/* ========================================
   GALLERY, LOAD MORE
   ======================================== */

.mmg-load-more {
  display: block;
  margin: 34px auto 0;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mmg-load-more:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.34);
}

/* ========================================
   GALLERY, MODAL
   ======================================== */

.mmg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 28px 74px 64px;
}

.mmg-modal[hidden] {
  display: none !important;
}

.mmg-modal-inner {
  width: min(92vw, 1160px);
  max-width: min(92vw, 1160px);
  max-height: 82vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmg-modal img {
  max-width: 100%;
  max-height: 82vh;
  display: block;
  border-radius: 14px;
  border: 0;
}

.mmg-modal iframe {
  width: min(92vw, 1160px);
  height: min(80vh, 65.25vw);
  max-width: 100%;
  display: block;
  border-radius: 14px;
  border: 0;
  background: #000;
}

.mmg-close,
.mmg-prev,
.mmg-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.10);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.24);
  z-index: 2;
}

.mmg-close {
  top: 18px;
  right: 18px;
}

.mmg-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.mmg-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.mmg-close:hover,
.mmg-prev:hover,
.mmg-next:hover {
  background: rgba(255,255,255,0.18);
}

.mmg-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.4;
}

.mmg-counter {
  position: absolute;
  top: 22px;
  left: 22px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1;
}

body.mmg-open {
  overflow: hidden;
}

.mmg-item,
.mmg-featured-media {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    rgba(0,0,0,0.18);
}

.mmg-lazy-image {
  opacity: 0.72;
  filter: blur(18px) saturate(0.92);
  transform: scale(1.025);
  transition:
    opacity 0.35s ease,
    filter 0.55s ease,
    transform 0.65s ease;
  will-change: opacity, filter, transform;
}

.mmg-lazy-image.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.mmg-featured-media .mmg-lazy-image {
  transition-duration: 0.25s, 0.45s, 0.5s;
}

.mmg-grid .mmg-item {
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}

/* ========================================
   GALLERY, RESPONSIVE
   ======================================== */

@media (max-width: 999px) {
  .mmg-grid {
    column-count: 2;
  }
}

@media (max-width: 900px) {
  .mmg-featured-content {
    padding: 20px 20px 18px;
  }

  .mmg-featured-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .mmg-wrap {
    padding: 0 14px 18px;
  }

  .mmg-wrap .mmg-featured {
    display: none !important;
  }

  .mmg-wrap .mmg-featured-mobile {
    display: block !important;
  }

  .mmg-grid {
    column-count: 1;
  }

  .mmg-play {
    width: 50px;
    height: 50px;
  }

  .mmg-play::before {
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .mmg-modal {
    padding: 14px 14px 56px;
  }

  .mmg-prev,
  .mmg-next {
    display: none;
  }

  .mmg-modal iframe {
    width: 100%;
    height: min(54vw, 300px);
  }

  .mmg-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }

  .mmg-counter {
    top: 16px;
    left: 16px;
  }
