@keyframes tonext {
    75% {
        left: 0;
    }
    95% {
        left: 100%;
    }
    98% {
        left: 100%;
    }
    99% {
        left: 0;
    }
}

@keyframes tostart {
    75% {
        left: 0;
    }
    95% {
        left: -300%;
    }
    98% {
        left: -300%;
    }
    99% {
        left: 0;
    }
}

@keyframes snap {
    96% {
        scroll-snap-align: center;
    }
    97% {
        scroll-snap-align: none;
    }
    99% {
        scroll-snap-align: none;
    }
    100% {
        scroll-snap-align: center;
    }
}

/*body {*/
/*    margin: 0 auto;*/
/*    padding: 1rem;*/
/*    font-family: 'Lato', sans-serif;*/
/*}*/

* {
    box-sizing: border-box;
    scrollbar-color: transparent transparent; /* thumb and track color */
    scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar {
    width: 0;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
}

* {
    -ms-overflow-style: none;
}

ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.projectslide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr .5fr;
    margin: 3rem auto;
    gap: 1rem;
}

.projectvdeo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 3rem auto;
    gap: 1rem;
    row-gap: 3rem;
}

.p1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*grid-template-rows: 1fr .5fr;*/
    margin: 3rem auto;
    gap: 1rem;
    flex-direction: column;
}

.projectnav {
    margin-top: 2rem;
}

.pj1 {
    grid-column: 1 / 2;
    grid-row: 1/ 2;
}

.pj2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.pjv1 {
    grid-template-rows: 100%;
    grid-column: 1 / 2;
    margin: 0 auto;
}

.c1 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    line-height:27px;
}

.pjc1 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    line-height:27px;
}

.carousel {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto 0 auto;
    filter: drop-shadow(0 0 10px #0003);
    perspective: 100px;
}

.carousel__viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: scroll;
    counter-reset: item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    background-color: #f99;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    counter-increment: item;
}

.carousel__slide:nth-child(even) {
    background-color: #99f;
}


.carousel__snapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.carousel__text {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    margin-bottom: 5%;
    /*border-radius: 0.5rem;*/
    backdrop-filter: blur(5px);
    max-width: 100%;
}

.carousel__text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel__text p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


@media (prefers-reduced-motion: reduce) {
    .carousel__snapper {
        animation-name: none;
    }
}

.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
    animation-name: none;
}

.carousel__navigation {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    /*background-color: #f9f9f9;*/
    margin-top: 0.25rem;
}

.carousel__navigation-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel__navigation-item {
    display: inline-block;
}

.carousel__navigation-button {
    display: block;
    width: 80px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
}

.carousel__navigation-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel__navigation-button:hover {
    /*border-color: #333;*/
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel__navigation-button:focus {
    border-color: #007bff;
    outline: none;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
    display: none; /* Hide arrow buttons */
}