/*
Theme Name: llanmadocvillageshop two
Theme URI: https://peek-design-swansea.co.uk
Description: A premium theme by Peek Design
Version: 1
Author: Chris Thomas
Author URI: https://peek-design-swansea.co.uk
*/

:root {
  --bgheader-color: #f1f6fa !important;   /* frosty pale ice */
  --bgnav-color: #a3c9f9 !important;      /* cheerful sky blue, like ornaments */
  --button-color: #1e4fa3 !important;     /* rich royal blue, festive & bold */
  --footerbg-color: #0d2b52 !important;   /* deep midnight/navy, cozy winter night */
  --footertext-color: #b0cde6 !important; /* silvery blue-grey, like tinsel */
}



div {-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative;}


body{
	font-family: "Open Sans", sans-serif;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.4;
	height: 100%;
	width: 100vw;
	color: #4a4a4a;
	font-weight:400; overflow-x: hidden;  font-family: Arial, Helvetica, sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:"wdth" 100; background-color: var(--bgheader-color);
}

h1, h2, h3, p, .content ul, .content ul li {margin-top: 0}

h2, h1 {color: var(--button-color); text-transform: uppercase;}

h3 {color: #4a4a4a; margin-bottom: 0; font-size: 100%; font-weight: bold}

p, ul, h2 {font-size: 100%; margin-bottom: 1.25vw;}

@media screen and (max-width:834px) {
p, ul, h2 {font-size: 100%; margin-bottom: 5vw;}	
}

.find-us-holder p span {font-size: 80%}

ul li {margin-bottom: 0.625vw;}

.btt-holder {display: flex; flex-direction: column;}
.btt {color: var(--button-color);; font-size: 80%; text-decoration: none; margin-top: 1.25vw; text-align: left}
#get-in-touch .btt {text-align: center}

iframe {width: 100%; border: 2px solid #e5e5e5 !important;}

.wp-block-columns {margin-bottom: 0 !important; gap: 5em;}

@media screen and (max-width:700px) {
.wp-block-columns {gap: 0;}
}

#landing {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}



#logo {width: auto; display: block; margin: 0 auto; height: 100px; transition: height 0.3s ease; max-width: 80%;}
body.scrolled #logo {height: 50px;}

@media (max-width: 812px) {	
#logo {height: 50px;}
body.scrolled #logo {height: 50px;}
}

@media screen and (max-width:700px) {
#logo { height: 12vw !important; margin-top: 2vw; margin-bottom: 2vw; }	
}


#content {background-color: #fff}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

a {-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;}

.padleftright {padding-left: 10vw; padding-right: 10vw}

.header .content, #content .content .wp-block-group__inner-container{
  margin-right:auto;
  margin-left:auto;
}

#content .content .wp-block-group__inner-container {padding-left: 10vw; padding-right: 10vw}

@media screen and (max-width:834px) {
	#content .content .wp-block-group__inner-container {padding-left: 0; padding-right: 0}
}

.header-icons {position: absolute; top: 0; right: 0; z-index: 99; display: none }

@media screen and (max-width:834px) {.header-icons {display: none}}

.header-icons a {
  display: inline-block;
  color: var(--button-color);
  margin-left: 0.75vw; font-size: 150%
}

#content .content {
/*	border-bottom: 2px solid #e5e5e5; */
	padding-top: 2.5vw; padding-bottom: 2.5vw;}

@media screen and (max-width:700px) {
	#content .content {padding-top:10vw; padding-bottom: 10vw; padding-left: 10vw;
  padding-right: 10vw;}
}

#content .content p a{color: var(--button-color);; text-decoration: underline}

#content .content a:hover {cursor: pointer; color: var(--button-color);;}

#landing-pic {width: 100vw; height: calc(100vh - 10vw); background-position:  center; background-size: cover; margin-top: 10vw; display: none
}

#landing-pic .ss01:before {content: " "; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000; opacity: 0.6 !important}
#landing-pic .swiper-slide:before {content: " "; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000; opacity: 0.2}

body.scrolled #landing-pic {margin-top: 10vw;}

