/*
	Theme Name: 	Midlands Crane Hire
	Theme URI: 
	Description: 	A WordPress theme for Midlands Crane Hire
	Author: 		Go 4 Websites
	Author URI:		
	Template:		baskerville
	Version 		1.0.0
*/


/*///////////////////////////////////////////////////////////////*/

/* NEW PRICING PAGE */
/* MENU */
/* pages 1336 and 1398 and 1418 */

.wp-block-atomic-blocks-ab-button.one-hundred-width.ab-block-button .ab-button,
.wp-block-atomic-blocks-ab-button.one-hundred-width.ab-block-button
{
	width: 100%;
	height: 100%;
	margin: 0;
}

.page-id-1336 .wp-block-atomic-blocks-ab-column.ab-block-layout-column,
.page-id-1398 .wp-block-atomic-blocks-ab-column.ab-block-layout-column,
.page-id-1418 .wp-block-atomic-blocks-ab-column.ab-block-layout-column
{
    background: white;
}

.page-id-1336 .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty,
.page-id-1398 .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty,
.page-id-1418 .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty
{
    background: unset;
}

.page-id-1336 p,
.page-id-1398 p,
.page-id-1418 p
{
	text-align: unset;
}

.class-price {
    position: absolute;
    right: 0;
    top: 0;
	margin: 0 !important;
	font-size: 1.25em !important;
}

h3.class-title {
    margin: 0;
    margin-right: 60px;
    position: relative;
    line-height: 1.5em;
    top: -0.25em;
	margin-bottom: 0.5em;
	font-size: 1.25em;
}

@media only screen and (max-width: 1050px) {
	.wp-block-atomic-blocks-ab-button.one-hundred-width.ab-block-button .ab-button
	{
		font-size: 0.9em;
	}
}

@media only screen and (max-width: 900px) {
	.page-id-1336 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1398 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1418 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column
	{
		grid-template-rows: auto;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"col1 col2"
			"col3 col4";
	}
}

@media only screen and (max-width: 700px) {
	.page-id-1336 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1398 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1418 .ab-layout-columns-4>.ab-layout-column-wrap.ab-is-responsive-column
	{
		grid-template-rows: auto;
		grid-template-columns: 1fr;
		grid-template-areas:
			"col1"
			"col2"
			"col3"
			"col4";
	}
	.wp-block-atomic-blocks-ab-button.one-hundred-width.ab-block-button .ab-button
	{
		font-size: 1.2em;
	}
}

@media only screen and (max-width: 800px) {
	.page-id-1336 .ab-layout-columns-3>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1398 .ab-layout-columns-3>.ab-layout-column-wrap.ab-is-responsive-column,
	.page-id-1418 .ab-layout-columns-3>.ab-layout-column-wrap.ab-is-responsive-column
	{
		grid-template-columns: 1fr;
		grid-template-areas:
			"col1"
			"col2"
			"col3";
	}
	
	.page-id-1336 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column,
	.page-id-1398 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column,
	.page-id-1418 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column
	{
		background: white;
		margin-bottom: 20px;
	}
	.page-id-1336 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.first-class,
	.page-id-1398 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.first-class,
	.page-id-1418 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.first-class
	{
		margin-top: 20px;
	}
	.page-id-1336 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty,
	.page-id-1398 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty,
	.page-id-1418 .class-container .wp-block-atomic-blocks-ab-column.ab-block-layout-column.empty
	{
		display: none;
	}
}

/* NEW PRICING PAGE END */
/* MENU END */


/* WIDGET IN TOP MENU */
a.healcode-link.healcode-login-register-text-link {
    color: #fff;
    font-family: "Noto Sans TC";
    font-weight: normal;
    font-size: 1em;
}

