/*
Theme Name: Bedwas Workmens Hall & Institute
Theme URI: https://www.bedwasworkmenshall.co.uk/
Description: Bedwas Workmens Hall & Institute Website
Version: 1.0
Author: Richard Boydell
Author URI: https://www.unitedgraphicdesign.com/
*/


/* Body */

html, body {height: 100%; width: 100%; margin:0; padding:0; color: var(--black); font-family: "neulis-neue", sans-serif; font-size: 1em; font-weight: 400; line-height: 1.3; scroll-behavior: smooth;}


/* Typography */

h1 {font-size:2.5em;}
h2 {font-size:2.1em;}
h3 {font-size:1.5em;}
h4 {font-size:1.1em;}
h1, h2, h3, h4 {
	font-weight: 700; 
	margin-bottom: 10px; 
	color: var(--red);
	line-height: 1.1;
}

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

strong {font-weight: 700;}

hr {display: block; content: ''; margin: 1.5em auto; border-style:solid; border-width: 5px; border-color:var(--black); opacity: 0.1; clear: both;}


/* Images */

.alignleft {float:left;	margin-right:15px;}
.alignright {float:right;margin-left:15px;}
.aligncenter {
	margin: 0 auto;
	text-align: center;
	display: block;
}

img {max-width:100%; height: auto;}

.gallery-thumb {padding: 5px !important;}
.caption-title {font-size: 1.2em; background: var(--white); padding: 15px 15px 20px; margin:0; -webkit-margin-before: 0; -webkit-margin-after:0;}


/* Structure */

* {box-sizing: border-box;}

.wrapper {max-width: 1200px; margin: 0 auto; position: relative;}
.smallwrapper {max-width: 800px; margin: 0 auto;}
.row:after, .wrapper:after, .smallwrapper:after {content: ""; clear: both; display: block;}
.block {padding: 30px 0; position: relative;}
.column {padding: 0 30px;}

[class*="col-"] {float: left; padding: 30px;}

@media only screen and (min-width: 768px) {
    /* For desktop: */
    .col-1 {width: 8.33%;}
    .col-2 {width: 16.66%;}
    .col-3 {width: 25%;}
    .col-4 {width: 33.33%;}
    .col-5 {width: 41.66%;}
    .col-6 {width: 50%;}
    .col-7 {width: 58.33%;}
    .col-8 {width: 66.66%;}
    .col-9 {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}
}

.clear {clear: both;}


/* Colours */

:root {
--white: #FFFFFF;
--black: #231f20;
--grey: #eef2f4;
--red: #c4112f;
--dark-red: #75212a;
}

.white {background-color: var(--white);}
.black {background-color: var(--black); color: var(--white);}
.grey {background-color: var(--grey); color: var(--white);}
.black {background-color: var(--black); color: var(--white);}
.red {background-color: var(--red); color: var(--white);}


/* Splash page */

.splash {position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center;}
.splash::after {position: absolute; top:0; left:0; width: 100%; height: 100%; content: ""; background-color: rgba(0,0,0,0.5);}
.splash-box {color: var(--white); font-size: 1.2em; max-width: 600px; height: auto; margin: 0 auto; padding: 30px; text-align: center; background: rgba(10,120,199,0.9); z-index: 999;}
.splash-box img {margin-bottom: 30px; max-width: 200px;}
.splash-box a {font-size: 1.3em; color: var(--white); padding: 20px; margin: 15px; border: 1px solid var(--white); display: inline-block; text-decoration: none; transition: ease all 0.5s;}
.splash-box a:hover {background-color: var(--black);}
.splash-box p {margin: 0;}
.splash-box h1 {color: var(--white); font-size:1.8em;}


/* Header */

