.amsc-video-gallery,
.amsc-video-gallery *,
.amsc-video-gallery *::before,
.amsc-video-gallery *::after {
	box-sizing: border-box;
}

.amsc-video-gallery {
	--amsc-video-border: rgba(107, 199, 216, 0.28);
	--amsc-video-border-active: rgba(128, 218, 232, 0.62);
	--amsc-video-title: #f2f7f9;
	--amsc-video-title-active: #c4edf2;
	--amsc-video-muted: #b8c5ce;
	--amsc-video-fallback: #081522;
	--amsc-video-focus: #7bd7e6;
	container-name: amsc-video-gallery;
	container-type: inline-size;
	inline-size: 100%;
	max-inline-size: 100%;
}

.amsc-video-gallery .amsc-video-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	justify-items: stretch;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.amsc-video-gallery .amsc-video-gallery__grid > .amsc-video-gallery__item {
	justify-self: stretch;
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amsc-video-gallery .amsc-video-gallery__grid > .amsc-video-gallery__item::marker {
	content: "";
}

.amsc-video-gallery .amsc-video-gallery__grid > .amsc-video-gallery__item::before {
	content: none;
	display: none;
}

.amsc-video-card {
	position: relative;
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	color: var(--amsc-video-title);
	background: transparent;
	transition: transform 180ms ease;
}

.amsc-video-card__link,
.amsc-video-card__link:visited,
.amsc-video-card__link:hover,
.amsc-video-card__link:focus,
.amsc-video-card__content {
	display: block;
	width: 100%;
	max-width: 100%;
	inline-size: 100%;
	color: var(--amsc-video-title);
	background: linear-gradient(180deg, rgba(13, 32, 50, 0.32), rgba(7, 18, 31, 0.06));
	border-radius: 0.55rem;
	text-decoration: none;
}

.amsc-video-card__link:focus-visible {
	outline: 3px solid var(--amsc-video-focus);
	outline-offset: 4px;
}

.amsc-video-gallery .amsc-video-card__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	inline-size: 100%;
	aspect-ratio: 16 / 9;
	background: var(--amsc-video-fallback);
	border: 1px solid var(--amsc-video-border);
	border-radius: 0.55rem;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.amsc-video-gallery .amsc-video-card__media > img.amsc-video-card__thumbnail,
.amsc-video-gallery .amsc-video-card__media > .amsc-video-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.amsc-video-gallery .amsc-video-card__media > img.amsc-video-card__thumbnail {
	transition: transform 180ms ease;
}

.amsc-video-card__placeholder {
	background:
		radial-gradient(circle at 75% 20%, rgba(77, 92, 177, 0.2), transparent 42%),
		linear-gradient(145deg, #0a2230, var(--amsc-video-fallback));
}

.amsc-video-card__play {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	display: grid;
	place-items: center;
	inline-size: 3.25rem;
	block-size: 3.25rem;
	color: #fff;
	background: rgba(5, 17, 29, 0.82);
	border: 1px solid rgba(151, 225, 235, 0.78);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(7, 22, 37, 0.5);
	transform: translate(-50%, -50%);
	transition: background-color 180ms ease, transform 180ms ease;
}

.amsc-video-card__play svg {
	inline-size: 1.5rem;
	block-size: 1.5rem;
	margin-inline-start: 0.15rem;
	fill: currentColor;
}

.amsc-video-card__title {
	margin: 0;
	padding: 0.7rem 0.15rem 0.2rem;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.375;
	letter-spacing: 0.01em;
	color: var(--amsc-video-title);
}

.amsc-video-gallery__empty {
	margin: 0;
	padding: 1rem;
	color: var(--amsc-video-muted);
	background: linear-gradient(135deg, rgba(11, 35, 49, 0.72), rgba(14, 23, 43, 0.5));
	border: 1px solid var(--amsc-video-border);
	border-radius: 0.55rem;
}

@media (hover: hover) and (pointer: fine) {
	.amsc-video-card:not(.amsc-video-card--unavailable):hover {
		transform: translateY(-2px);
	}

	.amsc-video-card__link:hover .amsc-video-card__media {
		border-color: var(--amsc-video-border-active);
		box-shadow: 0 0 0 1px rgba(82, 191, 209, 0.12), 0 0.55rem 1.25rem rgba(3, 12, 23, 0.22);
	}

	.amsc-video-card__link:hover .amsc-video-card__image {
		transform: scale(1.025);
	}

	.amsc-video-card__link:hover .amsc-video-card__play {
		background: rgba(10, 42, 56, 0.94);
		transform: translate(-50%, -50%) scale(1.05);
	}

	.amsc-video-card__link:hover .amsc-video-card__title {
		color: var(--amsc-video-title-active);
	}
}

@container amsc-video-gallery (max-width: 62rem) {
	.amsc-video-gallery .amsc-video-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.amsc-video-gallery .amsc-video-card__title {
		font-size: 1.0625rem;
	}
}

@container amsc-video-gallery (max-width: 38rem) {
	.amsc-video-gallery .amsc-video-gallery__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.amsc-video-gallery .amsc-video-card__title {
		font-size: 1rem;
	}
}

@media (max-width: 62rem) {
	.amsc-video-gallery .amsc-video-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.amsc-video-gallery .amsc-video-card__title {
		font-size: 1.0625rem;
	}
}

@media (max-width: 38rem) {
	.amsc-video-gallery .amsc-video-gallery__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.amsc-video-gallery .amsc-video-card__title {
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amsc-video-card,
	.amsc-video-card__image,
	.amsc-video-card__play {
		transition: none;
	}
}

body.amsc-video-modal-open {
	overflow: hidden;
}

.amsc-video-modal,
.amsc-video-modal *,
.amsc-video-modal *::before,
.amsc-video-modal *::after {
	box-sizing: border-box;
}

.amsc-video-modal[hidden] {
	display: none;
}

.amsc-video-modal {
	--amsc-modal-accent: #7bd7e6;
	--amsc-modal-border: rgba(123, 215, 230, 0.36);
	--amsc-modal-surface: #081522;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: clamp(1rem, 3vw, 2.5rem);
	background: rgba(2, 8, 15, 0.9);
	overflow: hidden;
	overscroll-behavior: none;
	animation: amsc-video-modal-backdrop-in 180ms ease-out;
}

.amsc-video-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	width: min(92rem, 100%);
	max-width: 100%;
	height: calc(100vh - clamp(2rem, 6vw, 5rem));
	height: calc(100dvh - clamp(2rem, 6vw, 5rem));
	margin: auto;
	padding: 0;
	color: #f2f7f9;
	background:
		radial-gradient(circle at 85% 5%, rgba(73, 91, 174, 0.16), transparent 32%),
		linear-gradient(145deg, #0b1e2d, var(--amsc-modal-surface));
	border: 1px solid var(--amsc-modal-border);
	border-radius: 0.7rem;
	box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.38);
	overflow: hidden;
	pointer-events: auto;
	animation: amsc-video-modal-dialog-in 180ms ease-out;
}

.amsc-video-modal__scroll {
	width: 100%;
	min-height: 0;
	padding: clamp(2.75rem, 5vw, 4rem) clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	pointer-events: auto;
}

.amsc-video-modal__close,
.amsc-video-modal__close:hover,
.amsc-video-modal__close:focus {
	position: absolute;
	inset-block-start: 0.65rem;
	inset-inline-end: 0.65rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	min-width: 2.5rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0;
	font: inherit;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	color: #f2f7f9;
	background: rgba(7, 25, 38, 0.94);
	border: 1px solid var(--amsc-modal-border);
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
	z-index: 1;
}

.amsc-video-modal__close:hover {
	color: #fff;
	background: rgba(15, 53, 67, 0.98);
	border-color: rgba(123, 215, 230, 0.7);
}

.amsc-video-modal__close:focus-visible {
	outline: 3px solid var(--amsc-modal-accent);
	outline-offset: 3px;
}

.amsc-video-modal__player {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	background: #02070c;
	border: 1px solid rgba(123, 215, 230, 0.22);
	border-radius: 0.45rem;
	overflow: hidden;
}

.amsc-video-modal__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.amsc-video-modal__iframe:focus-visible {
	outline: 3px solid var(--amsc-modal-accent);
	outline-offset: -3px;
}

.amsc-video-modal__title {
	margin: 0;
	padding: clamp(0.9rem, 2vw, 1.35rem) 0.25rem 0;
	font: inherit;
	font-size: clamp(1.15rem, 1rem + 0.65vw, 1.65rem);
	font-weight: 650;
	line-height: 1.35;
	color: #f2f7f9;
	overflow-wrap: anywhere;
}

.amsc-video-modal__controls {
	display: grid;
	grid-template-columns: auto minmax(4rem, 1fr) auto;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	margin: 0;
	padding: 0.75rem clamp(0.75rem, 2vw, 1.5rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, #0a1c29, var(--amsc-modal-surface));
	border-top: 1px solid rgba(123, 215, 230, 0.22);
}

.amsc-video-modal__nav,
.amsc-video-modal__nav:hover,
.amsc-video-modal__nav:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	color: #e8f3f6;
	background: rgba(10, 36, 51, 0.88);
	border: 1px solid rgba(123, 215, 230, 0.3);
	border-radius: 0.4rem;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
}

.amsc-video-modal__nav:hover,
.amsc-video-modal__read-more:hover {
	color: #fff;
	background: rgba(15, 53, 67, 0.98);
	border-color: rgba(123, 215, 230, 0.64);
}

.amsc-video-modal__nav:focus-visible,
.amsc-video-modal__read-more:focus-visible {
	outline: 3px solid var(--amsc-modal-accent);
	outline-offset: 2px;
}

.amsc-video-modal__nav:disabled,
.amsc-video-modal__nav:disabled:hover {
	color: rgba(213, 227, 231, 0.48);
	background: rgba(9, 27, 39, 0.58);
	border-color: rgba(123, 215, 230, 0.14);
	cursor: not-allowed;
}

.amsc-video-modal__position {
	justify-self: center;
	color: #aebfc7;
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.amsc-video-modal__metadata[hidden],
.amsc-video-modal__description-preview[hidden],
.amsc-video-modal__read-more[hidden],
.amsc-video-modal__expanded-metadata[hidden] {
	display: none;
}

.amsc-video-modal__metadata {
	min-width: 0;
	margin-top: 0.65rem;
	padding: 0 0.25rem;
	color: #d7e2e7;
	background: transparent;
	overflow-wrap: anywhere;
}

.amsc-video-modal__description-preview > :first-child,
.amsc-video-modal__expanded-metadata > :first-child,
.amsc-video-modal__description > :first-child,
.amsc-video-modal__metadata-section > :first-child {
	margin-top: 0;
}

.amsc-video-modal__description-preview > :last-child,
.amsc-video-modal__expanded-metadata > :last-child,
.amsc-video-modal__description > :last-child,
.amsc-video-modal__metadata-section > :last-child {
	margin-bottom: 0;
}

.amsc-video-modal__description {
	margin: 0;
	font-size: clamp(0.9375rem, 0.92rem + 0.08vw, 1rem);
	line-height: 1.65;
}

.amsc-video-modal__description-preview--collapsed .amsc-video-modal__description {
	display: -webkit-box;
	max-height: 4.95em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.amsc-video-modal__description p,
.amsc-video-modal__description ul,
.amsc-video-modal__description ol,
.amsc-video-modal__metadata-section p {
	margin-top: 0;
	margin-bottom: 0.72rem;
	font-size: inherit;
	color: #d7e2e7;
	line-height: inherit;
}

.amsc-video-modal__description h1,
.amsc-video-modal__description h2,
.amsc-video-modal__description h3,
.amsc-video-modal__description h4,
.amsc-video-modal__description h5,
.amsc-video-modal__description h6 {
	margin: 1.2rem 0 0.6rem;
	padding: 0;
	font: inherit;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.4;
	color: #edf6f8;
}

.amsc-video-modal__description ul,
.amsc-video-modal__description ol {
	padding-inline-start: 1.4rem;
}

.amsc-video-modal__description a,
.amsc-video-modal__description a:visited,
.amsc-video-modal__related-link,
.amsc-video-modal__related-link:visited {
	color: #9de4ee;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.amsc-video-modal__description a:hover,
.amsc-video-modal__description a:focus,
.amsc-video-modal__related-link:hover,
.amsc-video-modal__related-link:focus {
	color: #d1f5f8;
}

.amsc-video-modal__description a:focus-visible,
.amsc-video-modal__related-link:focus-visible {
	outline: 3px solid var(--amsc-modal-accent);
	outline-offset: 2px;
}

.amsc-video-modal__read-more,
.amsc-video-modal__read-more:hover,
.amsc-video-modal__read-more:focus {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	margin: 0.2rem 0 0;
	padding: 0.25rem 0;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.3;
	color: #9de4ee;
	background: transparent;
	border: 0;
	border-radius: 0.2rem;
	box-shadow: none;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.amsc-video-modal__read-more:hover {
	color: #d1f5f8;
	background: transparent;
}

.amsc-video-modal__expanded-metadata {
	margin-top: 0.7rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(123, 215, 230, 0.16);
	animation: amsc-video-modal-metadata-in 160ms ease-out;
}

.amsc-video-modal__metadata-section {
	margin: 1rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(123, 215, 230, 0.16);
}

.amsc-video-modal__expanded-metadata > .amsc-video-modal__metadata-section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.amsc-video-modal__metadata-section p {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #aebfc7;
}

.amsc-video-modal__metadata-label {
	margin: 0 0 0.45rem;
	padding: 0;
	font: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9fb5be;
}

.amsc-video-modal__related-link {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.amsc-video-modal__focus-guard {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	pointer-events: none;
}

@keyframes amsc-video-modal-backdrop-in {
	from {
		opacity: 0;
	}
}

@keyframes amsc-video-modal-dialog-in {
	from {
		opacity: 0;
		transform: scale(0.985);
	}
}

@keyframes amsc-video-modal-metadata-in {
	from {
		opacity: 0;
	}
}

@media (max-height: 56.25rem) {
	.amsc-video-modal__player {
		width: min(100%, max(16rem, calc(177.78vh - 37.33rem)));
		width: min(100%, max(16rem, calc(177.78dvh - 37.33rem)));
	}
}

@media (max-width: 38rem), (max-height: 34rem) {
	.amsc-video-modal {
		place-items: start center;
		padding: 0.5rem;
	}

	.amsc-video-modal__dialog {
		height: calc(100vh - 1rem);
		height: calc(100dvh - 1rem);
		border-radius: 0.5rem;
	}

	.amsc-video-modal__scroll {
		padding: 3.25rem 0.5rem 0.9rem;
	}

	.amsc-video-modal__controls {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}

	.amsc-video-modal__previous {
		justify-self: start;
	}

	.amsc-video-modal__next {
		justify-self: end;
	}
}

@media (max-height: 34rem) {
	.amsc-video-modal__player {
		width: min(100%, max(16rem, calc(177.78vh - 23.11rem)));
		width: min(100%, max(16rem, calc(177.78dvh - 23.11rem)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.amsc-video-modal,
	.amsc-video-modal__dialog,
	.amsc-video-modal__expanded-metadata {
		animation: none;
		transition: none;
	}
}
