.custom-videoblock-wrapper {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid #ddd;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.custom-videoblock-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.custom-videoblock-video {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: black;
  width: 100%;
}
.custom-videoblock-video.aspect-horizontal::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.custom-videoblock-video.aspect-vertical {
  height: 450px;
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
}

.custom-videoblock-video.aspect-vertical::before {
display: none; 
}
.custom-videoblock-video.aspect-vertical iframe {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}
.custom-videoblock-video.narrow {
  width: 75%;
}
.custom-videoblock-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.custom-videoblock-badge {
  position: absolute;
  top: 10px; /* ⬅ було bottom: */
  right: 10px;
  background-color: #d1ff74; /* ⬅ світло-зелений */
  color: #000;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.custom-videoblock-caption {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}
