/* CCK Video Gallery – front end */
.cck-vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 1.5rem auto; }
.cck-vg-item { margin: 0; background: #fff; border: 1px solid #ddd; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; }
.cck-vg-item:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.18); }
.cck-vg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #152238; overflow: hidden; cursor: pointer; }
.cck-vg-thumb img,
.cck-vg-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cck-vg-placeholder { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 0.75rem; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cck-vg-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,0.6); border: 2px solid #fff; transition: background 0.2s, transform 0.2s; }
.cck-vg-play:after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.cck-vg-thumb:hover .cck-vg-play,
.cck-vg-thumb:focus .cck-vg-play { background: #c4302b; transform: scale(1.08); }
.cck-vg-item figcaption { padding: 0.7rem 0.8rem; font-size: 0.95rem; color: #333; text-align: center; font-weight: 600; }

.cck-vg-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,0.88); }
.cck-vg-modal-inner { position: relative; width: 100%; max-width: 1000px; }
.cck-vg-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.cck-vg-frame iframe,
.cck-vg-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.cck-vg-modal-caption { color: #fff; text-align: center; margin-top: 0.75rem; font-size: 1rem; }
.cck-vg-close,
.cck-vg-nav { position: absolute; border: 0; background: rgba(255,255,255,0.15); color: #fff; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 44px; padding: 0; text-align: center; }
.cck-vg-close { right: 0; top: -54px; }
.cck-vg-nav { top: 50%; margin-top: -22px; }
.cck-vg-prev { left: -56px; }
.cck-vg-next { right: -56px; }
.cck-vg-close:hover,
.cck-vg-nav:hover { background: rgba(255,255,255,0.35); }
@media (max-width: 1120px) {
	.cck-vg-prev { left: 4px; }
	.cck-vg-next { right: 4px; }
	.cck-vg-nav { z-index: 2; }
}
body.cck-vg-open { overflow: hidden; }