a.healcode-link.healcode-login-register-text-link {
    display: block;
    padding: 27px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu a.healcode-link.healcode-login-register-text-link {
    display: block;
    padding: 25px 50px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
	font-family: "Noto Sans TC";
}
/* WIDGET IN TOP MENU END */


/* SLIDESHOW BUTTON AND LOGO */

.slide-logo {
    position: absolute;
    top: 50%;
    z-index: 1;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.slide-button {
    border: 2px solid #fff;
    padding: 10px 20px;
    display: inline-block;
    margin: auto;
    text-align: center;
    color: white;
    font-size: 24px;
    margin-top: 20px;
	transition-duration: 0.5s;
}

.slide-button:hover {
	background-color: #fff;
	color: #000;
	transition-duration: 0.5s;
}

.slide-logo img {
    display: block;
}

ul.slides {
    background-color: #000;
}

ul.slides li {
	opacity: 0.8;
}

.flexslider-container {
	position: relative;
}

/* SLIDESHOW BUTTON AND LOGO END */

/* SHOW MOBILE MENU ALWAYS */

.nav-toggle {
    display: block;
    padding: 27px 0;
}

.nav-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    margin-top: 5px;
    background: #fff;
    border-radius: 1px;
}

.nav-toggle .bar:first-child {
	margin-top: 0;
}

.mobile-menu a {
    display: block;
    padding: 25px 50px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
	font-family: "Noto Sans TC";
}

.mobile-menu a:hover {
	color: #fff;
}

ul.sub-menu li {
    padding-left: 25px !important;
}

/*
.mobile-menu li.has-children > a::after {
    content: "+";
    color: #fff;
    position: absolute;
    margin-left: 10px;
    z-index: 999;
    margin-top: -1px;
}
*/

.mobile-navigation.section.bg-graphite.no-padding.hidden {
    position: absolute;
    top: 74px;
    z-index: 100;
    background: #2e2e2e;
	max-height: calc(100vh - 74px);
    overflow-y: scroll;
	width: 450px;
	right: -34px;
}

/* Cross on Mobile Nav Menu */
.nav-toggle.active .bar:nth-child(1) {
	transform: rotate(45deg);
	margin-top: 8px;
}

.nav-toggle.active .bar:nth-child(2) {
	display: none;
}

.nav-toggle.active .bar:nth-child(3) {
	transform: rotate(-45deg);
	margin-top: 8px;
}

.nav-toggle.active .bar {
	position: absolute;
	background: #fff;
}

.nav-toggle.active {
	width: 25px;
	height: 74px;
}

.nav-toggle {
	max-height: 74px;
	cursor: pointer;
}

.overlay-background {
	background-color: #000;
}

.overlay {
	opacity: 1;
}

.overlay.active {
	opacity: 0.5;
}

.nav-dark.overlay-active {
	background-color: #2e2e2e;
}

.nav-dark {
	min-height: 74px;
}

.main-menu.hidden {
	display: none;
}

@media (max-width: 1000px) {
	.main-menu {
		display: block;
	}
}

@media (max-width: 800px) {
	.main-menu {
		display: none;
	}
	.slide-logo img {
		margin-left: auto;
		margin-right: auto;
	}
	.slide-button {
		font-size: 18px;
	}
}

@media (max-width: 600px) {
	.mobile-navigation.section.bg-graphite.no-padding.hidden {
		width: calc(100% + 34px);
	}
	.mobile-menu > li:first-child {
		border-top: 1px solid rgba(255,255,255, 0.1);
	}
}

@media (max-width: 500px) {
	.slide-logo img {
		max-width: 100px;
		margin-left: auto;
		margin-right: auto;
	}
	.slide-button {
		font-size: 14px;
	}
}

/* SHOW MOBILE MENU ALWAYS END */


/* REGISTER HEALCODE */

div.hc-label {
    margin-bottom: 10px !important;
}

div.healcode .hc_registration .hc-registration-field {
    margin-bottom: 15px !important;
}

form#registration_form_1957726929c {
    background-color: #2e2e2e;
    padding: 5%;
}

.hc-registration-field select {
    padding: 5px !important;
}

/* REGISTER HEALCODE END */


/* LOGO */

.blog-logo {
    overflow: hidden;
    display: inline-block;
    max-height: 69px;
}

a.logo img {
    max-height: 69px;
}


/* END LOGO */

/* PRICING TABLE */

table {
    border: 2px solid #444;
}
tr td {
    text-align: center;
}

tr td:first-child {
    text-align: left;
}

/* END PRICING TABLE */

