/**
 * Theme Name: Chemic Tavern
 * Description: Chemic Tavern theme
 * Author: Harry Chappell
 * Template: blocksy
 * Text Domain: blocksy
 */

@font-face {
    font-family: Petrona;
    src: url(https://hcdigital.co.uk/chemic/wp-content/themes/blocksy-child/fonts/Petrona/Petrona-VariableFont_wght.ttf);
}

header#header [data-items]>* {
    margin: 0;
}
:root {
	--page-gutter: calc(((100vw - (200vw - 200%)) - var(--container-width)) / 2);
    --paletteColor1: var(--theme-palette-color-1);
    --paletteColor2: var(--theme-palette-color-2);
    --paletteColor3: var(--theme-palette-color-3);
    --paletteColor4: var(--theme-palette-color-4);
    --paletteColor5: var(--theme-palette-color-5);
    --paletteColor6: var(--theme-palette-color-6);
    --paletteColor7: var(--theme-palette-color-7);
    --paletteColor8: var(--theme-palette-color-8);
}
@media screen and (min-width: 1360px) {
	:root {
    	--page-gutter: calc(((100vw - (200vw - 200%)) - var(--normal-container-max-width)) / 2);
	}
}
.acf-spinner {
    display: none;
    margin: 0 !important;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000000 !important;
    background: #607d8bc7 url(data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%20%20%20width%3D%2260px%22%20height%3D%2260px%22%20viewBox%3D%220%200%2040%2040%22%20enable-background%3D%22new%200%200%2040%2040%22%20xml%3Aspace%3D%22preserve%22%3E%0A%20%20%3Cpath%20opacity%3D%220.3%22%20fill%3D%22%23fff%22%20d%3D%22M20.201%2C5.169c-8.254%2C0-14.946%2C6.692-14.946%2C14.946c0%2C8.255%2C6.692%2C14.946%2C14.946%2C14.946%0A%20%20%20%20s14.946-6.691%2C14.946-14.946C35.146%2C11.861%2C28.455%2C5.169%2C20.201%2C5.169z%20M20.201%2C31.749c-6.425%2C0-11.634-5.208-11.634-11.634%0A%20%20%20%20c0-6.425%2C5.209-11.634%2C11.634-11.634c6.425%2C0%2C11.633%2C5.209%2C11.633%2C11.634C31.834%2C26.541%2C26.626%2C31.749%2C20.201%2C31.749z%22/%3E%0A%20%20%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M26.013%2C10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0%0A%20%20%20%20C22.32%2C8.481%2C24.301%2C9.057%2C26.013%2C10.047z%22%3E%0A%20%20%20%20%3CanimateTransform%20attributeType%3D%22xml%22%0A%20%20%20%20%20%20attributeName%3D%22transform%22%0A%20%20%20%20%20%20type%3D%22rotate%22%0A%20%20%20%20%20%20from%3D%220%2020%2020%22%0A%20%20%20%20%20%20to%3D%22360%2020%2020%22%0A%20%20%20%20%20%20dur%3D%220.5s%22%0A%20%20%20%20%20%20repeatCount%3D%22indefinite%22/%3E%0A%20%20%20%20%3C/path%3E%0A%20%20%3C/svg%3E) no-repeat center !important;
}

@media screen and (max-width: 999px) and (min-width: 690px) {
	.t-hide {
		display: none;
	}
}
@media screen and (max-width: 689px) {
	.m-hide {
		display: none;
	}
}

