/*
Theme Name: Visit Caerphilly
Theme URI: http://unitedgraphicdesign.com
Author: Richard Boydell
Author URI: http://unitedgraphicdesign.com
Description: Visit Caerphilly Website
Version: 2.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
*/

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700');

html, body {
	margin:0;
	padding:0;
	font-family: 'Source Sans Pro', sans-serif; 
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background: #eef0ef;
    text-align: left;
    height: 100%;
}


/* Header */

#header {
    top: 0px;
    left: 0px;
    z-index: 5;
    width: 100%;
    padding: 15px 0px;
    position: fixed;
    background: rgb(0, 0, 0) none repeat scroll 0% 0%;
    color: #FFF;
}

#logo, #info, #social, #search {
    padding: 0 15px;
}

#logo img {
    max-width: 200px;
}

.wpglobus-current-language::after {content: '|'}

li.widget widget_icl_lang_sel_widget {display: inline-block;}
.wpml-ls-legacy-list-horizontal {text-transform: uppercase; padding: 0 !important; display: inline-block;}
.wpml-ls-legacy-list-horizontal a {padding: 0 5px !important; line-height: inherit !important;}
.wpml-ls-legacy-list-horizontal a span, .wpml-ls-legacy-list-horizontal .wpml-ls-flag {vertical-align:baseline !important;}
.wpml-ls-legacy-list-horizontal li, .wpml-ls-legacy-list-horizontal ul, #icl_lang_sel_widget-2 {list-style-type: none !important; list-style-image: none !important;}
#icl_lang_sel_widget-2 {display: inline-block; float: left; padding: 10px;}

#social img {
    max-width: 30px;
    margin: 5px;
    float: left;
}

.search-box {
	min-width: 200px;
	float: left;
}

#search {
	border:none;
}

#search fieldset {
	border:none;
	padding:0 !important;
	margin:0;
}

#search input[type=text] {
	width:100%;
}

#s {
	padding:5;
	margin:0;
	background-color:#FFF;
	border:none;
	font-size:1em;
	font-weight:400;
	font-style:normal;	
}

input::placeholder {color: #999;}


/* Navigation */

.nav-button {
	font-size: 3em;
	font-weight: 300;
	float: left;
	line-height: 75%;
}

.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #FFF;
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s ease;
}

.sidenav a {
  padding: 10px 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1.2em;
  display: block;
  transition: 0.3s;
  color: #212529; 
  border-bottom: 1px solid #CCC;
}

.sidenav a:hover {
  color: #a5cb53;
}

.sidenav li {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
}

.sidenav ul {
	-webkit-margin-before: 30px;
	-webkit-margin-after: 0;
	-webkit-margin-start: 0;
	-webkit-margin-end: 0;
	-webkit-padding-start: 0;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  left: 0;
	font-size: 4em;
  	line-height: 75%;
  /*margin-left: 50px;*/
  border-bottom: none !important;
}


/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}



/* Hero Image */

.hero {
    height: 80%;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    background-size: cover;
    -webkit-box-pack: center;
    justify-content: center;
    background-color: rgb(204, 204, 204);
    background-position-x: center;
    background-position-y: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px 2000px inset;
}

.hero-small {
    height: 65% !important;
}

.herotitle {
    color: #FFF;
	font-size: 3rem;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
}



/* Icon Navigation */

.iconnav {
    display: flex;
    flex-wrap: wrap;
    background-image: initial;
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: rgb(255, 255, 255);
    -webkit-box-pack: center;
    justify-content: center;
    transform: translateY(-50%);
}

.iconnav a {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0px;
    padding-top: 1rem;
    padding-right: 0px;
    padding-bottom: 1rem;
    padding-left: 0px;
    text-align: center;
    text-transform: uppercase;
}

.iconnav img {
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-delay: initial;
    transition-property: initial;
    height: 70px;
}

.iconnav a:hover img {
    transform: translateY(-10px) scale(1.1);
}

.single-icon {
    display: flex;
    flex-wrap: wrap;
    background-image: initial;
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat-x: initial;
    background-repeat-y: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    -webkit-box-pack: left;
    justify-content: left;
    transform: translateY(-75px);
    z-index: 9999 !important;
}

.single-icon img {
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-delay: initial;
    transition-property: initial;
    height: 120px;
}


/* Google Maps */

.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

.acf-map img {
   max-width: inherit !important;
}


/* Features Carousel */

.carousel-row {
    display: flex;
}

.carousel {
    background: #FFF;
    padding: 0 !important;
    text-align: center;
    border: solid 15px #eef0ef;
    align-items: stretch;
}

.carousel-thumb {
    max-height: 200px;
    overflow: hidden;
    object-fit: cover;
}

