/* ==========================================================================
   360 Comedy: Media (Videos / Photos / Press)
   ========================================================================== */

.c360m {
	--c360m-ink: #ffffff;
	--c360m-muted: rgba(226, 233, 241, 0.9);
	--c360m-yellow: #f6be29;
	--c360m-yellow-ink: #0b1422;
	--c360m-navy: #22467a;
	--c360m-navy-ink: #ffffff;
	--c360m-pad-x: clamp(16px, 4.8cqi, 66px);
	--c360m-section-gap: clamp(40px, 5cqi, 64px);
	--c360m-gap: clamp(12px, 1.7cqi, 22px);
	--c360m-row-gap: clamp(24px, 3cqi, 40px);
	--c360m-visible: 2.8;
	--c360m-cols: 3;
	--c360m-ratio: 16 / 9;
	--c360m-radius: 0px;
	--c360m-zoom: 1.04;
	--c360m-lines: 2;
	--c360m-play: clamp(40px, 7cqi, 96px);
	--c360m-arrow: clamp(36px, 4cqi, 52px);
	--c360m-fade: rgba(8, 28, 48, 0.85);
	--c360m-hero-img: 36%;
	--c360m-hero-ratio: 16 / 10;
	--c360m-offset: 0px;
	--c360m-lb-bg: rgba(3, 10, 20, 0.94);
	--c360m-lb-ink: #ffffff;
	--c360m-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	container-type: inline-size;
	width: 100%;
	overflow: hidden; /* rows that run to the edge never cause sideways page scroll */
	color: var(--c360m-ink);
	font-family: var(--c360m-font);
	scroll-margin-top: var(--c360m-offset);
}
.c360m *,
.c360m *::before,
.c360m *::after {
	box-sizing: border-box;
}

/* Elementor: take the container's width (see the note in live-stream.css). */
.e-con-inner > .elementor-widget-c360_media,
.e-con > .elementor-widget-c360_media {
	width: var(--container-widget-width, 100%);
	--flex-grow: var(--container-widget-flex-grow, 1);
	flex-grow: var(--container-widget-flex-grow, 1);
	min-width: min(100%, 300px);
}
.elementor-widget-c360_media > .elementor-widget-container {
	width: 100%;
}

/* Per-feed defaults (Elementor's responsive settings override these). */
.c360m-section--photos { --c360m-visible: 3.4; --c360m-cols: 4; --c360m-ratio: 12 / 11; }
@container (max-width: 1024px) {
	.c360m-section:not(.c360m-section--photos) { --c360m-visible: 2.2; --c360m-cols: 2; }
	.c360m-section--photos { --c360m-visible: 2.6; --c360m-cols: 3; }
}
@container (max-width: 640px) {
	.c360m-section:not(.c360m-section--photos) { --c360m-visible: 1.15; --c360m-cols: 1; }
	.c360m-section--photos { --c360m-visible: 1.6; --c360m-cols: 2; }
}