.main-menu {
	float: right;
}

.main-menu > li > a {
    color: #fff;
    font-family: "Noto Sans TC";
    font-weight: normal;
    font-size: 1em;
}

.main-menu > li:before {
    content: "|";
    color: #fff;
    opacity: 0.5;
}

.nav-dark {
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
}

.homepage-flexslider .slides > li { 
	background-position: center;
	height: 100%;
	width: 100%;
	display: none; 
	-webkit-backface-visibility: hidden;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

.flexslider-container, 
.homepage-flexslider .slides, 
.flex-viewport {
	height: 100%;
}

html, 
body {
	height: 100%;
	min-height: 100%;
}

body {
	position: relative;
	margin: 0;
	padding: 0;
}

ul.slides {
	margin: 0;
	padding: 0;
}

.homepage-flexslider {
	margin: 0; 
	padding: 0; 
	width: 100%; 
	height: 100%; 
	border: 0px; 
	overflow: hidden;
	position: fixed;
}

.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
    position: absolute;
	font-family: "Noto Sans TC", sans-serif;
	text-transform: uppercase;
    letter-spacing: 10px;
	font-weight: bold;
    bottom: 50%;
    width: 100%;
    max-height: 100%;
    padding: 0 10px;
	line-height: 200%;
    color: #000;
    text-align: center;
    font-size: 2em;
    background: none;
	overflow: hidden;
	transform: translateY(50%);
}

/* How To Reform Section */