.carousel-text {
    padding: 0 30px 30px;
}

.carousel-text h2 {
    line-height: 110%;
}

.carousel-text a {
    text-transform: uppercase;
}


/* Homepage Secions */

.sections {
    background-color: rgb(0, 0, 0);
    min-height: 380px;
    position: relative;
    padding: 0 !important;
    border: solid 15px #eef0ef;
}

.sections-background {
    height: 100%;
    width: 100%;
    position: absolute;
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
    opacity: 0.7;
}

.sections-text {
    /*height: 100%;
    width: 100%;*/
    position: relative;
    padding: 60px 60px 0;
    color: #FFF;
    text-align: center;
}

.sections-text img {
    max-width: 60px;
    max-height: 60px;
}

.sections a {
    font-weight: 700;
    text-transform: uppercase;
}

.sections-feature {
    /*transform: translateY(-150px);
    padding: 60px !important;
    margin-bottom: -195px;*/
}



/* Events */

.event {  
    padding: 0 !important;
    text-align: left;
    border: solid 15px transparent;
}

.event-thumb {
    max-height: 200px;
    height: 200px;
    overflow: hidden;
    object-fit: cover;
    position: relative;
	background: #000;
}

.event-thumb img {
	opacity: 0.7;
    transition: transform 0.3s ease-out;
}

.event-thumb img:hover {
    transform: scale(1.15);
    overflow: hidden;
    transition: transform 0.3s ease-in;
}

.event-date {
    position: absolute;
    top:15px;
    left:15px;
    border: 1px solid #FFF;
    padding: 0 5px;
    color: #FFF;
	text-align: center;
	text-transform: uppercase;
}

.event-date-range {
    position: absolute;
    bottom:15px;
    left:15px;
    color: #FFF;
	text-align: center;
	text-transform: uppercase;
}

.event-dates {
    position: relative;
    float: left;
    margin: 5px;
    border: 1px solid #FFF;
    padding: 0 5px;
    background-color: rgba(0, 0, 0, 0.3);
}

.event-date-num {
	font-size: 1.5rem;
	margin: -9px 0px;
}

.event-text {
    padding: 15px 30px 0;
    background: #FFF;
    min-height: 180px;
}

.event-text h4 {
    line-height: 110%;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
}

.event-text a {
    text-transform: uppercase;
}


/* Single Post */

.single-body {
    background: #FFF;
    transform: translateY(-50px);
    width: 95% !important;
    margin-bottom: -50px;
}

.single-body h1 {
    font-size: 4em;
    line-height: 1.2;
    margin: 0px;
}

.single-body h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin: 5px 0 0;
    -webkit-margin-after: 0;
    -webkit-margin-before: 5px;
}

.single-sidebar {
    background: #a5cb53;
    color: #FFF;
    transform: translateX(75px);
}

.single-sidebar h3 {
    font-size: 2em;
    margin: 0px;
}

.single-sidebar h3::after {
    width: 40%;
    content: '';
    height: 1px;
    display: block;
    margin-top: 1rem;
    margin-right: 0px;
    margin-bottom: 1rem;
    margin-left: 0px;
    background-color: #FFF;
}

.info-block {
    display: flex;
    margin-bottom: 1rem;
}

.icon img {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
}

.title {
    font-weight: 700;
}

.gallery img {
    max-height: 500px;
    overflow: hidden;
    object-fit: cover;
}

.full-width {width: 100% !important; padding: 30px !important;}

.read-time {padding: 10px 0 0; color:#a5cb53;}

.comment-policy {background-color:#a5cb53; color: #FFFFFF; padding: 15px;}


/* Archive Filters */

#filter-bar {background: #FFF;}
#filter-bar ul {margin: 0; padding-inline-start: 0;}
#filter-bar li {display: inline-block; padding: 10px; float: left;}



/* Featured Content */

.featured {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #000;
}

.featured-thumb {
    background-size: cover;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.featured-text {
    position: absolute;
    left: 0;
    bottom: 0;
    color: #FFF;
    padding: 15px;
}

.featured-text h4 {
    margin: 0 !important;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
}

.featured-text p {
    font-size: 0.8em;
}

.featured-text a {
    text-transform: uppercase;
}


/* Footer */

#footer {
    background: #333;
    color: #999;
    font-size: 0.9em;
}

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

#footer a:hover {
	color: #FFF;
    text-decoration: none;
}
	
#footer li {
	list-style-type: none;
	list-style-image: none;
    padding: 0;
    margin: 0;
}

ul#menu-footer-menu.menu {
    padding: 0 !important;
    margin: 0 !important;
    -webkit-padding-start: 0 !important;
    -webkit-margin-before: 0 !important;
}

