/* Lean Media Player: YouTube boxes (click to load, consent notice, link only). The .lye class
   names are Lean YouTube Embeds', kept so themes' own rules for them keep working. */
.lye{position:relative;box-sizing:border-box;display:block;width:100%;max-width:100%;background:#000;overflow:hidden;margin:0 0 1.5em;padding:0;container:lye/inline-size;line-height:1.4}
.lye *,.lye *::before,.lye *::after{box-sizing:border-box}
.lye-center{margin-left:auto;margin-right:auto}
.lye iframe{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0}
.lye-facade{cursor:pointer}
.lye .lye-thumb{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;object-fit:cover}

/* Play button: YouTube's (default rules) … */
.lye .lye-play{position:absolute;left:50%;top:50%;z-index:2;display:block;width:68px;height:48px;margin:0;padding:0;border:0;border-radius:14px;transform:translate(-50%,-50%);background:none;box-shadow:none;text-decoration:none;line-height:0}
.lye .lye-play svg{display:block;width:100%;height:100%}
.lye-play .lye-bg{fill:#212121;fill-opacity:.8}
.lye-facade:hover .lye-bg,.lye-play:focus-visible .lye-bg{fill:red;fill-opacity:1}
.lye .lye-play:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* … or Lean Media Player's: round, in the site's player colours, like its own video player. */
.lye-site{border-radius:var(--lap-radius,10px)}
.lye.lye-site .lye-play{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:var(--lap-primary,#4A5464);color:var(--lap-bg,#F5F5F5);box-shadow:0 4px 18px rgba(0,0,0,.35);transition:transform .15s}
.lye.lye-site .lye-play svg{width:38px;height:38px;fill:currentColor;margin-left:3px}
.lye-site.lye-facade:hover .lye-play,.lye-site .lye-play:focus-visible,a.lye-linked:hover .lye-site .lye-play{transform:translate(-50%,-50%) scale(1.06)}

/* The title, at the top of the picture. */
.lye .lye-title{position:absolute;left:0;right:0;top:0;z-index:1;margin:0;padding:.7em 1em 1.8em;color:#fff;font-weight:600;font-size:clamp(.8rem,2.4cqw,1.1rem);line-height:1.3;text-align:left;text-shadow:0 1px 3px rgba(0,0,0,.6);background:linear-gradient(rgba(0,0,0,.7),rgba(0,0,0,0));pointer-events:none;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* Consent notice. Theme rules for buttons and links are reset inside it. */
.lye-consent{cursor:default}
.lye.lye-consent .lye-play,.lye.lye-site.lye-consent .lye-play{display:none}
.lye .lye-consent-box{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9em;margin:0;padding:1em 1.25em;text-align:center;color:#fff;background:rgba(0,0,0,.78);font-size:.9rem;line-height:1.45;overflow:auto}
.lye .lye-consent-text{max-width:34em}
.lye .lye-consent-text p{margin:0 0 .4em;color:inherit;font-size:inherit}
.lye .lye-consent-text a,.lye .lye-alt a,.lye .lye-tip a{color:inherit;text-decoration:underline}
.lye .lye-consent-accept{appearance:none;display:inline-block;width:auto;min-width:0;min-height:0;height:auto;margin:0;font:inherit;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;text-shadow:none;padding:.6em 1.4em;border:0;border-radius:4px;background:#fff;color:#111;box-shadow:none;cursor:pointer}
.lye .lye-consent-accept:hover{background:#e6e6e6;color:#111}
.lye-site .lye-consent-accept,.lye-site .lye-consent-accept:hover{border-radius:999px;background:var(--lap-primary,#4A5464);color:var(--lap-bg,#F5F5F5)}
.lye-site .lye-consent-accept:hover{filter:brightness(1.12)}
.lye .lye-consent-accept:focus-visible{outline:3px solid #fff;outline-offset:3px}
.lye-consent-reset:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.lye-alt,.lye-tip{font-size:.85em;opacity:.9}

/* Smaller boxes (narrow columns, phones, Shorts): smaller text and button; less to read. */
@container lye (max-width:480px){
	.lye .lye-consent-box{font-size:.78rem;gap:.55em;padding:.6em .8em}
	.lye .lye-alt>span,.lye .lye-tip{display:none}
	.lye.lye-site .lye-play{width:56px;height:56px}
	.lye.lye-site .lye-play svg{width:30px;height:30px}
}
@container lye (max-width:300px){
	.lye .lye-consent-box{font-size:.72rem}
	.lye .lye-title{-webkit-line-clamp:1}
}
@supports not (container-type:inline-size){
	@media (max-width:480px){.lye .lye-consent-box{font-size:.8rem;gap:.6em}}
}

/* Inside a core embed block on themes with responsive-embeds: let core's aspect-ratio box size us. */
.wp-embed-responsive .wp-has-aspect-ratio .lye{position:absolute;inset:0;max-width:none!important;aspect-ratio:auto!important;margin:0}
.wp-block-embed__wrapper>.lye{margin-bottom:0}

/* Link only. */
.lye .lye-link-bar{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25em 1em;padding:.5em .75em;font-size:.85rem;line-height:1.4;color:#fff;background:rgba(0,0,0,.75)}
.lye .lye-link-title{font-weight:600}
.lye .lye-link-bar .lye-alt{font-size:1em}
.lye-unavailable{display:flex;align-items:center;justify-content:center;padding:1em;text-align:center;color:#fff;background:#222}
.lye-unavailable p{margin:0;color:inherit}
img.lye-linked-thumb{max-width:100%;height:auto}
/* Images that link to YouTube ("keep the link" mode): 16:9 frame, crops black bars, play button. */
a.lye-linked{display:block;text-decoration:none;box-shadow:none;border:0}
.lye-linked-box{display:block}
.lye-linked-box img{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;object-fit:cover}
a.lye-linked:hover .lye-bg,a.lye-linked:focus-visible .lye-bg{fill:red;fill-opacity:1}
a.lye-linked:focus-visible{outline:3px solid currentColor;outline-offset:3px}


@media (prefers-reduced-motion:reduce){.lye.lye-site .lye-play{transition:none}}
