/* Project Carousel Block - Styled to Match Image */
.project-carousel {
    padding: 0;
    margin: 0;
}

.project-carousel-container {
    margin: 0 auto;
    padding: 0;
}

/* Swiper Layout */
.project-swiper {
    position: relative;
    padding: 0;
}

.project-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.project-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.project-client {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-end;
    text-align: right;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: white;
}

.project-caption {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    font-weight: 400;
}

/* Swiper Layout */

.swiper {
    padding: 0;
    overflow: visible;
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide .project-item {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


/* Responsive Breakpoints */
/* Tablet: 768px – 1024px - Show 3 items */
@media (max-width: 1024px) and (min-width: 768px) {
    .project-item {
        height: 280px;
    }
    
    .project-overlay {
        padding: 18px;
    }
    
    .project-client {
        font-size: 13px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .project-caption {
        font-size: 13px;
    }
}

/* Mobile: < 768px - Show swiper with 1.25 slides */
@media (max-width: 767px) {
    .project-carousel {
        padding: 0;
    }
    
    .project-carousel-container {
        padding: 0;
    }
    
    .swiper-slide .project-item {
        height: 250px;
    }
    
    .project-overlay {
        padding: 15px;
    }
    
    .project-client {
        font-size: 12px;
    }
    
    .project-title {
        font-size: 15px;
    }
    
    .project-caption {
        font-size: 12px;
    }
}

/* Ensure proper grid item styling */
.project-grid > * {
    margin: 0;
    padding: 0;
}

/* Remove any default margins/padding */
.project-carousel * {
    box-sizing: border-box;
}