.swiper-button-next, .swiper-button-prev {color: #fff !important}

@media screen and (max-width:834px) {#landing-pic {
	margin: 0 !important;
	height: calc(100vh - 120px);
	margin-top: 120px !important;
}}

@media screen and (max-width:700px) {
	#landing-pic {
	margin: 0 !important;
	height: calc(100vh - 120px);
	margin-top: 0 !important;
}
	
}

.anchor-link {
    position: relative;
    /* Optional: small margin to separate from previous content */
    margin-top: 0;
    padding-top: 0;
}





.swiper-container {
  width: 100vw;
  height: 100%;
}

.swiper-slide {
  position: relative;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-slide-bot img {object-position: center bottom;}



#landing-pic h1, #landing-pic p {
    display: inline; /* Makes them appear on the same line */
    font-size: 1.5em; /* Adjust the font size to your preference */
    margin: 0; /* Removes default margin */
	color: #fff;
	text-shadow: 3px 3px 5px rgba(74, 74, 74, 0.5);


}

.landing-pic h1 {
    font-weight: bold; /* Makes the H1 stand out */
}

.bg-alt {
background-color: var(--bgheader-color);}




#wpcf7-f54-p6-o1 {
    max-width: 30vw; /* Set a max width for the form */
    margin: auto; /* Center the form */
    background-color: #fff; /* White background for the form */
    padding: 20px; /* Padding inside the form */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
	margin-bottom: 2.5vw;
}

@media screen and (max-width:834px) {
	#wpcf7-f54-p6-o1 {max-width: 100%; margin-top: 10vw; margin-bottom: 10vw;
	}}

#wpcf7-f54-p6-o1 input,
#wpcf7-f54-p6-o1 textarea {
    width: calc(100% - 24px); /* Full width minus padding and border */
    padding: 12px; /* Padding for inputs */
    margin-bottom: 15px; /* Space between fields */
    border: 1px solid #ccc; /* Border color */
    border-radius: 4px; /* Rounded corners for inputs */
    font-family: "Open Sans", sans-serif; /* Font family */
    font-size: 100%; /* 100% of body's font size */
    color: #4a4a4a; /* Text color */
    transition: border-color 0.3s; /* Smooth transition */
}

#wpcf7-f54-p6-o1 input::placeholder,
#wpcf7-f54-p6-o1 textarea::placeholder {
    color: #4a4a4a; /* Placeholder text color */
    opacity: 1; /* Full opacity for placeholder */
}

#wpcf7-f54-p6-o1 input:focus,
#wpcf7-f54-p6-o1 textarea:focus {
    border-color: #007bff; /* Change border color on focus */
    outline: none; /* Remove default outline */
}

#wpcf7-f54-p6-o1 textarea {
    height: 150px; /* Set a fixed height for the textarea */
    resize: none; /* Disable resizing */
}

#wpcf7-f54-p6-o1 .custom-submit {
    width: 100%; /* Set button width to 50% */
    padding: 10px; /* Padding for button */
    background-color: var(--button-color);; /* Button background color */
    color: white; /* Button text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners for button */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
    margin: 0 auto; /* Center the button */
    display: block; /* Ensure the button behaves as a block element */
}

#wpcf7-f54-p6-o1 .custom-submit:hover {
    background-color: var(--button-color);; /* Darker shade on hover */
}

.get-holder {text-align: center}

.phonerev {padding: 10px;
  background-color: var(--button-color);;
  color: #fff;
  border: none;
  border-radius: 4px; display: inline-block; margin-bottom: 1.5vw}

.header .phonerev {padding: 0px;
  background-color: var(--bgheader-color);
  color: var(--button-color);
  border: none;
  border-radius: 0px; display: inline-block; margin-bottom: 0}