.menu-footer-menu-container, .menu-footer-menu-welsh-container {
    margin-top: 15px;
}


/* Styling */

::selection {background: #a5cb53;}





/* Universal Styles */

.clear {clear:both;}

h1, h2, h3, h4 {
	font-weight: 700;
	font-style: normal;
}

h1 {font-size:2.2em;}
h2 {font-size:1.8em;}
h3 {font-size:1.5em;}
h4 {font-size:1.1em;}

a {
	color:inherit;
}

a:hover {
	text-decoration:none;
}

.alignleft {
	float:left;
	margin-right:5px;
}

.alignright {
	float:right;
	margin-left:5px;
}

strong {
    font-weight: 700;
}

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

hr { 
    display: block;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    margin-left: auto;
    margin-right: auto;
    border-style:solid;
    border-width: 5px;
	border-color:#ebebeb;
}

blockquote {
	font-family: Georgia, serif;
	font-style: italic;
	margin: 0.25em 0;
	padding: 0.25em 40px;
	line-height: 1.45;
	position: relative;
}

.wp-caption {
	text-align: center;
	margin: 10px;
	min-height: 260px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption p.wp-caption-text {
	font-size: 0.75em;
	line-height: normal;
	padding: 5px;
	margin: 0;
}

.wrapper {
	margin:0 auto;
	max-width:1200px;
}

* {
    box-sizing: border-box;
}
.row:after {
    content: "";
    clear: both;
    display: block;
}
[class*="col-"] {
    float: left;
    padding: 15px;
}

[class*="col-"] {
    width: 100%;
}

@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%;}
}


/* Header */



.wpml-ls-legacy-list-horizontal {padding: 0 !important; display: inline-block;}
.wpml-ls-legacy-list-horizontal a {padding: 0 5px !important; line-height: inherit !important;}
.wpml-ls-legacy-list-horizontal a span, .wpml-ls-legacy-list-horizontal .wpml-ls-flag {vertical-align:baseline !important;}


}

ul.topnav {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
    padding: 10px !important;
    background: #006838;
    width: inherit;
    float: right;
    border-radius: 30px;
}

ul.topnav li a {
	padding: 0px 10px;
	transition: 0.3s; 
	text-decoration:none;
	margin:0;
	display: block;
    color: #8dc63f;
}

ul.topnav li a:hover {
	color:#FFF;
}

ul.topnav li {display: none;}

ul.topnav li.icon {
    float: right;
    display: inline-block;
}

ul.topnav.responsive {position: relative;}

ul.topnav li:not(:first-child) {
	display: none;
}

ul.topnav li.icon {
    float: right;
    display: inline-block;
 }

ul.topnav.responsive {
	position: relative;
	min-width: 300px;
}
 
ul.topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px !important;
}

ul.topnav.responsive li {
    float: none;
    display: inline;
	padding:0;
	margin:0;
}

ul.topnav.responsive li a {
    display: block;
    text-align: left;
	padding-bottom: 5px;
}

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

ul#menu-navigation-menu.menu {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0;
	-webkit-padding-start: 0 !important;
}



/* Boxes

#boxrow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.boxes {
    display: flex;
}

.boxwrap {
    padding: 1px 30px 45px 30px;
    align-items: stretch;
    color: #FFF;
    width: 23%;
	margin: 1%;
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 60% 90%, 50% 100%, 40% 90%, 0% 90%);
}

.boxwrap h2 {
	font-size: 1.4em;
}

.boxwrap a {
	text-decoration: none;
	border: 1px solid;
	padding: 5px 15px;
}

.boxwrap a:hover {
	text-decoration: underline;
}

.camping {
	background: #50b848;
    color: #FFF;
}

.activities {
	background: #00A0D2;
    color: #FFF;
}

.visitor {
	background: #f0ad00;
    color: #FFF;
}

.site {
	background: #e50066;
    color: #FFF;
}

*/

.eventboxes {
    display: flex;
}

.eventboxwrap {
    background: #FFF;
    padding: 0 0 45px;
    align-items: stretch;
    color: #4A4A49;
    width: 23%;
	margin: 1%;
	-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 60% 90%, 50% 100%, 40% 90%, 0% 90%);
}

.featureleft {
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 40%, 95% 50%, 100% 60%, 100% 100%, 0% 100%);
    padding: 0 !important;
}

.featureright {
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 60%, 5% 50%, 0% 40% );
    padding: 0 !important;
}

.featuretop {
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 55% 100%, 50% 90%, 45% 100%, 0% 100%);
    padding: 0 !important;
}

