.container-projects-list-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100vw;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    height: 410px;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: calc(50vw - 50% + 5px);
    padding-right: calc(50vw - 50% + 5px);
}

.container-projects-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 380px);
    gap: 20px;
    justify-content: center;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 5px;
    padding-bottom: 10px;
}

.projects-item-carousel,
.projects-item-grid {
    display: block;
    position: relative;
    width: 380px;
    min-width: 380px;
    height: 380px;
    min-height: 380px;
    overflow: hidden;
    background-color: var(--quaternary-contrast-color);
    padding: 25px 23px;
    border-radius: var(--panel-radius);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.projects-item-grid {
    width: 380px;
    min-width: 380px;
    height: 350px;
    min-height: 350px;
    padding: 22px 20px;
}

.projects-item-carousel h3,
.projects-item-carousel p,
.projects-item-carousel a,
.projects-item-carousel span,
.projects-item-grid h3,
.projects-item-grid p,
.projects-item-grid a,
.projects-item-grid span {
    margin: 0;
}

/* default pseudo-element (hidden) */
.projects-item-carousel::before,
.projects-item-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background: #4A90E2;
    /* blue color */
    opacity: 0;
    /* start invisible */
    transition: opacity 220ms ease, transform 220ms ease;
    transform: scale(0.98);
    /* subtle scale so reveal is smooth */
    z-index: 0;
    /* behind the visible content */
    pointer-events: none;
    /* allow clicks to pass through */
    user-select: none;
    border-radius: var(--panel-radius);
}

/* bring overlay in on hover or keyboard focus */
.projects-item-carousel:hover::before,
.projects-item-carousel:focus::before,
.projects-item-grid:hover::before,
.projects-item-grid:focus::before {
    opacity: 0.75;
    /* adjust to taste */
    transform: scale(1);
}

.projects-item-carousel:hover,
.projects-item-carousel:focus,
.projects-item-grid:hover,
.projects-item-grid:focus {
    color: var(--primary-text-color);
}

.projects-item-carousel>*,
.projects-item-grid>* {
    position: relative;
    z-index: 1;
}

.projects-item-carousel .item-header,
.projects-item-grid .item-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects-item-carousel .item-header img {
    height: 40px;
    width: auto;
}

.projects-item-grid .item-header img {
    height: 35px;
    width: auto;
}

.projects-item-carousel .item-header-text,
.projects-item-grid .item-header-text {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
}

.projects-item-carousel h3,
.projects-item-grid h3 {
    font-size: 1.1rem;
    color: var(--primary-text-color);
    font-weight: 450;
}

.projects-item-carousel .short-description {
    font-size: 0.90rem;
    font-weight: 200;
    opacity: 0.90;
}

.projects-item-grid .short-description {
    font-size: 0.85rem;
    font-weight: 200;
    opacity: 0.90;
}

.projects-item-carousel .item-body {
    margin-top: 15px;
    overflow: hidden;
}

.projects-item-grid .item-body {
    margin-top: 7.5px;
    overflow: hidden;
}

.projects-item-carousel .long-description {
    color: var(--secondary-text-color);
    font-size: 0.90rem;
    font-weight: 250;
    opacity: 0.85;
}

.projects-item-grid .long-description {
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    font-weight: 200;
    opacity: 0.85;
}

.projects-item-carousel .item-footer,
.projects-item-grid .item-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
}

.projects-item-grid .item-footer {
    gap: 6px;
    left: 20px;
    bottom: 22px;
    right: 20px;
}

.projects-item-carousel .list-of-tags,
.projects-item-grid .list-of-tags {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 1px;
}

.projects-item-carousel .list-of-tags .tag,
.projects-item-grid .list-of-tags .tag {
    color: var(--primary-text-color);
    font-size: 0.85rem;
    font-weight: 100;
    opacity: 0.7;
}

.projects-item-grid .list-of-tags .tag {
    font-size: 0.75rem;
}

.projects-item-carousel .list-of-tags .dot,
.projects-item-grid .list-of-tags .dot {
    width: 3px;
    height: 3px;
    background-color: var(--primary-text-color);
    border-radius: 50%;
    opacity: 0.6;
    display: inline-block;
    margin-top: 8px;
}

.projects-item-grid .list-of-tags .dot {
    width: 2px;
    height: 2px;
    margin-top: 7px;
}

.projects-item-carousel .list-of-technologies,
.projects-item-grid .list-of-technologies {
    display: flex;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 5px;
}

.projects-item-grid .list-of-technologies {
    column-gap: 5px;
    row-gap: 4px;
}

.projects-item-carousel .list-of-technologies .tag,
.projects-item-grid .list-of-technologies .tag {
    background-color: rgba(255, 255, 255, 0.27);
    color: var(--primary-text-color);
    font-size: 0.75rem;
    font-weight: 100;
    opacity: 0.9;
    padding: 4px 8px;
    border-radius: 12px;
}

.projects-item-grid .list-of-technologies .tag {
    font-size: 0.70rem;
    padding: 3.5px 7.5px;
}