/* ================= GRID ================= */
.projects-list {
    gap: 30px;
    margin: 40px 30px;
    columns: 650px; /* Dimensione delle immagini */
}

.project-item {
    position: relative;
    width: 100%;
    margin: 0px auto;
    margin-bottom: 22px;
    transition: transform 0.2s ease-in-out;
}

    .project-item:hover {
        transform: scale(1.015);
    }

    .project-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 5px;
        transition: filter 0.3s ease;
        filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
    }

        .project-item img:hover {
            filter: drop-shadow(1px 1px 8px rgba(0, 0, 0, 0.85));
        }

.project-item-title {
    position: absolute;
    z-index: 999;
    margin: 6px;
    padding: 4px;
    padding-right: 8px;
    padding-bottom: 0px;
    display: block;
    /* background-color: rgba(0, 0, 0, 0.4); */
    /* border-radius: 8px; */
}

    .project-item-title h3 {
        color: white;
        margin-top: 4px;
        margin-left: 6px;
        margin-bottom: 0px;
        padding-left: 6px;
        border-left: 5px solid var(--title-color);
        /* border-bottom: 3px solid var(--title-color); */
        /* background-color: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        padding: 5px 9px; */
        /* background: linear-gradient(to top, var(--title-color), #1bf5db); */
	    /* background-clip: text; */
	    /* color: transparent; */
        /* text-shadow: 1.6px 1.3px rgba(0, 0, 0, 0.3); */
    }

    .project-item-title p {
        margin-top: 0px;
        padding-left: 6px;
        border-left: 5px solid var(--title-color);
    }

.gradient-overlay {
    position: relative;
    display: inline-block;
}

    .gradient-overlay img {
        display: block;
        width: 100%;
        height: auto;
    }

    .gradient-overlay::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 30%; /* % dell'immagine coperta dalla sfumatura */
        border-radius: 5px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
        pointer-events: none; /* Ignora eventi di mouse */
    }

.description {
    font-size: 0.95em;
    margin: 5px 6px;
    color: var(--text-dark);
}

@media (max-width: 1400px) {
    .projects-list {
        columns: 460px; /* Dimensione delle immagini */
    }
}

@media (max-width: 768px) {
    .projects-list {
        gap: 15px;
        margin: 20px 15px;
    }

    .project-item {
        margin-bottom: 8px;
    }
}