.phonerev a {color: #fff; text-decoration: none}
.phonerev {transition: all .2s ease-in-out;}

#get-in-touch .phonerev:hover {background-color: var(--button-color) !important; color: #fff !important}
#get-in-touch .phonerev:hover a, #get-in-touch .phonerev a:hover {color: #fff !important}
.header .phonerev:hover a, .header #reveal-phone:hover {color: var(--button-color) !important}
#reveal-phone-top i {color:var(--button-color) }
.phonerev:hover {cursor: pointer}
#phone-number2 {margin-left:0.75vw}
#phone-number2 i {font-size: 150%; margin-right:0.75vw}

.footer {padding-left:2.5%; padding-right: 2.5%; font-size: 80%; padding-top: 5%;
padding-bottom: 5%;}

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
	background-color:var(--footerbg-color); color: var(--footertext-color);
}

.footer > div {
    width: 50%;
}

@media (max-width: 768px) {
    .footer > div {
        width: 100%; /* Stack the columns on smaller screens */
    }
}

.credit {text-align: right}
.credit a {text-decoration: none; color: var(--footertext-color);}
.credit a span {text-decoration: undeline; font-weight: bold}
.copyright a {text-decoration: undeline; font-weight: bold; color: var(--footertext-color);}

#join-us-as-a-volunteer {z-index: 999}
.find-us-holder {z-index: 99}
#get-holder {z-index: 9}

#ar2024panel{
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: auto;
    width: 50%;
    padding-top: 1%;
    padding-right: 2%;
    padding-left: 2%;
    padding-bottom: 2%;
    z-index: 9999999999999999;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 10px;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease-in-out; 
	font-size: 125%; color: var(--button-color) !important;
}

@media (max-width: 700px) {	
#ar2024panel{width: 90%;}
}

/* 
.news-text {display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1rem; align-items: center}
*/

#privacypanel {opacity: 0; display: none;  background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: auto;
    width: 80vw; height: 80vh;
    padding-top: 1%;
    padding-right: 2%;
    padding-left: 2%;
    padding-bottom: 2%;
    z-index: 9999999999999999;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 10px;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease-in-out; 
	font-size: 80%; }

 #ar2024panel.visible, #privacypanel.visible {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Make it visible for interaction */
	 display: block
  }

#privacypanel #logo2 {
    max-width: 20%;
    margin-bottom: 5%;
    width: auto;
    display: block;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 10%;
}

#ar2024panel #logo2 {
    max-width: 90%;
    margin-bottom: 5%;
	margin-top: 5%;
    width: auto;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 700px) {		
	#ar2024panel #logo2 {max-width: 90%;}}
	
#cover, #privacycover {
  position: fixed;
  background-color: #000;
  opacity: 0.5;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999999; display:none;
}

#cover a, #privacycover a {position: absolute; left:0; right: 0; top: 0; bottom: 0}

.closepanelright{
	display: block;
	text-align: right;
	color: var(--button-color) !important;
	text-decoration: none !important;
	font-size: 75%;
	padding-right: 0.6%; cursor: pointer;
}
@media (max-width: 700px) {	
	.closepanelright{ padding: 2%}
	.copyright, .credit {text-align: center}
	.opening {font-size: 85%}
	.news-text {padding: 5%}
}

#top {position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* Ensuring it doesn't take up space */
}



.lazy-load {
    opacity: 0;
    transition: opacity 2s ease-in-out;
	animation-delay: 1s;
}


.lazy-load.loaded {opacity: 1;}


.lazy-load.delay2 {transition-delay: 2s;}
.lazy-load.delay3 {transition-delay: 3s;}

.small {font-size: 80%}

#closeButton:hover, .copyright a:hover {cursor:pointer}

#privacypanel table {margin-top:0.5%; margin-bottom: 1.25vw;}

#closeButton { font-weight: bold;
  font-size: 120%;
  text-transform: uppercase;}

#menu-main-menu,
#menu-main-menu-2 {
  position: absolute;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8vw; /* fixed size */
		top:50%; font-weight: bold;
}


@media only screen and (max-device-width : 1200px) { 
	#menu-main-menu,
#menu-main-menu-2 {
  font-size: 0.8vw; /* fixed size */
}
}


/* LEFT SIDE (sits to left of logo) */
#menu-main-menu {
  right: 46.2%;            /* anchor to centre */
  transform: translate(-10%, -1070%); /* pull away from logo slightly */
  justify-content: flex-end;
}