body {
	background-image: url(https://hcdigital.co.uk/chemic/wp-content/uploads/2023/07/Group-204-min.jpg);
	background-size: 960px;
}
main {
	background-color: rgba(98, 137, 125, 0.6)
}
body.home .home-hide, 
.hide {
	display: none !important;	
}

/* Open Hours */
.entry-content:has(#time-container) {
	width: 165px;
	display: block;
}
#header:has(#time-container) [data-device*=desktop] [data-row*=middle] > * {
    padding-left: 0;
	padding-right: 0;
}
input#countdown-input {
	display: none;
}
div#time-container {
	background: rgb(166 183 178 / 85%);
	color: var(--paletteColor2);
	padding: 10px 0;
	font-weight: bold;
	border-radius: 0 0 10px 10px;
	position: absolute;
	top: 0px;
	left: var(--page-gutter);
	backdrop-filter: blur(3px);
}
body.admin-bar div#time-container {
/* 	top: 32px; */
}
@media screen and (max-width: 780px) {
    body.admin-bar div#time-container {
/*         top: 46px; */
    }
}
p#open-today {
	margin-bottom: 10px;
	font-size: 12px;
	display: block;
	transition: 0.3s;
	height: 15px;
	overflow: hidden;
	padding: 0 10px;
}
div#time-container:hover p#open-today {
  margin-bottom: 0px;
	height: 0px;
	
}
div#time-container table {
	border: 0px;
	margin: 0;
	padding: 0 10px;
	transition: 0.3s;
	max-height: 0px;
	display: block;
	overflow: hidden;
}
div#time-container:hover table {
	margin-bottom: 15px;
	max-height: 115px;
}
div#time-container tr:not(:last-child) {
	border-bottom: 1px solid #15392240;
}
div#time-container tr {
	display: flex;
	justify-content: space-between;
	width: 100%;
}
div#time-container td {
	padding: 0px;
	border: 0px;
	font-size: 12px;
	width: auto;
}
div#time-container td:first-child {
	padding-right: 20px;
} 
p.timer {
	font-size: 40px;
	margin-bottom: -5px;
	letter-spacing: 1px;
	padding: 0 10px;
}
#seconds {
	font-size: 20px;
}
div#time-container p:last-child {
	margin-bottom: 0;
	padding: 0 10px;
}

table.Mon tr:nth-of-type(1),
table.Tue tr:nth-of-type(2),
table.Wed tr:nth-of-type(3),
table.Thu tr:nth-of-type(4),
table.Fri tr:nth-of-type(5),
table.Sat tr:nth-of-type(6),
table.Sun tr:nth-of-type(7) {
	position: relative;
}

table.Mon tr:nth-of-type(1):after,
table.Tue tr:nth-of-type(2):after,
table.Wed tr:nth-of-type(3):after,
table.Thu tr:nth-of-type(4):after,
table.Fri tr:nth-of-type(5):after,
table.Sat tr:nth-of-type(6):after,
table.Sun tr:nth-of-type(7):after {	
	content: " ";
	background: #f5bf70;
	inset: 0 -10px;
	width: calc(100% + 20px);
	position: absolute;
	z-index: -1;
}

@media screen and (max-width: 689px) {
    #time-container {
        transition: 0.3s;
    }
    #time-container:not(:hover) {
        width: 180px;
    }
    #time-container tbody {
        width: 100%;
        display: block;
    }
    p#open-today {
        height: 20px;
        padding: 0 30px 0 10px;
    }
    p.timer {
        font-size: 30px;
    }
    #seconds {
        font-size: 15px;
    }
    div#time-container p:last-child {
        font-size: 13px;
        width: 180px;
    }
}


/* Footer */
.ct-container-fluid:has(.come-find-us) {
    width: 100vw !important;
}
.come-find-us span.stk--svg-wrapper {
    transition: 0.2s;
    transform-origin: left;
}
.come-find-us:hover span.stk--svg-wrapper {
    transform: scaleX(1.2);
}


/* Home */
#hero > * > .stk-column {
	max-height: 800px;
    min-height: 400px;
}
@media screen and (min-width: 1000px) {
    #hero > * > .stk-column {
        aspect-ratio: 2/1;
    }   
}
body.home nav[class*=menu] .ct-menu-link {
    color: var(--paletteColor8);
}
.main-links {
	left: calc(25px + var(--page-gutter));
}
.main-links > * > * {
	position: relative;
}
.main-links > * > *:not(:last-child):after {
	content: '' !important;
	inset: 10px 0 10px auto;
	background: rgba(255, 255, 255, 0.2);
	width: 1px;
	height: 30px;
}
.main-links > * > *:hover:after,
.main-links > * > *:has(+ *:hover):after {
	background: rgba(255, 255, 255, 0);
}


/* Weekly Events */
.weekly-events-cntr {
    display: flex;
    gap: 25px;
    /* padding: 100px var(--page-gutter) 25px; */
    padding: 35px 25px 25px;
    overflow: scroll;
}
a.weekly-event {
    display: flex;
    flex-flow: column;
    width: 275px;
    min-width: 275px;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--background-colour);
    color: var(--text-colour);
    justify-content: space-between;
    opacity: 0.8;
    transition: 0.2s;
	overflow: visible;
}
a.weekly-event:hover:not(:active) {
    opacity: 1;
    scale: 1.025;
    box-shadow: 0 0 30px var(--background-colour);
	color: var(--text-colour);
}
a.weekly-event * {
    color: inherit;
	margin: 0;
}
a.weekly-event > img {
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
	transition: 0.2s;
}

