html{
    scroll-behavior: smooth;
    scroll-padding-top: 155px;

}

/* Main desktop menu hovers */
.desktop-main-menu a:hover, .desktop-main-menu a:focus {
    text-decoration:none !important;
    outline:0 none !important;
    transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -web-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    opacity: 0.8;
    color: var(--wp--preset--color--footer-blue) !important;
}

/* remove underline from footer links */
footer a{
  text-decoration: none;
}

/*
Upcoming events cards CSS
*/

/* Set outer group as relative */
.upcoming-events {
    position: relative;
}

/* Override links underline */
.upcoming-events a, .rh-text a{
  text-decoration: none;
}

/* Add image to read more link */
.upcoming-events .wp-block-post-featured-image a:hover{
    text-decoration: none;
    outline: 0 none !important;
    transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -web-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    opacity: 0.8;
}

/* Set background colour and position for 'ticket' icon  */
.upcoming-events .wp-block-read-more {
    position: absolute;
    height: 48px;
    width: 48px;
    right: 0;
    bottom: 0;
    /* background-color: var(--wp--preset--color--primary); */
}

/* Set position, size and opacity for 'ticket' icon  */
.upcoming-events .wp-block-read-more::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/tickicon.svg');
    background-repeat: no-repeat;
    background-position: center; 
    background-size: 33px 33px; 
    opacity: 1; 
    transition: opacity 0.3s ease-in-out; 
}

/* Change opacity of 'ticket' icon on hover and focus */
.upcoming-events .wp-block-read-more:hover::before,
.upcoming-events .wp-block-read-more:focus::before {
    opacity: 0.8; 
}

.upcoming-events .wp-block-button a {
    transition: color 0.3s ease-in-out; 
}

.upcoming-events .wp-block-button a:hover {
    color: rgba(253, 253, 253, 0.8) !important; 
}


/* 
Decorative triangles that cover the bottom right hand corner of an image 
*/

/* Splide carousel triangle */
/* .wp-block-splide-carousel__slide .wp-block-image{
    position: relative;
}

.wp-block-splide-carousel__slide .wp-block-image::after{
    position: absolute;
    content: '';
    clip-path: polygon(100% 12%, 0 100%, 100% 100%);
    bottom: 0;
    left: 0;
    width: 100%;
    height: 17%;
    background: var(--wp--preset--color--primary);
} */

/* Upcoming events triangles */
/* .upcoming-events .wp-block-post-featured-image{
    position: relative;
}

.upcoming-events .wp-block-post-featured-image::after{
    position: absolute;
    content: '';
    clip-path: polygon(100% 12%, 0 100%, 100% 100%);
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20%;
    background: #F2F2F2;
} */

/* .upcoming-events  img {
    max-width: 99.9%;   
      Ensures image doesn't exceed its intrinsic size 
} */

/* Menu drop shadow when normal or white on frontpage */
.normal_navbar, .frontpage_navbar.scrolled{
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}

/* Menu transition */
.frontpage_navbar{
    -webkit-transition: all 0.6s ease-out;
    -moz-transition: all 0.6s ease-out;
    -o-transition: all 0.6s ease-out;
    -ms-transition: all 0.6s ease-out;
    transition: all 0.6s ease-out;
}

.frontpage_navbar .box-office{
  color: var(--wp--preset--color--white) !important;
}

.frontpage_navbar.scrolled .box-office{
  color: var(--wp--preset--color--footer-blue) !important;
}


.frontpage_navbar.scrolled{
    background-color: var(--wp--preset--color--white) !important;
    color: var(--wp--preset--color--black)!important;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}

/* Hero Banners Text Outlines */
.hero-banners h2{
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--wp--preset--color--black);
}

/* Category selector dropdown menu */
.category_selector select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
  
    text-indent: 0.01px;
    text-overflow: '';
    
    padding: .7em 9em .7em 1em;
    /* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
    @media screen and (-webkit-min-device-pixel-ratio:0) {
      padding-right:9em;
    }
    
    border: 1px solid var(--wp--preset--color--black);
    border-radius: 5px;
    background-color: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: bold;

    outline: none;
    display: inline-block;
    background-image: 
      linear-gradient(45deg, transparent 50%, var(--wp--preset--color--white) 50%),
      linear-gradient(135deg, var(--wp--preset--color--white) 50%, transparent 50%);
    background-position: 
      calc(100% - 21px) 50%,
      calc(100% - 13px) 50%,
      calc(100% - 3px) 50%,
      calc(100% - 2px) 50%;
    background-size: 8px 8px, 8px 8px, 36px calc(100% - 6px), 38px calc(100% - 4px);
    background-repeat: no-repeat;
    
    
    &::-ms-expand {
      display: none;
    }
  }
  
  /* turning the wordpess gallary into slider ready images */