.header {
	height: 400px;
	color: var(--white) !important;
	position: relative;
}
.header-home {min-height: 600px; color: var(--white) !important; position: relative;}
.header-flex {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
	z-index: 999;
}
.logo {
	width: 50%;
}
.logo img {
	max-width: 240px;
}
.header-details {
	width: 50%;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.single-feature {position: absolute; top:0; left:0; width:100%; height: 100%; z-index: -1; background-size: cover; overflow: hidden; background-repeat: no-repeat; background-position: center;}
@media only screen and (min-width: 768px) {.mobile {display: none;}}

.page-title {
	position: absolute;
	bottom: 45px;
	width: 100%;
}
.page-title h1 {
	margin: 0; 
	color: var(--white);
	display: inline;
	border-bottom: 10px solid var(--red);
}


/* Search */

.header-search {
	padding: 0 15px;
	border: none;
	margin: 0 5px;
}
.header-search-form {
	height: 50px;
	display: flex;
	align-items: center;
	border-radius: 0;
	border: 2px solid var(--white);
	background-color: var(--white);
	transition: ease all 0.5s;
}
.header-search-form:hover, .header-search-form:focus, .header-search-input:focus {
	border: 2px solid var(--red);
}
.header-search-input {
	border-radius: 0;
	border: none !important;
	height: 100%;
	width: 75%;
	padding: 15px;
	font-size: 1em;
	color: var(--black);
	font-family: "obliqua", sans-serif;
	font-weight: 400;
}
.header-search-input::placeholder {
	font-size: 1em;
	color: var(--black);
}
.header-search-button {
	cursor: pointer;
	height: 100%;
	width: 25%; 
	border: none;  
	background-color: var(--white); 
	border-radius: 0; 
	-webkit-appearance: none;
	transition: ease all 0.5s;
}
.header-search-button:hover {
	background-color: var(--red);
	color: var(--white);
}


/* Navigation */

.navigation {
	
}

.menu-button {
	height: 50px;
	display: flex;
	align-items: center;
	padding: 10px 15px;
	float: right;
	text-align: center;
	color: var(--white);
	background-color: var(--red);
	border: 2px solid var(--white);
	transition: ease 0.5s;
	font-weight: 700;
	font-size: 1.2em;
}
.menu-button:hover {
	cursor: pointer; 
	background-color: var(--black);
}
.menu-button i {
	font-size: 1.2em;
	margin-left: 10px;
}
.sidenav {height: 100%; width: 0; position: fixed; z-index: 999999; top: 0; right: 0; background-color: var(--red); overflow: hidden; transition: ease all 0.5s; padding-top: 15px; text-align:center;}
.sidenav a {
	padding: 5px 0;
	text-decoration: none;
	font-size: 2em;
	font-weight: 700;
	display: block;
	transition: 0.3s;
	color: var(--white);
}
.sidenav a:hover{opacity: 0.5;}
.sidenav .closebtn {position: relative; font-size: 3em; line-height: 1;}
#sidenavmenu {transition: ease all 0.3s;}
.sidenav li {margin: 0;}

menu, menu ul, menu ul li, #menu-main-menu {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0;
}

ul.sub-menu {list-style-type: none; list-style-image: none; margin:0; padding-inline-start: 0; font-size: 0.8em; float: none; text-align: center;}
ul.sub-menu a {padding: 0 0 5px;}
ul.sub-menu a:hover {}

.wpml-ls-item a {margin-top: 15px;  text-align: center; display: block !important;}
.wpml-ls-item span {font-size: 0.8em; margin-left: 0; padding:5px;}

.bttop {
	transition: ease all 0.8s; 
	opacity: 0; 
	position: fixed; 
	bottom: 30px; 
	right: 30px; 
	font-size: 2em; 
	z-index: 99999999;
}
a.bttop {
	text-decoration: none; 
	color: var(--black);
}
.not-transparent {
	opacity: 1;
}


/* Carousel */

