/* Core YouTube Videos. Every color and size is a variable, so the Elementor style controls can change it. */
.core-yt {
	--yt-cols: 4;
	--yt-gap: 18px;
	--yt-header-gap: 24px;
	--yt-empty: #6b7a72;
	--yt-header-bg: #dbe9fb;
	--yt-header-radius: 18px;
	--yt-header-pad: 14px 28px 14px 28px;
	--yt-logo-w: 64px;
	--yt-header-title: #0f1f5c;
	--yt-link: #0f1f5c;
	--yt-card-bg: #ffffff;
	--yt-card-border: #e3e8e5;
	--yt-card-border-w: 1px;
	--yt-card-radius: 16px;
	--yt-card-pad: 14px 16px 16px 16px;
	--yt-ratio: 16 / 9;
	--yt-image-radius: 16px;
	--yt-title: #0f1f5c;
	--yt-desc: #5b6670;
	--yt-lines: 2;
	--yt-play-bg: #ff0000;
	--yt-play-color: #ffffff;
	--yt-play-w: 64px;
	--yt-play-radius: 14px;
	--yt-time-bg: rgba(0, 0, 0, .8);
	--yt-time-color: #ffffff;
	--yt-time-radius: 8px;
	--yt-overlay: rgba(0, 0, 0, .8);
	--yt-modal-w: 900px;
	--yt-modal-radius: 12px;
	box-sizing: border-box;
}
.core-yt *, .core-yt *::before, .core-yt *::after { box-sizing: border-box; }
.core-yt a { text-decoration: none; }
.core-yt [hidden] { display: none !important; }

/* Header bar */
.core-yt .yt-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: var(--yt-header-gap); padding: var(--yt-header-pad); background: var(--yt-header-bg); border-radius: var(--yt-header-radius); }
.core-yt .yt-header-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.core-yt .yt-logo { display: block; width: var(--yt-logo-w); height: auto; flex: 0 0 auto; }
.core-yt .yt-header-title { margin: 0; color: var(--yt-header-title); font-size: 34px; font-weight: 800; line-height: 1.15; }
.core-yt .yt-header-link { color: var(--yt-link); font-size: 22px; font-weight: 700; white-space: nowrap; }
.core-yt .yt-header-link:hover { opacity: .8; }
.core-yt .yt-empty { margin: 0; color: var(--yt-empty); }

/* Cards */
.core-yt .yt-grid { display: grid; grid-template-columns: repeat(var(--yt-cols), minmax(0, 1fr)); gap: var(--yt-gap); }
.core-yt .yt-card { display: flex; flex-direction: column; overflow: hidden; background: var(--yt-card-bg); border: var(--yt-card-border-w) solid var(--yt-card-border); border-radius: var(--yt-card-radius); box-shadow: 0 6px 18px rgba(15, 31, 92, .12); }
.core-yt .yt-media { position: relative; display: block; width: 100%; aspect-ratio: var(--yt-ratio); overflow: hidden; border-radius: var(--yt-image-radius); background: #dfe5e1; }
.core-yt .yt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.core-yt .yt-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: var(--yt-play-w); aspect-ratio: 64 / 44; transform: translate(-50%, -50%); background: var(--yt-play-bg); color: var(--yt-play-color); border-radius: var(--yt-play-radius); transition: transform .15s ease; }
.core-yt .yt-media:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.core-yt .yt-time { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; background: var(--yt-time-bg); color: var(--yt-time-color); border-radius: var(--yt-time-radius); font-size: 15px; font-weight: 700; line-height: 1.3; }
.core-yt .yt-body { padding: var(--yt-card-pad); }
.core-yt .yt-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.core-yt .yt-title a { color: var(--yt-title); }
.core-yt .yt-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--yt-lines); overflow: hidden; margin: 0; color: var(--yt-desc); font-size: 14px; line-height: 1.5; }

/* Popup */
body.core-yt-open { overflow: hidden; }
.core-yt .yt-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--yt-overlay); }
.core-yt .yt-modal-box { position: relative; width: 100%; max-width: var(--yt-modal-w); }
.core-yt .yt-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--yt-modal-radius); }
.core-yt .yt-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.core-yt .yt-modal-close { position: absolute; top: -40px; right: 0; padding: 0 4px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

@media (max-width: 1024px) {
	.core-yt { --yt-cols: 2; }
	.core-yt .yt-header-title { font-size: 26px; }
	.core-yt .yt-header-link { font-size: 17px; }
}
@media (max-width: 767px) {
	.core-yt { --yt-cols: 1; --yt-logo-w: 44px; --yt-play-w: 54px; }
	.core-yt .yt-header { padding: 12px 16px; }
	.core-yt .yt-header-left { gap: 12px; }
	.core-yt .yt-header-title { font-size: 21px; }
	.core-yt .yt-header-link { font-size: 14px; }
}
