.actIMG {
    display: block;
}

.actMobile {
    display: none;
}
.title {
    width: 100%;
    position: absolute;
    font-family: "Poppins", sans-serif;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: right;
    padding: 3rem 5rem 3rem 3rem;
    color: var(--light-color);
    /*text-shadow: 0.2rem 0.2rem 0.5rem rgba(51, 51, 51, 0.48);*/

    & h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
}

/*=========================START CARD CAROUSEL=========================*/

.cardCarouselMother {
    margin: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.wrapper {
    max-width: 1100px;
    width: 100%;
    position: relative;

}

.wrapper i {
    z-index: 10;
    display: flex;
    height: 50px;
    width: 50px;
    background: var(--tertiary-color);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);

    img {
        object-fit: contain;
    }
}

.wrapper i:first-child {
    left: -22px;

}

.wrapper i:last-child {
    right: -22px;

}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    height: 20rem;
    list-style: none;
    background: #0e436b;
    border-radius: 1rem;
    display: flex;
    cursor: pointer;
    width: 18rem;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}


.card img {
    width: 18rem;
    height: 21rem;
    object-fit: cover;
    overflow: hidden;
}

.cardCaption {
    position: relative;
    width: 18rem;
    height: 21rem;
    .cardCaptionBackground {
        width: 18rem;
        height: 21rem;
        position: absolute;
        background-image: linear-gradient(60deg, rgba(9, 27,55,1), rgba(9, 27,55,0.5), rgba(9, 27,55,0.3));

    }
    h2, h3 {
        color: var(--light-color);
        font-family: "Poppins", sans-serif;
        position: absolute;
        left: 1.5rem;
        bottom: 1.5rem;
        transition: ease 0.3s;
    }

    h2 {
        line-height: 1.7rem;
        padding-bottom: 0.2rem;
        bottom: 2.8rem;

    }

    h3 {
        font-weight: 400;
    }

    h3:hover {
        border-left: solid 5px var(--secondary-color);
        padding-left: 3px;
    }
}



@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);

    }

    .card {
        scale: 85%;
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;

    }
}

/*=========================END CARD CAROUSEL=========================*/
.discover {
    background: var(--tertiary-color);
    padding: 5rem;
    font-family: "Poppins", sans-serif;
    color: var(--dark-color);
    & h1 {
        font-size: 5rem;
        line-height: 4rem;
    }

    & h2 {
        font-size: 1.2rem;
        width: 80%;
        font-weight: 600;
        padding-top: 3rem;
    }
}

.activitiesContainer {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activityCaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    width: 50vw;
    font-family: "Poppins", sans-serif;
    color: var(--primary-color);
    & h1 {
        font-size: 4rem;
        line-height: 3.5rem;
        padding-bottom: 1rem;
    }

    & h2 {
        font-weight: 500;
        font-size: 1rem;
    }
}

.activity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 3rem;
    flex-direction: row;
}

.activity.normal {
    flex-direction: row;
}

.activity.reverse {
    flex-direction: row-reverse;
}

.activityCaption {
    flex: 1;
    padding: 20px;
    max-width: 500px;
}

.slideshow-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.join {
    padding: 5rem;
    text-align: center;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    color: var(--primary-color);
}


/*=====================SLIDESHOWS=======================*/
.mySlides1, .mySlides2 {display: none}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
    border-radius: 1rem;
    width: 100vh;
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin: auto;

    img {
        height: 120%;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a grey background color */
.prev:hover, .next:hover {
    background-color: #f1f1f1;
    color: black;
}
/*=====================SLIDESHOWS=======================*/




/*====================START MEDIA QUERY===============*/
@media (max-width: 600px) {

    .actIMG {
        display: none;
    }

    .actMobile {
        display: block;
    }

    .title {
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        & h1 {
            font-size: 2rem;
            line-height: 2rem;
            overflow: hidden;
        }
    }

    .cardCarouselMother {
        margin: 5rem 2rem;
        overflow-y: hidden;

    }

    .cardCaption {
        a, h2, h3{
            overflow: hidden;
        }
    }
    .card img {
        width: 18rem;
        height: 21rem;
        object-fit: cover;
        overflow: hidden;
    }

    .cardCarousel {
        margin: 0 1rem;
    }
    .eventCard {
        width: 15rem;
    }

    .card {
        position: relative;
        .cardCaption {
            z-index: 5;
            position: absolute;
        }

        .img {

        }
    }

    .title {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 3rem;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        & h1 {
            font-size: 2.5rem;
            line-height: 2.3rem;
        }
    }

    .discover {
        padding: 5rem 3rem;

        h1 {
            overflow: hidden;
            font-size: 3rem;
            line-height: 2.6rem;
        }

        h2 {
            width: 100%;
            font-size: 1rem;
        }

    }

    .activitiesContainer {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .activity {
        display: grid !important;
        flex-direction: column;
        margin: 1.5rem;
    }

    .activityCaption {
        overflow: hidden;
        padding: 0;
        width: 100%;
        margin-bottom: 1rem;
        margin-top: 1rem;
        h1 {
            font-size: 2rem;
            line-height: 2rem;
        }
    }

    .slideshow-container {
        width: 100% ;
    }

}

/*====================END MEDIA QUERY=================*/