.how-to-reform {
	background: #afafaf; /* Old browsers */
	background: -moz-linear-gradient(top, #afafaf 81%, #ffffff 81%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, #afafaf 81%,#ffffff 81%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, #afafaf 81%,#ffffff 81%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#afafaf', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
	width: 100vw;
	margin-left  : calc( -100vw / 2 + 100% / 2 ) !important;
	margin-right : calc( -100vw / 2 + 100% / 2 ) !important;
	max-width    : 100vw;
	padding: 10% 10% 0 10%;
}

/* End How To Reform Section */

/* START EXERCISE IMAGE SECTION */

.exercise-image-section li figure img, .exercise-image-section .wp-block-image img {
    opacity: 0.5;
}

.exercise-image-section .wp-block-image {
	position: relative;
}

.exercise-image-section .wp-block-image figcaption {
    position: absolute;
	font-family: "Noto Sans TC", sans-serif;
	text-transform: uppercase;
    letter-spacing: 10px;
	font-weight: bold;
    bottom: 50%;
    width: 100%;
    max-height: 100%;
    padding: 0 10px;
	line-height: 200%;
    color: #000;
    text-align: center;
    font-size: 2em;
    background: none;
	overflow: hidden;
	transform: translateY(50%);
}

@media(max-width: 900px) {
	.wp-block-gallery .blocks-gallery-item figcaption {
		font-size: 1em;
	}
}

@media(max-width: 600px) {
	.exercise-image-section .blocks-gallery-item {
		display: block;
		width: 100%;
	}
	.wp-block-gallery .blocks-gallery-item figcaption {
		font-size: 2em;
	}
}

@media(max-width: 500px) {
	.wp-block-gallery .blocks-gallery-item figcaption {
		font-size: 1.5em;
	}
}

@media(max-width: 400px) {
	.wp-block-gallery .blocks-gallery-item figcaption {
		font-size: 1em;
	}
}


/* END EXERCISE IMAGE SECTION */

/* START SPACERS */

.ten-percent-spacer {
	margin-top: 12%;
	height: 0 !important;
}

.nine-percent-spacer {
	margin-top: 9%;
	height: 0 !important;
}

.five-percent-spacer {
	margin-top: 6%;
	height: 0 !important;
}

/* END SPACERS */

/* START INSTRUCTORS SECTION */
.post-content .name-heading {
	font-size: 3em;
    margin-top: 0;
    padding-top: 20px;
    margin-bottom: 0;
	font-weight: normal;
}

.instructor-image  {
    background-position: center top;
    width: 100%;
    height: 100%;
}

.post-content h2.instructors-title {
    font-size: 2em;
    font-family: "Noto Sans TC";
    letter-spacing: 10px;
    margin: 0;
    padding: 50px 0 50px;
    background: #a9a9a9;
    color: #fff;
	width: 100vw;
	margin-left  : calc( -100vw / 2 + 100% / 2 ) !important;
	margin-right : calc( -100vw / 2 + 100% / 2 ) !important;
	max-width    : 100vw;
}

h2.instructors-title ~ .wp-block-columns {
	width: 100vw;
	margin-left  : calc( -100vw / 2 + 100% / 2 ) !important;
	margin-right : calc( -100vw / 2 + 100% / 2 ) !important;
	max-width    : 100vw;
	padding: 0 20%;
	background: #a9a9a9;
}

.instructor-columns .wp-block-column {
    margin: 0;
    background: #d9d9d9;
    padding: 0;
}

.ambassador > :nth-child(2) {
	padding: 0 20px;
}

.ambassador > :nth-child(2) > :last-child {
	padding-bottom: 20px;
}

.ambassador.last > :nth-child(2) {
	padding: 0;
}


.ambassador.last > :nth-child(1) {
	padding: 0 20px;
}

.ambassador.last > :nth-child(1) > :last-child {
	padding-bottom: 20px;
}

.twenty-padding {
	padding: 20px;
}

@media(max-width: 1400px) {
	h2.instructors-title ~ .wp-block-columns {
		padding: 0 10%;
	}
}

@media(max-width: 900px) {
	.instructor-columns {
		-webkit-flex-direction: column;
    	flex-direction: column;
		display: flex;
  		flex-wrap: wrap;
	}
	.instructor-columns.last > :nth-child(1) {
		order: 2 !important;
	}
	.instructor-columns.last > :nth-child(2) {
		order: 1 !important;
	}
	.instructor-image {
		min-height: 600px;
	}
}

@media(max-width: 600px) {
	.instructor-image {
		min-height: 400px;
	}
}

@media(max-width: 400px) {
	.instructor-image {
		min-height: 300px;
	}
}

/* END INSTRUCTORS SECTION */

/* ABOUT PAGE START */

.page-columns > :nth-child(1) {
	flex: 2;
	margin: 0;
}

.page-columns > :nth-child(2) {
	flex: 1;
}

.wp-block-column h2:first-child {
    margin-top: 0;
}

@media(max-width: 1000px) {
	.page-columns {
		-webkit-flex-direction: column;
    	flex-direction: column;
		display: flex;
  		flex-wrap: wrap;
	}
	.page-columns > :nth-child(2) {
		margin: 0;
		width: 100%;
		font-size: 0;
		margin-top: 20px;
	}
	.page-columns > :nth-child(2) > div {
		margin: 0;
		display: inline-block;
		font-size: 0;
		width: 50%;
	}
	.page-columns > :nth-child(1) {
		margin: 0;
	}
}

@media(max-width: 700px) {
	.page-columns > :nth-child(2) > div {
		width: 50%;
	}
	.page-columns > :nth-child(2) > :nth-child(3) {
		width: 100%;
	}
}

.post-content.not-homepage {
    background: #e5e5e5;
}

.post-header {
	padding-bottom: 0;
	background: #e5e5e5;
}

.single .post-title {
    font-size: 48pt;
    text-align: center;
    font-family: "Noto Sans TC";
    color: #5e5e5e;
	text-transform: uppercase;
}

.page-id-34 .post-title {
	width: 65%;
}

@media(max-width: 1000px) {
	.page-id-34 .post-title {
		width: 100%;
	}
}

.single .not-homepage h2 {
    font-size: 2.5em;
    font-family: "Noto Sans TC";
    letter-spacing: 5px;
	line-height: unset;
}

.single .not-homepage {
	padding-top: 0 !important;
	color: #5e5e5e;
}

.wrapper.section {
	background: #e5e5e5;
}

/* ABOUT PAGE END */

/* CREDITS START */

.credits p {
    font-family: 'Noto Sans TC', sans-serif;
}

/* CREDITS END */

/* START SCROLLING ANIMATION */

@-webkit-keyframes ani-mouse {
	0% {
		opacity: 1;
		top: 29%;
	}
	15% {
		opacity: 1;
		top: 50%;
	}
	50% {
		opacity: 0;
		top: 50%;
	}
	100% {
		opacity: 0;
		top: 29%;
	}
}
@-moz-keyframes ani-mouse {
	0% {
		opacity: 1;
		top: 29%;
	}
	15% {
		opacity: 1;
		top: 50%;
	}
	50% {
		opacity: 0;
		top: 50%;
	}
	100% {
		opacity: 0;
		top: 29%;
	}
}
@keyframes ani-mouse {
	0% {
		opacity: 1;
		top: 29%;
	}
	15% {
		opacity: 1;
		top: 50%;
	}
	50% {
		opacity: 0;
		top: 50%;
	}
	100% {
		opacity: 0;
		top: 29%;
	}
}

.scroll-btn {
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 2;
}
.scroll-btn > * {
	display: inline-block;
	line-height: 18px;
	font-size: 13px;
	font-weight: normal;
	color: #7f8c8d;
	color: #ffffff;
	font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 2px;
}
.scroll-btn > *:hover,
.scroll-btn > *:focus,
.scroll-btn > *.active {
	color: #ffffff;
}
.scroll-btn > *:hover,
.scroll-btn > *:focus,
.scroll-btn > *:active,
.scroll-btn > *.active {
	opacity: 0.8;
	filter: alpha(opacity=80);
}
.scroll-btn .mouse {
	position: relative;
	display: block;
	width: 35px;
	height: 55px;
	margin: 0 auto 20px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 3px solid white;
	border-radius: 23px;
}
.scroll-btn .mouse > * {
	position: absolute;
	display: block;
	top: 29%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: white;
	border-radius: 50%;
	-webkit-animation: ani-mouse 2.5s linear infinite;
	-moz-animation: ani-mouse 2.5s linear infinite;
	animation: ani-mouse 2.5s linear infinite;
}

/* END SCROLLING ANIMATION */

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
	font-family: "Noto Sans TC", serif;
}

