/* =========================================================================
   Slideshow — full-screen TV/kiosk decks (single-vc_slideshow.php).

   The stage is a FIXED pixel box (1920×1080 or 1080×1920) so every slide is
   authored at native export resolution; JS scales it to fit the viewport via
   --vc-ss-scale. All slide internals size in px against that fixed box, and the
   landscape/portrait layouts switch off the stage's [data-aspect] attribute.
   ========================================================================= */

.vc-ss-body {
	margin: 0;
	background: #0d0f12;
	color: var(--vc-ink, #1a1d21);
	overflow: hidden;
	font-family: var(--vc-font-display, 'Montserrat', sans-serif);
}

.vc-ss {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
}

/* ---- Viewport + scaled stage ------------------------------------------ */
.vc-ss-viewport {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
}

.vc-ss-stage {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(var(--vc-ss-scale, 1));
	transform-origin: center center;
	background: #000;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.vc-ss-stage[data-aspect="16:9"] { width: 1920px; height: 1080px; }
.vc-ss-stage[data-aspect="9:16"] { width: 1080px; height: 1920px; }

/* ---- Slides: stacked, cross-fade -------------------------------------- */
.vc-ss-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}
.vc-ss-slide.is-active { opacity: 1; visibility: visible; }
/* During export we force every slide fully rendered regardless of active state. */
.vc-ss-slide.is-exporting {
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
}

/* Brand accent strip — lives on the slide root so it's captured on export.
   (The session slide uses its ::before/::after for the 45° chevron instead.) */
.vc-ss-agenda::before,
.vc-ss-text::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 10px;
	background: var(--vc-gradient);
	z-index: 6;
}

/* Shared type accents (px against the fixed stage). */
.vc-ss-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vc-mute, #71767e);
}
.vc-ss-eyebrow .dot {
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--vc-primary, #95cd31);
}
.vc-ss-title {
	margin: 0;
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -0.01em;
}

/* =======================================================================
   SESSION SLIDE
   ======================================================================= */
