.page-content {
  position: relative;
  overflow: hidden;
}

.fr-rest-of-content::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-image: var(--background-image); /* To be modified by jQuery. */
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  filter: saturate(0.0) grayscale(0.3) opacity(0.025);
  pointer-events: none; /* let clicks pass through */
  z-index: 0;
}

/* ensure real content is above the pseudo-element */
.page-content > * {
  position: relative;
  z-index: 1;
}

.page-content {
	margin: 0 !important;
	padding: 0;
}

.container .child-with-margin {
	margin: 0;
	padding: 0;
}

.fr-title-section {
	display: flex;
	flex-direction: row;
	align-items: center;
	background-color: #e3e3e3;
	padding: 20px;
}

.fr-title-section img {
	margin: 0 30px 0 0;
	width: 250px;
	/* border: 1px solid black; */
}

.fr-title-section h1 {
	font-size: 40pt;
}

.fr-title-section h2 {
	font-size: 30pt;
}

.fr-title-section h3 {
	font-size: 20pt;
	margin: 10px 0 0 0;
}

.fr-title-section h4 {
	font-size: 16pt;
}

.fr-rest-of-content {
	padding: 60px 30px 30px;
}

.fr-rest-of-content .main {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

.position-sections {
	display: flex;
	flex-direction: row;
	gap: 140px;
}

.positions-grid {
	display: grid;
	grid-template-columns: repeat(3, auto);
	grid-template-rows: repeat(3, auto);
	gap: 40px;
	align-items: start;
}

.positions-grid > :nth-child(1) { grid-column: 2; grid-row: 1; } /* top    */
.positions-grid > :nth-child(2) { grid-column: 1; grid-row: 2; } /* left   */
.positions-grid > :nth-child(3) { grid-column: 3; grid-row: 2; } /* right  */
.positions-grid > :nth-child(4) { grid-column: 2; grid-row: 2; margin-top: 50px; } /* middle */

.pip-section-header {
	font-weight: bold;
}

.other-positions {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.history {
	font-size: 14pt;
}

.history h2 {
	margin: 0 0 30px;
}

.history table thead {
	font-weight: bold;
}

.history table tr,
.history table td {
	width: 100px;
}

.history table .points {
	text-align: right;
}

.legend {
	margin-top: 50px;
}

/* IF YOU CHANGE max-width, THEN CHANGE min-width IN MASTER.PHP TOO!! */
@media (max-width: 900px) {
	.fr-title-section img {
		width: 100px;
		margin: 0;
	}
	
	.page-content {
		padding: 10px;
	}
	
	.fr-title-section {
		align-items: start;
		flex-direction: row-reverse;
		justify-content: space-between;
	}
	
	.fr-title-section h1 {
		font-size: 15pt;
	}
	
	.fr-title-section h2 {
		font-size: 11pt;
	}
	
	.page-content::before {
		top: 130px;
	}
}