.slider {
    width: 100%;
    height: calc(100vh);
    text-align: center;
    overflow-y: hidden;
    overflow-x: hidden;    
}
@media (max-width: 1024px)  and (min-height: 1024px) {
    .slider {
        height: calc(65vh);
    }
}
@media (max-width: 1024px) and (max-height: 1024px) {
    .slider {
        height: calc(150vh);
    }
}
@media (max-width: 769px) {
    .slider {
        height: calc(85vh);
    }
}

.button-container {
    display: flex;
    width: 15%;
    position: relative;
    z-index: 15;
    left: 2%;
    bottom: 50px;    
    justify-content: space-between;
    margin-bottom: -28px;
}
@media (max-width: 1024px) {
    .button-container {
        width: 33%;
        left: 3%;
    }
}
@media (max-width: 769px) {
    .button-container {
        width: 90%;
        left: 5%;
    }
}

.slide-buttons-container {
    z-index: 15;
    display:flex;
    flex-direction: row;
    width: 75%;
    gap: 20px;
    margin-top: auto;
    height: 4px;
}
@media (max-width: 769px) {
    .slide-buttons-container {
        width: 60%;
    }
}

.left-right-buttons-container {
    z-index: 15;
    display:flex;
    flex-direction: row;
    width: 20%;
    gap: 2px;
}

.slider-button {
    height: 100%;
    width: 33%;
    display: flex;
    align-items: flex-end;
    border-radius: 2px;
}

.slider-button a {
    flex-grow: 1;
    background: rgba(29, 42, 27, 0.3);    
    border-radius: 2px;
    position: relative;
    height: 100%;
    max-height: 4px;
}

.slider-button > a:active {
    background-color: var(--global-colour-primary);
}
.slider-button > a:hover {
    background-color: var(--global-colour-primary);
    transition: 0.3s all;
}


.left-right-button {
    height: 30px;
    width: 40px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}
.left-right-button i {
    height: 100%;
    font-size: 30px;
    color: var(--global-colour-primary);
}

.slides {
    display: flex;
    height: inherit;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
}
@media (max-width: 1024px) {
    .slides {
        overflow-x: scroll;
        scrollbar-width: none;
    }
}

@media (max-width: 1024px) {
    .slide-right {
        margin-left: 5%;
    }
}
@media (max-width: 1024px) {
    .slide-left {
        margin-right: 5%;
    }
}

.slide-holder {
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 16/16;
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.5s;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 100px;
}
@media (max-width: 1024px) {
    .slide-holder {
        aspect-ratio: 18/9;
        background-position: right;  
    }
}
@media (max-width: 769px) {
    .slide-holder {
        aspect-ratio: 9/12;
    }
}


.slide {
    height: 100%;
    width: 100%;
    max-width: 1600px;
    /*padding-right: 13%;*/
    margin-bottom: 10%;
    justify-content: end;
    display: flex;
    flex-direction: column;
    padding-left: 4%;
}
@media (max-width: 1024px) {
    .slide {
        justify-content: space-evenly;
    }
}
@media (max-width: 769px) {
    .slide {
        padding-right: 0%;
        justify-content: center;
    }
}

.slide a {
    text-decoration: underline;
    color: var(--global-colour-primary);
}

.slide-sections {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
@media (max-width: 1024px) {
    .slide-sections {
        flex-direction: column;
        justify-content: end;
        height: 100%;
    }
}

.slider>a:active {
    top: 1px;
}

.slider>a:focus {
    background: #000;
}

/* Don't need button navigation */
@supports (scroll-snap-type) {
    .slider>a {
        display: none;
    }
}

.right-bar {
    display: flex;
    height: 75%;
    justify-content: flex-end;
    flex-direction: column;
    position: absolute;
    right: 3%;
}
@media (max-width: 769px) {
    .right-bar {
        justify-content: flex-start;
        height: 85%;
        left: 7.5%;
        right: unset;
    }
}

.right-bar img {
    height: 4rem;
}
@media (max-width: 769px) {
    .right-bar img {
        height: 3rem;
    }
}

.vertical-line {
    height: 95%;
}
@media (max-width: 769px) {
    .vertical-line {
        display: none;
    }
}

.vertical-line:after {
    content: "";
    background: rgba(29, 42, 27, 0.5);
    position: absolute;
    height: 60%;
    top: 25%;
    width: 2px;
}

.carousel-title-text {
    font-size: 88px;
    color: var(--global-colour-text-light);
    line-height: 96px;
    font-weight: 600;
    margin-top: 0px;    
    text-align: left;
    margin-bottom: 0%;
    width:60%;
    height: auto;
}
@media (max-width: 1024px) {
    .carousel-title-text {
        font-size: 48px;
        line-height: 52px;
        margin-bottom: 3%;
        margin-top: 10%;
        margin-left: 30px;
        letter-spacing: -1.5px;
    }
}
@media (max-width: 769px) {
    .carousel-title-text {
        font-size: 48px;
        line-height: 52px;
        margin-top: 15vh;
        letter-spacing: -1.5px;
    }
}

.carousel-subtitle-text {
    font-size: 40px;
    font-weight: 600;
    color: var(--global-colour-primary);
    line-height: 140%;
    flex-basis: auto;
    margin-top: 10px;
    margin-left: 30px;
    margin-bottom: 10px;
    text-align: left;
    padding: 32px 20% 32px 0;
}
@media (max-width: 1024px) {
    .carousel-subtitle-text {
        font-size: 24px;
        line-height: 25px;
    }
}
@media (max-width: 769px) {
    .carousel-subtitle-text {
        padding-right: 10%;
        padding-top: 2%;
        margin-bottom: unset;
    }
}

.slide-breaker-bar {
    width: 78%;
    background-color: var(--global-colour-tertiary);
    height: 2.5px;
    margin-left: 30px;
}
@media (max-width: 1024px) {
    .slide-breaker-bar {
        margin-top: 5%;
    }
}

@media (max-width: 769px) {
    .slide-breaker-bar {
        width: 85%;
        margin-top: 0;
    }
}

.carousel-description-text {
    color: var(--global-colour-text-light);
    font-size: 18px;
    font-weight: 100;
    line-height: 140%;
    flex-basis: auto;
    margin-top: 10px;
    margin-left: 30px;
    margin-right: 10px;
    text-align: left;
    padding-right: 20%;
}
@media (max-width: 1024px) {
    .carousel-description-text {
        font-size: 16px;
        line-height: 22px;
        margin-top: 0px;
    }
}
@media (max-width: 769px) {
    .carousel-description-text {
        padding-right: 8%;
    }
}

.carousel-link-text {
    color: var(--global-colour-text-link);
    font-size: 16px;    font-weight: 600;
    flex-basis: auto;
    margin-top: 4%;
    margin-left: 30px;
    margin-right: 10px;
    text-align: left;
    padding-right: 20%;
    width: 200px;
    line-height: 240%;
}
@media (max-width: 1024px) {
    .carousel-link-text {
        margin-top: 3%;
    }
}
@media (max-width: 769px) {
    .carousel-link-text {
        margin-top: 4%;
    }
}

.carousel-link-text a {
    text-decoration: none;
    color: var(--global-colour-text-link);
}


.img-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
    width: 95%;
}

.img-spacer {
    flex-grow: 0;
    flex-shrink: 0;
}

.img-carousel {
    display: none;
    object-position: right;
    width: 30%;
}

@media (max-width: 991px) {
    .img-carousel {
        display: block;
    }
}

.selected-main {
    background-color: var(--global-colour-primary);
}