.post-content h2 {
    font-size: 5em;
    font-weight: normal;
}

p {
    text-align: justify;
}

body a {
    color: #5e5e5e;
}

body a:hover {
    color: #5e5e5e;
    text-decoration: underline;
}

.widget-content ul li:before {
    content: none;
}

.post-header {
    border-bottom: none;
}

.post .post-header:after, .page .post-header:after {
    content: none;
}

.post .post-header:before, .page .post-header:before {
    content: none;
}

.current-menu-item a {
    opacity: 0.7;
}

.widget-content ul li {
    margin-top: 20px;
	font-size: 1.1em;
}

.widget-content ul li:first-child {
    margin-top: 0;
}

/* START NAVIGATION */

@media(max-width: 600px){
	.mobile-navigation.section.bg-graphite.no-padding.hidden {
		top: 74px;
	}
	.credits-left, .credits-right {
		display: block;
		text-align: left;
		float: none;
	}
	.credits-right {
		margin-top: 20px;
	}
}

@media (max-width: 1000px) {
	.mobile-menu a {
		color: #ffffff;
	}
}

.main-menu ul li {
    background: #000;
}

.main-menu > li > ul:before {
    border-bottom-color: #000;
}

.main-menu ul a {
    color: #fff;
}


.single .post-content {
    padding: 10%;
}


.footer .widget-title {
    color: #fff;
}

.credits p {
    color: #ffffff;
}

.credits a {
    color: #fff;
}

.post {
    padding-bottom: 10%;
}

.widget-content ul li {
    padding: 1px 0 1px 0;
}

.widget-content a {
	color: #fff;
	transition: 0.5s;
}


.widget-content a:hover {
	opacity: 0.7;
	color: #fff;
	transition: 0.5s;
}

.social p {
	font-size: 1.5em;
	margin-top: 1em;
}

.social a:first-child p {
	margin-top: 0;
}

.social a:hover p {
	text-decoration: none;
	opacity: 0.7;
}

.social a:hover {
	text-decoration: none;
}

.footer .widget-title {
    font-size: 1.5em;
    font-family: 'Noto Sans TC';
    border-bottom: 2px solid #fff;
    padding-bottom: 20px;
}

