.project-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 2.8125rem;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.project-filters-desktop {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.project-filters-mobile {
    display: none;
}

.project-filter {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    border-radius: 0;
    color: #666;
    white-space: nowrap;
}

.project-filter:not(:last-child)::after {
    content: "—";
    position: absolute;
    right: -5px;
    color: #121212;
}

.project-filter:hover {
    background: none;
    opacity: 1;
    color: #000;
}

.project-filter.active {
    font-weight: normal;
    background: none;
    text-decoration: underline;
}

.project-filter-select {
    display: none;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    background-color: #fff;
    cursor: pointer;
}

.project-filter-select:focus {
    outline: none;
    border-color: #000;
}

.project-grid {
    width: 100%;
    margin: 0 auto;
}

/* Isotope specific styles */
.project-grid:after {
    content: '';
    display: block;
    clear: both;
}

.project-item {
    float: left;
    width: calc((100% - 50px) / 3); /* 3 columns with 25px gutter */
    margin-bottom: 25px;
    padding: 1.5625rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

/* Adjust widths based on columns setting */
.columns-2 .project-item {
    width: calc((100% - 25px) / 2); /* 2 columns with 25px gutter */
}

.columns-3 .project-item {
    width: calc((100% - 50px) / 3); /* 3 columns with 25px gutter */
}

.columns-4 .project-item {
    width: calc((100% - 75px) / 4); /* 4 columns with 25px gutter */
}

/* Solo aplicar efectos hover a proyectos con enlace */
.project-item:has(a) {
    cursor: pointer;
}

.project-item:has(a):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-item .project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Solo aplicar zoom a imágenes en proyectos con enlace */
.project-item:has(a):hover .project-image img {
    transform: scale(1.05);
}

.project-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Eliminar estilos antiguos de enlaces de título ya que ahora toda la caja es enlace */
.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.project-title a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project-meta {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-locations {
    font-size: 0.9rem;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .project-item,
    .columns-3 .project-item,
    .columns-4 .project-item {
        width: calc((100% - 25px) / 2);
    }
}

@media (max-width: 767px) {
    .project-item,
    .columns-2 .project-item,
    .columns-3 .project-item,
    .columns-4 .project-item {
        width: 100%;
        margin-right: 0;
    }
    
    .project-filters-desktop {
        display: none;
    }
    
    .project-filters-mobile {
        display: block;
        width: 100%;
    }
    
    .project-filter-select {
        display: block;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        padding-bottom: 0;
        margin-bottom: 1.5rem;
    }
    
    .project-filter {
        width: auto;
        text-align: left;
        flex-shrink: 0;
    }
} 