.st-next {
    position: relative;
    z-index: 2;
}

.st-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ca-primary-colour);
    border-radius: 0.5em;
    opacity: 0;
    animation: pulse-animation 2s infinite;
    z-index: -1;
}

@keyframes pulse-animation {
    0% {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }

    50% {
        left: -1em;
        top: -1em;
        width: calc(100% + 2em);
        height: calc(100% + 2em);
        opacity: 0.3;
    }

    100% {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }
}


/* Now our scrolly-telling section styles */
.st-section {
  min-height: 100vh;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.st-columns {
  align-items: center;
}
.st-heading h1 {
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ca-primary-colour);
}
.st-copy {
    font-size: 0.8125rem;
    backdrop-filter: blur(2px);
}
.st-section .ca-hr {
    border-top: 0 none;
    margin: 1rem 0;
    display: none;
}
.st-section .btn.btn-sm {
    font-size: 0.75rem;
}
.st-section .btn.st-next {
    font-size: 0.75rem;
}

.st-media-column {
  margin-left: -5%;
  max-width: 71%;
  flex: 0 0 71%;
}

.st-media,
.st-media img {
    width: 100%;
}

.st-media .hotspot,
.st-media .hs {
    width: 124px;
    height: 124px;
}

.st-media .hotspot img,
.st-media .hs img {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.st-disclaimer {
    position: fixed;
    bottom: 0;
    margin: 0 !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    background: var(--ca-secondary-colour);
    font-size: 0.625rem;
    padding: 0.25em 0.5em;
    border-radius: 0.5em;
}

.st-video-container {
    position: fixed;
    z-index: 1;
    width: 130vw;
    left: 50%;
    height: 50vh;
    top: 50px;
    transform: translateX(-50%);
    overflow: hidden;
}

.st-section .container-fluid {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    background: linear-gradient(0deg, transparent 0%, #cbedfdc4 15%, #cbedfdc4 85%, transparent 100%);
}

.st-video-container::after {
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background: linear-gradient(0deg, rgba(203, 237, 253, 1) 0%, rgba(203, 237, 253, 0) 15%, rgba(203, 237, 253, 0) 85%, rgba(203, 237, 253, 1) 100%);
    pointer-events: none;
}

.st-video {
    width: 100%;
    opacity: 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    filter: saturate(1.15) brightness(0.985);
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.st-video.active {
    opacity: 1;
    transition-delay: 0s;
}

@media (min-width: 768px) {
    .st-section {
        padding-left: calc((100vw - 620px) / 2);
        padding-right: calc((100vw - 620px) / 2);
        padding-bottom: 4rem;
    }
    .st-section .container-fluid {
        padding: 0;
        background: #cbedfdc4;
        box-shadow: 0 0 30px 30px #cbedfdc4;
    }
    .st-heading h1 {
        font-size: 1.825rem;
    }
    .st-copy {
        font-size: 0.9375rem;
    }
    .st-section .btn.btn-sm {
        font-size: 0.875rem;
    }
    .st-section .btn.st-next {
        font-size: 0.875rem;
    }
    .st-section .ca-hr {
        display: block;
    }
    .st-disclaimer {
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
    }
}
@media (min-width: 440px) and (max-aspect-ratio: 1/1) {
    .st-video-container {
        top: 70px;
        height: 60vh;
    }
}
@media (min-width: 660px) and (max-aspect-ratio: 1/1) {
    .st-video-container {
        top: 80px;
        height: 67vh;
    }
}
@media (min-width: 700px) and (min-aspect-ratio: 1/1) {
    .st-section {
        padding-left: calc((100vw - 720px) / 2);
        padding-right: calc((100vw - 720px) / 2);
        padding-bottom: 3rem;
    }
    .st-video-container {
        top: 86px;
        height: 57vh;
        width: 100vw;
    }
    .st-video-container::after {
        background: linear-gradient(0deg, rgba(203, 237, 253, 1) 0%, rgba(203, 237, 253, 0) 15%, rgba(203, 237, 253, 0) 85%, rgba(203, 237, 253, 0) 100%);
    }
}

@media (min-width: 900px) and (max-aspect-ratio: 3/2) {
    .st-section {
        padding-left: calc((100vw - 720px) / 2);
        padding-right: calc((100vw - 720px) / 2);
        padding-bottom: 3rem;
    }

    .st-heading h1 {
        font-size: 2.25rem;
    }
    .st-video-container {
        width: 100vw;
        height: 67vh;
    }
}

@media (min-width: 1400px) and (max-aspect-ratio: 1.25/1) {
    .st-section {
        padding-left: calc((100vw - 800px) / 2);
        padding-right: calc((100vw - 800px) / 2);
        padding-bottom: 10vh;
    }

    .st-heading h1 {
        font-size: 3.2rem;
    }
    .st-copy {
        font-size: 1.25rem;
    }
    .st-section .btn.st-next {
        font-size: 1.25rem;
    }
}

@media (min-aspect-ratio: 3/2) and (min-width: 1200px) {
    .st-section {
        padding: 0 2rem 0 calc(100vw - 360px);
        align-items: center;
    }
    .st-heading h1 {
        font-size: 1.8rem;
    }
    .st-video-container {
        position: fixed;
        z-index: 1;
        width: calc(100vw - 250px);
        left: -100px;
        height: calc(100vw - 250px);
        top: 50%;
        transform: translateY(-47%);
    }
    .st-video-container::after {
        box-shadow: inset 0 0 30px 30px var(--ca-secondary-colour);
    }
    .st-copy {
        font-size: 0.875rem;
    }
    .st-disclaimer {
        bottom: 1rem;
        font-size: 0.8125rem;
    }
}

@media (min-aspect-ratio: 3/2) and (min-width: 1440px) {
    .st-section {
        padding: 0 2rem 0 calc(100vw - 420px);
        align-items: center;
    }
    .st-heading h1 {
        font-size: 2.5rem;
    }
    .st-video-container {
        width: calc(100vw - 200px);
        height: calc(100vw - 200px);
    }
    .st-copy {
        font-size: 1rem;
    }
}

@media (min-aspect-ratio: 3/2) and (min-width: 1920px) {
    .st-section {
        padding: 0 2rem 0 calc(100vw - 600px);
        align-items: center;
    }
    .st-heading h1 {
        font-size: 3.2rem;
    }
    .st-video-container {
        width: calc(100vw - 400px);
        height: calc(100vw - 400px);
    }
    .st-section .btn.st-next {
        font-size: 1.125rem;
    }
}

#section5 .container-fluid {
    padding-bottom: 30vh !important
}