.vc-ss-session {
	position: absolute;
	inset: 0;
	color: var(--vc-ink, #1a1d21);
	overflow: hidden;
}
/* Full-bleed image behind everything. */
.vc-ss-session-media {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.vc-ss-session-media > img,
.vc-ss-session-media > .vc-ss-media-fallback {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.vc-ss-media-fallback { background: linear-gradient(135deg, var(--vc-primary-soft, #eef6da), var(--vc-secondary-soft, #ece7fb)); }

/* 45° white chevron (echoes the VC logo). Two layers: a semi-transparent wedge
 * reaching slightly further into the image, then the solid white text backdrop.
 * The horizontal inset (28.125% of 1920px = 540px) equals half the 1080px height,
 * so every diagonal edge is exactly 45°. */
.vc-ss-session::before,
.vc-ss-session::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.vc-ss-session::before { /* ghost wedge — covers a little more of the image */
	z-index: 2;
	background: rgba(255, 255, 255, 0.20);
	clip-path: polygon(0 0, 58% 0, 86.1% 50%, 58% 100%, 0 100%);
}
.vc-ss-session::after { /* solid white — left half + a 45° arrow from the midline */
	z-index: 3;
	background: var(--vc-paper, #fff);
	clip-path: polygon(0 0, 50% 0, 78.1% 50%, 50% 100%, 0 100%);
}

/* Inverted logo, laid over the image (top-right). */
.vc-ss-logo {
	position: absolute;
	top: 64px; right: 72px;
	z-index: 5;
	height: 54px;
	width: auto;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.vc-ss-session-body {
	position: absolute;
	z-index: 4;
	top: 0; bottom: 0; left: 0;
	width: 50%;
	padding: 110px 54px 110px 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.vc-ss-session .vc-ss-title {
	font-size: 58px;
	margin: 24px 0;
	text-transform: uppercase;
	letter-spacing: -0.005em;
}
.vc-ss-session[data-speakers="0"] .vc-ss-title { font-size: 74px; }

.vc-ss-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 22px;
	font-weight: 600;
	color: var(--vc-ink-soft, #4a4e54);
}
.vc-ss-meta-item { white-space: nowrap; }

.vc-ss-speakers { margin-top: 44px; }
.vc-ss-caption {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vc-mute, #71767e);
	margin-bottom: 18px;
}
/* Grid so up to 9 speakers lay out as a tidy 3×3 (the most a 16:9 slide holds). */
.vc-ss-speaker-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 24px;
}
.vc-ss-speaker {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
.vc-ss-speaker-photo {
	flex: 0 0 88px;
	width: 88px; height: 88px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--vc-paper-warm, #f2f3f5);
	display: flex; align-items: center; justify-content: center;
}
.vc-ss-speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.vc-ss-speaker-initials { font-size: 30px; font-weight: 800; color: var(--vc-mute, #71767e); }
.vc-ss-speaker-name { font-size: 23px; font-weight: 700; line-height: 1.15; }
.vc-ss-speaker-title { font-size: 16px; color: var(--vc-ink-soft, #4a4e54); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.vc-ss-speaker-more { margin-top: 18px; font-size: 17px; font-weight: 600; color: var(--vc-mute, #71767e); }

/* 3-up tier (5–9 speakers): smaller cards so three rows fit. */
.vc-ss-speaker-grid[data-count="5"],
.vc-ss-speaker-grid[data-count="6"],
.vc-ss-speaker-grid[data-count="7"],
.vc-ss-speaker-grid[data-count="8"],
.vc-ss-speaker-grid[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 16px; }
.vc-ss-speaker-grid[data-count="5"] .vc-ss-speaker-photo,
.vc-ss-speaker-grid[data-count="6"] .vc-ss-speaker-photo,
.vc-ss-speaker-grid[data-count="7"] .vc-ss-speaker-photo,
.vc-ss-speaker-grid[data-count="8"] .vc-ss-speaker-photo,
.vc-ss-speaker-grid[data-count="9"] .vc-ss-speaker-photo { flex-basis: 62px; width: 62px; height: 62px; }
.vc-ss-speaker-grid[data-count="5"] .vc-ss-speaker,
.vc-ss-speaker-grid[data-count="6"] .vc-ss-speaker,
.vc-ss-speaker-grid[data-count="7"] .vc-ss-speaker,
.vc-ss-speaker-grid[data-count="8"] .vc-ss-speaker,
.vc-ss-speaker-grid[data-count="9"] .vc-ss-speaker { gap: 12px; }
.vc-ss-speaker-grid[data-count="5"] .vc-ss-speaker-name,
.vc-ss-speaker-grid[data-count="6"] .vc-ss-speaker-name,
.vc-ss-speaker-grid[data-count="7"] .vc-ss-speaker-name,
.vc-ss-speaker-grid[data-count="8"] .vc-ss-speaker-name,
.vc-ss-speaker-grid[data-count="9"] .vc-ss-speaker-name { font-size: 18px; }
.vc-ss-speaker-grid[data-count="5"] .vc-ss-speaker-title,
.vc-ss-speaker-grid[data-count="6"] .vc-ss-speaker-title,
.vc-ss-speaker-grid[data-count="7"] .vc-ss-speaker-title,
.vc-ss-speaker-grid[data-count="8"] .vc-ss-speaker-title,
.vc-ss-speaker-grid[data-count="9"] .vc-ss-speaker-title { font-size: 13px; }

/* Single speaker centred-ish, larger. */
.vc-ss-speaker-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.vc-ss-speaker-grid[data-count="1"] .vc-ss-speaker-photo { flex-basis: 104px; width: 104px; height: 104px; }
.vc-ss-speaker-grid[data-count="1"] .vc-ss-speaker-name { font-size: 27px; }

/* Session — PORTRAIT: white content on top, image + a downward-pointing 45°
   arrow at the bottom. (Half-width 540px = the vertical inset 28.125% of 1920px.) */
[data-aspect="9:16"] .vc-ss-session::before { /* ghost — reaches almost to the bottom */
	clip-path: polygon(0 0, 100% 0, 100% 66.9%, 50% 95%, 0 66.9%);
}
[data-aspect="9:16"] .vc-ss-session::after { /* solid content backdrop — follows just above */
	clip-path: polygon(0 0, 100% 0, 100% 58.9%, 50% 87%, 0 58.9%);
}
[data-aspect="9:16"] .vc-ss-session-body {
	top: 0; bottom: auto;
	width: 100%; height: 56%;
	padding: 120px 90px 40px;
	justify-content: flex-start;
}
/* Logo moves down onto the bottom image (top is now white). */
[data-aspect="9:16"] .vc-ss-logo { top: auto; bottom: 60px; }
[data-aspect="9:16"] .vc-ss-session .vc-ss-title { font-size: 70px; }
/* Portrait: 2 columns up to 6 speakers, 3 columns for 7–9. */
[data-aspect="9:16"] .vc-ss-speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-aspect="9:16"] .vc-ss-speaker-grid[data-count="7"],
[data-aspect="9:16"] .vc-ss-speaker-grid[data-count="8"],
[data-aspect="9:16"] .vc-ss-speaker-grid[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =======================================================================
   AGENDA SLIDE
   ======================================================================= */
.vc-ss-agenda {
	position: absolute;
	inset: 0;
	background: var(--vc-ink, #1a1d21);
	color: #fff;
	padding: 120px 110px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.vc-ss-agenda-head { margin-bottom: 56px; }
.vc-ss-agenda .vc-ss-eyebrow { color: rgba(255, 255, 255, 0.6); }
.vc-ss-agenda .vc-ss-title { font-size: 84px; margin-top: 20px; color: #fff; }
.vc-ss-agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.vc-ss-agenda-row {
	display: flex;
	gap: 44px;
	align-items: baseline;
	padding: 28px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.vc-ss-agenda-time {
	flex: 0 0 340px;
	font-family: var(--vc-font-mono, monospace);
	font-size: 30px;
	font-weight: 600;
	color: var(--vc-primary, #95cd31);
	white-space: nowrap;
}
.vc-ss-agenda-title { font-size: 42px; font-weight: 700; line-height: 1.1; }
.vc-ss-agenda-prog { font-size: 24px; color: rgba(255, 255, 255, 0.55); margin-top: 8px; }
.vc-ss-agenda-empty { font-size: 34px; color: rgba(255, 255, 255, 0.6); }

/* Dense agenda (7+ rows) shrinks so it stays on one slide. */
.vc-ss-agenda.is-dense .vc-ss-agenda-row { padding: 16px 0; }
.vc-ss-agenda.is-dense .vc-ss-agenda-time { flex-basis: 300px; font-size: 25px; }
.vc-ss-agenda.is-dense .vc-ss-agenda-title { font-size: 33px; }
.vc-ss-agenda.is-dense .vc-ss-agenda-prog { font-size: 20px; margin-top: 4px; }
.vc-ss-agenda.is-dense .vc-ss-agenda-head { margin-bottom: 36px; }
.vc-ss-agenda.is-dense .vc-ss-title { font-size: 64px; }

[data-aspect="9:16"] .vc-ss-agenda { padding: 130px 90px; }
[data-aspect="9:16"] .vc-ss-agenda-row { flex-direction: column; gap: 6px; }
[data-aspect="9:16"] .vc-ss-agenda-time { flex-basis: auto; }

/* =======================================================================
   TEXT SLIDE
   ======================================================================= */
.vc-ss-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 140px;
	overflow: hidden;
	text-align: center;
}
.vc-ss-text.is-dark { background: var(--vc-ink, #1a1d21); color: #fff; }
.vc-ss-text.is-light { background: var(--vc-paper, #fff); color: var(--vc-ink, #1a1d21); }
.vc-ss-text-bg { position: absolute; inset: 0; z-index: 0; }
.vc-ss-text-bg img { width: 100%; height: 100%; object-fit: cover; }
.vc-ss-text-scrim {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
}
.vc-ss-text.has-bg { color: #fff; }
.vc-ss-text-body { position: relative; z-index: 2; max-width: 1400px; }
.vc-ss-text-title { margin: 0; font-size: 118px; font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; }
.vc-ss-text-copy { margin-top: 40px; font-size: 44px; line-height: 1.35; font-weight: 500; }
.vc-ss-text-copy p { margin: 0 0 0.5em; }

[data-aspect="9:16"] .vc-ss-text { padding: 120px 90px; }
[data-aspect="9:16"] .vc-ss-text-title { font-size: 100px; }
[data-aspect="9:16"] .vc-ss-text-copy { font-size: 40px; }

/* Empty-state slide */
.vc-ss-empty {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; gap: 16px; padding: 120px;
	background: var(--vc-ink, #1a1d21); color: #fff;
}
.vc-ss-empty h2 { font-size: 72px; margin: 0; }
.vc-ss-empty p { font-size: 32px; color: rgba(255, 255, 255, 0.6); margin: 0; }
.vc-ss-empty .vc-ss-eyebrow { color: var(--vc-primary, #95cd31); }

/* =======================================================================
   CONTROLS
   ======================================================================= */
.vc-ss-controls {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background: rgba(13, 15, 18, 0.9);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: opacity 0.4s ease;
}
.vc-ss.is-idle .vc-ss-controls { opacity: 0; pointer-events: none; }

.vc-ss-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 16px;
	border-radius: var(--vc-radius-pill, 999px);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.vc-ss-btn:hover { background: rgba(255, 255, 255, 0.14); }
.vc-ss-btn[aria-pressed="true"] {
	background: #fff;
	color: var(--vc-ink, #1a1d21);
	border-color: #fff;
}
.vc-ss-btn--accent {
	background: var(--vc-primary, #95cd31);
	border-color: var(--vc-primary, #95cd31);
	color: var(--vc-ink, #1a1d21);
}
.vc-ss-btn--accent:hover { background: var(--vc-primary-deep, #7fb521); }

.vc-ss-counter {
	font-family: var(--vc-font-mono, monospace);
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
	padding: 0 6px;
}
.vc-ss-spacer { flex: 1 1 auto; }
.vc-ss-toggle { display: inline-flex; gap: 6px; }

/* Export popover */
.vc-ss-export {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
}
.vc-ss-export[hidden] { display: none; }
.vc-ss-export-card {
	position: relative;
	background: #fff;
	color: var(--vc-ink, #1a1d21);
	border-radius: var(--vc-radius-lg, 28px);
	padding: 40px 44px;
	max-width: 520px;
	width: calc(100% - 48px);
	box-shadow: var(--vc-shadow-md, 0 12px 34px rgba(26, 29, 33, 0.2));
}
.vc-ss-export-card h3 { margin: 0 0 8px; font-size: 26px; }
.vc-ss-export-card p { margin: 0 0 24px; color: var(--vc-ink-soft, #4a4e54); font-size: 16px; }
.vc-ss-export-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vc-ss-export .vc-ss-btn { color: var(--vc-ink, #1a1d21); border-color: var(--vc-rule, #e4e6ea); background: var(--vc-paper-warm, #f2f3f5); }
.vc-ss-export .vc-ss-btn:hover { background: var(--vc-rule-soft, #eef0f3); }
.vc-ss-export .vc-ss-btn--accent { color: var(--vc-ink, #1a1d21); background: var(--vc-primary, #95cd31); border-color: var(--vc-primary, #95cd31); }
.vc-ss-export-status { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--vc-ink-soft, #4a4e54); }
.vc-ss-export-status[hidden] { display: none; }
.vc-ss-export-close {
	position: absolute;
	top: 14px; right: 18px;
	appearance: none; border: 0; background: none;
	font-size: 30px; line-height: 1; cursor: pointer;
	color: var(--vc-mute, #71767e);
}

/* Offscreen holder used while rasterising slides for export. */
.vc-ss-export-stage {
	position: fixed;
	left: -99999px;
	top: 0;
	pointer-events: none;
	z-index: -1;
}
