a {
    color: inherit;
}

/*post card image*/
.post-card-image {
    background: transparent;
    object-fit: contain;
    filter: brightness(0) 
            saturate(100%) 
            invert(45%) 
            sepia(15%) 
            saturate(7129%) 
            hue-rotate(0deg) 
            brightness(102%) 
            contrast(110%);
}
html.dark-mode .post-card-image{
    background: transparent;
}

@media (min-width: 1001px) {
    .post-card-image {
        min-height: auto !important;
    }
}

/*header tags*/
.header-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 8px;
    padding: 0 8px;
    font-size: 1.1rem;
    letter-spacing: -0.04rem;
    height: 25px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.1s;
}
@media only screen and (max-width: 900px) {
    .header-links{
        height: 40px;
        font-size: 1.8rem;
        padding: 0 12px;
    }
}
@media only screen and (max-width: 800px) {
    .header-links{
        height: 25px;
        font-size: 1.1rem;
        padding: 0 6px;
    }
}
.header-links:hover {
    background: rgba(255, 255, 255, 0.4);
}

html.dark-mode .header-links {
    background: rgba(0, 0, 0, 0.1);
}

html.dark-mode .header-links:hover {
    background: rgba(0, 0, 0, 0.2);
}

/*article tags*/
.article-tag-list {
    margin: 0 10px 5px 0;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: filter 0.1s;
}

html.dark-mode .article-tag-list {
    background: rgba(255, 255, 255, 0.08)
}

.article-tag-list:hover {
    filter: brightness(150%);
}

/*post card tags*/
.post-card-tag {
    margin: 0 0 5px -4px;
}

.post-card-tag-list {
    padding: 4px 8px;
    color: var(--ghost-accent-color);
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    transition: filter 0.1s;
}

html.dark-mode .post-card-tag-list {
    background: rgba(255, 255, 255, 0.06)
}

.post-card-tag-list:hover {
    filter: brightness(150%);
}

/*authors page styles*/
html.dark-mode .author-profile-social-link:hover {
    color: hsla(0, 0%, 100%, .75);
}

.authors-page-link {
    line-height: 4em;
    font-weight: bold;
}

html.dark-mode .authors-page-link {
    color: hsla(0, 0%, 100%, .75);
}

.author-feed {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 0.5em 1em;
    margin: auto;
}

.author-feed a {
    color: black;
    text-decoration: none;
}

html.dark-mode .author-feed a {
    color: white;
    text-decoration: none;
}

@media only screen and (max-width: 1100px) {
    .author-feed {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media only screen and (max-width: 800px) {
    .author-feed {
        grid-template-columns: 1fr 1fr;
    }
}

.nosticky {
    position: inherit !important;
}

.marginauto {
    margin: 0 auto;
}

.textcenter {
    text-align: center;
}

.authors-page-image img {
    opacity: 100%;
}

.authors-page-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 0;
    margin: 1em auto;
}

.authors-page-image {
    margin-bottom: 1em;
}

.authors-page-card h1 {
    margin: 0.1em 0;
    font-size: 1.3em;
    line-height: auto;
}

.author-bio {
    line-height: auto;
    font-size: 0.9em;
}

.author-stats {
    justify-self: flex-end;
    font-size: 0.8em;
    font-weight: bold;
}

/*tags page style*/
.tag-feed {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 1em;
    margin: 3em auto auto auto;
}

.tag-feed a {
    text-decoration: none;
}

.tag-content {
    border-radius: 15px;
    overflow: hidden;
}

.tag-content:hover .tag-page-name {
    filter: brightness(150%);
}

html.dark-mode .tag-content {
    background: rgba(255, 255, 255, .04);
}

.tag-page-card {
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tag-page-name {
    padding: 10px 20px;
    letter-spacing: 0.03em;
    font-weight: 600;
    text-transform: uppercase;
    transition: filter 0.1s;
}

.tag-page-count {
    width: 100%;
    border-radius: 0 0 15px 15px;
    color: black;
    font-size: 0.75em;
    background: rgba(0, 0, 0, .04);
    transition: max-height 0.2s;
}

html.dark-mode .tag-page-count {
    color: white;
    background: rgba(255, 255, 255, .08);
}



/*post card tag*/
.post-card-primary-tag {
    margin: 0 0 5px -2px;
    padding: 0 10px;
    width: fit-content;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: filter 0.1s;
    font-weight: 600;
}

html.dark-mode .post-card-primary-tag {
    background: rgba(255, 255, 255, 0.08)
}

.post-card-primary-tag:hover {
    filter: brightness(150%);
}

/*subscribe footer styles*/
.subscribe-footer {
    display: flex;
    flex-wrap:wrap;  
    justify-content: center;
    margin-bottom: 0;
}

.subscribe-footer > div {
  width: 50%;
}

html.dark-mode .subscribe-footer-button,
.subscribe-footer-button {
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    margin: 0 1em 1em 0;
    padding: 0.5em 1em;
    width: fit-content;
    border-radius: 25px;
    background: var(--ghost-accent-color);
    font-weight: 600;
}

.subscribe-footer-button {
    color: white !important;
}


@media only screen and (max-width: 1100px) {
    .tag-feed {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media only screen and (max-width: 800px) {
    .tag-feed {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 600px) {
    .tag-feed {
        grid-template-columns: 1fr;
    }
    .subscribe-footer {
        display: block;
    }
    .subscribe-footer > div{   
        width: 100%;
    }
}