.post-content hr {
    margin: 2.5em auto !important;
}

.caldera-grid .row {
    margin-bottom: 2em;
}

.post-content input[type="submit"], .post-content input[type="reset"], .post-content input[type="button"] {
    background: #2c9545;
}

.post-content input[type="submit"]:hover, .post-content input[type="reset"]:hover, .post-content input[type="button"]:hover {
    background: #2c9545;
	opacity: 0.8;
}

.post-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@media (max-width: 600px) {
	.post-header, .single .post-content, .post-excerpt, .content .comments, div#disqus_thread, .comment-respond, .post-quote, .post-link {
		padding: 7.5% 10%;
	}
}

a#cookie_action_close_header:hover {
    text-decoration: underline;
    background-color: #fff !important;
}

/* Gallery */

.flexslider div ul li img {
    margin: auto;
}
/* Removes list of images before loading slider */
.flexslider .slides > li {
	display: none;
	-webkit-backface-visibility: hidden;
}


.single .post-meta-container:after {
    content: "";
    display: none;
}

.single .post-meta-container {
    position: relative;
    background: #2c9545;
	margin-bottom: 5%;
}

.post-nav {
    padding-top: 20px;
    border-top: 3px solid #fff;
    margin-top: 20px;
}

.single .post-meta p.post-categories {
    display: none;
}

.single .post-meta {
    float: none;
    width: 100%;
    padding: 5% 10%;
}

.single .post-meta p, .single .post-meta > a, .post-nav a {
	color: #fff;
}

.single .post-meta a {
	color: #fff;
}

@media (max-width: 700px) {
	.single .post-meta {
		background-color: #2c9545;
	}
}

.single .post-meta a:hover {
    color: #fff;
}

a.post-nav-prev, .single .post-meta p.post-date, .single a.post-edit-link, a.post-nav-next {
    background-image: none !important;
}

a.post-nav-prev:hover, .single a.post-edit-link:hover, a.post-nav-next:hover {
    background-image: none !important;
}

.single .post-meta p, .single .post-meta > a, .post-nav a {
    padding: 1px 0 1px 0;
}

.post-nav a i {
    padding-right: 10px;
}

.post-meta p i {
    padding-right: 10px;
}

.post-meta a i {
    padding-right: 10px;
}

.form-submit #submit {
    text-shadow: none;
    background: #2c9545;
	font-family: 'Noto Sans TC', sans-serif;
}

.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus {
	background-color: #f1f1f1;
	color: #444;
}

.loading-posts {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 400px;
	background: url(/wp-content/uploads/2018/12/james-palfreyman-loading.gif) no-repeat center;
}

.post-container {
	opacity: 0;
}

.format-gallery .post-content {
    padding-top: 0 !important;
}

.post .sticky-post {
    background: #2c9545 url(/wp-content/themes/baskerville/images/icons/1x/tack-w.png) no-repeat center;
}

.post .sticky-post:after {
    border-left-color: #2c9545;
    border-right-color: #2c9545;
}

.form-submit #submit:hover {
    cursor: pointer;
    background: #2c9545;
	opacity: 0.8;
}

.comment.bypostauthor:after {
    background: #2c9545 url(/wp-content/themes/baskerville/images/icons/1x/author-w.png) no-repeat center 8px;
}

.comment-actions a {
    background: #2c9545 no-repeat center;
	background-size: 16px;
}

.comment-actions a:hover {
    background-color: #2c9545;
    opacity: 0.8;
}

a.comment-edit-link {
    margin-right: 10px;
}

.post-content .aligncenter {
    text-align: center;
}

.googlemap {
	position: relative;
	padding-bottom: 50%; /* 2:1 ratio*/
	height: 0;
	border: 5px solid #5e5e5e;
	box-sizing: border-box;
	border-width: 5px;
	overflow: hidden;
}

.googlemap iframe, .footer-map iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

/* INSTAGRAM FEED */

#sb_instagram.sbi_col_2 #sbi_images .sbi_item:nth-child(odd) {
    padding-right: 3px !important;
}

#sb_instagram.sbi_col_2 #sbi_images .sbi_item:nth-child(even) {
    padding-left: 3px !important;
}