.featurebottom {
    -webkit-clip-path: polygon(0% 0%, 45% 0%, 50% 10%, 55% 0%, 100% 0%, 100% 100%, 0% 100%);
    padding: 0 !important;
}

.featuretext {
    padding: 45px 60px 30px;
}

.featuretext h1, .featuretext h2, .featuretext h3, .featuretext h4 {
    -webkit-margin-before: 0 !important;
    -webkit-margin-after: 10px !important;
}

.green-button { 
    background-color:#006838;
    display:inline-block;
    cursor:pointer;
    color:#FFF;
    padding:10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
}

.green-button_small { 
    background-color:#006838;
    display:inline-block;
    cursor:pointer;
    color:#FFF;
    padding: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
}

.blue-button { 
    background-color:#07446D;
    display:inline-block;
    cursor:pointer;
    color:#FFF;
    padding:10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
}

.green-button a, .blue-button a { 
    text-decoration: none !important;
}



	
/* Body */

#content {
    font-size: 1.1em;
    line-height: 155%;
}

#content a {
    font-weight: 700;
}

.center {
    text-align: center;
}

.facilities {
    text-align: left !important;
    font-weight: 700;
    padding: 15px 0 !important;
}

.campicon {
    max-width: 50px;
    display: inline-block;
    float: left;
}

.camplabel {
    display: inline-block;
    float: left;
    padding: 15px;
}


#sidebar {

}

#sidebar li {
list-style-type:none;
}

#sidebar ul {
	margin: 0;
	padding: 0;
}

#sidebar h2 a {
    color: #8dc63f;
}

#sidebar h2 a, #sidebar ul a, #sidebar h3 a {
	text-decoration:none;
}

h2.widgettitle  {
	list-style-type: none;
	list-style-image: none;
	margin: 0 0 10px 0;
    color: #8dc63f;
    font-size: 1.6em;
}

#sidebar h3 a:hover {
	text-decoration:underline;
}

#sidebar .widget {
  	padding: 30px 30px 60px;
	background: #eeeeee;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 60% 90%, 50% 100%, 40% 90%, 0% 90%);
	margin-bottom: 30px;
}

.widget_subpages li a {
	display: block;
	border-bottom: 2px solid #006838;
	font-size: 1em;
	line-height: normal;
	padding: 10px 0;
}

.next {
	display:block;
	float:right;
	padding:5px;
	font-size:20px;
	font-weight:bold;
	letter-spacing:-1px;
}

.previous {
	display:block;
	float:left;
	padding:5px;
	font-size:20px;
	font-weight:bold;
	letter-spacing:-1px;
}





/* Forms */

input[type=text], input[type=email], textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
	border:1px solid #BFC9D0;
    font-size: 1em;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    background-color:#a5cb53;
    border:1px solid #FFF;
    display:inline-block;
    cursor:pointer;
    color:#FFF;
    padding:10px 15px;
    font-weight: 700;
    font-size: 1em;
    -webkit-appearance: none;
}

/* Centering a GF Form */

#gform_wrapper_6 {margin: 0 auto;}
#gform_wrapper_6 ul li.gfield .ginput_container,
#gform_wrapper_6 ul li.gfield .gfield_description,
#gform_wrapper_6 div.ginput_complex label,
#gform_wrapper_6 input:not([type='radio']):not([type='checkbox']):not([type='submit']), 
#gform_wrapper_6 select, 
#gform_wrapper_6 textarea {text-align:center;}
#gform_wrapper_6 ul.top_label li.gfield label.gfield_label {text-align: center; display: block;}
#gform_wrapper_6 .gform_footer,
#gform_wrapper_6 .gform_page_footer {text-align: center;}


/* Contact Form 7 */

span.wpcf7-list-item { display: inline-block !important; }


/* Tables */

table {
    width: 100%;
    padding: 0;
    text-align: left;
    border-collapse: collapse;
}

table, th, td {
   border: 1px solid #eeeeee;
}

th, td {
   padding: 15px;
}

th {
    background: #E81D68;
    color: #FFF;
    font-weight: 700;
}



/* Covid Guidance */

.announcement {background-color:#a5cb53; color:#FFFFFF; padding: 10px 30px; max-width: 1200px; margin: 0 auto;}

.boxes {display: flex; flex-wrap: wrap;}
.boxwrap {flex: 1; float:left; width: 29.33%; margin: 2%; min-width:29.33%; position: relative; border: solid 1px #EEEEEE;}
.boxwrap h3 {margin: 0;}
.boxwrap a {text-transform: uppercase;}
.box-image {height: 180px; overflow: hidden; object-fit: cover; background-color:#EEEEEE;}
.box-image img {min-height: 180px;}
.boxtext {padding: 15px 30px;}