.frontpage-slider-images .wp-block-image {
    position: relative;
    width: 100%; /* You can set specific width if needed */
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.frontpage-slider-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frontpage-slider-text{
  position: absolute;
  top: 70%;
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 100%;
}

/* Adding some animation to the upcoming event cards */
/* @media( prefers-reduced-motion: no-preference   ){
    .upcoming-events {
        scale: .8; opacity: .3;
        animation: fade-in linear forwards;
        animation-timeline: scroll();
        animation-range: 200px 500px;
        transform: translateY(150px);
        transition: 1s all ease;
    }

    @keyframes fade-in {
        to {scale: 1; opacity: 1;transform: translateY(0); }  
    }

    .single_event_main_card img {
        opacity: 0;
        scale: .8;
        animation: single_event_main_fade-in 0.5s linear forwards .5s;
    }

    @keyframes single_event_main_fade-in {
        to {scale: 1; opacity: 1;}  
    }
    
} */

.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 2000;
    top: -32px;
    left: 0;
    background-color: var(--wp--preset--color--red);
    /* background-color: rgba(0,0,0, 0.9); */
    overflow-y: hidden;
    transition: 0.5s;
    color:var(--wp--preset--color--white)
  }
  
  .overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }
  
  /* .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
  } */
  
  .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }

  #ep-arrow{
    z-index: 1000 !important;
  }
  
  /* .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  } */
  
  @media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
    }
  }

  .event-dates{
    border-bottom: 2px white solid;
    width: 100% !important;
    border-bottom-left-radius: 0 !important;
  }

  .event-details .wp-block-group{
    width: 100%;
  }

/* Colours for each perfomrance category and what's on top banner */

.upcoming-events .category-affordable .wp-block-group, .category-affordable .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--affordable-yellow) !important;
}

.upcoming-events .category-theatre .wp-block-group ,.category-theatre .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--theatre-purple) !important;
}

.upcoming-events .category-music .wp-block-group, .category-music .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--music-blue) !important;
}

.upcoming-events .category-film .wp-block-group, .category-film .wp-block-media-text:first-of-type, .upcoming-events .category-community-cinema .wp-block-group, .category-community-cinema .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--film-orange) !important;
}

.upcoming-events .category-events .wp-block-group, .category-events .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--events-yellow) !important;
}

.upcoming-events .category-comedy .wp-block-group, .category-comedy .wp-block-media-text:first-of-type{
  background-color: #e934c4 !important;
}

.upcoming-events .category-community .wp-block-group, .category-community .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--community-pink) !important;
}

.upcoming-events .category-family .wp-block-group, .category-family .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--family-green) !important;
}

.upcoming-events .category-theatre-live .wp-block-group, .category-theatre-live .wp-block-media-text:first-of-type{
  background-color: var(--wp--preset--color--ntl-purple) !important;
}

.upcoming-events .category-blt .wp-block-group, .category-blt .wp-block-media-text:first-of-type{
  background-color: #6c3184 !important;
}

.upcoming-events .category-bltstudio .wp-block-group, .category-bltstudio .wp-block-media-text:first-of-type{
  background-color: #6c3184 !important;
}


/* Curved bottom corners for events */
.upcoming-events .category-theatre .wp-block-group, .upcoming-events .category-music .wp-block-group, .upcoming-events .category-film .wp-block-group,  .upcoming-events .category-events .wp-block-group , .upcoming-events .category-family .wp-block-group, .upcoming-events .category-national-theatre-live .wp-block-group, .upcoming-events .category-bltstudio .wp-block-group, .upcoming-events .category-blt .wp-block-group, .upcoming-events .category-comedy .wp-block-group{
  border-bottom-left-radius: 50px;
}

/* remove gap between slider and main body */
:where(figure) {
  margin: 0 !important;
}

/* remove footer gap between footer and main body */
footer{
  margin-block-start: 0 !important;
  margin-block-end: 0;
}

