/* ===== YT Video Balados – FR ===== */
.ytgb-wrapper { padding: 24px 0; }

/* ---- Panel with 2 video cards (no background) ---- */
.ytgb-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.ytgb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 560px) {
  .ytgb-grid { grid-template-columns: 1fr; }
}

.ytgb-card { cursor: pointer; outline: none; text-align: left; }

.ytgb-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}
.ytgb-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.ytgb-card:hover .ytgb-thumb img,
.ytgb-card:focus .ytgb-thumb img { transform: scale(1.03); }

/* Blue circular play badge, centered over the thumbnail */
.ytgb-thumb::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid #1e6aa8;
  background: rgba(30,106,168,.18);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  pointer-events: none;
}
.ytgb-thumb::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-30%, -50%);
  border-left: 16px solid #1e6aa8;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  z-index: 2;
  pointer-events: none;
}

.ytgb-title {
  margin: 14px 0 0;
  font-size: .95rem;
  font-weight: 700;
  color: #0b2540;
  text-align: center;
  line-height: 1.35;
}

/* ---- Lightbox (reused pattern) ---- */
.ytgb-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.ytgb-lightbox[hidden] { display: none; }
.ytgb-embed { width: 90vw; max-width: 960px; aspect-ratio: 16/9; background: #000; }
.ytgb-embed iframe { width: 100%; height: 100%; border: 0; }
.ytgb-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 32px; color: #fff; background: none; border: 0; cursor: pointer;
}