a.weekly-event:hover:not(:active) > img {
    scale: 1.05;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
a.weekly-event h3 {
    height: 40px;
    font-size: 20px;
    margin: 20px 25px 0px;
    line-height: 1;
    display: flex;
    align-items: center;
}
a.weekly-event h2 {
    margin: 10px 25px 35px;
    line-height: 1;
}
a.weekly-event .button {
    margin: auto 25px 10px;
    background: none;
    text-align: left;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    font-size: 25px;
}
a.weekly-event .button:hover {
	color: var(--text-colour);
}
a.weekly-event svg {
    max-height: 180px;
    padding: 20px;
    max-width: 100%;
    fill: var(--text-colour);
}


/* Next Event */
.upcoming-event {
	margin: 50px var(--page-gutter) 0px !important;
	background-color: #698e83;
	border-radius: 35px;
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: right;
	color: white;
	overflow: hidden;
    position: relative;
}
.upcoming-event:before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    background-size: auto 100%;
    filter: grayscale(1);
}
.upcoming-event .cntr {
	background: linear-gradient(to right, rgb(105 142 131 / 100%) 45%, rgb(105 142 131 / 90%) 50%, rgb(105 142 131 / 0%) 65%);
	padding: 75px calc(55% - 0px) 75px 50px;
	width: 100%;
	height: 100%;
	min-height: 500px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: start;
    position: relative;
}
.upcoming-event h2,
.upcoming-event h4 {
	color: inherit;
	margin: 0;
}
.upcoming-event h4 {
	font-size: 20px;
	margin-bottom: 40px;
}	
.upcoming-event p {
	margin-bottom: 40px;
}
.upcoming-event .time:before {
	content: " - ";
}


.upcoming-events {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}
.upcoming-events.top3 {
    flex-flow: column wrap !important;
}
.upcoming-events.skip3 {
    flex-flow: row wrap !important;
}
.upcoming-events .upcoming-event .cntr {
	background: linear-gradient(to right, rgb(72 22 58 / 100%) 45%, rgb(72 22 58 / 90%) 50%, rgb(105 142 131 / 0%) 65%);
}

.upcoming-events .upcoming-event {
    width: calc((100% - 50px) / 3);
    height: 250px;
    border-radius: 15px;
    background-color: #5e2848;
}

.upcoming-events .upcoming-event img {
    z-index: 0;
    position: absolute;
    filter: grayscale(1);
    width: auto;
    height: 100%;
    right: 0;
}

.top3 .upcoming-event:nth-child(2),
.top3 .upcoming-event:nth-child(3) {
    width: calc((100% - 25px) / 2);
}
.top3 .upcoming-event:nth-child(1) {
    height: 525px;
    width: calc((100% - 25px) / 2);
}
.top3 {
    height: 525px;
}
.upcoming-events .upcoming-event .cntr {
    padding: 25px 50% 25px 25px;
    min-height: 100%;
}

.upcoming-events .upcoming-event h2 {
    font-size: 25px;
    line-height: 1.2;
    margin-top: 0;
}
.upcoming-events .upcoming-event h4 {
    font-size: 16px;
    line-height: 1.2;
    margin-top: 0;
}
.upcoming-events .upcoming-event p {
    display: none;
}
.upcoming-events .upcoming-event .button {
    background: var(--paletteColor5);
    background: none;
    border: 1px solid white;
}

.top3 .upcoming-event:nth-child(1) .cntr,
.skip3 .upcoming-event .cntr {
    padding: 25px;
    justify-content: end;
    background: linear-gradient(to top, rgb(72 22 58 / 100%) 45%, rgb(72 22 58 / 90%) 50%, rgb(105 142 131 / 0%) 65%);
    
}
.top3 .upcoming-event:nth-child(1) img,
.skip3 .upcoming-event img {
    height: auto;
    width: 100%;
}
.top3 .upcoming-event:nth-child(1):before,
.skip3 .upcoming-event:before {
    background-position: top;
    background-size: 100% auto;
}
.top3 .upcoming-event:nth-child(1) h2 {
    font-size: 35px;
    margin: 0 0 10px;
}
.top3 .upcoming-event:nth-child(1) h4 {
    font-size: 25px;
}
.top3 .upcoming-event:nth-child(1) p {
    display: initial;
    font-size: 17px;
    line-height: 1.2;
    margin: 0 0 25px;
}


