/* General Styles */
.hero-block {
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.hero-block .block-inner {
  position: relative;
  overflow: hidden;
}

.background-image-wrap {
    will-change: transform;
}

/* Text overlay container - positioned over media */
.hero-block .textarea-container {
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
    color: var(--colour-white);
}

/* Gradient overlay for text readability */
.hero-block .textarea-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0) 70%
    );
    z-index: -1;
    pointer-events: none;
}

.hero-block .textarea-container .inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--max-width, 1366px);
    margin: 0 auto;
}

@media (min-width: 1367px){
  .hero-block .textarea-container .inner{
    max-width: 1640px;
  }
}

.hero-block .textarea-container .inner-width {
  display: flex;
  flex-flow: column;
  justify-content: center;
  max-width: 650px;
}
.hero-block .textarea {
    margin-top: var(--gutter-l);
    font-size: var(--font-l);
}
.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) {
    margin-bottom: 0;
    color: var(--colour-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-block .heading {
    font-weight: 300;
}

/* Gradient already applied via ::before on textarea-container */
.hero-block .block-inner::before {
    display: none;
}


.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: 100svh;
    width: 100%;
    object-fit: cover;
    display: block;
    min-height: 530px;
}
.hero-height-full-screen.active-hero-menu .background-image-wrap img {
    max-height: calc(100svh - 64px);
}
.hero-block .video-player {
    height: 100svh;
    min-height: 530px;
}
.hero-block .video-player {
    height: calc(100svh - 64px);
}
.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: var(--gutter-xl);
}

/* 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 {
    overflow: hidden;
    position: relative;
    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-slider {
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.hero-slider .swiper {
  width: 100%;
  height: 100%;
}
.hero-slide {
    overflow: hidden;
    height: 100%;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-type-slider .single-btn-wrap[data-sal="slide-up"] {
transform: initial;
opacity: initial;
}

/* Slider pagination - bottom centre */
.hero-slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider-pagination .swiper-pagination {
    position: relative;
    bottom: 0;
    top: 0;
    text-align: center;
    display: flex;
    gap: 10px;
    width: auto;
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet {
    margin: 0;
    background: transparent;
    border: 2px solid var(--colour-white);
    height: 15px;
    width: 15px;
    opacity: 1;
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--colour-white);
}


.hero-block .post-published-date {
    font-size: var(--font-l);
    font-style: italic;
    margin-top: var(--gutter);
    color: rgba(255, 255, 255, 0.85);
}

/* Textarea text colour */
.hero-block .textarea {
    color: var(--colour-white);
}


/* Shared transition defaults for panel items */
.hero-block.hero-type-slider [data-hero-textarea-container] [data-sal]{
  transition-property: opacity, transform;
  transition-duration: var(--sal-duration, .8s);
  transition-timing-function: var(--sal-easing, ease-out-quart);
  transition-delay: 0s;
}

/* SLIDE-UP: off state when panel is NOT "in" */
.hero-block.hero-type-slider [data-hero-textarea-container]:not(.is-in) [data-sal="slide-up"]{
  opacity: 0;         /* win against SAL's .sal-animate */
  transform: translateY(30px);
}

/* SLIDE-UP: on state when panel IS "in" */
.hero-block.hero-type-slider [data-hero-textarea-container].is-in [data-sal="slide-up"]{
  opacity: 1;
  transform: none;
}

/* FADE: off state when panel is NOT "in" */
.hero-block.hero-type-slider [data-hero-textarea-container]:not(.is-in) [data-sal|="fade"]{
  opacity: 0;
}

/* FADE: on state when panel IS "in" */
.hero-block.hero-type-slider [data-hero-textarea-container].is-in [data-sal|="fade"]{
  opacity: 1;
}


@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-down-pointer svg {
    width: 32px;
}
.hero-down-pointer {
    bottom: 25px;
}
}
@media all and (max-width: 1023px) {
.hero-block .textarea-container {
    justify-content: center;
}
/* Stronger gradient on mobile for readability */
.hero-block .textarea-container::before {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.2) 100%
    );
}
.hero-block .textarea-container .inner-width {
    max-width: 100%;
}
.hero-slider-pagination .swiper-pagination .swiper-pagination-bullet {
    height: 12px;
    width: 12px;
  }
.hero-slider-pagination .swiper-pagination {
    gap: 8px;
}
.hero-slider-pagination {
    bottom: 20px;
}
}
@media all and (max-width: 860px) {
.hero-block .video-player {
    height: calc(100vh - 79px);
    height: calc(100svh - 79px);
}
}
@media all and (max-width: 640px) {
.hero-height-full-screen .background-image-wrap img {
    height: 100svh;
    min-height: 400px;
}
}
@media all and (max-width: 480px) {
.hero-block .video-player {
    height: calc(100vh - 74px);
    height: calc(100svh - 74px);
}
.hero-down-pointer {
    bottom: 16px;
}
.hero-slider-pagination {
    bottom: 15px;
}
}
@media all and (max-width: 413px) {
.hero-block .video-player {
    height: calc(100vh - 69px);
    height: calc(100svh - 69px);
}
.hero-down-pointer {
    bottom: 12px;
}
}