.wp-mux-shortcodes-box {
  position: relative;
  margin: 0;
}

.wp-mux-shortcodes-box iframe,
.wp-mux-shortcodes-box mux-player {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.wp-mux-shortcodes-box.wp-mux-has-height {
  height: var(--wp-mux-height);
  aspect-ratio: auto !important;
}

.wp-mux-shortcodes-gallery {
  width: 100%;
}

.wp-mux-gallery-heading {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.3;
}

.wp-mux-gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  scrollbar-width: thin;
}

.wp-mux-gallery-item {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 12px;
  width: 180px;
  min-width: 180px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wp-mux-gallery-item:hover,
.wp-mux-gallery-item:focus-visible,
.wp-mux-gallery-item.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.wp-mux-gallery-thumb-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: 8px;
}

.wp-mux-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-mux-gallery-thumb--empty {
  background: linear-gradient(135deg, #111, #333);
}

.wp-mux-gallery-label {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
  word-break: break-word;
}

@media (max-width: 767px) {
  .wp-mux-shortcodes-box.wp-mux-has-mobile-height {
    height: var(--wp-mux-mobile-height) !important;
    aspect-ratio: auto !important;
  }

  .wp-mux-gallery-item {
    width: 140px;
    min-width: 140px;
  }
}
