/* GTH Coaching Videos. Colours and fonts come from the Golf Tuition Holidays site. */

.gth-vg {
	--gth-accent: #f6941e;
	--gth-topic: #a35b00;
	--gth-title: #151619;
	--gth-text: #595959;
	--gth-panel: #151619;
	--gth-panel-text: #f9f9f9;
	--gth-columns: 3;
	--gth-gap: 32px;
	--gth-radius: 6px;
	container-type: inline-size;
	width: 100%;
	font-family: Poppins, sans-serif;
}

/* The theme styles every button, including hover and focus, so these selectors repeat the class. */
.gth-vg .gth-vg__filter,
.gth-vg .gth-vg__filter:hover,
.gth-vg .gth-vg__filter:focus,
.gth-vg .gth-card__play,
.gth-vg .gth-card__play:hover,
.gth-vg .gth-card__play:focus,
.gth-vg .gth-card__watch,
.gth-vg .gth-card__watch:hover,
.gth-vg .gth-card__watch:focus,
.gth-vg .gth-vg__more,
.gth-vg .gth-vg__more:hover,
.gth-vg .gth-vg__more:focus,
.gth-lightbox .gth-lightbox__close,
.gth-lightbox .gth-lightbox__close:hover,
.gth-lightbox .gth-lightbox__close:focus {
	appearance: none;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

.gth-vg button:focus-visible,
.gth-vg a:focus-visible,
.gth-lightbox button:focus-visible {
	outline: 3px solid var(--gth-accent, #f6941e);
	outline-offset: 2px;
}

/* Topic buttons */

.gth-vg .gth-vg__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0 0 28px;
}

.gth-vg .gth-vg__filter,
.gth-vg .gth-vg__filter:hover,
.gth-vg .gth-vg__filter:focus {
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: var(--gth-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.gth-vg .gth-vg__filter:hover {
	color: var(--gth-title);
}

.gth-vg .gth-vg__filter[aria-pressed="true"] {
	border-bottom-color: var(--gth-accent);
	color: var(--gth-title);
}

/* Grid */

.gth-vg .gth-vg__grid {
	display: grid;
	grid-template-columns: repeat(var(--gth-columns), minmax(0, 1fr));
	gap: calc(var(--gth-gap) + 8px) var(--gth-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gth-vg .gth-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.gth-vg .gth-card[hidden] {
	display: none;
}

/* Picture and play button */

.gth-vg .gth-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--gth-radius);
	background: var(--gth-panel);
}

.gth-vg .gth-card__play,
.gth-vg .gth-card__play:hover,
.gth-vg .gth-card__play:focus {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: var(--gth-radius);
	color: #fff;
}

.gth-vg .gth-card__play[hidden] {
	display: none;
}

.gth-vg .gth-card__play:focus-visible {
	outline-offset: -5px;
}

.gth-vg .gth-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.gth-vg .gth-card__play:hover .gth-card__image {
	transform: scale(1.03);
}

.gth-vg .gth-card__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: var(--gth-accent);
	transition: transform 0.2s ease;
}

.gth-vg .gth-card__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -10px 0 0 -6px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #151619;
}

.gth-vg .gth-card__play:hover .gth-card__icon {
	transform: scale(1.1);
}

.gth-vg .gth-card__duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 7px;
	border-radius: 3px;
	background: rgba(21, 22, 25, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

/* The pin flag marks the newest video. It sits above the play button but lets clicks through. */
.gth-vg .gth-card__flag {
	display: none;
	position: absolute;
	top: 0;
	left: 24px;
	height: 58px;
	padding: 7px 26px 0 9px;
	border-left: 2px solid #fff;
	color: #151619;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
	isolation: isolate;
}

.gth-vg .gth-card__flag::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 26px;
	left: 0;
	background: var(--gth-accent);
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}

/* Text under the picture */

.gth-vg .gth-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 14px;
}

.gth-vg .gth-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1.5;
}

.gth-vg .gth-card__topic {
	color: var(--gth-topic);
	font-weight: 500;
}

.gth-vg .gth-card__date {
	color: var(--gth-text);
}

.gth-vg .gth-card__title {
	margin: 0;
	color: var(--gth-title);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
}