/* RIGHT SIDE (sits to right of logo) */
#menu-main-menu-2 {
  left: 66.6%;               /* anchor to centre */
  transform: translate(30%, -1070%);  /* push away from logo slightly */
  justify-content: flex-start;
}

#menu-main-menu li, #menu-welsh-menu li, #menu-main-menu-2 li {display:inline-block; padding:0; margin:0; line-height:1}
#menu-main-menu li a, #menu-welsh-menu li a, #menu-main-menu-2 li a {color:#2e3b48; text-decoration:none; font-size:100%}
#menu-main-menu li a:hover, #menu-welsh-menu li a:hover{color: var(--button-color)}
.menu-item {-moz-transition: all .25s ease-in-out; -o-transition: all .25s ease-in-out; -webkit-transition: all .25s ease-in-out; transition: all .25s ease-in-out; }


.current-menu-item .link-text, .single-post .menu-item-464 .link-text {
	border-bottom-width: 1px;
	border-bottom-style: solid;
/*	border-bottom-color: #8f9f72;*/
	border-bottom-color: #fff;
}

.pipe {
/*  color: #6d6e70;*/
  padding-left: 0.1vw;
  padding-right: 0.1vw;
}
.menu-item:last-of-type .pipe, .menu-item-24 .pipe {display:none}
/*.menu-white a {color:#fff !important; -moz-transition: all .5s ease-in-out; -o-transition: all .2s ease-in-out; -webkit-transition: all .5s ease-in-out; transition: all .5s ease-in-out;}*/

/* .menu-main-menu-container #menu-main-menu, .menu-welsh-menu-container #menu-welsh-menu{background-color: #e9ece3}*/



#ps2id-dummy-offset {
  height: 10vw !important;
}

.poster-one {max-width: 32%; margin-left: auto !important; margin-right: auto !important;}

.poster-two {max-width: 27%;}

@media only screen and (max-device-width : 480px) { 
	.poster-one {max-width: 100%;}
	.poster-two {max-width: 100%;margin-bottom: 10% !important}
}



.home-posters {
  display: flex !important;
  flex-wrap: wrap !important; gap: 2vw !important; padding-left: 10vw; padding-right: 10vw; padding-bottom: 2.5vw;
  margin: 0;
}

@media (max-width: 700px) {		
	.home-posters {padding-bottom: 10vw;}	
	
}



.bulletin {padding-left: 10vw !important; margin-left: 0 !important;}

@media (max-width: 700px) {.bulletin {padding-left: 0 !important;}}

.home-posters .wp-block-column {
  flex-basis: 0;
  flex-grow: 1;
}

.home-posters .wp-block-column img {width: 100%; aspect-ratio: 7 / 10;}



.bulletin h2 {margin-bottom: 0 !important}

.news-bulletin {max-width: calc(2 * ((100% - 6vw) / 4) + 2vw);}

@media (max-width: 700px) {	
.news-bulletin {max-width: 100%;}
}

.news-bulletin img {aspect-ratio: auto !important;}

.news-bulletin figure {
  margin: 0;
  text-align: center;
}

.news-bulletin figcaption {
  font-size: 0.95rem;
  font-style: italic;
  color: #444;
  margin-top: 0.5em; font-weight: bold;
}

#llanmadoc-logo {
	position: absolute;
	right: 4vw;
	bottom: 6vw;
	z-index: 9;
	transform: translate(0, -50%);
}
#llanmadoc-logo img {
  width: auto;
  height: 99px;
}

@media screen and (max-width:700px) {
#llanmadoc-logo {
	position: absolute;
	right: 4vw;
	bottom: 0;
	z-index: 9;
	transform: translate(0, -50%);
}
#llanmadoc-logo img {
  width: auto;
  height: 50px;
}

	
	
}




.js-content {justify-content: center;
  display: flex;
  flex-direction: column;}

@media (max-width: 700px) {	
.js-content {display: block;}

.js-content.opening {margin-top: 2rem}

}

