/* General Styles */
.hero-block {
    position: relative;
    overflow: hidden;
}
.hero-block .block-inner {
    position: relative;
    overflow: hidden;
}
.background-image-wrap {
  /* Ensure that the container can be moved without affecting layout */
  will-change: transform;
}
.hero-block .textarea-container {
text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  max-width: 1080px;
  right: 0;
  margin: 0 auto;
  z-index: 2;
}
.hero-block .textarea * {
    color: var(--colour-neutral);
margin-bottom: -10px;
  margin-top: 8px;
}
.overlay-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    height: 100%;
    margin: 0 auto;
    right: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.overlay-image-wrap img {
    margin: 0 auto;
    max-width: clamp(130px, 15vw, 280px);
}
.hero-block :is(h1, h2, h3, h4, h5, h6) {
    color: #fff;
    margin-bottom: 0;
}
.hero-block .heading {
line-height: 1.2;
}
.hero-text .textarea p {
    font-size: 1.2em;
}


.hero-block::before {
    background: rgba(0, 0, 0, 0.25);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-text .button-container {
margin-top: 35px;
}
.error404 .hero-block .hero-down-pointer {
display: none;
}

/* Height */
.hero-height-full-screen .background-image-wrap img {
aspect-ratio: 1920/1080;
  height: 100%;
  max-height: 100vh;
  width: 100%;
  object-fit: cover;
  display: block;
}
.hero-height-medium .background-image-wrap img {
    aspect-ratio: 1920 / 630;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    display: block;
}
.hero-height-narrow .background-image-wrap img {
    aspect-ratio: 1920 / 520;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
    max-height: 520px;
    display: block;
}

/* Buttons */
.hero-block .button-container {
    margin-top: 40px;
}

/* Pointer/arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}
.hero-down-pointer {
    z-index: 2;
    position: absolute;
    bottom: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: fit-content;
}
.hero-down-pointer svg {
    width: 40px;
}
.hero-down-pointer a {
padding: 6px;
}
.hero-down-pointer a:hover svg {
animation: bounce 1s infinite;
}

/* Video */
/*https://stackoverflow.com/a/51619871*/
.hero-block .video-player {
    height: calc(100vh - 92px);
    height: calc(100svh - 92px);
    overflow: hidden;
    position: relative;
    min-height: 450px;
    pointer-events: none;
}
.hero-block .video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-block .video-player iframe {
    width: 100%;
    height: calc((100vw*9) /16);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-aspect-ratio: 16/9) {
.hero-block .video-player{
    width: 100%;
    overflow: hidden;
}
.hero-block .video-player iframe{
    width: calc((100vh*16)/9);
    height: 100vh; /*old browser support*/
    height: 100svh;
}
}

/* Slider */
.hero-block.hero-type-slider::after {
    display: none;
}
.hero-block.hero-type-slider .hero-slider-container li::before {
    background: rgba(63, 78, 64, 0.5);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        z-index: 1;
}

/* Slider nav */
.hero-slider-nav-outer {
    max-width: 1920px;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.hero-slider-nav-inner {
    line-height: 0;
    width: 100%;
}
#prev-hero, #next-hero {
    position: relative;
    padding: 0;
    border: none;
        pointer-events: all;
    background: none;
    outline: none;
animation: fadein ease 1.4s;
}
#prev-hero {
    position: relative;
    left: 30px;
}
#next-hero {
    float: right;
    position: relative;
    right: 30px;
}
#prev-hero svg, #next-hero svg {
    height: 60px;
    opacity: 0.6;
    color: #fff;
	transition: all 0.3s ease;
    display: block;
}
#prev-hero svg:hover, #next-hero svg:hover {
    opacity: 1;
}

/* dots navigation */
.hero-block .tns-nav {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}
.hero-block .tns-nav button {
    border-radius: 30px;
    width: 13px;
    height: 13px;
    padding: 0;
    background: none;
    border: 1px solid #FFF;
    margin-left: 4px;
    margin-right: 4px;
}
.hero-block .tns-nav button.tns-nav-active {
    background: #fff;
}

/* Hero menu */
.hero-menu {
    background: #7b8a98;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    text-transform: uppercase;
}
.hero-menu ul {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 28px;
}
.hero-menu ul li {
    margin: 0;
    list-style: none;
}
.hero-menu ul li a {
    font-weight: 500;
}
.hero-menu.link-underline-from-left a:not(.lsb-button, .child-underline)::after {
    background-color: var(--colour-dark-blue);
}
#main-content .hero-menu ul li a:hover, #main-content .hero-menu ul li.current-menu-item a {
color: var(--colour-dark-blue);
}
#main-content .hero-menu ul li.current-menu-item a::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}


.hero-keyword-container {
    display: flex;
color: var(--colour-white);
  font-size: 1.1em;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}
.hero-keyword-container .keyword-separator {
    font-size: 34px;
    line-height: 0.7;
}



.single-event .hero-block .post-date {
    display: flex;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--colour-white);
    justify-content: center;
    margin-bottom: 6px;
}


@media all and (max-width: 1280px) {
.hero-height-medium .background-image-wrap img {
  aspect-ratio: 1920 / 720;
}
}
@media all and (max-width: 1212px) {
.hero-block .video-player {
    height: calc(100vh - 84px);
    height: calc(100svh - 84px);
}
}
@media all and (max-width: 1024px) {
/*.hero-height-full-screen .background-image-wrap img {
    min-height: 475px;
    max-height: clamp(475px, calc(100svh - 200px), 880px);
}*/
.hero-down-pointer svg {
    width: 32px;
}
.hero-down-pointer {
    bottom: 25px;
}
}
@media all and (max-width: 860px) {
.hero-block .video-player {
    height: calc(100vh - 79px);
    height: calc(100svh - 79px);
}
}
@media all and (max-width: 480px) {
.hero-block .video-player {
    height: calc(100vh - 74px);
    height: calc(100svh - 74px);
}
.hero-down-pointer {
    bottom: 16px;
}
}
@media all and (max-width: 413px) {
.hero-block .video-player {
    height: calc(100vh - 69px);
    height: calc(100svh - 69px);
}
.hero-down-pointer {
    bottom: 12px;
}
}