.carousel-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff !important;
    pointer-events: none;
    width: 90%;
    max-width: 800px;
    font-weight: 700;
}

.carousel-text-overlay h1 {
    font-family: 'Garamond', serif;
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    color: white !important;
}

.carousel-text-overlay p {
    font-family: 'Garamond', serif;
    font-size: 1.5em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    color: white !important;
}


.carousel-text-overlay-with-bg {
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.75) 30%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.2) 85%,
            rgba(0, 0, 0, 0) 120%);
    border-radius: 20px;
    overflow: hidden;
    padding: 1em;
}

.video-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 80vh;

}

.video-section iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


@media screen and (max-width: 768px) {
    .carousel-text-overlay h1 {
        font-size: 2.5em;
    }

    .carousel-text-overlay p {
        font-size: 1.2em;
    }

    .carousel-text-overlay span {
        font-size: 1.5em;
    }

}

@media screen and (max-width: 480px) {
    .carousel-text-overlay h1 {
        font-size: 2em;
    }

    .carousel-text-overlay p {
        font-size: 1em;
    }

    .carousel-text-overlay span {
        font-size: 1.2em;
    }
}


.h1wrapper--index {
    padding-bottom: 2vh;
    padding-bottom: 2svh;
}

.h2wrapperMain {
    width: 79%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 5vh;
    padding-bottom: 5svh;
}

.navLink {
    color: #0000FF;
    font-size: 14px;
}

.h2WhatOn {
    width: 79%;
    margin-right: auto;
    margin-left: auto;
    padding-top: 3vh;
    padding-bottom: 3vh;
    padding-top: 3svh;
    padding-bottom: 3svh;
}

.h2wrapper {
    padding-top: 3vh;
    padding-bottom: 3vh;
    padding-top: 3svh;
    padding-bottom: 3svh;
}

.h3Wrapper {
    margin-left: 3vw;
}

.tabImg {
    height: 200px;
    width: 300px;
}

.extravLogoImgWrapper {
    justify-content: center;
    display: grid;
}

.extravLogo {
    height: 45vh;
    height: 45svh;
    padding-top: 5vh;
    padding-bottom: 5vh;
    padding-top: 5svh;
    padding-bottom: 5svh;
}

.eventLinkContainer {
    max-width: 1500px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin-bottom: 3vh;
    margin-bottom: 3svh;
}

.eventCard {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid lightgray;
}

.eventCard-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.eventCard-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.eventCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.eventCard-prominent {
    grid-row: 1 / 3;
    background: white;
}

.eventCard-prominent .eventCard-content {
    color: black;
}

.eventCard-prominent .eventCard-image {
    height: 490px;
}

.eventCard-prominent h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.eventCard-prominent p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.eventCard-small h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.eventCard-small p {
    color: #666;
}

@media only screen and (max-width: 800px) {
    .eventLinkContainer {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        max-width: 700px;
    }

    .eventCard-prominent {
        grid-row: auto;
        min-height: 300px;
    }

    .eventCard-small {
        min-height: 200px;
    }

    .extravLogo {
        height: 35vh;
        height: 35svh;
        padding-top: 4vh;
        padding-bottom: 4vh;
        padding-top: 4svh;
        padding-bottom: 4svh;
    }
}

.linkWrapper {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 8px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.card-text {
    text-decoration: none !important;
}

.cardImages {
    height: 40vh;
    object-fit: cover;
    width: 100%;
    min-height: 200px;
}

#whats_on {
    scroll-margin-top: 100px;
}

#what_we_do {
    scroll-margin-top: 80px;
}

@media only screen and (max-width: 600px) {
    .h2wrapper {
        padding-top: 2vh;
        padding-bottom: 2vh;
        padding-top: 2svh;
        padding-bottom: 2svh;
    }

    .cardImages {
        height: 250px;
        min-height: 200px;
    }

    .linkWrapper {
        gap: 10px;
        padding-bottom: 15px;
    }

    #whats_on {
        scroll-margin-top: 70px;
    }

    #what_we_do {
        scroll-margin-top: 60px;
    }

    .extravLogo {
        height: 30vh;
        height: 30svh;
        padding-top: 3vh;
        padding-bottom: 3vh;
        padding-top: 3svh;
        padding-bottom: 3svh;
    }

    .eventLinkContainer {
        margin-bottom: 2vh;
        margin-bottom: 2svh;
    }

    .h2wrapperMain {
        width: 90%;
    }
}

/* Very small mobile screens */
@media only screen and (max-width: 400px) {
    .cardImages {
        height: 200px;
    }

    .linkWrapper {
        flex-direction: column;
        align-items: center;
    }

    .extravLogo {
        height: 25vh;
        height: 25svh;
    }
}

.aboutInfoWrapper {
    margin: 2vh 15svw;
    margin: 2svh 15svw;
}

@media only screen and (max-width: 800px) {
    .aboutInfoWrapper {
        margin: 2vh 10svw;
        margin: 2svh 10svw;
    }
}

@media only screen and (max-width: 600px) {
    .aboutInfoWrapper {
        margin: 2vh 5%;
        margin: 2svh 5%;
    }
}

@media only screen and (max-width: 400px) {
    .aboutInfoWrapper {
        margin: 2vh 2.5%;
        margin: 2svh 2.5%;
    }
}