/* Archive grid layout */
.cc-project-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.cc-project-archive-item {
    width: 100%;
}
/* Project Archive Filter Buttons */
.cc-project-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.cc-project-archive-filters .cc-archive-filter-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    color: #142334;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cc-project-archive-filters .cc-archive-filter-button:hover {
    background: #f9f9f9;
}
.cc-project-archive-filters .cc-archive-filter-button.active {
    background: #142334;
    color: #fff;
    border-color: #142334;
}
/* Hide slider controls on desktop */
@media (min-width: 768px) {
    .cc-project-slider-related .cc-slider-controls {
        display: none;
    }
}
/* Mobile: convert related projects grid to flex for slider */
@media (max-width: 767px) {
    .cc-related-projects-grid {
        display: flex !important;
    }
    .cc-project-archive-item.swiper-slide {
        width: auto !important;
    }
}
/* Project Slider Styles */
.cc-project-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.cc-project-slider {
    display: block;
}
.cc-project-slider .cc-slide {
    padding: 10px;
    box-sizing: border-box;
}
.cc-slide-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cc-slide-image-wrapper {
    position: relative;
    background-color: #f9f9f9;
}
.cc-slide-image-wrapper img {
    width: 100%;
    height: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Prevent users from dragging the image */
    -webkit-user-drag: none;
    user-drag: none;
}
.cc-slide-date-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.cc-slide-content {
    padding: 15px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.cc-slide-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.cc-slide-thumbnails {
    display: flex;
    gap: 5px;
    margin-top: auto;
}
.cc-slide-thumbnails img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}
.cc-slide-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 3px;
    font-size: 14px;
}
.cc-slider-pagination {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}
/* Controls below slider */
.cc-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    margin: auto;
    max-width: fit-content;
    padding: 0.5rem 1rem;
}
.cc-slider-controls .cc-slider-pagination {
    margin: 0;
    font-weight: bold;
    color: #142334;
}
.cc-slider-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #707b86;
    padding: 4px;
    align-items: center;
    display: flex
;
}
.cc-slider-button:disabled {
    opacity: 0.4;
    cursor: default;
}
/* Ensure title is single-line with ellipsis as fallback */
.cc-slide-content h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make entire slide card clickable */
.cc-slide-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Archive grid layout */
.cc-project-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.cc-project-archive-item {
    width: 100%;
}