/*
 * The parent theme paints the complete article white. Give long galleries a
 * full-width stage that blends into the site's page background instead.
 */
body.single-post #single-content.single-content {
    padding-top: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    background: transparent;
    box-shadow: none;
}

body.single-post #single-content .article-title {
    margin-bottom: 6px;
}

body.single-post #single-content .article-meta {
    margin-bottom: 9px;
}

body.single .article-content > .gallery {
    position: relative;
    z-index: 0;
    padding-top: 10px;
    padding-bottom: 14px;
    margin-top: 0;
    margin-bottom: 20px;
}

body.single .article-content > .gallery::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -20px;
    bottom: 0;
    left: -20px;
    background: #f9f9f9;
    content: "";
}

/* Article gallery access notice. Kept in the child theme to avoid parent-theme edits. */
body.single .article-content .gallery-login {
    margin: 0 0 8px;
    color: #986f82;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

body.single .article-content .gallery-login > span {
    display: inline-flex;
    min-height: 44px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 9px 18px;
    border: 1px solid rgba(226, 31, 132, 0.14);
    border-radius: 6px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fffafd 0%, #fff3f8 100%);
    box-shadow: 0 6px 18px rgba(213, 83, 140, 0.11);
    letter-spacing: 0.15px;
}

body.single .article-content .gallery-login .icon {
    margin-right: 8px;
    color: #b56f91;
    font-size: 18px;
    line-height: 1;
}

body.single .article-content .gallery-login a {
    display: inline-block;
    margin-left: 10px;
    color: var(--theme-color);
    font-weight: 800;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

body.single .article-content .gallery-login a:hover,
body.single .article-content .gallery-login a:focus-visible {
    color: var(--theme-color);
    opacity: 0.78;
}

@media (max-width: 480px) {
    body.single-post #single-content.single-content {
        padding-top: 8px;
    }

    body.single .article-content > .gallery {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    body.single .article-content > .gallery::before {
        right: -10px;
        left: -10px;
    }

    body.single .article-content .gallery-login {
        font-size: 15px;
    }

    body.single .article-content .gallery-login > span {
        min-height: 40px;
        padding: 8px 12px;
    }

    body.single .article-content .gallery-login .icon {
        margin-right: 6px;
        font-size: 16px;
    }

    body.single .article-content .gallery-login a {
        margin-left: 8px;
    }
}

/*
 * The same tone behind the gallery images. A logged-in member sees twelve of
 * them on an article, so this is where the arrival is most visible.
 */
body.single-post #single-content .content-wrap img,
body.single-post #single-content .article-content img {
    background-color: #efe9e7;
}
