@media (max-width: 767px) {

    body.home {
        height: auto;
        overflow: visible;
    }

    body.home .content {

        grid-template-columns: 1fr;

        height: auto;

        overflow: visible;
    }

    .main-section--1,
    .main-section--2,
    .main-section--3 {

        overflow: visible;
    }

    .overlay-section {
        background-color: var(--base1);
    }

    .first-view--2 {
        flex-direction: column;
    }

    .first-view--img--img {
        height: 50vh;
    }

    .top-view--img {
        opacity: 1;
    }

    .sidebar-menu__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem 1rem;
        overflow: hidden;
        align-items: center;
        justify-content: center;
    }

    .sidebar-menu__item,
    .sidebar-menu__list .menu-item {
        margin-bottom: 0;
    }

    .sidebar-menu__list .menu-item>a {
        white-space: nowrap;
    }

    .main-section--3 {
        position: sticky;
        bottom: 0;
        left: 0;
        height: 80px;
    }

    .side--logo {
        margin-top: 2rem;
    }

    .side--img {
        opacity: 1;
    }

    .side--img--img {
        max-width: 100%
    }


    .sidebar-menu__inner {

        padding: 0;
    }

    .first-view--text {
        text-align: start;
        margin-top: 1.5rem;
        margin-left: 1rem;
    }

    .first-view--logo {
        margin-top: 3rem;
        margin-left: 1rem;
    }

    .topsection img {
        height: 50vh;
    }

    .sidemenu {
        position: relative;
        top: 0;
        left: 0;
        font-size: small;
    }

    .scrollbar {
        line-height: 16px;
        right: 0.5rem;
        bottom: 5rem;
        writing-mode: vertical-rl;
    }

    .scrollbar::before {
        height: 36px;
        margin-left: 0;
    }

    .portfolio__title {
        font-size: large;
    }

    .portfolio-archive {
        grid-template-columns: 1fr;
    }

    .portfolio-header__title {
        font-size: 2rem;
    }

    .portfolio-archive__items {
        grid-template-columns: 1fr;
    }

    .portfolio-filter__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .portfolio-filter__link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .portfolio-template-default .sidebar-menu__item a,
    .portfolio-template-default .sidebar-menu__list .menu-item>a,
    .archive .sidebar-menu__item a,
    .archive .sidebar-menu__list .menu-item>a {
        font-size: small;
    }

    .back_section .btn {
        padding: 0.5rem 2rem;
    }

    .portfolio-filters-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
    }

    .portfolio-filters-wrapper.is-open {
        max-height: 2500px;
        opacity: 1;
        margin-top: 1rem;
    }

    .portfolio-filters-switch-mb {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 0 1rem;
        position: relative;
        cursor: pointer;
    }

    .portfolio-filters-switch-mb::after {
        content: "▾";
        margin-left: 0.5rem;
        transition: transform 0.2s ease;
    }

    .portfolio-filters-switch-mb.is-open::after {
        transform: rotate(180deg);
    }

}