#sb_instagram.sbi_col_2 #sbi_images .sbi_item {
    padding-bottom: 6px !important;
}

/* FOOTER THIRD COLUMN */

.footer-map {
	position: relative;
	padding-bottom: 70%;
	height: 0;
	overflow: hidden;
}

@media(max-width: 800px){
	.footer .one-third:nth-child(3){
		margin-left: 0;
		width: 100%;
	}
	.footer-map {
		padding-bottom: 40%;
	}
}

/* BLOCKQUOTE */
.wp-block-quote.is-large cite, .wp-block-quote.is-style-large cite {
	font-size: 1em;
}

.post-content cite {
	font-family: 'Noto Sans TC', sans-serif;
}

body.home .content .post, body.home .content .post-content {
	padding-bottom: 0;
}


.fullwidth-block, .alignfull {
	width: calc(100vw - 9px) !important;
	max-width: 100vw !important;
	margin-left: calc( -100vw / 2 + 100% / 2 ) !important;
    margin-right: calc( -100vw / 2 + 100% / 2 ) !important;
	margin-bottom: 0;
	margin-top: 0;
}

.wp-block-gallery .blocks-gallery-item {
	margin: unset;
}

.has-white-text {
	color: #fff !important;
}

.post-content cite {
	font-weight: normal;
	font-size: 1.2em;
}

.exercise-image-section .wp-block-image figcaption a {
	color: #515151;
	display: block;
	margin: 0;
}

.exercise-image-section .wp-block-image figcaption a:hover {
	color: #fff;
	text-decoration: none;
}

.exercise-image-section .wp-block-image a:hover + figcaption a {
    color: #fff;
	transition: 1s;
}

.exercise-image-section .wp-block-image a img, .wp-block-image a + figcaption a {
	transition: 1s;
}

.exercise-image-section .wp-block-image a:hover img {
	opacity: 1;
	transition: 1s;
}

.exercise-image-section .wp-block-image {
	margin-bottom: 64px;
}

.exercise-image-section .wp-block-image:nth-last-child(-n+1) {
	margin-bottom: 0;
}

@media(max-width: 600px) {
	.footer .one-third + .one-third {
		border-top: none;
	}
}

.contact {
	font-size: 1.2em;
}

.post-content ol > li:last-child,
.post-content ul > li:last-child {
	margin-bottom: unset;
}

.wp-block-gallery .blocks-gallery-item {
	margin: 0 16px 16px 0;
	margin-bottom: 16px !important;
}

.homepage-quote-container {
    background-color: #888;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
	padding: 5% 10%;
}

.homepage-quote-container div div ul li {
	margin-top: 0;
}

ul.flex-direction-nav {
    display: none;
}

.no-margin-top {
	margin-top: 0 !important;
}


/* Exercises block */

@media (max-width: 800px) {
	.exercise-image-section .wp-block-column {
		flex-basis: 80%;
		flex-grow: 0;
		margin: auto;
	}
	.exercise-image-section .wp-block-column:nth-child(2) {
		margin-top: 64px;
	}
}

/* POPUP */

#popmake-593 {
	background-color: #444 !important;
}

.healcode {
	padding: 3%;
	font-family: 'Noto Sans TC', sans-serif !important;
	font-size: 16px !important;
}

div.healcode .hc_prospect .hc-prospect-field {
    margin-bottom: 10px;
}

.hc-prospect-field input[type=text], .hc-prospect-field select, .hc-prospect-field textarea {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
	width: 100%;
}

input[type=checkbox] {
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    padding: 10px;
    margin: 5px;
    margin-top: 10px;
}

.healcode-prospect-promo-text {
    font-size: 18px !important;
    font-family: 'Noto Sans TC', sans-serif;
}

input[type=submit] {
    padding: 10px 5%;
    margin: auto;
    display: block;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Noto Sans TC', sans-serif;
    margin-top: 10px;
}


/* MEDIA QUERIES FOR HOMEPAGE SLIDESHOW */

