/* CSS variables */
:root {
    --color-divider: var(--divider-color);
    --social-icon-filter: none;
    --image-border-radius: 10px;
    --content-max-width: 780px;
}

body {
    font-family: var(--primary-font-family), sans-serif;
}

.articles-page-main {
    max-width: var(--content-max-width);
    margin: 80px auto 0;
    padding: 0 25px;
    overflow: visible;
}

article > header,
article > header *,
article > footer,
article > footer * {
  all: revert;
}

.divider-line-horizontal-top,
.divider-line-horizontal-bottom,
.divider-line-horizontal {
    border: none;
    border-top: 1px solid var(--color-divider);
    width: calc(100% + 16px);
    margin: 20px -8px 30px;
    height: 0;
    background-color: transparent;
}

.divider-line-horizontal-top {
    margin-bottom: 14px;
}

.divider-line-horizontal-bottom {
    margin-top: 10px;
}

article header .strap-line {
    font-size: 1.4rem;
    font-style: italic;
    margin: 0px;
    font-weight: 100;
}

article .author-date {
    font-size: 1rem;
    margin: 0px;
    color: var(--secondary-text-color);
}

article .author-date a {
    color: var(--secondary-text-color);
    text-decoration: underline;
}

article .author-date a:hover {
    text-decoration: underline;
}

article a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-sharing-exporting ul {
    list-style: none;
    padding: 0;
    margin: 0px;
    display: flex;
    gap: 15px;
}

.article-sharing-exporting ul li {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.7;
}

.article-sharing-exporting ul li:hover {
    opacity: 1;
    transform: scale(1.05);
}

.article-sharing-exporting ul a {
    color: var(--primary-text-color);
}

.article-sharing-exporting ul li img {
    height: 20px;
    width: 20px;
    margin-right: 0;
    filter: var(--social-icon-filter);
}

article footer {
    margin: 0 0 100px;
    padding: 0;
}

/* Featured article image — breaks out of the content column */
.featured-article-image {
    margin-bottom: 20px;
}

.featured-article-image img,
.featured-article-image .lqip-wrapper {
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    height: auto;
    border-radius: var(--image-border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: -10px;
    margin-right: -10px;
}

/* On large screens, break out even further */
@media (min-width: 900px) {
    .featured-article-image {
        width: 112%;      /* 10% wider than the main container */
        margin-left: -6%; /* Pull left by 6% to center it */
        margin-right: -6%;
    }
}

/* Related articles — break the card grid out of the narrow article column, and
   shrink the cards slightly within it, so all 3 related articles fit on one row
   instead of stacking into a single-column list */
.artipress-related-articles {
    margin-top: 40px;
}

@media (min-width: 900px) {
    .artipress-related-articles {
        --artipress-article-card-width: 295px;
        --artipress-article-card-image-height: calc(295px * 0.6667);
    }

    .artipress-related-articles .artipress-articles-container {
        width: 130%;
        margin-left: -15%;
        margin-right: -15%;
    }
}

@media (max-width: 768px) {
    article header .strap-line {
        font-size: 1.27rem;
        font-weight: 91;
    }

    article .author-date {
        font-size: 1.03rem;
    }
}

@media (max-width: 680px) {
    article header .strap-line {
        font-size: 1.16rem;
        font-weight: 82.81;
    }

    article .author-date {
        font-size: 0.95rem;
    }
}

/* Change style for print */
@media print {
    .article-sharing-exporting,
    .divider-line-horizontal-bottom {
        display: none;
    }
}
