#go-to-post {
    --width: 200px;
    
    width: var(--width);
    height: 50px;
    
    font-size: 25px;
    font-family: 'MerriweatherSans';
    font-weight: 800;
    color: black;
    
    border: solid 2px black;
    border-radius: 15px;
    
    text-align: center;
    
    position: fixed;
    left: calc(98vw - var(--width));
}

#go-to-post:hover {
    border-color: white;
    cursor:pointer;
}

h1 {
    width: 100%;
    margin-bottom: 100px;
    
    text-align: center;
    
    box-shadow: 0px 10px 5px var(--bg-color);
}

#articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#articles article {
    display: flex;
    flex-direction: row;
    gap: 15px;

    height: clamp(430px, 90vw - 700px, 500px);

    padding: 20px;
    border-radius: 10px;
    
    background-color: var(--nav-bg-color);
}

#articles .text {
    padding: 30px;   
    border-radius: 10px;
    
    background-color: rgba(255, 255, 255, 0.3);
    
    overflow-y: scroll;
    overflow-x: hidden;

    position: relative;
}

#articles .text::-webkit-scrollbar {
    width: 8px;
}

#articles .text::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    border: 2px solid transparent;
    border-top-width: 10px;
    border-bottom-width: 10px;

    background-clip: padding-box;
}

#articles .text ::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

#articles .text a {
    text-decoration: none;
}

#articles .text a::after {
    content: "↗";
    font-size: small;
}

#articles .text h1 {
    font-family: 'Inter';
    background: none;
    box-shadow: none;
    font-size: clamp(1.4em, 5.5vw - 60px, 1.75em);
    margin: 0;
    line-height: 2;
    padding: 0;
    text-shadow: none;
    color: black;
}

#articles .text p {
    font-family: 'Merriweather';
    text-align: justify;
    font-size: clamp(0.9em, 3.5vw - 30px, 1.15em);
    line-height: 1.7;
}

#articles .images {
    border-radius: 10px;    
    display: flex;
    position: relative;
    width: 50%;
    max-width: 50%;

    background-color: rgba(0, 0, 0, 0.15);
    
    overflow: clip;
    justify-content: center;
}

#articles .images .image-arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.75);
    color: black;
    border: none;
    padding: 12px 16px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

#articles .images .image-arrow-button-prev {
    left: 10px;
}

#articles .images .image-arrow-button-next {
   right: 10px;
}

#articles img {
    height: auto;
    border-radius: 10px;
}

@media screen and (max-width: 1100px) {
    #articles article {
        height: clamp(400px, 48vw - 100px, 430px);
    }
    
    #articles .text h1 {
        font-size: clamp(1.2em, 2vw, 1.4em);
        line-height: 1.7;
    }
    
    #articles .text p {
        font-size: clamp(0.6em, 1.5vw, 0.85em);
    }
}

@media screen and (max-width: 900px) {
    #articles article {
        display: flex;
        flex-direction: column;
        gap: 10px;

        width: auto;
        height: auto;

        padding: 10px;
        border-radius: 10px;

        background-color: var(--nav-bg-color);
    }
    
    #articles .text {
        width: auto;
        height: auto;

        padding: 20px;   
        border-radius: 10px;

        background-color: rgba(255, 255, 255, 0.3);
    }
    
    #articles .text h1 {
        font-family: 'Inter';
        background: none;
        box-shadow: none;
        font-size: 1.38em;
        margin: 0;
        line-height: 2;
        padding: 0;
        text-shadow: none;
        color: black;
    }

    #articles .text p {
        font-family: 'Merriweather';
        text-align: justify;
        font-size: 0.9em;
        line-height: 1.7;
    }

    #articles .images {
        border-radius: 10px;
        width: auto;
        height: auto;
        max-width: 100%;
        overflow: unset;
        justify-content: center;
    }

    #articles img {
        height: 100%;
        
        max-height: 70vh;
        width: 100%;
        border-radius: 10px;
        object-fit: contain;
        
    }
}

@media screen and (max-width: 680px) {
    #articles article {
        gap: 8px;
        padding: 8px;
        border-radius: 8px;

    }
    
    #articles .text {
        padding: 15px;   
        border-radius: 8px;
    }
    
    #articles .text h1 {
        font-size: 1.2em;
        margin: 0;
        line-height: 2;
        padding: 0;
        text-shadow: none;
        color: black;
    }

    #articles .text p {
        font-family: 'Merriweather';
        text-align: justify;
        font-size: 0.8em;
        line-height: 1.7;
    }

    #articles .images {
        border-radius: 10px;
        width: auto;
        height: auto;
        max-width: 100%;
        overflow: unset;
        justify-content: center;
    }

    #articles img {
        height: 100%;
        max-height: 70vh;
        width: 100%;
        border-radius: 10px;
        object-fit: contain;
        
    }
}