.skip3 .upcoming-event {
    height: 350px;
}

.skip3 .upcoming-event h2 {
    font-size: 22px;
}
.skip3 .upcoming-event h4 {
    font-size: 14px;
}


@media screen and (max-width: 999px) {
    .upcoming-events.top3 {
        height: 815px;
        flex-flow: row wrap !important;
        margin-bottom: 15px;
    }
    .top3 .upcoming-event:nth-child(1) {
        width: 100%;
        height: 450px;
    }    
    .top3 .upcoming-event:nth-child(2),
    .top3 .upcoming-event:nth-child(3) {
        height: 350px;
        width: calc((100% - 15px) / 2);
    }
    .top3 .upcoming-event:nth-child(2) img,
    .top3 .upcoming-event:nth-child(3) img {
        width: 100%;
        height: auto;
        right: unset;
        top: 0;
    }
    .top3 .upcoming-event:nth-child(2) .cntr,
    .top3 .upcoming-event:nth-child(3) .cntr {
        padding: 50% 15px 15px 15px;
        justify-content: end;
        background: linear-gradient(to top, rgb(72 22 58 / 100%) 45%, rgb(72 22 58 / 90%) 50%, rgb(72 22 58 / 0%) 65%);
    }
    .upcoming-events {
        gap: 15px;
    }
    .skip3 .upcoming-event {
        width: calc((100% - 30px) / 3);
        height: 300px;
    }
    .skip3 .upcoming-event .button {
        font-size: 12px;
        padding: 0 15px;
    }
    .skip3 .upcoming-event .cntr {
        padding: 15px;
        background: linear-gradient(to top, rgb(72 22 58 / 100%) 55%, rgb(72 22 58 / 90%) 60%, rgb(72 22 58 / 0%) 75%);
    }
    .upcoming-event h4 span {
        display: block;
    }
    .upcoming-event .time::before {
        content: none;
    }
}

@media screen and (max-width: 689px) {
    .upcoming-events.top3 {
        height: auto;
    }
    .top3 .upcoming-event:nth-child(1) {
        height: 550px;
    }
    .top3 .upcoming-event:nth-child(1) .cntr {
        background: linear-gradient(to top, rgb(72 22 58 / 100%) 55%, rgb(72 22 58 / 90%) 60%, rgb(72 22 58 / 0%) 75%);

    }    
    .top3 .upcoming-event:nth-child(2),
    .top3 .upcoming-event:nth-child(3),
    .skip3 .upcoming-event {
        height: 250px;
        width: calc((100% - 15px) / 2);
    }
    .top3 .upcoming-event:nth-child(2) h2,
    .top3 .upcoming-event:nth-child(3) h2,
    .skip3 .upcoming-event h2 {
        font-size: 20px;
    }
    .top3 .upcoming-event:nth-child(2) h4,
    .top3 .upcoming-event:nth-child(3) h4,
    .skip3 .upcoming-event h4 {
        font-size: 12px;
        margin-bottom: 10px !important;
    }
    .top3 .upcoming-event:nth-child(2) .button,
    .top3 .upcoming-event:nth-child(3) .button,
    .skip3 .upcoming-event .button {
        font-size: 12px;
        padding: 0 15px;
    }
}



.single-event h1.page-title:after {
    content: var(--eventDate)", "var(--eventTime);
    display: block;
    font-size: 30px;
}

.button {
	background-color: #48163a;
	border-radius: 50px;
	scale: 1;
	transition: 0.2s;
	padding: 10px 25px;
	font-size: 20px;
}
.button svg {
	width: 25px;
	margin-left: 10px;
}
.button:not(:active):hover {
	scale: 1.05;
}

