:root {
    --politics-tag-colour: linear-gradient(120deg, rgb(255, 0, 157), red, rgb(255, 115, 0));
    --music-tag-colour: linear-gradient(120deg, rgb(146, 219, 0), rgb(0, 181, 0), rgb(0, 181, 166));
    --media-tag-colour: linear-gradient(120deg, rgb(255, 20, 243), rgb(159, 0, 217), rgb(54, 0, 202));
}

body {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
}

.post-preview-list {
    width: 45%;
    min-width: 700px;
    padding-bottom: 50px;
}

.post-preview-section {
    display: flex;
    flex-grow: 1;
    justify-content: left;
    padding: 10px;
    gap: 1rem;
    margin-bottom: 0;
}

.post-preview-img {
    height: 200px;
    aspect-ratio: 1 / 1;
    /* width: 250px; */
    border: 5px solid black;
    object-fit: cover;
}

.post-preview-text-wrapper {

    align-self: center;
    margin: 10px 0px;
}

.post-preview-tags {
    margin-top: 0;
}

.post-preview-heading {
    position: relative;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.1;

    margin-top: 0;
    margin-bottom: 5px;

    text-transform: uppercase;
    overflow: hidden;

}

.post-preview-heading a {
    text-decoration: none;
    color: black;
}

  .post-preview-heading:hover, 
  .post-preview-heading:focus {
    text-decoration: underline;
  }


.post-preview-subheading {

    font-style: italic;
    line-height: 1;
    text-overflow: ellipsis;
    word-wrap: break-word;
    
    margin-top: 5px;
    margin-bottom: 5px;
}

.post-preview-extras {
    height: 30px;
    margin-top: 15px;
    margin-left: 0px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0;
}

.post-preview-icon {
    width: 20px;
    height: 20px;
}

.post-preview-horizontal-divider {
    width: 2px;
    height: 25px;
    background-color: rgb(190, 190, 190);
    border-radius: 25%;
}

.post-preview-extras-text {
    color: rgb(100, 100, 100);
}

.post-preview-extras-text,.post-preview-horizontal-divider {
    margin-right: 10px;
}

.post-content {
    width: 45%;
    min-width: 400px;
    padding-bottom: 50px;
}

.post-title-box {
    margin-top: 50px;
    text-align: center;
}

.post-heading {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    margin-top: 5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.post-subheading {
    font-weight: 400;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
}

.post-date {
    font-style: italic;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 5px;
}

.post-main-img {
    width: 45%;
    min-width: 400px;
    margin-bottom: 75px;
}

.post-centre-img {
    width: 60%;
    margin-bottom: 30px;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 80px;
}

.post-body h3 {
    font-size: 1.75rem;
    margin-top: 50px;
}

ol {
    padding-inline-start: 25px;
  }

.tags{
    display: inline-block;
    max-width: 90%;
}

.tag-shape {

    display: inline-block;
    position: relative;

    --s: 15px;

    padding: 3px 10px 5px calc(12px + var(--s));
    margin: 5px 5px 5px 5px;

    width: var(--content-width);
    height: var(--content-height);

    clip-path: polygon(calc(0% + var(--s)) 0, 100% 0, 100% 100%, calc(0% + var(--s)) 100%, 0 50%);
    border-radius: 0 10px 10px 0; 

    font-weight: 900;
    font-size: 1rem;

    color: var(--background-colour);
    text-overflow: ellipsis; 

}


.tag-shape::after{


    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(-50%, -50%);

    width: 8px;
    height: 8px;
    border-radius: 50%;

    content: '';
    background-color: var(--background-colour);

}

.tag-shape:hover, .tag-shape:focus {
    cursor: pointer;
    text-decoration: underline;
}

.politics-tag {
    background: var(--politics-tag-colour);
}

.music-tag {
    background: var(--music-tag-colour);
}

.media-tag {
    background: var(--media-tag-colour);
}

.post-preview-vertical-divider {
    margin: auto;
    height: 2px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 20px;
    background-color: rgb(190, 190, 190);
    border-radius: 10px;
}

@media screen and (max-width:725px){
    .post-preview-list {
        min-width: auto;
        width: 90vw;
    }

    .post-preview-section {
        flex-direction: column;
        align-items: center;
    }

    .post-preview-vertical-divider {
        margin-top: 50px;
        margin-bottom: 60px;
    }
    
    .post-preview-img {
        margin: 0;
        height: 90vw;
        max-height: 500px;
    }
    
    .post-preview-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        width: 90vw;
        margin-left: 5vw;
        margin-right: 5vw;

    }
    
    .post-preview-heading, .post-preview-subheading {
        text-align: center;
    }

    .post-preview-extras {
        justify-content: center;
    }

  }

  @media screen and (max-width:400px){
    .post-content, .post-main-, .centre-img {
        min-width: auto;
        width: 90vw;
    }

    .post-title-box {
        margin: 25px;
    }

    .post-heading {
        font-size: 3rem;
    }

    .post-content {
        padding-bottom: 25px;
    }

  }
  