.project-list__item {

    /* transform: scale(0.35); */
    /* opacity: 0.5; */

    position: relative;
    /* aspect-ratio: 1 / 1; */

    transition: transform 0.5s var(--ease-OutQuint), opacity 0.5s var(--ease-OutQuint), margin-top 0.5s var(--ease-OutQuint);
    margin: 0;
    padding 0;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    /* Adjust color and thickness as needed */
    /* border: 1px solid #ccc; */
    /* Optional: rounded corners */
    border-radius: 0px;
    /* Ensure border is included in sizing */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .project-list__item {
        /* transform: scale(0.35); */
        /* opacity: 0.5; */

        position: relative;
        /* aspect-ratio: 1 / 1; */

        transition: transform 0.5s var(--ease-OutQuint), opacity 0.5s var(--ease-OutQuint), margin-top 0.5s var(--ease-OutQuint);
        margin-top: 0;
        width: 100%;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        /* Adjust color and thickness as needed */
        /* border: 1px solid #ccc; */
        /* Optional: rounded corners */
        border-radius: 0px;
        /* Ensure border is included in sizing */
        box-sizing: border-box;
    }
}

.project-list__image[alt] {

    font-weight: 400;
    font-size: var(--font-size-small);
}



.project-list__tags .project-tag {
    display: inline-block;
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 2px 10px;
    font-weight: 400;
    font-size: var(--font-size-tiny);
    margin: 2px 4px 2px 0;
    border: 1px solid #ddd;
}

@media (min-width: 768px) {
    .project-list__tags .project-tag {
        display: inline-block;
        background: #fff;
        color: #000;
        border-radius: 12px;
        padding: 2px 10px;
        font-weight: 400;
        font-size: var(--font-size-small);
        margin: 2px 4px 2px 0;
        border: 1px solid #ddd;
    }

    .project-list__divider {
        border: none;
        border-top: 1px solid #ccc;
        /* margin: 1.5em 0 0 0; */
        width: 100%;
        align-self: center;
        margin-top: 10px !important;
    }
}

.project-list__item.in-view {
    transform: scale(1);
    opacity: 1;
}

.project-list__item:hover {

    /* transform: scale(1.05); */
    /* Optional: add a slight shadow on hover */
    opacity: 1;

    /* border-color: red; */

}

.project-list__link {
    display: block;

    text-decoration: none;
    color: inherit;
}

.project-list__divider {
    border: none;
    border-top: 1px solid #ccc;
    /* margin: 1.5em 0 0 0; */
    width: 100%;
    align-self: center;
    margin-top: auto;
}

.project-list__item:hover .project-list__image {
    opacity: 1;
    transform: translateY(-10px);
    box-shadow: 0 10px 1px rgba(0, 0, 0, 0.05);

}

.project-list__item:hover .project-list__title {
    opacity: 1;
    transform: translateY(-10px);
}

.project-list__item:hover .project-list__divider {

    border-top: 2px solid black;
    ;
}

.project-list__image {

    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    transition: all 0.3s var(--ease-OutQuint);
    box-shadow: 0 10px 3px rgba(0, 0, 0, 0.0);


    /* max-height: 200px; */
    /* Optional: limit image height */
    object-fit: cover;
    display: block;
    /* flex: 1 1 auto; */
    /* Optional: crop images nicely */
    /* border-radius: 8px 8px 0 0; Optional: match item corners */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.project-list__title {
    opacity: 0;
    display: flex;
    left: 0;
    bottom: 0;
    width: 100%;
    /* height: 25%; */
    color: #fff;
    /* background: white; */
    color: var(--font-color);
    /* Optional: dark overlay for readability */
    text-align: left;

    padding-top: 0.3rem;
    padding-left: 0.5rem;
    ;
    /* box-sizing: border-box; */
    z-index: 2;
    transition: all 0.6s var(--ease-OutQuint);
}

.project-list__item.in-view .project-list__title {
    opacity: 1;
    transform: translateY(0px);
    /* Optional: fade in effect */
}

.project-list__header h3 {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    /* Or use margin: 0.2em 0; for both */
    font-size: var(--font-size-default);
    /* Optional: adjust size */
    font-weight: 500;
    /* Optional: adjust weight */
}

.project-list__header .client {

    font-weight: 600;
}

.project-list__item.fade-in {
    animation: fade-in var(--settle-duration) ease-in-out both;

}

.project-list__item.settle {
    animation: settle var(--settle-duration) var(--ease-OutQuint) both;
}