/*
==============================
!COLOURS
==============================
*/

:root {
	--black: #3e3e3e;
	--yellow: #e0b850;
	--light-yellow: #faf5e4;
	font-size: 16px;
}




/*
==============================
!FONTS
==============================
*/

@import url('https://fonts.googleapis.com/css?family=Old+Standard+TT:400i&display=swap');

@font-face {
	font-family: 'Montserrat';
	src: url(../webfonts/Montserrat-Regular.ttf);
	font-weight: normal;
}

@font-face {
	font-family: 'Montserrat';
	src: url(../webfonts/Montserrat-Bold.ttf);
	font-weight: bold;
}




/*
==============================
!MISC
==============================
*/

html {
	scroll-behavior: smooth;
}

.post-edit-link {
	position:fixed;
	top:200px;
	right:0;
	padding:10px;
	color:#fff !important;
	z-index:100000;
	background: #3a3a3a;
	text-decoration: none;
	font-size:14px;
	border-top-left-radius: 2px;
	border-bottom-left-radius: 2px;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

/* Start CSS from here */

body {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
}

:not(ul):not(ol) > li {
	list-style: none;
}

#logo {
	width:250px;
}

img.logo {
	width: 150px;
	object-fit: contain;
}

a {
	text-decoration: none;
	color: inherit;
}

nav {
	margin-left: -.5rem;
	margin-right: -.5rem;
}

nav li {
	margin-left: .5rem;
	margin-right: .5rem;
}

h1 {
	font-family: 'Old Standard TT', serif;
	font-weight: 400;
	font-style: italic;
	font-size: 3rem;
	line-height: 1;
}

h1 > small {
	font-weight: 100;
	font-size: 1.5rem;
}

.button, input[type=submit] {
	text-align: center;
	padding: .625rem 1.25rem;
	background-color: var(--black);
	border: none;
	color: #fefefe;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
	line-height: 1;
	transition: .2s ease-in-out all;
	cursor: pointer;
}

.button:hover {
	background-color: var(--yellow);
}

main {
	line-height: 1.5rem;
}

p {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.float-right {
    float: right;
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e2e2;
    padding: .3125rem;
}

.float-left {
    float: left;
    margin-right: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e2e2;
    padding: .3125rem;
}

ul {
    padding-left: 1rem;
    overflow: hidden;
}




/*
==============================
!IMAGES
==============================
*/

.image {
	width: 100%;
	position: relative;
}

.image img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
}



.image.aspect3-2 {
	padding-top: calc(100% / 3 * 2);
}




/*
==============================
!SLIDER
==============================
*/

div.slider.slick-dotted {
	margin-bottom: 0;
}

ul.slick-dots {
	bottom: 0;
	text-align: left;
}

ul.slick-dots {
    padding-bottom: .625rem;
    padding-left: 1.25rem;
}

ul.slick-dots li button::before {
    font-size: 10px;
    color: var(--black);
    opacity: 1;
}

ul.slick-dots li.slick-active button::before {
    opacity: 1;
    color: var(--yellow);
}




/*
==============================
!HEADER
==============================
*/

header {
	margin-top: .625rem;
	margin-bottom: .625rem;
}

header nav li a, header nav li a {
	display: inline-block;
	font-weight: bold;
	line-height: 1.25rem;
	text-transform: uppercase;
	font-size: 1rem;
}

header nav li.current-menu-item a, header nav li a:hover {
	border-bottom: 2px solid var(--yellow);
}




/*
==============================
!HERO-SLIDER
==============================
*/

section#hero-slider div.slide {
	position: relative;
	height: calc( 100vh - 300px );
	max-height: 700px;
	min-height: 300px;
}

section#hero-slider img {
	position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: top;
    z-index: -1;
}




/*
==============================
!INTRO
==============================
*/

section#intro div.grid-container {
	padding-bottom: 5rem;
}

nav#secondary {
	transform: translateY(-50%);
	margin-bottom: 1.875rem;
}

nav#secondary li {
	text-align: center;
	background-color: var(--black);
	color: #fefefe;
	text-transform: uppercase;
	line-height: 1;
	margin-left: .625rem;
	margin-right: .625rem;
	font-size: .75rem;
	transition: .2s;
}

nav#secondary li.current-menu-item, nav#secondary li:hover {
	background-color: var(--yellow);
}

nav#secondary li a {
	margin: 0;
	padding: .625rem;
	display: inline-block;
}

