:root {
	font-size: 16px;
	--scale-speed: 300ms;
}

#extras {
	display: block;
}

.DayPicker-Day {
	padding: 0.2em 0.5em;
}

header {
	position: fixed;
	z-index: 998;
}

body.scrolled header {
	transform: translateY(-85px);
}

body.scrolled #gbn-logo {
	transform: scale(0.5) translateY(60px);
}

body.scrolled ul#gbn-nav {
	transform: scale(0.75);
}

body.scrolled nav {
	margin-top: 55px;
}

section#gbn-latest-news {
	flex-direction: row;
}

#gbn-logo {
	width: 700px;
}

#gbn-logo,
ul#gbn-nav,
header {
	transition: transform var(--scale-speed) ease-in-out;
}

nav {
	transition: margin-top var(--scale-speed) ease-in-out;
}

#gbn-logo img {
	max-width: initial;
	width: 100%;
}

.gbn-edit-post-link {
	display: inline-block;
	top: 200px;
	left: 0;
	background-color: var(--gbn-green);
	padding: 1rem;
	font-weight: bold;
}

#hamburger {
	display: none;
}

body main {
	position: relative;
	max-width: 80%;
}

body.archive.tag main {
	max-width: 80%;
}

#gbn-about {
	flex-direction: row;
	justify-content: space-between;
	max-width: 90vw;
	margin: auto;
}

#gbn-about div {
	box-sizing: box-border;
}

#gbn-about div:first-child {
	flex-basis: 60%;
	border-right: 1px solid var(--gbn-darkgrey);
	padding-right: 40px;
	font-size: 120%;
}

#gbn-about #mc-embed-signup {
	margin: 0 0 0 2rem;
	border-style: none;
}

section#gbn-news-cats ul.slashes {
	display: flex;
	font-size: 100%;
}

ul.slashes {
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

ul.slashes>li:after {
	content: "/";
}

ul.slashes>li.caption:after {
	content: ":";
	margin-left: 0.25rem !important;
}

ul.slashes>li:last-child {
	margin: 0 !important;
}

ul.slashes>li:last-child:after {
	content: "" !important;
	padding-left: 0 !important;
}

nav {
	justify-content: center;
	height: initial;
	position: fixed;
	z-index: 999;
	margin-top: 135px;
}

ul#gbn-nav>li {
	margin-right: calc(var(--gbn-space) * 4);
	margin-bottom: 0;
}

ul#gbn-nav>li:after {
	padding-left: calc(var(--gbn-space) * 4);
}

.gbn-tabbed input:checked+label+ul.gbn-most-read {
	column-count: 2;
}

#gbn-top-news {
	display: grid;
	grid-template-areas: "top-story banner" "most-read banner";
	grid-template-columns: 3fr 380px;
	width: 100%;
	grid-template-rows: 300px 80px 300px;
}

#gbn-lead-story {
	grid-area: top-story;
}

#gbn-top-news aside {
	grid-area: banner;
	justify-self: center;
}

#gbn-top-news .tabbed {
	grid-area: most-read;
}

#gbn-lead-story {
	width: 100%;
	height: 100%;
}

aside#gbn-latest {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	width: 80%;
}

section#gbn-latest-events article {
	width: 150px;
	margin: 0 0.75rem 0.75rem 0;
}

section#gbn-latest-events article {
	width: 200px;
	height: 200px;
	margin: 0 1rem 1rem 0;
	padding: 0.5rem;
}

ul#gbn-archive-list {
	line-height: 160%;
	font-size: 140%;
}

ul#gbn-archive-list>li {
	padding: 0.05rem;
	line-height: 2.25rem;
}

footer {
	grid-template-areas: "archive contact" "social contact" "copyright copyright";
	grid-template-columns: 3fr 1fr;
}

footer>section:not(:last-child) {
	margin: calc(var(--gbn-doublespace) * 3);
	align-self: flex-start;
	margin-bottom: 0;
}

ul#gbn-archive-list {
	line-height: 150%;
	font-size: 100%;
}

body main {
	width: 90%;
	padding: 0;
	margin-top: 190px;
}

body.single main {
	margin: 190px auto 2rem;
	width: 1200px;
	display: grid;
	grid-template-columns: 200px 600px 5fr;
	grid-template-rows: auto auto min-content auto 1fr auto;
	column-gap: calc(var(--gbn-space) * 6);
}

