/*!
Theme Name: Puttosaurus
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Tyler Hounsome ⛳
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 6.1.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: puttosaurus
*/

/* Popup */

.popup {
	transition: 0.3s all;
}

.popup.closed {
	opacity: 0;
	visibility: hidden;
}

.popup.closed .popup-inner {
	transform: scale(0.6);
}

.popup-inner {
	width: min(64vh, calc(100vw - 3rem));
	max-height: calc(100vh - 3rem);
	overflow: auto;
	border-radius: 5rem;
	padding: 1.5rem;
	background: var(--color-green-light);
	transition: 0.3s all;
}

.popup-inner .dots {
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
}

.popup-inner .dots img {
	height: 100%;
	width: auto;
	max-width: none;
	filter: brightness(0) invert(1);
	opacity: 0.3;
}

.popup-inner .dots img:first-child {
	transform: translateX(-30%);
}

.popup-inner .dots img:last-child {
	transform: translateX(30%);
}

@media (min-width: 1024px) {
    .popup-inner {
	    width: min(100vh, calc(100vw - 3rem));
	    overflow: hidden !important;
    }
}

@media (min-width: 1536px) {
    .popup-inner {
	    width: min(72vh, calc(100vw - 3rem));
    }
    .popup .h2 {
    	font-size: 4rem;
    	width: calc(100% - 12rem);
	    margin: 0 auto;
    }
    .popup-inner {
		aspect-ratio: 1;
		padding: 6rem 3rem 3rem;
	}
}

@media (min-width: 1800px) {
    .popup-inner {
	    width: min(64vh, calc(100vw - 3rem));
    }
}

.popup .button .btn:not(:hover) {
    color: #fff;
}

.popup .close {
    width: 4rem;
    height: 4rem;
    border-radius: 100%;
    fill: #fff;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.popup .close svg {
    width: 45%;
}

@media (min-width: 1024px) {
    .popup .close {
        top: 2rem;
    	left: 3rem;
    	transform: none;
    }
    .popup .content {
        font-size: 1.8rem;
    }
}

@media (min-width: 1536px) {
    .popup .close {
        top: 1rem;
    	left: 50%;
    	transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .popup-inner {
        padding-top: 3.5rem;
    }
}

.popup .content {
    text-wrap: pretty;
}

.popup .content p + p {
    margin-top: 0.8em;
}

/* Header */

@media (min-width: 1025px) {
    body:not(.home) .menu-container li:hover a {
        color: var(--color-green);
    }
    .menu-container .current-menu-item {
        color: var(--color-green-light);
        font-weight: 700;
    }
}

@media (max-width: 1024px) {
    header .menu-container {
        padding: min(12rem, 14vh) 0;
    }
    header .menu-container .menu {
        font-size: 6rem;
        line-height: 1.65;
    }
    header .menu-container .menu>li {
        justify-content: center;
    }
    .menu-container .current-menu-item {
        color: #000;
    }
    header .menu-container .menu>li.current-menu-item>a:after {
        color: #fff;
    }
}

@media (max-width: 640px) {
    header .menu-container .menu {
        font-size: 4rem;
    }
    
    header .header-buttons {
        position: absolute;
    	top: 100%;
    	left: 0;
    	width: 100%;
    	padding: 0;
    	display: flex;
    	align-items: center;
    	justify-content: space-evenly;
    	opacity: 0;
    	visibility: hidden;
    	transform: translate3d(0,-1.5rem,0);
    	transition: 0.3s transform, 0.3s opacity, 0.3s visibility;
    }
    body.scrolled header .header-buttons {
        padding: 1.5rem 0;
    }
    header .header-buttons.showing {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0,0,0);
    }
}

@media (min-width: 641px) {
    header .button-mobile {
        display: none;
    }
}

@media (max-width: 380px) {
    header .menu-container .menu {
        font-size: 3.8rem;
    }
}

@media (max-width: 340px) {
    header .menu-container .menu {
        font-size: 3.2rem;
    }
}

/* Footer */

footer .current-menu-item a {
    color: #fff;
}

/* 404 Page */

.error404 footer {
    margin-top: 0;
}

/* Hero */

.video-bg video {
	filter: none;
}

/* Instagram Feed */

.image-feed .swiper {
    transform: rotate(-3deg) translateY(10%);
}

.image-feed .swiper-wrapper {
    transition-timing-function: linear;
}

.image-feed #sb_instagram .sbi_type_video .sbi_playbtn,
.image-feed #sb_instagram .sbi_type_carousel .sbi_playbtn {
    margin-top: 0;
    margin-left: 0;
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
}

.image-feed #sb_instagram #sbi_load {
    float: none;
    display: flex;
    justify-content: center;
}

.image-feed #sb_instagram #sbi_images,
.image-feed #sb_instagram #sbi_images .sbi_item {
	float: none;
}

.image-feed #sb_instagram .sbi_photo img {
    height: 100%;
}

.image-feed #sb_instagram .sbi_follow_btn a {
    background: transparent;
    font-size: 1.6rem;
    font-weight: black;
}

