/* Front-end styling for the generic media/content views. */
.gkfc-item {
	display: grid;
	grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	box-sizing: border-box;
	padding: 4px;
}

.gkfc-carousel {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.gkfc-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.gkfc-carousel__track {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

.gkfc-slide {
	flex: 0 0 100%;
}

.gkfc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
}

.gkfc-grid__item {
	grid-template-columns: 1fr;
	align-items: start;
	gap: 20px;
	padding: 0;
}

.gkfc-slide__media {
	width: 100%;
}

.gkfc-slide__image,
.gkfc-slide__placeholder {
	width: 100%;
	aspect-ratio: 3 / 4;
	display: block;
	border-radius: 18px;
	object-fit: cover;
	background: #ececec;
	box-shadow: none;
}

.gkfc-slide__video,
.gkfc-slide__embed iframe {
	width: 100%;
	display: block;
	border-radius: 18px;
	object-fit: cover;
	background: #ececec;
	box-shadow: none;
}

.gkfc-slide__embed {
	width: 100%;
	overflow: hidden;
	border-radius: 18px;
}

.gkfc-slide__video,
.gkfc-slide__embed iframe {
	max-height: 80vh;
}

.gkfc-slide__video:fullscreen,
.gkfc-slide__video:-webkit-full-screen,
.gkfc-slide__video:-moz-full-screen,
.gkfc-slide__video:-ms-fullscreen {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	aspect-ratio: auto;
	object-fit: contain;
	background: #000;
	border-radius: 0;
}

.gkfc-slide__video--fullscreen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: 100vw !important;
	max-height: 100vh !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	background: #000 !important;
	border-radius: 0 !important;
}

.gkfc-slide__placeholder {
	display: grid;
	place-items: center;
	padding: 20px;
	text-align: center;
	min-height: 320px;
}

.gkfc-slide__subtitle {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.gkfc-slide__title {
	margin: 0 0 16px;
	font-size: clamp(1.8rem, 3vw, 3rem);
	line-height: 0.95;
}

.gkfc-slide__quote {
	font-size: clamp(1rem, 1.7vw, 1.35rem);
	line-height: 1.3;
	max-width: 38rem;
}

.gkfc-slide__quote p:first-child {
	margin-top: 0;
}

.gkfc-slide__quote p:last-child {
	margin-bottom: 0;
}

.gkfc-slide__cta-wrap {
	margin-top: 18px;
}

.gkfc-slide__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid currentColor;
}

.gkfc-carousel__nav {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
}

.gkfc-carousel__nav[disabled] {
	opacity: 0.4;
	cursor: default;
}

.gkfc-carousel__nav:not([disabled]):hover,
.gkfc-slide__cta:hover {
	opacity: 0.88;
}

.gkfc-theme--demfitness {
	--gkfc-df-orange: #f04c35;
	--gkfc-df-turquoise: #06b9bd;
	--gkfc-df-black: #282828;
}

.gkfc-theme--demfitness .gkfc-slide__subtitle {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 10px !important;
	padding: 6px 14px;
	padding-bottom: 6px !important;
	border-radius: 999px;
	background: rgba(6, 185, 189, 0.12);
	color: var(--gkfc-df-turquoise);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: none;
}

.gkfc-theme--demfitness .gkfc-slide__title {
	color: var(--gkfc-df-black);
}

.gkfc-theme--demfitness .gkfc-carousel__nav {
	border-color: rgba(240, 76, 53, 0.18);
	background: rgba(240, 76, 53, 0.08);
	color: var(--gkfc-df-orange);
}

.gkfc-theme--demfitness .gkfc-carousel__nav:not([disabled]):hover {
	border-color: rgba(240, 76, 53, 0.34);
	background: rgba(240, 76, 53, 0.14);
	color: var(--gkfc-df-orange);
	opacity: 1;
}

@media (max-width: 980px) {
	.gkfc-item {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gkfc-carousel {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 12px;
	}

	.gkfc-carousel__nav {
		width: 44px;
		height: 44px;
		font-size: 1.6rem;
	}

	.gkfc-slide__quote {
		max-width: none;
	}

	.gkfc-slide__video,
	.gkfc-slide__embed iframe {
		max-height: 62vh;
		margin-inline: auto;
	}
}
