/*
 * TT Hoves Pro, trimmed WOFF2 (normal width, no slant, weights 100-700, Latin only).
 * Loaded after app.css so it replaces the 1.5MB TTF @font-face defined there.
 */
@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../fonts/tt-hoves-pro.woff2') format('woff2');
  font-display: swap;
}

/* form style hack */
#gfield_description_6_20, 
#gfield_description_6_31{
	padding-top: 0 !important;
}

.gform-footer .gform_button{
	background-color: #1e1e1f;
	color: white;
	cursor: pointer;
	border: 2px solid #1e1e1f;
	transition: .1s all;
    padding-top: 10px;
}

.gform-footer .gform_button:hover{
	background-color: white;
	color:#1e1e1f;
}

@media (max-width: 600px) {
	body > br{
		display: none;
	}
}

/* front page header: YouTube/Vimeo background video, sized to cover the hero like object-fit: cover */
.header-embed{
	--header-embed-crop: 1.2;
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	container-type: size;
}

.header-embed img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(var(--header-embed-crop));
}

/* The player starts invisible over the poster and fades in once it reports it is playing.
   --header-embed-crop (set on .header-embed) enlarges it and the poster equally, so YouTube's title bar and logo fall outside the hero. */
.header-embed iframe{
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	border: 0;
	opacity: 0;
	transform: translate(-50%, -50%) scale(var(--header-embed-crop));
	transition: opacity 0.5s ease;
}

.header-embed.is-playing iframe{
	opacity: 1;
}

@media (prefers-reduced-motion: reduce){
	.header-embed iframe{
		transition: none;
	}
}

/* video block: click-to-load YouTube embed */
.video-embed{
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	background-color: #000;
}

.video-embed__poster,
.video-embed iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.video-embed__play{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 109px;
	height: 109px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform: translate(-50%, -50%);
}

.video-embed__play img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media only screen and (max-width: 830px) {
	.video-embed__play{
		width: 50px;
		height: 50px;
	}
}
