/* War of the Rams responsive typography and layout corrections. */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-width: 320px !important;
	overflow-x: hidden;
}

.container {
	width: 92% !important;
	max-width: 1200px;
}

.container .container {
	width: 100% !important;
}

img,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 70vh;
	border: 0;
}

/* The historical .style2 font rule also matched the template's main wrapper,
	which doubled the size of every content block. */
.wrapper.style2 {
	font-size: 1rem;
	line-height: 1.65;
	text-align: left;
}

.wrapper.style2 p {
	margin: 0 0 1rem;
}

.home-page .wrapper.style2 > .container > header.major {
	max-width: 78ch;
	margin-right: auto;
	margin-left: auto;
}

.wrapper.style2 a,
#footer a {
	overflow-wrap: anywhere;
}

.wrapper.style2 h1,
.wrapper.style2 h2,
.wrapper.style2 h3,
.wrapper.style2 h4,
.wrapper.style2 h5,
.wrapper.style2 h6 {
	line-height: 1.25;
	margin-bottom: 0.75rem;
}

.wrapper.style2 h4.style2,
.wrapper.style2 p.style2,
.wrapper.style2 span.style2,
.wrapper.style2 div.style2 {
	font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.style8 {
	font-size: 0.875rem;
	line-height: 1.5;
}

#banner h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
}

#banner .byline {
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

#countdown h2 {
	font-size: clamp(1rem, 2.3vw, 1.35rem);
	line-height: 1.4;
	margin: 1rem 0 0;
}

#nav > ul > li {
	margin-left: 0.15rem;
	padding: 0.45rem 0.8rem;
}

table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Supply the mobile title expected by the original Skel menu. */
#titleBar .title:empty::after {
	content: "War of the Rams";
}

@media screen and (max-width: 840px) {
	body,
	input,
	select,
	textarea {
		font-size: 16px;
	}

	.homepage #header {
		padding: 2.25rem 0 2rem;
	}

	.wrapper.style2 {
		padding: 1.5rem 0;
	}

	header.major {
		padding-bottom: 1.25rem;
	}

	.wrapper.style2 .row.no-collapse-1 {
		margin-left: 0;
	}

	.wrapper.style2 .row.no-collapse-1 > section {
		float: none;
		width: 100% !important;
		padding-left: 0;
		margin-bottom: 1.5rem;
	}

	.wrapper.style2 img {
		display: block;
		margin: 0 auto 1rem;
	}

	.button {
		white-space: normal;
	}

	#footer {
		font-size: 0.95rem;
		line-height: 1.55;
	}

	ul.contact li > span {
		display: block;
	}

	ul.contact li .address,
	ul.contact li .mail,
	ul.contact li .phone {
		float: none;
		width: auto;
		margin-right: 0.5rem;
	}
}

@media screen and (max-width: 480px) {
	.container {
		width: 90% !important;
	}

	#banner h1 {
		font-size: 1.85rem;
	}

	#countdown h2 {
		font-size: 1rem;
	}

	iframe {
		min-height: 65vh;
	}
}