/* ---------------- Explore header ---------------- */
.c360m .c360m-hero {
	display: grid;
	grid-template-columns: minmax(0, var(--c360m-hero-img)) minmax(0, 1fr);
	gap: clamp(16px, 1.6cqi, 22px);
	align-items: start;
	padding: clamp(18px, 2cqi, 28px) var(--c360m-pad-x) clamp(40px, 6.6cqi, 92px) clamp(16px, 4.6cqi, 64px);
	background: #071a2d;
}
.c360m .c360m-hero--no-image {
	grid-template-columns: minmax(0, 1fr);
}
.c360m-hero__media {
	overflow: hidden;
	aspect-ratio: var(--c360m-hero-ratio);
}
.c360m .c360m-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}
.c360m-hero__body {
	min-width: 0;
}
.c360m .c360m-hero .c360m-hero__title {
	margin: 0 0 clamp(6px, 0.8cqi, 12px);
	padding: 0;
	color: var(--c360m-ink);
	font-family: var(--c360m-font);
	font-size: clamp(36px, 5.4cqi, 76px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: 0;
	text-transform: none;
}
.c360m .c360m-hero .c360m-hero__text {
	max-width: 58em;
	margin: 0 0 clamp(18px, 2.9cqi, 40px);
	padding: 0;
	color: var(--c360m-ink);
	font-family: var(--c360m-font);
	font-size: clamp(15px, 1.6cqi, 22px);
	font-weight: 400;
	line-height: 1.15;
}

/* ---------------- Tabs ---------------- */
.c360m .c360m-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(10px, 1.45cqi, 20px);
	margin: 0;
	padding: 0;
}
.c360m .c360m-tabs .c360m-tab,
.c360m .c360m-tabs .c360m-tab:focus {
	display: inline-flex;
	flex: 0 1 clamp(120px, 17.5cqi, 240px);
	align-items: center;
	justify-content: center;
	min-height: clamp(50px, 6.7cqi, 92px);
	margin: 0;
	padding: 0.3em 0.7em;
	border: 0 solid transparent;
	border-radius: 6px;
	background-color: var(--c360m-yellow);
	box-shadow: none;
	color: var(--c360m-yellow-ink);
	font-family: var(--c360m-font);
	font-size: clamp(16px, 2.2cqi, 30px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.c360m .c360m-tabs .c360m-tab:hover {
	background-color: var(--c360m-yellow);
	color: var(--c360m-yellow-ink);
	filter: brightness(1.07);
	text-decoration: none;
}
.c360m .c360m-tabs .c360m-tab.is-active {
	background-color: var(--c360m-navy);
	color: var(--c360m-navy-ink);
	filter: none;
}
.c360m .c360m-tabs .c360m-tab:focus:not(:focus-visible) {
	outline: none;
}
.c360m .c360m-tabs .c360m-tab:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* ---------------- Feed area ---------------- */
.c360m .c360m-body {
	padding: clamp(20px, 1.8cqi, 26px) var(--c360m-pad-x) clamp(40px, 4.4cqi, 60px);
	background: linear-gradient(160deg, #0d3c63 0%, #0a2b4b 55%, #0a2745 100%);
}
.c360m-section {
	scroll-margin-top: var(--c360m-offset);
}
.c360m-section + .c360m-section {
	margin-top: var(--c360m-section-gap);
}
.c360m .c360m-section[hidden] {
	display: none;
}
.c360m .c360m-section:focus {
	outline: none;
}
.c360m .c360m-section .c360m-section__title {
	margin: 0 0 clamp(16px, 2.6cqi, 36px);
	padding: 0;
	color: var(--c360m-ink);
	font-family: var(--c360m-font);
	font-size: clamp(34px, 5.3cqi, 72px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}
.c360m-empty {
	margin: 0;
	padding: 20px;
	border: 1px dashed rgba(255, 255, 255, 0.4);
	color: var(--c360m-muted);
	font-size: 14px;
}

/* ---------------- Rows (carousel) ---------------- */
.c360m-carousel {
	position: relative;
}
.c360m-bleed-yes .c360m-section:not(.is-expanded) .c360m-carousel {
	margin-right: calc(var(--c360m-pad-x) * -1);
}
.c360m .c360m-track {
	display: flex;
	gap: var(--c360m-gap);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}
.c360m .c360m-track::-webkit-scrollbar {
	display: none;
}
.c360m-bleed-yes .c360m-section:not(.is-expanded) .c360m-track {
	scroll-padding-left: 0;
	padding-right: var(--c360m-pad-x);
}
.c360m .c360m-track:focus-visible {
	outline: 2px solid var(--c360m-yellow);
	outline-offset: 4px;
}
.c360m .c360m-item {
	flex: 0 0 calc((100% - var(--c360m-gap) * (var(--c360m-visible) - 1)) / var(--c360m-visible));
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}
.c360m .c360m-item::before,
.c360m .c360m-item::marker {
	content: none;
}

/* Expanded ("See all") */
.c360m .c360m-section.is-expanded .c360m-track {
	display: grid;
	grid-template-columns: repeat(var(--c360m-cols), minmax(0, 1fr));
	gap: var(--c360m-row-gap) var(--c360m-gap);
	overflow: visible;
	scroll-snap-type: none;
}

/* Edge shade + arrows */
.c360m-carousel::before,
.c360m-carousel::after {
	content: "";
	position: absolute;
	top: 0;
	z-index: 1;
	width: min(96px, 12%);
	height: var(--c360m-media-h, 70%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.c360m-carousel::before {
	left: 0;
	background: linear-gradient(270deg, transparent, var(--c360m-fade));
}
.c360m-carousel::after {
	right: 0;
	background: linear-gradient(90deg, transparent, var(--c360m-fade));
}
.c360m-carousel.has-prev::before,
.c360m-carousel.has-next::after {
	opacity: 1;
}
.c360m .c360m-arrow,
.c360m .c360m-arrow:hover,
.c360m .c360m-arrow:focus {
	position: absolute;
	top: calc(var(--c360m-media-h, 140px) / 2);
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--c360m-arrow);
	height: calc(var(--c360m-arrow) * 1.4);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background-color: transparent;
	box-shadow: none;
	color: #ffffff;
	cursor: pointer;
	transform: translateY(-50%);
}
.c360m .c360m-arrow:hover {
	background-color: rgba(255, 255, 255, 0.08);
}
.c360m .c360m-arrow[hidden] {
	display: none;
}
.c360m .c360m-arrow svg {
	width: 78%;
	height: 78%;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.c360m .c360m-arrow--prev { left: 4px; }
.c360m .c360m-arrow--next { right: 4px; }
.c360m .c360m-arrow:focus:not(:focus-visible) { outline: none; }
.c360m .c360m-arrow:focus-visible {
	outline: 2px solid var(--c360m-yellow);
	outline-offset: -2px;
}
.c360m-section.is-expanded .c360m-carousel::before,
.c360m-section.is-expanded .c360m-carousel::after {
	display: none;
}

/* ---------------- Cards ---------------- */
.c360m .c360m-card,
.c360m .c360m-card:hover,
.c360m .c360m-card:focus {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	container-type: inline-size;
}
.c360m button.c360m-card,
.c360m a.c360m-card {
	cursor: pointer;
}
.c360m .c360m-card:focus:not(:focus-visible) {
	outline: none;
}
.c360m .c360m-card:focus-visible {
	outline: 3px solid var(--c360m-yellow);
	outline-offset: 3px;
}
.c360m .c360m-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--c360m-ratio);
	border-radius: var(--c360m-radius);
	background: #0b1422;
}
.c360m .c360m-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.c360m button.c360m-card:hover .c360m-card__media img,
.c360m a.c360m-card:hover .c360m-card__media img {
	transform: scale(var(--c360m-zoom));
}
.c360m .c360m-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #ffffff;
	pointer-events: none;
}
.c360m .c360m-play svg {
	width: min(var(--c360m-play), 34%);
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
	transition: transform 0.2s ease;
}
.c360m button.c360m-card:hover .c360m-play svg {
	transform: scale(1.08);
}
.c360m .c360m-duration {
	position: absolute;
	right: clamp(4px, 2cqi, 10px);
	bottom: clamp(4px, 2cqi, 10px);
	padding: 0.15em 0.45em;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	font-size: clamp(11px, 3.4cqi, 16px);
	font-weight: 600;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}
/* Titles must wrap even inside a <button> (some themes set buttons to nowrap). */
.c360m .c360m-card,
.c360m .c360m-card .c360m-card__meta,
.c360m .c360m-card .c360m-card__title {
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
}
.c360m .c360m-card .c360m-card__meta,
.c360m .c360m-card .c360m-card__title {
	display: block;
	overflow: hidden;
	max-height: calc(1.18em * var(--c360m-lines)); /* fallback line limit */
	color: var(--c360m-muted);
	font-family: var(--c360m-font);
	font-size: clamp(14px, 4.35cqi, 21px);
	font-weight: 400;
	line-height: 1.18;
}
@supports (-webkit-line-clamp: 2) {
	.c360m .c360m-card .c360m-card__meta,
	.c360m .c360m-card .c360m-card__title {
		display: -webkit-box;
		max-height: none;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: var(--c360m-lines);
	}
}
.c360m .c360m-card .c360m-card__meta {
	margin-top: clamp(8px, 3cqi, 14px);
	max-height: 1.18em;
	-webkit-line-clamp: 1;
}
@supports (-webkit-line-clamp: 2) {
	.c360m .c360m-card .c360m-card__meta {
		max-height: none;
	}
}
.c360m .c360m-card .c360m-card__title {
	margin-top: clamp(8px, 3cqi, 14px);
}
.c360m .c360m-card .c360m-card__meta + .c360m-card__title {
	margin-top: clamp(4px, 1.6cqi, 8px);
}

/* ---------------- See all ---------------- */
.c360m-more-wrap {
	margin-top: clamp(18px, 2.2cqi, 30px);
}
.c360m .c360m-section .c360m-more,
.c360m .c360m-section .c360m-more:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(140px, 17.5cqi, 240px);
	min-height: clamp(50px, 6.7cqi, 92px);
	margin: 0;
	padding: 0.3em 1em;
	border: 0;
	border-radius: 6px;
	background-color: var(--c360m-yellow);
	box-shadow: none;
	color: var(--c360m-yellow-ink);
	font-family: var(--c360m-font);
	font-size: clamp(16px, 2.2cqi, 30px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.c360m .c360m-section .c360m-more:hover {
	background-color: var(--c360m-yellow);
	color: var(--c360m-yellow-ink);
	filter: brightness(1.07);
}
.c360m .c360m-section .c360m-more[hidden] {
	display: none;
}
.c360m .c360m-section .c360m-more:focus:not(:focus-visible) {
	outline: none;
}
.c360m .c360m-section .c360m-more:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* ---------------- Small widths ---------------- */
@container (max-width: 700px) {
	.c360m .c360m-hero {
		grid-template-columns: minmax(0, 1fr);
		padding-left: var(--c360m-pad-x);
	}
	.c360m .c360m-tabs .c360m-tab {
		/* Two per row, wrapping onto more rows as sections are added. */
		flex: 1 1 calc(50% - 12px);
		min-width: 0;
		padding-inline: 0.4em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c360m .c360m-track { scroll-behavior: auto; }
	.c360m .c360m-card__media img,
	.c360m .c360m-play svg { transition: none; }
}

/* ---------------- Pop-up viewer (appended to <body>) ---------------- */
html.c360m-lock,
html.c360m-lock body {
	overflow: hidden;
}
.c360m-lb {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	padding: 56px 8px 40px;
	background: var(--c360m-lb-bg, rgba(3, 10, 20, 0.94));
	color: var(--c360m-lb-ink, #ffffff);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: c360m-lb-in 0.2s ease-out;
}
.c360m-lb[hidden] {
	display: none;
}
@keyframes c360m-lb-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.c360m-lb__stage {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	max-height: 100%;
	margin: 0;
}
.c360m-lb__content {
	display: flex;
	justify-content: center;
	width: 100%;
	touch-action: pan-y;
}
.c360m-lb__content iframe,
.c360m-lb__content video {
	display: block;
	width: min(100%, 1200px, calc((100vh - 170px) * 16 / 9));
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	background: #000;
}
.c360m-lb__content img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 170px);
	width: auto;
	height: auto;
	object-fit: contain;
}
.c360m-lb__caption {
	max-width: 900px;
	margin: 14px 0 0;
	color: inherit;
	font-size: 16px;
	line-height: 1.35;
	text-align: center;
}
.c360m-lb__caption:empty {
	display: none;
}
.c360m-lb__count {
	position: absolute;
	top: 18px;
	left: 20px;
	margin: 0;
	color: inherit;
	font-size: 14px;
	opacity: 0.8;
}
.c360m-lb button {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	color: inherit;
	cursor: pointer;
}
.c360m-lb button:hover {
	background: rgba(255, 255, 255, 0.2);
}
.c360m-lb button:focus-visible {
	outline: 2px solid #f6be29;
	outline-offset: 2px;
}
.c360m-lb button[hidden] {
	display: none;
}
.c360m-lb__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 44px;
	height: 44px;
}
.c360m-lb__nav {
	width: 48px;
	height: 48px;
	justify-self: center;
}
.c360m-lb__nav--prev { grid-column: 1; grid-row: 1; }
.c360m-lb__nav--next { grid-column: 3; grid-row: 1; }
.c360m-lb svg {
	width: 55%;
	height: 55%;
}
@media (max-width: 640px) {
	.c360m-lb {
		grid-template-columns: minmax(0, 1fr);
		padding: 56px 0 72px;
	}
	.c360m-lb__stage { grid-column: 1; }
	.c360m-lb__nav {
		position: absolute;
		bottom: 14px;
	}
	.c360m-lb__nav--prev { left: calc(50% - 60px); }
	.c360m-lb__nav--next { left: calc(50% + 12px); }
	.c360m-lb__caption { padding: 0 16px; }
}