#slider {
	position: absolute;
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 600px;
}
.slide {
	height: 600px; 
	position: relative; 
	background-size: cover; 
	background-repeat: no-repeat; 
	background-position: top;
}
.slide-caption-wrap {
	width: 100%; 
	position: absolute; 
	bottom: 30px;
}
.slide-caption {
	color: var(--white);
	padding: 0;
}
.slide-caption h2 {
	font-weight: 700; 
	margin-bottom: 5px;
	color: var(--white);
}
.slide-caption p {
	font-size: 1.2em;  
	margin: 0 0 15px;
}


/* Content */

.welcome p {font-size: 1.3em;}

.page p, .page li {font-size: 1.3em;}
.page a {font-weight: 700;}
.page h1, .page h2, .page h3, .page h4 {}


/* Shows Archive */

.shows {
	padding: 60px 0;
	background-image: linear-gradient(to bottom, var(--red), var(--dark-red));
	text-align: center;
	color: var(--white);
}
.shows h2 {
	color: var(--white);
	padding: 5px 30px;
	display: inline;
	font-weight: 600;
	text-transform: uppercase;
	border-top: 2px solid var(--white);
	border-bottom: 2px solid var(--white);
}
.shows-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	margin-top: 30px;
}
.show {
	width: calc(33.33% - 30px);
	margin: 15px;
	background-color: var(--white);
	position: relative;
}
.show-image {
	width: 100%;
	aspect-ratio: 3/2;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.show-content {
	padding: 15px;
	margin-bottom: 90px;
	text-align: center;
	color: var(--black);
}
.show-content h3 {
	margin-top: 0;
	margin-bottom: 5px;
	color: var(--black);
}
.show-date {
	font-size: 1.2em;
}
.show-links {
	background-color: var(--red);
	color: var(--white);
	padding: 15px 30px 17.5px; 
	font-size: 1.2em; 
	font-weight: 700; 
	position: absolute; 
	bottom: 30px; 
	left: 50%; 
	transform: translateX(-50%);
	max-width: calc(100% - 30px);
	white-space: nowrap;
	--mask1: radial-gradient(circle at 0 50%, transparent 0, transparent 5%, black 5%, black 90%, transparent 90%, transparent);
  	--mask2: radial-gradient(circle at 100% 50%, transparent 0, transparent 5%, black 5%, black 90%, transparent 90%, transparent);
  	-webkit-mask-image: var(--mask1), var(--mask2);
  	mask-image: var(--mask1), var(--mask2);
}
button.button-links {
	color: var(--white);
	background-color: var(--red);
	margin-top: 30px;
	padding: 15px; 
	font-weight: 700; 
	cursor: pointer; 
	text-decoration: none; 
	transition: ease all 0.5s;
	border: 2px solid var(--white);
	border-radius: 0;
	font-size: 1.1em;
}
button.button-links:hover {
	transform: scale(1.05);
	border-radius: 15px;
	background-color: var(--black);
}


/* Shows Page */

h1.show-title {margin-top: 0; margin-bottom: 10px; line-height: 1.1;}
.show-breadcrumbs {margin-bottom: 15px; font-size: 0.85em;}
.show-breadcrumbs a {font-weight: 700; text-decoration: none;}
.show-breadcrumbs a:hover {text-decoration: underline;}
.show-description font {font-size: 1em !important;}

.show-details-title {font-weight: 700; margin-top: 10px;}
.show-details-title:first-of-type {margin-top: 0 !important;}
.show-details-meta {font-size: 0.85em;}

.show-tickets {padding: 10px 0; border-bottom: var(--black) dashed 1px;}
.show-tickets::after {content: ""; clear: both; display: block;}
.show-tickets-title {float:left; width:65%; font-weight: 700;}
.show-tickets a {color:var(--white); background-color:var(--black); padding:5px 15px; font-weight:500; cursor:pointer; text-decoration:none; text-transform:uppercase; transition:ease all 0.6s; border-radius:10px; float:right;}
.show-tickets a:hover {text-decoration:none; background-color:var(--red);}
.sold {background-color: var(--red) !important;}

.embed-container {position: relative; padding-bottom: 56.25%; overflow: hidden; max-width: 100%; height: auto;} 
.embed-container iframe, .embed-container object, .embed-container embed {position: absolute; top: 0; left: 0; width: 100%; height: 100%;}

.linked-shows {padding: 0 30px 30px; border-top: solid 15px var(--grey);}


/* Feature Text Block */

.text-block-title {
	text-align: center;
}
h2.text-block-title {
	margin-top: 0;
	margin-bottom: 30px;
}

.feature-text-block {
	padding: 240px 0 60px;
	position: relative;
}
.feature-text-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 500px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top;
}
.feature-text-box {
	background-color: var(--white);
	box-shadow: 0 0 30px 0 rgba(0,0,0,0.1);
	padding: 60px;
	text-align: center;
}


