.crt-projects-pin-wrapper {
    overflow: hidden;
    width: 100%;
    --crt-pin-columns: 3;
}
.crt-projects-pin-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    padding: 50px 0;
}
.crt-project-card {
    width: calc((100vw - ((var(--crt-pin-columns) - 1) * var(--crt-pin-gap))) / var(--crt-pin-columns));
    height: var(--crt-pin-card-height, 500px);
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: var(--crt-pin-flex-dir, column);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    gap: var(--crt-pin-img-gap, 0px);
}
.crt-project-image {
    width: var(--crt-pin-img-width, 100%);
    height: var(--crt-pin-img-height, 60%);
    overflow: hidden;
    flex-shrink: 0;
}
.crt-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.crt-project-content {
    padding: var(--crt-pin-content-pad, 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.crt-project-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.2;
}
.crt-project-desc {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}
.crt-project-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}
/* Vertical Stack Layout Additions */
.crt-pin-layout-vertical .crt-projects-pin-container {
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 0; 
}
.crt-pin-layout-vertical .crt-project-card {
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 50px 0; /* Add margin to create space between cards when they scroll normally before pinning */
}
/* Grid Layout Additions */
.crt-pin-layout-grid .crt-projects-pin-container {
    flex-wrap: wrap; /* Turn off nowrap to permit rows */
    width: 100%; /* Override max-content logic so container fits section */
}
.crt-pin-layout-grid .crt-project-card {
    /* Safe width mapping restricted exactly to container 100%, decoupled from raw 100vw */
    width: calc((100% - ((var(--crt-pin-columns) - 1) * var(--crt-pin-gap))) / var(--crt-pin-columns));
}
/* Responsive Defaults */
@media (max-width: 768px) {
    .crt-projects-pin-container {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }
    .crt-project-card {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
}
