/* * {
    outline: 1px solid red;
}
 */

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 2px solid var(--light);    
    border-radius: 3ch;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}



.blog-post-text {
    flex: 1 1 60%;
}

.blog-post-photo {
    flex: 1 1 40%; /* instead of 10% */
}

.blog-post-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2ch;
    display: block;
}


.blog-main {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
    min-height: 10rem;
}


.blog-main a{
    text-decoration: none;
}

.blog-post:hover {
    transform: scale(1.05);
    transition: 300ms;
}

.blog-post-summary {
    font-family: 'Arial';
}

.blog-top {
    display: grid;
}

.only-available-in-english-declaration {
    display: flex;
    justify-content: center;
    background-color: var(--yellow);
    padding: 0.5rem;
    border-radius: 2ch;
}

.only-available-in-english-declaration p{
    color: #262626;
}

#searchInput {
    padding: 1rem;
    width: 15rem;
    border-radius: 2ch;
    border: none;
    font-size: 16px;
    font-family: "Arial Rounded MT Bold";
    background-color: var(--background);
    margin: 0;
    color: var(--foreground);
    box-shadow: inset 5px 5px 5px var(--shadow), inset -1px -1px 10px var(--light);
}



/* Media queries */
@media only screen and (max-width: 425px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post-text,
    .blog-post-photo {
        width: 100%;
    }

}

@media only screen and (min-width: 426px) and (max-width: 666px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post-text,
    .blog-post-photo {
        width: 100%;
    }
}
/* Default (mobile) already stacks: no change needed below 666px */

/* Medium screens — side by side with even split */
@media only screen and (min-width: 667px) and (max-width: 1024px) {
    .blog-post {
        flex-direction: row;
    }

    .blog-post-text {
        flex: 1 1 50%;
    }

    .blog-post-photo {
        flex: 1 1 50%;
    }
}

/* Larger screens — make image smaller again */
@media only screen and (min-width: 1025px) {
    .blog-post-text {
        flex: 1 1 60%;
    }

    .blog-post-photo {
        flex: 1 1 40%;
    }
}

/* Extra large — restore 70/30 or smaller split if needed */
@media only screen and (min-width: 1440px) {
    .blog-post-text {
        flex: 1 1 70%;
    }

    .blog-post-photo {
        flex: 1 1 30%;
    }
}
