/* Inherit Uchtti's existing player shape and controls; Vimeo provides only video. */
.uchtti-vimeo .uchtti-youtube-mount { overflow: hidden; }
.uchtti-vimeo .uchtti-youtube-mount iframe { position: absolute; top: 50%; left: 50%; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.uchtti-vimeo .uchtti-youtube-placeholder { pointer-events: none; }
.uchtti-vimeo [data-vimeo-message]:not(:empty) { position: relative; z-index: 1; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; }
.uchtti-vimeo.home-vimeo-video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; z-index: 0; pointer-events: none; }
.uchtti-vimeo.home-vimeo-video .uchtti-youtube-controls { display: none; }

/* All Works providers use the native card, link, badge and overlaid caption. */
.works-wrapper :is(.work-card-media, .work-grid-thumb) > .uchtti-youtube {
	position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
	aspect-ratio: auto; border-radius: 0; pointer-events: none; isolation: auto;
}
.works-wrapper .uchtti-youtube :is(iframe, .uchtti-youtube-placeholder) { pointer-events: none; }
.works-wrapper .uchtti-youtube [role="status"] { display: none; }
/* Keep the embed visible to Vimeo while the poster covers its first frame. */
.uchtti-vimeo .uchtti-youtube-mount iframe { visibility: visible; }
/* Match the native inline preview: the whole surface opens the gallery. */
.project-wrapper .project-inline-youtube .uchtti-youtube-controls { display: none; }
.project-wrapper #project-splide .project-inline-youtube .project-youtube-expand {
	position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
	display: block; border: 0; border-radius: inherit; background: transparent;
	backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer;
}
.project-wrapper #project-splide .project-youtube-expand .project-expand-icon svg { width: 55%; height: 55%; }

.project-lightbox.has-gallery-cursor .project-media-youtube,
.project-lightbox.has-gallery-cursor .project-media-youtube .uchtti-youtube { cursor: none; }