@media (min-width: 64rem) {
	nav#secondary li a {
		padding: 1.25rem;
		width: 175px;
	}
}




/*
==============================
!EVENTS
==============================
*/

main#page.events div.event {

}

#events {
    padding-bottom: 3.125rem;
}

#events .image {
	background-color: #efefef;
}

#events div.date, main#page.events div.event div.date {
    text-align: center;
    font-weight: 600;
}

#events div.date span.day, main#page.events div.event div.date span.day {
    font-size: 1.875rem;
}

#events div.date span.month, main#page.events div.event div.date span.month {
    text-transform: uppercase;
    font-size: .9375rem;
}

#events h3.event-name {
    margin: 0 0 .625rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    /* white-space: nowrap; */
}

main#page div.event h3.event-name {
    margin: 0 0 .625rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    /* white-space: normal; */
}

#events .cell.medium-6, #events .cell.large-6 {
	background-color: var(--light-yellow);
}

#events h2 {
	margin: 0;
}

div#next-event {
	text-align: left;
}

div#next-event h2 {
	background-color: var(--black);
    color:  #fff;
    padding: 1.25rem;
    text-align: center;
    text-transform: uppercase;
}

div#next-event .slick-track {
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
}

div#next-event .slick-track .event {
	height: unset;
}

div#next-event .slick-track .event > .grid-x {
	height: 100%;
}

@media (min-width:1024px) {
	div#next-event .slick-track .event > .grid-x {
		flex-flow: column;
	}
}

div#next-event .slick-track .event > .grid-x > .cell:first-child {
	display: flex;
	flex-flow: column;
	flex-grow: 1;
}

div#next-event .slick-track .event > .grid-x > .cell:first-child > a:last-child {
	flex-grow: 1;
}

div#next-event .slick-track .event > .grid-x > .cell:first-child > a:last-child > .details,
div#next-event .slick-track .event > .grid-x > .cell:first-child > a:last-child > .details .grid-x {
	height: 100%;
}

#next-event .details {
    padding: 1.25rem 3.125rem;
}

.event div.details {
	background-color: var(--yellow);
	color: #fff;
}

.event div.details div.grid-x, {
	padding: 1.25rem 4.375rem;	
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    height: 120px;
}

div#events div.details div.grid-x {
	padding: 1.25rem 0;
    height: 100%;
}

.event div.details div.cell.shrink {
	border-right: 2px solid #fff;
}

/* div#next-event div#map {
    padding-top: 25%;
    position: relative;
} */

.map-container {
    width: 100%;
    position: relative;
}

div#next-event .map-container {
    height: 160px;
}

.map-container iframe {
    border: none;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.slick-prev, .slick-next {
	top: unset;
	bottom: 220px;
	transform: translateY(50%);
	color: #fff;
	z-index: 1;
	width: 50px;
	height: unset;
}

div#next-event .slick-prev {
	left: 0;
}

.slick-prev::before {
	content: "\f053" !important;
	font-family: "Font Awesome 5 Pro" !important;
	font-size: 40px;
}

div#next-event .slick-next {
	right: 0;
}

.slick-next::before {
	content: "\f054" !important;
	font-family: "Font Awesome 5 Pro" !important;
	font-size: 40px;
}



div#upcoming-events article.event {
    padding:  0 1.25rem;
}

div#upcoming-events article.event > div {
	padding: 1.25rem 0;
}

div#upcoming-events h2 {
    background-color: var(--yellow);
    color:  #fff;
    padding: 1.25rem;
    text-align: center;
    text-transform: uppercase;
}

body.single-event .map-container {
	padding-top: 50%;
	margin-top: 2rem;
}

.map-container:empty {
	padding-top: 0 !important;
	margin: 0 !important;
}

form {
    background-color: var(--yellow);
    padding: 1.25rem 1.25rem;
    position: static !important;
    clear: none !important;
    text-align: left !important;
}

form.em-booking-form label {
	display: block !important;
	width: 100%;
}

div.em-booking-form-details {
	float: none;
}

.em-booking-form-details p.ticket-desc {
	margin-top: 0;
}

form select, 
form textarea, 
form [type=text], 
form [type=tel], 
form [type=email], 
form [type=date] {
	width: 100% !important;
	border: none;
	padding: .625rem;
	border-radius: 2px;
	line-height: 20px;
}

form [type=date] {
	max-width: 175px;
}

