.works-grid-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease
}

.works-item {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    cursor: pointer
}

.works-item:hover .works-grid-img {
    transform: scale(1.025)
}

.works-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: 16px;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px)
}

.works-item:hover .works-item-overlay {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px)
}

.works-item-overlay h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8)
}

.works-item-overlay span {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    font-family: "SF Pro Display";
    font-size: 20px;
    font-style: normal;
    font-weight: 500 !important;
    line-height: 110%
}

.tracking-widest-custom {
    color: var(--color-accent);
    font-family: 'SF Pro Display', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase
}

@media (min-width:992px) {
    .works-sticky-header {
        position: sticky;
        top: 140px;
        z-index: 10
    }
}

@media (min-width:768px) {
    .works-column-marquee {
        height: 800px;
        overflow: hidden;
        position: relative
    }

    .works-column-marquee::before,
    .works-column-marquee::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 100px;
        z-index: 5;
        pointer-events: none
    }

    .works-column-marquee::before {
        top: 0;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%)
    }

    .works-column-marquee::after {
        bottom: 0;
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%)
    }

    .works-marquee-inner {
        display: flex;
        flex-direction: column;
        gap: 16px
    }

    @keyframes scroll-up {
        0% {
            transform: translateY(0)
        }

        100% {
            transform: translateY(-50%)
        }
    }

    @keyframes scroll-down {
        0% {
            transform: translateY(-50%)
        }

        100% {
            transform: translateY(0)
        }
    }

    .scroll-up-marquee {
        animation: scroll-up 35s linear infinite
    }

    .scroll-down-marquee {
        animation: scroll-down 35s linear infinite
    }

    .works-column-marquee:hover .works-marquee-inner {
        animation-play-state: paused
    }
}

@media (max-width:767.98px) {
    .works-column-marquee {
        overflow: visible !important;
        margin-bottom: 3.5rem
    }

    .works-marquee-inner {
        display: block !important;
        width: 100% !important;
        transform: none !important;
        animation: none !important
    }

    .works-marquee-inner .works-item {
        width: 85% !important;
        margin-right: 16px !important;
        display: inline-block !important
    }

    .works-marquee-inner .works-item-duplicate {
        display: none !important
    }

    .flickity-page-dots {
        bottom: -25px !important
    }

    .flickity-page-dots .dot {
        background: #000 !important;
        opacity: 0.25;
        width: 8px;
        height: 8px;
        margin: 0 5px;
        transition: opacity 0.3s ease, background 0.3s ease
    }

    .flickity-page-dots .dot.is-selected {
        background: #dc3545 !important;
        opacity: 1 !important
    }
}

section#works-portfolio-section {
    margin-top: 100px
}