@media (max-width: 768px) {
    .references-section {
        height: 36vh;
        min-height: unset;
        padding: 8px 24px;
        overflow: hidden;
    }

    .references-title {
        display: none;
    }

    .reference-grid {
        display: flex;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scrollbar-width: none;
    }

    .grid-item {
        flex: 0 0 92%;
        min-width: 339px;
        height: 176px;
        scroll-snap-align: center;
        display: flex;
        align-self: center;
        scroll-snap-align: start;
    }

    .reference-item {
        font-size: 16px;
    }

    .project-item {
        font-size: 22px;
        white-space: wrap;
        margin: 16px;
    }

      .reference-dots {
        display: flex;
        align-self: anchor-center;
        gap: 8px;
        margin-top: 24px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border: 1px solid var(--highlight-main);
        border-radius: 50%;
        background: transparent;
        transition: all .3s ease;
        cursor: pointer;
    }

    .dot.active {
        width: 22px;
        border-radius: 999px;
        background: var(--highlight-main);
    }

        .mobile-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 0 auto 24px;
    }

    .mobile-text h3 {
        margin: 0;
        color: var(--highlight-main);
        font-size: 30px;
        font-weight: 400;
        text-align: left;
    }

    .mobile-text p {
        margin: 12px 0 0;
        color: var(--text-light);
        font-size: 16px;
        font-weight: 700;
        text-align: left;
    }

}