a, a:visited {
    color: #666;
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}

::selection {
    background-color: rgba(0, 13, 255, 0.15);
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: white;
    color: #0051ff;
    font-weight: 300;
    line-height: 1.4;
}

.container {
    max-width: auto;
    margin: 0 auto;
    padding: 60px 10px 60px 40px;
}

#time-right-now {
    color: #0051ff;
    text-align: right;
}

.title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #9c9c9c;
}

.work {
    margin-bottom: 80px;
}

.work-name {
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-bottom: 20px;
}

#work-year {
    color: #999;
    font-size: 13px;
    margin-left: 8px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    cursor: grab;
    height: 450px;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    height: 90%;
    transition: transform 1.3s ease;
    gap: 40px;
    align-items: flex-start;
}

.carousel-slide {
    flex: 0 0 auto;
    position: relative;
    height: 100%;
}

.carousel-slide img, .carousel-slide video, .carousel-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border: none;
    display: block;
}

.carousel-slide iframe {
    width: 750px;
    height: 100%;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 24px;
    background: #000;
}

.carousel-slide p {
    width: 100% !important;
    max-width: 450px;
    min-width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    background: rgba(248, 249, 250, 0);
}

.work[data-project="anonymous"] .carousel-slide img,
.work[data-project="brat"] .carousel-slide img,
.work[data-project="reach"] .carousel-slide video {
    border-radius: 12px;
}

.work[data-project="anonymous"] .carousel-slide img[src*="firstdayshow"] {
    border-radius: 0px !important;
}

.work[data-project="untitled"] .carousel-slide video{
    box-shadow: none !important;
}

.carousel-slide:not(.center) img,
.carousel-slide:not(.center) video,
.carousel-slide:not(.center) p,
.carousel-slide:not(.center) iframe {
    opacity: 0.6;
}

.carousel-slide:not(.center):hover img,
.carousel-slide:not(.center):hover video,
.carousel-slide:not(.center):hover p,
.carousel-slide:not(.center):hover iframe {
    opacity: 0.8;
}

.nav-zone {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-zone:hover {
    opacity: 1;
}

.nav-zone.left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

.nav-zone.right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
}

.nav-arrow {
    font-size: 20px;
    color: #0051ff;
    font-weight: bold;
}

.single-item .carousel-container {
    height: 450px;
}

.single-item .carousel-track {
    justify-content: flex-end;
}

.single-item .carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.single-item .carousel-slide img, 
.single-item .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.single-item .carousel-slide iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.single-item .nav-zone {
    display: none;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.fullscreen img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.fullscreen.active {
    display: flex;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 15px 40px 10px;
    }
    #time-right-now {
        opacity: 0;
    }
    
    .title {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .work {
        margin-bottom: 60px;
    }

    .carousel-container {
        height: 300px;
        cursor: grab;
    }

    .carousel-track {
        gap: 20px;
    }

    .nav-zone {
        width: 60px;
    }

    .carousel-slide img,
    .carousel-slide video {
        max-width: 280px;
        width: auto;
        height: auto;
        max-height: 580px;
        object-fit: contain;
    }

    .carousel-slide p {
        max-width: 280px;
        min-width: 180px;
        font-size: 12px;
        padding: 15px;
    }

    .carousel-slide iframe {
        width: 300px;
        max-width: 90vw;
        height: 200px;
    }

    .home-link {
        margin-top: 60px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {

    #time-right-now {
        opacity: 0;
    }

    .carousel-slide img,
    .carousel-slide video {
        max-width: 320px;
        max-height: 220px;
    }

    .carousel-slide p {
        max-width: 250px;
        min-width: 160px;
        font-size: 11px;
        padding: 12px;
    }

    .carousel-slide iframe {
        width: 250px;
        max-width: 85vw;
        height: 180px;
    }
}