.wpcf7-checkbox, .wpcf7-acceptance {
    margin-left: -.9375rem;
    margin-right: -.9375rem;
    display: block;
}

.wpcf7-checkbox .wpcf7-list-item, .wpcf7-acceptance .wpcf7-list-item {
    margin: .3125rem .9375rem;
    /* width: 100%; */
    display: block;
}

.em-booking-buttons {
    margin: .625rem auto 0;
}

.em-booking-form-details, .em-attendee-fields {
    display: flex;
    flex-flow: row wrap;
}

.em-booking-form-details > p, .em-attendee-fields > p {
    padding-left: .625rem;
    padding-right: .625rem;
    margin-top: .625rem;
    margin-bottom: .625rem;
}

.em-attendee-fields > p {
    width: 50%;
}

.em-booking-form-details {
    margin-left: -.625rem;
    margin-right: -.625rem;
    width: 600px;
}

div#upcoming-events article.event div.cell.medium-shrink {
	border-right: 2px solid var(--yellow);
}

form .grid-x {}

form .cell {
	padding: .625rem;
}

main#page div#events .cell.event > a > div {
	display: flex;
	flex-flow: column;
	height: 100%;
}

main#page div#events .cell.event > a > div .details {
	flex-grow: 1;
}




/*
==============================
!SPONSORS
==============================
*/

main#page section#sponsors {
	padding-top: 3.125rem;
	padding-bottom: 3.125rem;
}

section#sponsors hr {
	border-top: 1px solid var(--yellow);
	border-right: none;
	border-bottom: none;
	border-left: none;
}

section#sponsors div.slider {
	padding-bottom: 5rem;
	padding-top: 5rem;
}

section#sponsors div.slider div.slick-track {
	display: flex;
    align-items: center;
}

section#sponsors div.slider div.slide {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

section#sponsors div.slider div.slide img {
	max-height: 200px;
	max-width: 200px;
	width: auto;
	object-fit: contain;
}




/*
==============================
!TABLES
==============================
*/

table {
    border-collapse: collapse;
    width: 100%;
}

table tr:nth-child(odd) {
    background-color: var(--light-yellow);
}

table td {
    padding: .3125rem .625rem;
}




/*
==============================
!FOOTER
==============================
*/

footer img.logo {
	max-height: 100px;
}

footer section:first-child {
	background-color: var(--light-yellow);
	padding-top: 1.875rem;
	padding-bottom: 1.875rem;
	font-size: .8125rem;
}

footer section:first-child td.email-name {
	font-weight: bold;
	padding-right: 1.25rem;
}

footer section:first-child td.email-address a:hover {
	text-decoration: underline;
}

footer nav#footer li a {
	border-bottom: 2px solid var(--yellow);
	display: inline-block;
	line-height: 1.25rem;
	transition: .2s ease-in-out all;
}

footer nav#footer li a:hover {
	border-bottom: 2px solid var(--black);
}

footer section#legal {
	background-color: var(--black);
	color: #fff;
	font-size: .75rem;
	text-align: center;
	padding-top: 1.875rem;
	padding-bottom: 1.875rem;
}

footer section#legal a:hover {
	text-decoration: underline;
}



/*
==============================
!MOBILE
==============================
*/

