/* Projects slider widget styles */
.projects-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.projects-slider .splide__track {
    overflow: hidden;
}

.project-slide {
    aspect-ratio: 4 / 5;
    background: var(--light-gray);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width:500px) {
    .project-slide {
        height: auto;
        /* Required for aspect-ratio to compute height */
        aspect-ratio: 9 / 9;
    }
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 6px;
    flex-direction: row;
}

.projects-slider-wrapper {
    overflow: hidden;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-gray);
    opacity: 0.5;
    transition: var(--transition);
    padding: 0;
}

.bg-off-white .slider-dot {
    background: black;
}

.slider-dot.active {
    opacity: 1;
    width: 25px;
    border-radius: 20px;
}

.projects-cta {
    text-align: center;
    margin-top: 2rem;
}