@media (max-width: 768px) {
    
    #root {
        width: 100%;
        min-height: 100vh;
    }
    .admin-bar {
        height: 8vh !important;
    }
    .navbar {
        display: none;
    }

    .logo a {
        margin: 0;
    }

    .logo a img {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .hamburger {
        display: flex;
    }
    .navbar-mobile {
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        width: 40vw;
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .navbar-mobile.show {
        transform: translateX(0);
    }

    .navbar-mobile a {
        color: rgb(0, 0, 0);
        text-decoration: none;
        padding: 15px;
        transition: background 0.2s;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .recent-posts {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin-top: 5vh;
    }

    .new-post {
        width: 80% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .older-posts {
        width: 80% !important;
        height: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 10vh 0;
        display: flex !important;
    }

    .other-stuff {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .about-me {
        width: 80% !important;;
    }

    .about-image-wrapper {
        width: 50vw !important;
        height: 25vh !important;
        margin: 0 !important;
    }

    .about-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .overlay-menu {
        display: none; /* domyślnie wyłączone */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4); /* półprzezroczyste tło */
        z-index: 900; /* mniejsze niż navbar-mobile (ma 1000) */
    }
    .overlay-menu.show {
        display: block !important; /* pokazane, gdy navbar-mobile jest widoczny */
    }

    .blog-container {
        width: 100% !important;
        margin-top: 5vh !important;
        padding: 0 !important;
        flex-direction: column !important;
        margin-top: 0 !important;
    }

    .blog-container .categories {
        width: 100% !important;
        position: relative !important;
        margin-bottom: 5vh;
    }

    .categories h3 {
        display: none;
    }

    .filter-block .categories-list {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        flex-wrap: wrap !important;
    }

    .categories-list a {
        margin: 2vw !important;
        width: auto !important;
    }

    .filter-block a {
        font-size: 120%;
    }

    .content .admin-add-post {
        width: 80% !important;
        height: auto !important;
        margin: 2vh 0 !important;
        padding: 0 5vw !important;
    }
    .admin-add-post .category-row { 
        width: 90% !important;
        justify-content: space-between;
    }
    .category-row select {
        width: 45%;
    }
    .category-row input {
        width: 45%;
    }

    .post-content h2 {
        text-align: center;
    }
    .post-content img.post-image {
        width: 80% !important;
    }
    .post-content span.post-desc {
        width: 90% !important;
        font-size: 110% !important;
    }

    .content .admin-edit-form {
        width: 80% !important;
        height: auto !important;
        margin: 2vh 0 !important;
        padding: 0 5vw !important;
    }
}