@media all and (max-width:39.9375rem) {
	header {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		background-color: #fefefe;
		box-shadow: 0px 0px 10px #888;
		margin: 0;
		z-index: 1;
	}

	header img#logo {
	    height: 80px;
	    width: auto;
	    margin-top: .625rem;
	    margin-bottom: .625rem;
	}

	div#hamburger {
	    height: 28px;
	    width: 40px;
	    position: relative;
	}

	div#hamburger > span.bar {
	    background-color: var(--black);
	    height:  3px;
	    left: 50%;
	    position: absolute;
	    transform: translateX(-50%);
	    width: 100%;
	    transition: .2s ease-in-out all;
	    z-index: 1;
	}

	div#hamburger > span.bar:nth-child(1) {
	    top: 0;
	}

	div#hamburger > span.bar:nth-child(2) {
	    top: calc(50% - 2px);
	}

	div#hamburger > span.bar:nth-child(3) {
	    bottom: 0;
	}

	div#hamburger.active > span.bar {
	    left: 50%;
	    top: 50%;
	    position: absolute;
	    transform: translate(-50%, -50%);
	}

	div#hamburger.active > span.bar:nth-child(1) {
	    transform: translate(-50%, -50%) rotateZ(45deg);
	}

	div#hamburger.active > span.bar:nth-child(2) {
	    transform: translate(-50%, -50%) rotateY(90deg);
	}

	div#hamburger.active > span.bar:nth-child(3) {
	    transform: translate(-50%, -50%) rotateZ(-45deg);
	}

	nav#primary {
		display: none;
	    margin: .3125rem 0;
	    text-align: center;
	    padding-bottom: .625rem;
	}

	nav#primary li {
		margin: .625rem 0;
	}

	main {
	    margin-top: 100px;
	    text-align: center;
	}

	footer section:not(#legal) div.grid-x {
		margin-top: -.625rem;
		margin-bottom: -.625rem;
	}

	footer section:not(#legal) div.grid-x div.cell {
		margin-top: .625rem;
		margin-bottom: .625rem;
	}

	footer img.logo {
	    margin-left: auto;
	    margin-right: auto;
	    display: block;
	}

	#events h3.event-name, 
	main#page.events div.event h3.event-name {
		white-space: normal;
	}

	footer table, 
	footer table tbody, 
	footer table tr, 
	footer table td {
	    display: block;
	    text-align: center;
	    padding: 0 !important;
	    width: 100%;
	}

	div#upcoming-events article.event div.cell.medium-shrink {
		border-right: none;
	}

	div#upcoming-events article.event div.cell.medium-auto {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	div#upcoming-events .events > a:not(:last-child) > article.event > div {
		border-bottom: 2px solid var(--yellow);		
	}

	#next-event .details {
		padding: 1.25rem 0;
	}
}



/*
==============================
!TABLET
==============================
*/

@media all and (min-width:40rem) and (max-width:63.9375rem) {
	div#next-event .map-container {
	    height: 100% !important;
	    width: 100% !important;
	}

	div#next-event div.details {
		padding: 0;
	}

	div#next-event div.details div.grid-x {
		padding: 1.25rem 0;
	}

	#events div.date span.day {
		font-size: 1.5625rem;
	}

	#events h3.event-name {
		font-size: 14px;
	}
}



/*
==============================
!TABLET+
==============================
*/

@media all and (min-width:40rem) {
	main#front-page section#intro div.cell:first-child:not(:only-child) {
		border-right: 1px solid var(--yellow);
	}
}

#gallery {
    margin-left: -.9375rem;
	margin-right: -.9375rem;
}

#gallery .masonry-item {
    width: 33%;
}

#gallery .masonry-item .image {
    padding-top: 66%;
    padding-top: calc( 100% / 3 * 2 );
}

#gallery .masonry-item .image img {
	margin: .9375rem;
	height: calc(100% - 1.875rem);
	width: calc(100% - 1.875rem);
	transition: all .3s ease-in-out;
}

#gallery .masonry-item.width-2 {
    width: 66%;
}

#gallery .masonry-item.height-2 .image {
    padding-top: calc(132% + 40px);
    padding-top: calc( 100% / 3 * 4 );
}

#gallery .masonry-item.height-2.width-2 .image {
    padding-top: calc(66% + 40px);
    padding-top: calc( 100% / 3 * 2 );
}

/* #gallery .masonry-item .image:hover::before {
	position: absolute;
	height: calc(100% - 1.875rem);
	width: calc(100% - 1.875rem);
	content: 'Picture';
	top: .9375rem;
	left: .9375rem;
	background-color: rgba(0,0,0,.2);
	z-index: 1;
} */

#gallery .masonry-item:hover img {
	box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

table#results {
    text-align: left;
    margin-bottom: 2.5rem;
}

table#results td:first-child {
    width: 225px;
}

table#results a.button {
	margin: calc(.3125rem / 2);
}



@media all and (max-width:1199px) {
	#events .slick-prev, #events .slick-next {
		top: 25%;
		bottom: unset;
	}

	#events div.details {
		padding: 1.25rem 
		0;

	}
}

table.fullcalendar td {
	width:100px;
}

.eventful ul {
	padding:0 !important;	
}

.eventful li {
	list-style:none;	
}

table.em-calendar td.eventful-pre a, table.em-calendar td.eventful-post a {
	text-decoration: none !important;
}

.eventful-pre ul, .eventful-today ul {
	padding:0 !important;
	margin:0 !important;
}

.eventful-pre li, .eventful-today li {
	list-style:none !important;
}