.mobile-nav-footer, .mobile-menu-toggle, .mobile-feedback-header {
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --font-size-h1: 24px;
        --font-size-h2: 20px;
        --font-size-h3: 18px;
        --font-size-primary: 15px;
        --font-size-secondary: 15px;
        --font-size-small: 12px;
        --font-size-controls: 16px;
    }

    html, body {
        overflow-x: hidden;
    }

    nav {
        height: 64px;
        padding: 0 20px;
        justify-content: space-between;
        transition: 0.1s ease;
    }

    nav #logo {
        height: 20px;
        width: 65px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav > ul {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--blue-60);
        color: var(--gray-10);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 45px;
        padding: 180px 20px 0 20px;
        transition: 0.1s ease;
        z-index: 100;
        box-sizing: border-box;
        font-size: var(--font-size-h2);
        overflow: hidden;
    }

    nav.active {
        --nav-icon-color: var(--gray-10);
    }

    nav.active > a {
        z-index: 101;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 20px;

        display: flex;
        flex-direction: column;
        justify-content: space-around;
        gap: 5px;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 200;
        overflow: visible;
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--nav-icon-color);
        border-radius: 3px;
        transition: all 0.1s linear;
        position: relative;
        transform-origin: 3px;
    }

    nav.active .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg);
    }

    nav.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    nav.active .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg);
    }

    nav.active > ul {
        right: 0;
    }

    nav > ul li {
        text-align: center;
    }

    nav.active .mobile-nav-footer {
        display: block;
        color: var(--blue-20);
        text-align: left;
        z-index: 99;
        position: fixed;
        bottom: 40px;
        font-size: var(--font-size-small);
    }

    p {
        line-height: 20px;
    }

    video-player .video-title {
        padding: 45px 20px;
    }

    video-player .video-title h2 {
        font-size: var(--font-size-h1);
    }

    video-player .video-title p {
        font-size: var(--font-size-primary);
        font-weight: 300;
    }

    .layout-container main {
        align-content: start;
    }

    .text-block {
        flex-direction: column;
        padding: 20px;
    }

    .text-block .block-header {
        flex: 1 0;
        margin-bottom: 0;
    }

    .text-block .block-content {
        flex: 1 0;
    }

    .block-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--gray-10);
        padding: 40px 20px;
        z-index: 10;
    }

    .text-block .block-content button.action {
        margin-top: 0;
        float: none;
        width: 100%;
    }

    .text-block .block-content {
        padding-bottom: 20px;
    }

    .video-container {
        margin-bottom: 50px;
    }

    .video-container .video-title {
        margin: 15px 0 30px 0;
    }

    .video-title p {
        font-size: var(--font-size-primary);
        font-weight: 300;
        letter-spacing: 3%;
        margin: 5px 0;
    }

    .mobile-feedback-header {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        color: var(--blue-50);
        margin-bottom: 45px;
    }

    .mobile-feedback-header .close {
        cursor: pointer;
    }

    .portfolio-content {
        margin-top: 30px;
    }

    footer {
        display: flex;
        flex-direction: column;
        padding: 30px 20px;
        text-align: left;
        gap: 10px;
    }

    .footer-right {
        float: none;
        display: none;
    }

    .modal {
        min-width: 90%;
        padding: 20px 20px;
        max-width: 90%;
    }

    .vertical-form .field {
        margin: 25px 0;
    }

    .vertical-form .form-buttons {
        margin-top: 40px;
        flex-direction: row;
        gap: 15px;
    }

    .vertical-form .form-buttons button {
        width: 100%;
    }

    button {
        padding: 12px 24px;
        font-size: var(--font-size-controls);
    }

    input, textarea {
        font-size: var(--font-size-controls);
        padding: 10px;
    }

    #feedback {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
    }
}
