/* PROJECT 2 — mobile alignment + single Next Project line */

.project2-image {
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    float: none !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
}

@media (max-width: 756px) {
    .project2-wrapper {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .project2-wrapper > div.side {
        position: relative !important;
        z-index: 3000 !important;
        width: 350px !important;
        max-width: calc(100vw - 4em) !important;
        box-sizing: border-box !important;
        padding-left: 2.5em !important;
        padding-right: 2.5em !important;
        margin: 5.5em auto 0 auto !important;
        float: none !important;
        overflow: visible !important;
    }

    .project2-wrapper > div.main {
        position: relative !important;
        z-index: 1 !important;
        width: 350px !important;
        max-width: calc(100vw - 4em) !important;
        box-sizing: border-box !important;
        padding-left: 2.5em !important;
        padding-right: 2.5em !important;
        padding-top: 0 !important;
        margin: 0 auto !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
    }

    .project2-wrapper > div.main h3,
    .project2-wrapper > div.main h4,
    .project2-wrapper > div.main footer,
    .project2-wrapper > div.main .project2-image {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* NEXT PROJECT — exactly one 1px line; the HTML ::before is disabled */
.project-next.c1 {
    width: 100% !important;
    max-width: 800px !important;
    box-sizing: border-box !important;
    margin: 5rem 0 2rem !important;
    border-top: 1px solid #000000 !important;
}

.project-next.c1::before {
    display: none !important;
    content: none !important;
}

.project-next.c1 a {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0;
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.project-next.c1 span {
    font-size: 11px;
    opacity: 0.65;
}

.project-next.c1 strong {
    font-size: 15px;
    font-weight: normal;
    flex: 1;
}

.project-next.c1 b {
    font-size: 22px;
    font-weight: normal;
    color: #000000 !important;
    transition: transform 0.2s;
}

.project-next.c1 a:hover b {
    color: #000000 !important;
    transform: translateX(6px);
}

@media (max-width: 756px) {
    .project-next.c1 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 4rem !important;
    }
}
