/* BV Speaking Grid — layout de la grilla.
   El diseño del modal y de .bv-grid__card / .bv-grid__play viene del tema hijo (astra-child). */

.bvsg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bvsg-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  min-width: 0;
}

.bvsg-card {
  height: 195px;
}

.bvsg-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.bvsg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bvsg-text > :last-child {
  margin-bottom: 0;
}

.bvsg-text p {
  margin: 0 0 0.8em;
}

/* Descripción del modal (editor visual genera <p>) */
.bvsg-modal .bv-modal__desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bvsg-modal .bv-modal__desc p {
  margin: 0 0 0.8em;
}

.bvsg-modal .bv-modal__desc > :last-child {
  margin-bottom: 0;
}

.bvsg-modal .bv-modal__image.bvsg-fit-contain img {
  object-fit: contain;
}

/* Solo visible en el editor */
.bvsg-item--hidden {
  opacity: 0.35;
  outline: 1px dashed currentColor;
}

.bvsg-empty {
  padding: 24px;
  border: 1px dashed currentColor;
  text-align: center;
  opacity: 0.7;
}
