.vcy-gallery {
  --vcy-columns: 3;
  --vcy-tablet-columns: 2;
  box-sizing: border-box;
  width: 100%;
  color: inherit;
  font: inherit;
}

.vcy-gallery *,
.vcy-gallery *::before,
.vcy-gallery *::after {
  box-sizing: inherit;
}

.vcy-grid {
  display: grid;
  grid-template-columns: repeat(var(--vcy-columns), minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.vcy-video {
  display: block;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.vcy-thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  background: transparent;
}

.vcy-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.vcy-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 40px;
  border-radius: 10px;
  background: currentColor;
  opacity: 0.82;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.vcy-play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--wp--preset--color--base, Canvas);
  content: "";
  transform: translate(-50%, -50%);
}

.vcy-video:hover .vcy-thumbnail img,
.vcy-video:focus-visible .vcy-thumbnail img {
  opacity: 0.86;
  transform: scale(1.025);
}

.vcy-video:hover .vcy-play,
.vcy-video:focus-visible .vcy-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.vcy-video:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.vcy-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  font-family: var(--vcy-title-font-family, inherit);
  font-size: var(--vcy-title-font-size, inherit);
  font-weight: var(--vcy-title-font-weight, inherit);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vcy-actions {
  margin-top: clamp(24px, 3vw, 36px);
  text-align: center;
}

.vcy-view-all {
  font-family: inherit;
}

.vcy-view-all.vcy-has-custom-color,
.vcy-view-all.vcy-has-custom-color:hover,
.vcy-view-all.vcy-has-custom-color:focus-visible {
  border-color: var(--vcy-button-color) !important;
  background: var(--vcy-button-color) !important;
  color: var(--vcy-button-text-color) !important;
}

.vcy-view-all.vcy-has-custom-color:hover,
.vcy-view-all.vcy-has-custom-color:focus-visible {
  filter: brightness(0.88);
}

.vcy-message {
  padding: 12px 16px;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
}

@media (max-width: 782px) {
  .vcy-grid {
    grid-template-columns: repeat(var(--vcy-tablet-columns), minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vcy-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vcy-gallery * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