.gth-vg .gth-card__description {
	display: -webkit-box;
	margin: 8px 0 0;
	overflow: hidden;
	color: var(--gth-text);
	font-size: 14px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.gth-vg .gth-card__watch,
.gth-vg .gth-card__watch:hover,
.gth-vg .gth-card__watch:focus {
	display: none;
}

/* Newest video, large */

.gth-vg .gth-card.is-featured {
	grid-column: 1 / -1;
	overflow: hidden;
	border-radius: var(--gth-radius);
	background: var(--gth-panel);
}

.gth-vg .gth-card.is-featured .gth-card__media {
	border-radius: 0;
}

.gth-vg .gth-card.is-featured .gth-card__play {
	border-radius: 0;
}

.gth-vg .gth-card.is-featured .gth-card__flag {
	display: block;
}

.gth-vg .gth-card.is-featured .gth-card__body {
	padding: 22px 20px 24px;
}

.gth-vg .gth-card.is-featured .gth-card__topic {
	color: var(--gth-accent);
}

.gth-vg .gth-card.is-featured .gth-card__date,
.gth-vg .gth-card.is-featured .gth-card__description {
	color: var(--gth-panel-text);
}

.gth-vg .gth-card.is-featured .gth-card__title {
	color: #fff;
	font-size: 28px;
	line-height: 1.2;
}

.gth-vg .gth-card.is-featured .gth-card__description {
	-webkit-line-clamp: 5;
	font-size: 15px;
	line-height: 1.65;
	margin-top: 12px;
}

.gth-vg .gth-card.is-featured .gth-card__watch,
.gth-vg .gth-card.is-featured .gth-card__watch:hover,
.gth-vg .gth-card.is-featured .gth-card__watch:focus {
	display: inline-block;
	align-self: flex-start;
	margin-top: 20px;
	padding: 11px 22px;
	border-radius: 5px;
	background: var(--gth-accent);
	color: #151619;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.gth-vg .gth-card.is-featured .gth-card__watch:hover {
	background: #fff;
}

@container (min-width: 760px) {
	.gth-vg .gth-card.is-featured .gth-card__icon {
		width: 76px;
		height: 76px;
		margin: -38px 0 0 -38px;
	}

	.gth-vg .gth-card.is-featured .gth-card__icon::before {
		margin: -13px 0 0 -8px;
		border-width: 13px 0 13px 21px;
	}

	.gth-vg .gth-card.is-featured {
		display: grid;
		grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
		margin-bottom: 8px;
	}

	.gth-vg .gth-card.is-featured .gth-card__body {
		justify-content: center;
		padding: 32px 36px;
	}

	.gth-vg .gth-card.is-featured .gth-card__title {
		font-size: 34px;
		line-height: 1.15;
	}
}

/* Load more, and the log-in link */

.gth-vg .gth-vg__more,
.gth-vg .gth-vg__more:focus {
	display: block;
	width: fit-content;
	margin: 40px auto 0;
	padding: 12px 26px;
	border: 2px solid var(--gth-title);
	border-radius: 5px;
	color: var(--gth-title);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.gth-vg .gth-vg__more:hover {
	display: block;
	width: fit-content;
	margin: 40px auto 0;
	padding: 12px 26px;
	border: 2px solid var(--gth-title);
	border-radius: 5px;
	background: var(--gth-title);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.gth-vg .gth-vg__more[hidden],
.gth-vg .gth-vg__none[hidden] {
	display: none;
}

.gth-vg .gth-vg__empty,
.gth-vg .gth-vg__none,
.gth-vg .gth-vg__locked {
	margin: 0;
	padding: 40px 20px;
	border-radius: var(--gth-radius);
	background: #f9f9f9;
	color: var(--gth-text);
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.gth-vg .gth-vg__locked p {
	margin: 0;
}

.gth-vg .gth-vg__locked .gth-vg__more {
	margin-top: 18px;
}

/* Players */

.gth-player {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
}

.gth-vg .gth-card__media .gth-player {
	position: absolute;
	inset: 0;
}

html.gth-lightbox-open {
	overflow: hidden;
}

.gth-lightbox {
	width: min(1100px, calc(100vw - 32px));
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
	font-family: Poppins, sans-serif;
}

.gth-lightbox::backdrop {
	background: rgba(21, 22, 25, 0.92);
}

.gth-lightbox .gth-lightbox__close,
.gth-lightbox .gth-lightbox__close:hover,
.gth-lightbox .gth-lightbox__close:focus {
	display: block;
	margin: 0 0 10px auto;
	padding: 8px 2px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.gth-lightbox .gth-lightbox__close:hover {
	text-decoration: underline;
}

.gth-lightbox__stage {
	aspect-ratio: 16 / 9;
	max-height: calc(100vh - 130px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 6px;
	background: #000;
}

.gth-lightbox .gth-lightbox__title {
	margin: 12px 0 0;
	color: #fff;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 20px;
	line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
	.gth-vg .gth-card__image,
	.gth-vg .gth-card__icon {
		transition: none;
	}

	.gth-vg .gth-card__play:hover .gth-card__image,
	.gth-vg .gth-card__play:hover .gth-card__icon {
		transform: none;
	}
}
