.mmg-wrap { width: 100%; }

.mmg-filters {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mmg-filter {
  background: transparent;
  border: 0;
  color: #b9b9b9;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 10px;
  opacity: .85;
}
.mmg-filter.is-active { color: #fff; opacity: 1; }

.mmg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1024px) {
  .mmg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mmg-grid { grid-template-columns: 1fr; }
}

.mmg-item {
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  position: relative;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}
.mmg-item img {
  width: 100%;
  height: auto;
  display: block;
}

.mmg-play {
  position: absolute;
  inset: auto auto 14px 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.mmg-card.is-hidden { display: none; }

/* Lightbox */
.mmg-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.75);
  z-index: 99999;
  padding: 18px;
}
.mmg-lightbox.is-open { display: grid; }

.mmg-lightbox-inner {
  width: min(980px, 95vw);
  background: #0b0b0b;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.mmg-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  background: rgba(0,0,0,.4);
  border: 0;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
}

.mmg-content img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.mmg-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
