.ycag-gallery {
  --ycag-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--ycag-columns), minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.ycag-card {
  min-width: 0;
  overflow: hidden;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid #f1c978;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(34, 35, 40, 0.08);
}

.ycag-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
}

.ycag-media img,
.ycag-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ycag-media img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ycag-card:hover .ycag-media img {
  transform: scale(1.025);
}

.ycag-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ycag-play svg {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

.ycag-play:hover svg,
.ycag-play:focus-visible svg {
  transform: scale(1.08);
}

.ycag-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

.ycag-play-bg {
  fill: #111;
  fill-opacity: 0.88;
}

.ycag-play-icon {
  fill: #fff;
}

.ycag-title {
  margin: 16px 2px 2px;
  padding: 0;
  color: #061228;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.ycag-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ycag-title a:hover,
.ycag-title a:focus-visible {
  color: #b76e00;
}

.ycag-empty {
  padding: 18px 20px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #444;
}

@media (max-width: 1024px) {
  .ycag-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ycag-gallery {
    grid-template-columns: 1fr;
  }

  .ycag-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ycag-media img,
  .ycag-play svg,
  .ycag-title a {
    transition: none;
  }
}
