.project-grid-section {
    --project-grid-gap: 32px;
    --project-grid-border: #d9d9d9;
    --project-grid-text: #171717;
    --project-grid-muted: #666;
    --project-grid-accent: #171717;
    --project-grid-mustard: #FBEC0A;
    width: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

/* Category filters */

.project-grid-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-bottom: 48px;
    background-color: transparent;
}

.project-grid-filter {
    position: relative;
    appearance: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--project-grid-muted);
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease;
    box-shadow: none;
}

.project-grid-filter::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--project-grid-mustard);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.project-grid-filter:hover,
.project-grid-filter:focus-visible,
.project-grid-filter.is-active {
    color: var(--project-grid-text);
    background-color: #ffffff;
}

.project-grid-filter.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* AJAX loading state */

.project-grid-results {
    position: relative;
    min-height: 200px;
    transition: opacity 0.25s ease;
}

.project-grid-section.is-loading
.project-grid-results {
    opacity: 0.4;
    pointer-events: none;
}

.project-grid-section.is-loading
.project-grid-results::after {
    position: absolute;
    top: 80px;
    left: 50%;
    width: 38px;
    height: 38px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--project-grid-accent);
    border-radius: 50%;
    content: "";
    transform: translateX(-50%);
    animation: project-grid-spin 0.75s linear infinite;
}

@keyframes project-grid-spin {
    to {
        transform:
            translateX(-50%)
            rotate(360deg);
    }
}

/* Project cards */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 10px;
}

.project-grid-card {
    min-width: 0;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 15px;
}

.project-grid-image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    background: #eee;
    aspect-ratio: 15 / 15;
    border-radius: 12px;
    margin-bottom: 20px;
}

.project-grid-image div:first-child{
    height: 100%;
}

.project-read-more-icon {
    bottom: 6px;
    right: 14px;
}
.project-read-more-icon svg{
    width: 35px;
}

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

.project-grid-card:hover
.project-grid-image img {
    transform: scale(1.02);
}

.project-grid-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.project-grid-title {
    margin: 0 0 14px;
    color: var(--project-grid-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

.project-grid-title a {
    color: inherit;
    text-decoration: none!important;
    letter-spacing: 1px;
}

.project-grid-title a:hover,
.project-grid-title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ares-project-link {
    margin-left: 5px;
}
.project-grid-excerpt {
    margin-bottom: 6px;
    color: #181819;
    font-size: 14px;
    font-family: "Rajdhani", sans-serif;
    line-height: 1.5;
}

.project-grid-excerpt p {
    margin: 0;
}

.project-grid-read-more {
    display: inline-block;
    color: var(--project-grid-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none!important;
    text-underline-offset: 5px;
}

.project-grid-read-more:hover,
.project-grid-read-more:focus-visible {
    opacity: 0.65;
}

/* Pagination */

.project-grid-pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.project-grid-pagination ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-grid-pagination li {
    margin: 0;
}
.project-grid-pagination span.page-numbers,
.project-grid-pagination a.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    color: var(--project-grid-text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.project-grid-pagination
.page-numbers:focus-visible,
.project-grid-pagination
.page-numbers.current {
    border-color: var(--project-grid-accent);
    background: var(--project-grid-accent);
    color: #fff;
}

.project-grid-pagination
.page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--project-grid-muted);
}

.project-grid-empty,
.project-grid-error {
    margin: 0;
    padding: 40px 0;
    color: var(--project-grid-muted);
    text-align: center;
}

/* Tablet */

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 767px) {
    .project-grid-filters {
        gap: 12px 20px;
        margin-bottom: 32px;
    }

    .project-grid-filter {
        padding-bottom: 12px;
        font-size: 12px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-grid-pagination {
        margin-top: 40px;
    }

    .project-grid-pagination
    .page-numbers {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 10px;
    }
}