html.single .entry-content p:first-of-type, 
html.page .entry-content p:first-of-type {
	font-weight: normal;
}

.F1RaceDateTimes ul {
	padding: 30px;
	background-color: #f0eeef;
}

.F1RaceDateTimesSessionName {
	font-weight: bold;
}

.F1RaceDateTimesTime {
	font-family: monospace;
}

.F1Tabs ul {
    border-bottom: 1px solid;
}

.F1Tabs ul li {
    background-color: #eee;
    display: inline;
    border: solid;
    border-width: 1px 1px 0 1px;
    margin: 0 5px 0 10px;
    padding: 5px 15px;
    border-radius: 3px 3px 0px 0;
}

.F1Tabs ul li a {
    color: #ed1c24 !important;
}

.F1Tabs ul li.F1TabsSelected {
    background-color: #ed1c24;
    border: 1px solid #ed1c24;
}

.F1Tabs ul li.F1TabsSelected a{
    color: #fff !important;
}

.driverImage img,
.driver img {
	max-width: 50px;
}

tbody .pos,
tbody .q1,
tbody .q2,
tbody .q3,
tbody .laps,
tbody .pits {
    font-family: monospace;
    text-align: center;
}

.gridPos {
	font-family: monospace;
	font-size: 20px;
	background-color: #eee;
	border-radius: 50%;
	display: block;
	width: 40px;
	height: 40px;
	color: #000;
	text-align: center;
	font-weight: bold;
}

.F1 h2 {
	font-size: 18px;
}

.F1 h3 {
	font-size: 14px;
	text-transform: uppercase
}

.F1 h3 a {
	color: #000 !important;
}

.F1 h2 a:hover,
.F1 h3 a:hover {
    text-decoration: underline !important;
}

.RaceSingleGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 30px;
	row-gap: 30px;
	margin-top: 30px;
}

.RaceSingleGrid li ul {
 	display: grid;
 	grid-template-columns: 15px 60px 1fr;
 	column-gap: 30px;
 	row-gap:  30px;
 	border: 1px solid #eee;
 	padding: 15px;
	border-radius: 3px
 }

.RaceSingleGrid li ul:hover {
	background-color: #eee
}

.RaceSingleGrid li ul:hover img{
	border-radius: 50%
}

.RaceSingleGrid li ul:hover .gridPos {
	background-color: #fff;
}

@media screen and (max-width: 600px) {

	.single-tribe_events .site-inner,
	.single-tribe_events.full-width-content .content {
		width: 100%;
	}

	.AutoblogF1DriverRankTable {
		display: flex;
		flex-direction: column;
	}

	.wp-block-image.alignwide, 
	.wp-block-image.alignfull, 
	.wp-block-embed.alignwide, 
	.wp-block-embed.alignfull,
	.single-tribe_events .wp-block-image.alignwide img{
		width: 100%;
		margin: 0 auto;
	}

	.F1Tabs ul li {
		font-size: 16px
	}

	thead {
		order: 2;
	}

	tbody {
		order: 1;
	}

	table thead .pos,
	table thead .driver, 
	table thead .points {
		display: none;
	}

	thead {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	    column-gap: 10px;
		row-gap: 10px;
	}

	.F1 h2 {
		font-size: 16px;
	}

	thead tr:first-of-type img {
		width: 100%;
		height: 100%
	}

	table thead tr {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1fr;
	    column-gap: 10px;
		row-gap: 10px;
	}

	.driverImage img, .driver img {
		max-width: 30px
	}

	.q1,
	.q2,
	.hasPoints,
	.noPoints,
	.noRace,
	.DNF,
	.laps,
	.pits {
		display: none;
	}

	.headings {
		margin-top: 5px
	}

	.points {
		display:flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		font-size: 20px;
		border-left: 1px solid #eee;
	}
	  
	table tr {
	    border-bottom: none;
	    display: block;
	    margin-bottom: .625em;
	    display: grid;
	    grid-template-columns: 30px 0px 2fr 1fr;
	    column-gap: 5px;
	}
	  
	.RaceSingleRaceTable table tr {
		display: grid;
	    grid-template-columns: 30px 0px 2fr 1,.pointsfr;
	}
	
	table td {
	    border-bottom: 1px solid #ddd;
	    display: block;
	    font-size: .8em;
	    text-align: right;
	  }

	.time {
		font-size: 12px;
	}

	.pos {
		font-family: monospace;
		font-size: 20px;
		text-align: left;
		top: 5px;
		position: relative;
		border: none;
	}

	.RaceSingleGrid {
	    display: grid;
	    grid-template-columns: 1fr;
	    row-gap: 15px;
	    margin-top: 30px;
	}

	.RaceSingleRaceTable .points,
	.RaceSingleRaceTable th.time{
		display: none;
	}
}
