:root {
    --events-card-shift: 0px;
    --events-sidenav-width: 550px;
}


.event_title {
    font-size: 4rem;
    text-align: center;
    margin-top: 2rem;
}

.events {
    gap: 4rem;
}

.card {
    justify-self: center;
    padding: 1rem;
    position: relative;
    cursor: pointer;
    justify-content: center;
    width: min(45rem, calc(100vw - 2rem));
    height: min-content;
    border-radius: 5px;
    background-color: white;
    transition: transform 0.3s ease, left 0.3s ease;
    z-index: 0;
    border: 3px solid #333;
    margin: 75px 1rem;
    left: 0;
}

body.events-nav-open .card {
    left: var(--events-card-shift);
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.card_title {
    text-align: left;
    color: black;
}

.card p {
    text-align: left;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: black;
    padding: 0;
    margin: 0;
}

.wrapper_card {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 1;
}

.year {
    width: min-content;
    border-radius: 20px;
    white-space: nowrap;
    padding: 8px;
    background-color: #333;
}

.year p {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    color: white;
    font-weight: bolder;
}

.card_img {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card_img img {
    height: 15rem;
    width: 15rem;
    border-radius: 15px;
    object-fit: cover;
    overflow: hidden;
}

.wrapper1 {
    width: 70%;
}

.events {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event_title {
    font-size: 4rem;
    text-align: center;
	margin-top:100px;
}

.sidenav {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    width: min(var(--events-sidenav-width), 92vw);
    position: fixed;
    z-index: 10001;
    top: 0;
    bottom: 0;
    left: -100%;
    background-size: 100% 100%;
    background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
    background-image: linear-gradient(to top right, var(--clr5) -90%, white);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 60px 0 0;
    box-sizing: border-box;
    transition: left 0.3s ease;
    text-align: center;
    border-right: 2px solid var(--clr5);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.events-nav-open {
    overflow:auto ;
}

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

.sidenav.open {
    left: 0;
}


.sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    text-align: left;
    color: #333;
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 100vh;
    background-color: var(--clr4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;

}


.closebtn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #000;
    display: block;
    transition: 0.3s;
}

.closebtn:hover {
    opacity: 0.4;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    z-index: 100;
}

.sidenav p {
    color: #333;
    font-size: 1rem;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.img {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 1rem;
}

.img img {
    border-radius: 5px;
    width: 100%;
    height: auto;
    display: block;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    width: 100%;
}

.text {
    padding: 1rem;
}



/* Slideshow container */
.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

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

.next-priv-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

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

/* On hover, add a black background color with a little bit see-through */


/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@media (max-width: 480px) {
    :root {
        --events-sidenav-width: 100vw;
    }

    .projects_title {
        font-size: 1.2rem;
    }


    .card {
        width: min(21rem, calc(100vw - 1.5rem));
        margin-bottom: 100px;
    }

    .wrapper_card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2em;
    }

    .card_title {
        text-align: left;
        color: var(--clr6);
        display: -webkit-box;
        /* -webkit-line-clamp: 2; */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text {
        text-align: left;
        color: var(--clr6);
        display: -webkit-box;
        /* -webkit-line-clamp: 8; */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidenav {
        width: 100vw;
        height: 100dvh;
    	padding: 15px;
        translate: 0 0;
        padding-top: 56px;
        border-right: none;
    }

    body.events-nav-open .card {
        left: 0;
    }

}

@media (max-width: 900px) {
    :root {
        --events-sidenav-width: 70vw;
    }

    body.events-nav-open .card {
        left: 0;
    }
}

/*
@media (max-width: 450px) {
    .card {
        display: flex;
        width: 19rem;
        margin: 0;
    }


}

@media (max-width: 400px) {
    .card {
        width: 17rem;
        margin: 0;
        height: min-content;
    }
}

@media (max-width: 350px) {
    .card {
        width: 15rem;
        margin: 0;
        height: min-content;
    }
}

@media (max-width: 320px) {
    .card {
        width: 13rem;
        height: min-content;
        margin: 0;
    }
}*/

.month-divider-title {
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #333; /* Use your theme color */
	justify-self:center;
}
.month-divider-line {
    border: none;
    border-top: 2px solid #ccc;
    margin-bottom: 30px;
}