/* Add triangle watermark to privacy, t&c and cookies page template cover block */
.privacy-cover-block .wp-block-cover__background{
  background-image: url("/wp-content/themes/bingley-art-centre-theme/assets/images/Triangle-Overlay.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Make entire partner card a link */
.partners-cards a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;	
  opacity: 100%;
}

.partners-cards a{
  text-decoration: none;
}

/* frontpage visit cards */
.frontpage-visit-card-wrapper {
  position: relative;
  }
  
.frontpage-visit-card-text {
  position: absolute;
  bottom: -28px;
  right: 32%;
  /* right 46%; this setting will be required when doing responsive work */
}

.frontpage-visit-card-text-right{
  position: absolute;
  transform: rotate(-10deg);
}

.frontpage-visit-card-text-left{
  position: absolute;
  transform: rotate(10deg);
}

.frontpage-visit-card-text a{
  text-decoration: none;
}

:target::before {
  content: "";
  display: block;
  height: 175px;
  margin-top: -175px;
}


/* Making BLT Menu item bigger */
.BLT a{
  /* background: -webkit-linear-gradient(var(--wp--preset--color--dec-light-green) , var(--wp--preset--color--community-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
  font-size: var(--wp--preset--font-size--large) !important;
}


/* Frontpage text fade in animation */
@keyframes fade-in {
  from {
     opacity: 0;
     /* Start with 0 opacity */
  }
  to {
     opacity: 1;
     /* transition to full opacity */
  }
}

.frontpage-slider-text{
  animation: fade-in 3s;
}

/* Pop up custom css */
.eb-popup-overlay, .modal-main-wrap{
  z-index: 1000 !important;
}

.eb-popup-button-anchor:hover {
  color:var(--wp--preset--color--white) !important;
}

.eb-popup-button-anchor p {
  font-size: clamp(0.875rem, calc(0.875rem + (1vw - 0.2rem) * 0.529), 1.1rem) !important;
  text-align: right;
  font-style: normal !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;

}

/* Hide horizontal see upcoming events on desktop */
.see-upcoming-events-link-horizontal h3 a{
  display: none;
}

/* Footer break point, this occurs when 'Keep up to date & follow our BAC social channels' moves to three lines */
/* Visit Area Card breakpoint when words split across multiple lines */
/* add interim breakpoint for upcoming events, from 3 coloumn to 2 coloumn before going to 1 column on small devices */

@media (max-width: 963px) {
  .footer-info-bar .wp-block-columns,  .footer-info-bar .wp-block-column, .visit-area-cards .wp-block-columns,  .visit-area-cards .wp-block-column {
    flex-basis: 100% !important;
    flex-wrap: wrap !important;
    border-right: none;
    border-left: none;
  }

  .footer-info-bar .wp-container-core-social-links-is-layout-1{
    justify-content: center;
  }

  .footer-info-bar .eb-popup-container .eb-popup-button.alignment-right, .footer-info-bar p{
    text-align: center;
  }

  /* padding added for visit area cards on mobile */
  .visit-area-cards .wp-block-column{
    padding-top: var(--wp--preset--spacing--50) !important;
    padding-bottom: var(--wp--preset--spacing--50) !important;
  }

  /* Add interim breakpoint for upcoming events, from 3 coloumn to 2 coloumn before going to 1 column on small devices */
  .upcoming-events.wp-container-core-post-template-is-layout-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hide vertical see upcoming events on mobile */
  .see-upcoming-events-link-vertical h3 a{
    display: none;
  }

  /* Show horizontal see upcoming events on mobile */
  .see-upcoming-events-link-horizontal h3 a{
    display: contents;
  }

}

/* What's on menu system for lines and for mobile */

.whats-on-menu nav{
  gap: unset !important;
}

.whats-on-menu li{
  padding-left: 40px !important;
  padding-right: 40px !important;
}

@media (min-width: 838px){

  .whats-on-menu li{
    border-right: white 2px solid;
  }

  .whats-on-menu li:first-of-type{
    border-left: white 2px solid;
  }
}

@media (max-width: 837px){
  .whats-on-menu ul{
    --navigation-layout-direction: column !important;
  }
  .whats-on-menu li{
    margin-top: 5px;
    --navigation-layout-direction: column !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    border: white 2px solid;
  }
  .whats-on-menu a{
    width: 150px;
    text-align: center !important;
  }
  
}
/* Icons for overlay menu */
.whats-on-overlay::after, .partners-overlay::after, .contact-us-overlay::after, .news-overlay::after{
    position: absolute;
    content: '';
    background-size: cover;
    width: 30px;
    height: 30px;
    left: -50px;
    top: 0px;
}

.whats-on-overlay::after{
  background: url(../images/ticketwhite-01.svg) no-repeat;
}

.partners-overlay::after{
  background: url(../images/discover.svg) no-repeat;
}

.contact-us-overlay::after{
  background: url(../images/contact.svg) no-repeat;
}

.news-overlay::after{
  background: url(../images/newspaper-solid.svg) no-repeat;
  color: white; 
}


/* Social media icon flags and break point a la Square Chapel and break point */
.social-icons{
  position: fixed;
  top: 45%;
  right: 5px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  z-index: 999;
}

.social-icons li{
  border-radius: 0% !important;
}

.social-icons svg{
  width: 35px !important;
  height: 35px !important;
}

/* Move social icons out of the way for smaller screens */
@media (max-height: 513px) {
  .social-icons{
    top: 65%;
  }
}

@media (max-height: 355px), (max-width: 481px) {
  .social-icons{
    display: none !important;
  }
}


/* Main menu breakpoints */
@media (max-width: 849px) {
  .desktop-main-menu, .desktop-hamburger-menu{
    display: none !important;
  }
}

@media (min-width: 850px) {
  .mobile-main-menu{
    display: none !important;
  }
}


.mobile-main-menu  .wp-block-navigation__responsive-container-open{
  color: inherit !important;
}

.mobile-main-menu .eb-advanced-navigation-wrapper .eb-menu-indicator{
  background-color: inherit !important;

}
.mobile-main-menu .wp-block-navigation-item__label, 
.mobile-main-menu .wp-block-navigation-item__content, 
.mobile-main-menu .wp-block-navigation-submenu svg, 
.mobile-main-menu .wp-block-navigation__responsive-container-close
{
  color: white !important;
}

.mobile-main-menu ul{
  width: 100%;
  padding-top: 120px;
}

@media (max-width: 849px) { 
    .wp-block-navigation.mobile-main-menu .wp-block-navigation-item { 
        justify-content: center; 
    } 
    
    .mobile-main-menu ul li { 
        width: 100%; 
    } 
    
    .wp-block-navigation .mobile-main-menu .wp-block-navigation__submenu-icon { 
        height: auto; 
        width: auto; 
        position: absolute; 
        padding: 3px;
        right: 25px; 
        top: 4px; 
    } 
    
    .mobile-main-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container { 
        display: none; 
        width: 100%; 
    } 
    
    .mobile-main-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon { 
        display: block; 
    } 
}


/* Adding some formatting and an image to the mobile overlay menu */
.mobile-main-menu .wp-block-navigation__responsive-container-close::before {
  content: 'Close';
  position: absolute;
  left: -60px;
  top: -4px;
}

.mobile-main-menu .wp-block-navigation__responsive-container-close{
  top: 25px;
  right: 25px;
}


.mobile-main-menu .wp-block-navigation__responsive-dialog::before {
  position: absolute;
  content: '';
  background-size: contain !important;
  width: 120px;
  height: 120px;
  left: 0;
  top: 0;
  background: url(../images/logo.png) no-repeat center center;
}


/* Rotate the submenu arrow on click */
/* Default state */
.mobile-main-menu .wp-block-navigation-submenu__toggle svg {
  transition: transform 0.3s ease; 
}

/* Rotated state when aria-expanded is true */
.mobile-main-menu .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg); 
}

/* Override EB button properties for the get involved page */
.get_involved_sign_up .eb-popup-button-anchor{
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--black)!important;
  transform: none !important;
  border: 2px solid var(--wp--preset--color--black)!important;
  border-radius: 5px;
}

.get_involved_sign_up .eb-popup-button-anchor:hover{
  color: var(--wp--preset--color--black)!important;
}

/* on hover for buttons */
.wp-block-button:hover,
.eb-popup-button-anchor:hover,
.whats-on-menu a:hover,
.frontpage-visit-card-wrapper:hover,
.see-upcoming-events-link-vertical:hover{
  transform: scale(1.2) !important;
}

/* Remove text from directions tab on small screen */
@media (max-width: 665px) { 
  .tab-title-text{
    display: none;
  }
}

/* Single event page formatting on mobile */
@media only screen and (max-width: 781px) {
  .single_event_main_card .wp-block-columns :nth-child(1) { order: 2; }
  .single_event_main_card .wp-block-columns :nth-child(2) { order: 1; }

  .single_event_main_card {
    padding-top: 0px !important;
  }
  .single_event_main_card img {
    border-radius: 0 !important;
  }
}