@media (max-width: 800px){
	.flexslider-container, .homepage-flexslider .slides, .flex-viewport {
		height: 450px;
	}
	.scroll-btn {
		display: none;
	}
	.flexslider-container {
		margin-top: 73px;
	}
}

@media (max-width: 700px){
	.flexslider-container, .homepage-flexslider .slides, .flex-viewport {
		height: 375px;
	}
	.scroll-btn {
		display: none;
	}
	.single .post-title {
		font-size: 4em;
	}
}

@media (max-width: 650px) {
	.single .not-homepage h2 {
		font-size: 2em;
	}
}

@media (max-width: 600px){
	.flexslider-container, .homepage-flexslider .slides, .flex-viewport {
		height: 300px;
	}
	.scroll-btn {
		display: none;
	}
	.not-homepage .wp-block-spacer {
		max-height: 50px;
	}
}

@media (max-width: 500px){
	.single .post-title {
		font-size: 3em;
	}
	.single .not-homepage h2 {
		font-size: 1.75em;
	}
}

@media (max-width: 450px) {
	.post-content h2 {
		font-size: 3em;
	}
}

@media (max-width: 400px) {
	.single .post-title {
		font-size: 2.5em;
	}
	.exercise-image-section .wp-block-image figcaption {
		font-size: 1.5em;
	}
}

@media (max-width: 350px) {
	.exercise-image-section .wp-block-image figcaption {
		letter-spacing: 5px;
	}
}

.wrapper.section.medium-padding {
	margin-top: 0;
	padding-top: 0;
}
.wrapper.section.medium-padding .content .page {
	padding-top: 75px;
}

@media (max-width: 600px) {
	a.logo img {
		max-height: 45px;
		margin-top: 4px;
	}
}

@media (max-width: 550px) {
	a.logo img {
		max-height: 35px;
		margin-top: 11px;
	}
}

@media (max-width: 440px) {
	a.logo img {
		max-height: 30px;
		margin-top: 15px;
	}
}

@media (max-width: 380px) {
	.mobile-navigation.section.bg-graphite.no-padding.hidden {
		top: 112px;
	}
	.nav-dark .navigation-inner.section-inner {
		text-align: center;
	}
	.nav-toggle.fright {
		float: none;
		margin: auto;
		text-align: center;
	}
	.nav-toggle .bar:first-child {
		margin-top: 0;
	}
	.nav-toggle .bar {
		margin: auto;
		margin-top: 5px;
	}
	.flexslider-container {
		margin-top: 125px;
	}
}

p.style1 {
    text-align: center;
    margin: 20px 0;
}

p.style3 {
	text-align: center;
	color: white;
	font-size: 30px;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
	.slide-logo {
		width: 80%;
	}
	.slide-logo img {
		max-width: 110px;
	}
	p.style1 {
		font-size: 40px;
		margin: 12px 0;
	}
	p.style3 {
		font-size: 25px;
		margin-bottom: 0;
	}
	.slide-button {
		margin-top: 12px;
	}
}

@media (max-width: 700px) {
	.slide-logo img {
		max-width: 80px;
	}
	p.style1 {
		font-size: 30px;
		margin: 8px 0;
	}
	p.style3 {
		font-size: 18px;
		margin-bottom: 0;
	}
	.slide-button {
		margin-top: 8px;
	}
}

@media (max-width: 550px) {
	.slide-logo img {
		max-width: 60px;
	}
	p.style1 {
		font-size: 22px;
		margin: 8px 0;
	}
	p.style3 {
		font-size: 16px;
		margin-bottom: 0;
	}
	.slide-button {
		margin-top: 8px;
	}
}

@media (max-width: 1875px) {
	.large-contact-details span.email {
		display: block;
	}
}

@media (max-width: 1340px) {
	.large-contact-details {
		font-size: 40px !important;
	}
}

@media (max-width: 1100px) {
	.large-contact-details {
		font-size: 30px !important;
	}
}

@media (max-width: 870px) {
	.large-contact-details {
		font-size: 20px !important;
	}
}

@media (max-width: 500px) {
	.large-contact-details {
		font-size: 16px !important;
	}
}

@media (max-width: 440px) {
	.large-contact-details {
		font-size: 14px !important;
		padding: 10px !important;
	}
}