/* Text and Image Block */

.text-image {
	display: flex;
	align-items: center;
	padding: 30px 0;
}
.text-image:nth-child(even) {
	flex-direction: row-reverse;
}
.text-image-text {
	padding: 30px;
	width: 50%;
}
.text-image-text > :first-child {
	margin-top: 0;
}
.text-image-text h2, .text-image-text h3, .text-image-text h4 {
	margin-bottom: 15px;
}
.text-image-image {
	padding: 0;
	width: 50%;
}
.text-image-image img {
	aspect-ratio: 3/2;
	object-fit: cover;
	box-shadow: 10px 10px 0 0 var(--grey);
}


/* Highlight Boxes */

.highlight-block {
	padding: 30px 0;
}
.highlight-wrap { 
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	align-items: stretch;
}
.highlight-box {
	width: calc(25% - 30px);
	margin: 15px;
	color: var(--white);
	padding: 15px 30px 30px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	transition: ease all 0.5s;
	background:
    radial-gradient(circle 30px at top left,#0000 98%,var(--red)) top left,
    radial-gradient(circle 30px at top right,#0000 98%,var(--red)) top right,
    radial-gradient(circle 30px at bottom left,#0000 98%,var(--red)) bottom left,
    radial-gradient(circle 30px at bottom right,#0000 98%,var(--red)) bottom right;
	background-size: 51% 51%;
	background-repeat: no-repeat;
}
.highlight-box:hover {
	transform: scale(1.05);
}
.highlight-icon i {
	font-size: 5em;
	padding: 15px;
}
.highlight-box .highlight-title {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.1;
}
a.highlight-box {
	text-decoration: none;
}


/* Timetable Block */

.timetable-wrap {
	
}
.timetable-block-title {
	display: block;
	color: var(--white);
	background-color: var(--red);
	padding: 15px;
	font-size: 1.3em;
	font-weight: 700;
}
.timetable-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border: 1px dotted var(--grey);
}
.timetable-title {
	width: 50%;
	padding: 15px;
}
.timetable-class-title {
	font-size: 1.4em;
	font-weight: 700;
	margin-bottom: 5px;
}
.timetable-class-title i {
	font-size: 1.2em;
	color: var(--red);
	margin-right: 7.5px;
}
.timetable-desc {
	font-size: 0.95em;
}
.timetable-details {
	width: 25%;
	padding: 15px;
}
.timetable-details i {
	margin-right: 5px;
}


/* CTA Block */

.cta-wrap {
	background-color: var(--white);
	box-shadow: 0 0 30px 0 rgba(0,0,0,0.1);
	display: flex;
	overflow: hidden !important;
	position: relative;
	min-height: 300px;
}
.cta-image {
	height: 150%;
	right: 55%;
	top: 50%;
	transform: translate(-60px,-50%);
	width: 40rem;
	border-radius: 50%;
	bottom: 0;
	overflow: hidden;
	position: absolute;
}
.cta-image img {
	height: 100%;
	left: 0;
	-o-object-fit: cover;
	object-fit: cover;
	position: absolute;
	width: 100%;	
}
.cta-content-wrap {
	margin-left: 45%;
	padding: 30px 30px 30px 0;
	align-content: center;
}
.cta-content-wrap > :first-child {
	margin-top: 0;
}
.cta-content-wrap button.button-links {
	margin-top: 15px;
}


/* Galleries */

.gallery-thumb {
	padding: 5px !important;
}
.caption-title {
	font-size: 1.2em; 
	background: var(--white); 
	padding: 15px 15px 20px; 
	margin:0; 
	-webkit-margin-before: 0; 
	-webkit-margin-after:0;}


/* Google Maps */

.map-wrap {
	padding: 0 30px 30px;
}
.acf-map {
	width: 100%; 
	height: 400px; 
	border: #ccc solid 1px; 
	margin: 20px 0;
}
.acf-map img {
	max-width: inherit !important;
}


/* Sidebar */

.sidebar {background-color:var(--grey); padding:15px; position: relative; font-size: 1.2em; margin-bottom: 30px;}
.sidebar li {list-style-type:none;}
.sidebar ul {margin: 0; padding: 0;}
.sidebar h2, .sidebar h4 {margin-top: 0;}
.sidebar ul a {text-decoration:none;}
h2.widgettitle  {list-style-type: none; list-style-image: none;}
.sidebar .widget {margin-bottom: 30px;}
.sidebar .widget::after {display: block; content: ''; margin: 1.5em auto; border-style:solid; border-width: 5px; border-color:inherit; opacity: 0.2; clear: both;}
.widget_subpages li a {display: block; border-bottom: 1px dotted #009BCD; font-size: 1em; line-height: normal; padding: 10px 0;}
.times {float: left; width: 50%;}
.sidebar img {transition: ease all 0.8s;}
.sidebar img:hover {transform: scale(1.1);}


/* FAQs */

.collapsible {background-color: #EEEEEE; cursor: pointer; padding: 15px; width: 100%; border: none; text-align: left; outline: none; margin-bottom: 2px !important; font-weight: 700; font-size: 1.2em;}
.active, .collapsible:hover {background-color: #06357a; color: var(--white);}
.collapsible:before {content: '\002B'; font-weight: bold; float: right; margin-left: 5px;}
.active:before {content: "\2212";}
.collapse {background-color: var(--white); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out;}
.collapse-content {padding: 15px;}


/* Forms */

input:matches([type="button"], [type="submit"], [type="reset"]) {color:#265b8c; background-color:#eef2f4; border-radius: 10px; padding: 5px 15px; border: none; font-size: 1.3em; font-weight: 500; font-family: serenity, sans-serif;}

.gfield_label {font-size: 1em !important; font-weight: 300 !important;}
.gfield_required {font-style: normal !important; color: inherit !important; font-weight: 300 !important;}

#gform_fields_1 {width: 60%; margin: 0 auto;}
#gform_submit_button_1 {margin: 0 auto; cursor: pointer; transition:ease all 0.6s;}
#gform_submit_button_1:hover {text-decoration:none; color:var(--white); background-color:var(--red);}


/* Footer */

#footer {
	color: var(--white);
	line-height: 1.2;
	background-image: linear-gradient(to bottom, var(--red), var(--dark-red));
	padding: 30px 0; 
	font-weight: 400;
	text-align: center;
}
#footer h2 {
	color: inherit !important;
	text-transform: uppercase;
	margin-top: 0;
	font-weight: 600;
	font-size: 1.3em;
}
#footer a {
	color: inherit; 
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
}
#footer li {
	list-style-type: none; 
	list-style-image: none; 
	padding: 0; 
	margin: 0; 
	-webkit-padding-start:0;
} 
#footer ul {
	list-style-type: none; 
	list-style-image: none; 
	padding: 0; 
	margin: 0; 
	-webkit-padding-start:0;
}
#footer img {
	max-width: 250px !important; 
	transition: ease all 0.3s;
}

.copyright {
	font-size: 0.8em;
}