span.wpcf7-form-control-wrap input {
    margin-bottom: 20px !important;
}
.wpcf7 .wpcf7-submit {
	background-color: #481639;
	background-image: url(https://hcdigital.co.uk/chemic/wp-content/uploads/2023/09/arrow-right.svg);
	background-size: 25px;
	background-repeat: no-repeat;
	background-position: calc(100%  - 20px) center;
	border: 0px;
	border-radius: 50px;
	transition: 0.2s;
	scale: 1;
	padding: 10px 25px;
	padding-right: 55px;
	font-size: 20px;
}
.wpcf7 .wpcf7-submit:not(:active):hover,
.stk-button:not(:active):hover {
	scale: 1.05;
}

table.week.comments th,
table.week.comments td {
    width: calc(100% / 6);
}
table.week.comments td {
    border: 1px solid black !important;
}
table.week.comments th:nth-child(1),
table.week.comments td:nth-child(1) {
    border-color: red !important;
}
table.week.comments th:nth-child(2),
table.week.comments td:nth-child(2) {
    border-color: orange !important;
}
table.week.comments th:nth-child(3),
table.week.comments td:nth-child(3) {
    border-color: yellow !important;
}
table.week.comments th:nth-child(4),
table.week.comments td:nth-child(4) {
    border-color: green !important;
}
table.week.comments th:nth-child(5),
table.week.comments td:nth-child(5) {
    border-color: blue !important;
}
table.week.comments th:nth-child(6),
table.week.comments td:nth-child(6) {
    border-color: purple !important;
}


.related-entry-title {
    text-align: center;
}

.single-event main {
    background-color: var(--theme-palette-color-3);
}

[class*=header-menu] {
    justify-content: end;
}


.page-id-64 .weekly-events-cntr {
    flex-flow: row wrap;
    max-width: 1400px;
    margin: auto;
}
.page-id-64 .weekly-event {
    width: calc((100% - 75px) / 4);
    min-width: unset;
}
@media screen and (max-width: 1399px) {
    .page-id-64 .weekly-event {
        width: calc((100% - 50px) / 3);
    }
}
@media screen and (max-width: 999px) {
    .page-id-64 .weekly-event {
        width: calc((100% - 25px) / 2);
    }
    .single-event h1.page-title:after {
        font-size: 25px;
    }
}
@media screen and (max-width: 689px) {
    .page-id-64 .weekly-event {
        width: calc((100% - 15px) / 2);
    }
    .single-event h1.page-title:after {
        font-size: 20px;
    }
}

body.home footer div.main-links {
    display: none;
}

@media screen and (min-width: 1000px) {
    footer div.main-links {
        display: none;
    }
}
@media screen and (max-width: 999px) {
    div.main-links {
        position: fixed !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .weekly-events-cntr {
        padding: 35px 25px 25px;
    }
    a.weekly-event {
        min-width: 200px;
    }
    a.weekly-event > img {
        height: 150px;
    }
    a.weekly-event svg {
        max-height: 150px;
    }
    a.weekly-event h3 {
        height: 30px;
        font-size: 15px;
        margin: 10px 15px 0px;
    }
    a.weekly-event h2 {
        margin: 10px 15px 5px;
        font-size: 25px;
    }
    a.weekly-event .button {
        margin: auto 15px 10px;
        font-size: 17px;
    }
    .button svg {
        width: 22px;
    }

    /* Next Event */
    .upcoming-event .cntr {
        padding: 50px calc(55% - 0px) 50px 30px;
        min-height: 300px;
    }
    .upcoming-event h2, 
    .upcoming-event h4 {
        color: inherit;
        margin: 0 0 10px !important;
        line-height: 1.1;
        font-size: 27px;
    }
    .upcoming-event h4 {
        font-size: 17px;
        margin-bottom: 20px !important;
    }	
    .upcoming-event p {
        margin-bottom: 30px;
        line-height: 1.2;
        font-size: 15px;
    }
}
@media screen and (max-width: 689px) {
    body {
        margin-bottom: 50px !important;
    }
    div.main-links {
        bottom: 0px !important;
        width: 100vw;
        border-radius: 0px !important;
    }
    div.main-links > div {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
    }
    div.main-links > * > * {
        width: 20% !important;
    }

    .weekly-events-cntr {
        padding: 35px 15px 25px 15px;
        gap: 15px;
    }
    a.weekly-event {
        min-width: 150px;
    }
    a.weekly-event > img {
        height: 100px;
    }
    a.weekly-event svg {
        max-height: 100px;
    }
    a.weekly-event h3 {
        height: 20px;
        font-size: 13px;
        margin: 10px 10px 0px;
    }
    a.weekly-event h2 {
        margin: 10px 10px 5px;
        font-size: 22px;
    }
    a.weekly-event .button {
        margin: auto 10px 0px;
        font-size: 15px;
    }
    .button svg {
        width: 20px;
    }

    /* Next Event */
    .upcoming-event .cntr {
        background: linear-gradient(to top, rgb(105 142 131 / 100%) 55%, rgb(105 142 131 / 70%) 65%, rgb(105 142 131 / 0%) 75%);
        padding: calc(55% - 0px) 30px 30px;
        min-height: 300px;
    }
    .upcoming-event:before {
        background-position: top;
        background-size: 100% auto;
    }
}

