/* Explain: Styles for the image carousel component. */
/* Work photo carousel */
.work-carousel {
    background: #ffffff;
}

.work-swiper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3.25rem;
}

.work-slide {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-alt);
}

@media (min-width: 768px) {
    .work-slide {
        aspect-ratio: 16 / 10;
    }
}

.work-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-slide__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 2.6rem 1.4rem 1.25rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(20, 24, 28, 0) 0%, rgba(20, 24, 28, 0.9) 100%);
}

.work-slide__tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.work-slide__text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.work-swiper .swiper-button-prev,
.work-swiper .swiper-button-next {
    width: 46px;
    height: 46px;
    margin-top: 0;
    top: 42%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-color);
    box-shadow: var(--shadow);
    --swiper-navigation-size: 18px;
}

.work-swiper .swiper-button-prev:hover,
.work-swiper .swiper-button-next:hover {
    background: #ffffff;
    color: var(--accent-color);
}

.work-swiper .swiper-pagination {
    bottom: 0.35rem;
}

.work-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.35;
}

.work-swiper .swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
}

@media (max-width: 639px) {
    .work-swiper .swiper-button-prev,
    .work-swiper .swiper-button-next {
        display: none;
    }
}