.image-feed #sb_instagram .sbi_follow_btn a:hover,
.image-feed #sb_instagram .sbi_follow_btn a:focus {
    box-shadow: none;
    color: var(--color-green-light);
}

.image-feed #sb_instagram .sbi_follow_btn svg:not(:root).svg-inline--fa {
    height: 1.1em;
}

@media (min-width: 1024px) {
    .image-feed #sb_instagram #sbi_load {
        justify-content: flex-end;
    }
    .image-feed #sb_instagram .sbi_follow_btn svg:not(:root).svg-inline--fa {
        height: 1.5em;
    }
    .image-feed #sb_instagram .sbi_follow_btn a {
        font-size: 2.4rem;
    }
}

/* Instagram Optimisation */

.image-feed .swiper-slide {
    height: auto;
}

.image-feed .sbi_photo_wrap {
    height: 100%;
}

.image-feed .sbi_photo {
    background-image: none !important;
    height: 100% !important;
    padding-bottom: 0 !important;
}

.image-feed .sbi_photo img {
    object-fit: cover;
}


/* Popup text white mobile */
@media (max-width: 768px) {
    .button.text-white .text {
        color: white;
    }
}
/* Fix for title */
.title-image .title h1:before {
    display: block;
    max-width: 100%;
}
#sb_instagram #sbi_images.swiper-wrapper {
    display: flex !important;
    max-height: 250px;
}
@media (min-width:1850px) {
    #sb_instagram #sbi_images.swiper-wrapper {
        max-height: 350px;
    }
}


/* Upcoming Event Notice Block */
.upcoming-event-notice {
    position: fixed;
    bottom: 50px;
    right: 50px;
    max-width: 300px;
    padding: 15px;
    border-radius: 15px 0 0;
    font-weight: 900;
    transition: width 1s ease-in-out;
}
.upcoming-event-notice.active {
    width: 300px;
}
@media (max-width: 480px) {
    .upcoming-event-notice {
        width: calc(100% - 7rem);
        padding: 10px;
        margin: 0 3.5rem;
        bottom: 0;
        right: 0;
    }
    .upcoming-event-notice.active {
        width: calc(100% - 7rem);
    }
}
.upcoming-event-notice .top-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}
.upcoming-event-notice span {
    text-transform: uppercase;
    font-size: 16px;
    height: 20px;
    padding: 0 0 0 15px;
}
.upcoming-event-notice .top-line > span {
    cursor: pointer;
}
.upcoming-event-notice .top-line > span:hover {
    text-decoration: underline;
}
.upcoming-event-notice.active .top-line > span {
    cursor: unset;
}
.upcoming-event-notice.active .top-line > span:hover {
    text-decoration: none;
}
.upcoming-event-notice .top-line > span:before {
    content: "";
    position: absolute;
    height: 5px;
    width: 5px;
    background-color: #000;
    border-radius: 100%;
    top: 7.5px;
    left: 5px;
}
.upcoming-event-notice .top-line .toggle-notice {
    height: 0;
    width: 0;
    opacity: 0;
    cursor: pointer;
}
.upcoming-event-notice.active .top-line .toggle-notice {
    height: 20px;
    width: 20px;
    opacity: 1;
    transition: height 0.2s 0.8s ease-in-out, width 0.2s 0.8s ease-in-out, opacity 0.5s 1s ease-in-out;
}
.upcoming-event-notice .top-line .toggle-notice span {
    height: 3px;
    margin: 5px 2px 5px 0;
    transition: all .2s;
    width: 15px;
    --tw-bg-opacity: 1;
    background-color: #fff;
    display: block;
}
.upcoming-event-notice .top-line .toggle-notice span:first-of-type {
    transform: rotate(-43deg) translateY(130%) translateX(-13%)
}
.upcoming-event-notice .top-line .toggle-notice span:nth-of-type(2) {
    transform: rotate(43deg) translateY(-130%) translateX(-13%);
}
.upcoming-event-notice p {
    height: 0px;
    opacity: 0;
    margin-bottom: 0;
    color: #fff;
    width: 80%;
    font-size: 0;
    transition: height 0.5s ease-in-out, margin-bottom 0.5s ease-in-out, font-size 1s ease-in-out;
}
.upcoming-event-notice.active p {
    height: 100%;
    opacity: 1;
    margin-bottom: 1rem;
    font-size: 120%;
    transition: height 0.5s ease-in-out, margin-bottom 0.5s ease-in-out, font-size 1s ease-in-out, opacity 0.5s 1s ease-in-out;
}
.upcoming-event-notice a {
    display: block;
    color: #000;
    height: 0px;
    width: 100%;
    text-align: end;
    transition: height 0.5s ease-in-out;
}
.upcoming-event-notice.active a {
    height: 100%;
}
.upcoming-event-notice a span {
    opacity: 0;
    padding: 0;
    text-decoration: underline;
}
.upcoming-event-notice.active a span {
    opacity: 1;
    transition: opacity 0.5s 1s ease-in-out;
}