aside#gbn-latest a:nth-of-type(4) {
	display: block;
}

body.good-archive main,
body.tax-good-categories main {
	display: grid;
	grid-template-areas: "heading heading" "content sidebar";
	grid-template-columns: 870px 325px;
	margin-bottom: 2rem;
	width: initial;
}

body.good-archive main h1 {
	grid-area: heading;
}

body.good-archive main>section {
	grid-area: content;
}

body.good-archive main>aside {
	grid-area: sidebar;
}

ul.gbn-good-categories {
	columns: 4;
	display: none;
	margin-top: 1rem;
}

ul.gbn-good-categories li {
	margin-bottom: var(--gbn-doublespace);
}

#gbn-diary-archive {
	display: grid;
	grid-template-areas:
		"diary-header sidebar"
		"diary-listings sidebar";
	grid-template-columns: 870px 325px;
	grid-gap: 20px;
}

#gbn-diary {
	grid-area: diary-header;
}

#gbn-latest-events {
	grid-area: diary-listings;
}

#gbn-diary-archive aside {
	grid-area: sidebar;
}

#gbn-directory-entry>section:first-of-type,
#gbn-diary-entry>section:first-of-type {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: min-content;
	grid-gap: 20px;
	max-width: 800px;
}

#gbn-diary-entry>section>h2 {
	grid-column: 1/3;
	font-size: 175%;
}

#gbn-diary-image,
#gbn-diary-content {
	grid-column: 1/2;
}

#gbn-diary-image img {
	max-width: 100%;
	height: auto;
}

.content-column #gbn-diary-meta {
	grid-column: 2/3;
	grid-row: 2/5;
}

#gbn-directory-entry #gbn-good-logo {
	grid-column: 1/3;
}

#gbn-entry-categories {
	grid-column: 1/3;
}

.no-map #gbn-entry-categories {
	grid-column: 1/2;
	grid-row: 3;
}

#gbn-entry-categories-list {
	grid-column: 1/3;
	columns: 3;
}

.no-map #gbn-entry-categories-list {
	grid-column: 1/2;
	grid-row: 4;
}

#gbn-good-twitter {
	grid-column: 1/3;
}

main#gbn-directory-entry,
main#gbn-diary-entry {
	display: grid;
	grid-template-areas:
		"heading heading"
		"breadcrumbs sidebar"
		"content sidebar";
	grid-template-columns: 870px 325px;
	grid-template-rows: auto 40px auto;
}

main#gbn-directory-entry>h1,
main#gbn-diary-entry>h1 {
	grid-area: heading;
}

main#gbn-directory-entry>ul.breadcrumbs,
main#gbn-diary-entry>ul.breadcrumbs {
	grid-area: breadcrumbs;
}

main#gbn-directory-entry>section,
main#gbn-diary-entry>section {
	grid-area: content;
}

main#gbn-directory-entry>aside,
main#gbn-diary-entry>aside {
	grid-area: sidebar;
}

#good-search {
	flex-direction: row;
}

body.carousel {
	overflow-y: scroll;
}

#extras figure {
	cursor: pointer;
}

body.carousel #gbn-carousel {
	display: block;
	background-color: #000c;
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: 1000;
	overflow: hidden;
}

#gbn-carousel-items {
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#gbn-carousel-items>figure {
	margin: auto;
	opacity: 0;
	transform: scale(0);
	transition: 500ms;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 97.5%;
	order: 2;
}

#gbn-carousel-items>figure.current {
	opacity: 1;
	transform: scale(1);
	order: 1;
}

#gbn-carousel-items>figure img {
	box-shadow: 3px 3px 5px 5px #0003;
	max-height: 95%;
}

#gbn-carousel .icon {
	color: #fff;
	cursor: pointer;
	position: absolute;
	z-index: 1001;
}

#close-carousel {
	top: 1rem;
	right: 1rem;
}

#prev-carousel {
	top: 50%;
	left: 2rem;
}

#next-carousel {
	top: 50%;
	right: 2rem;
}

#gbn-carousel figcaption {
	color: #fff;
	font-weight: 600;
	font-size: 110%;
	text-align: center;
	padding: 0.75rem;
}

#gbn-top-news aside.open-championship {
	width: 500px;
}