/* Restore the Studio layout around the heading, photo and list in the imported page. */
.comments-page {
    --comments-width: 864px;
    background: #fff9f0;
    overflow-wrap: anywhere;
}

.comments-page article > div:has(> h1):has(> img) {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 324px;
    width: 100%;
    color: white;
    text-align: center;
}

.comments-page article > div:has(> h1) > img {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.1) brightness(.7);
}

.comments-page article > div:has(> h1) > h1 {
    margin: 0 0 1px;
    font: 500 48px/1.2 Shippori, serif;
    letter-spacing: .05em;
}

.comments-page article > div:has(> h1) > p {
    margin: 0;
    font: 700 16px/1.7 Zen, sans-serif;
    letter-spacing: .05em;
}

.comments-page article > div:empty {
    width: min(1320px, calc(100% - 160px));
    height: 2px;
    margin-inline: auto;
    background: rgb(161 99 16 / 10%);
}

.comments-page article > div:not(:has(> h1)) > p {
    width: min(var(--comments-width), calc(100% - 92px));
    margin: 45px auto 0;
    color: #a16310;
    font: 500 16px/2.2 Zen, sans-serif;
    letter-spacing: .08em;
    text-align: right;
}

.comments-page article > ul {
    width: min(var(--comments-width), calc(100% - 58px));
    margin: 0 auto;
    padding: 10px 0 65px;
    list-style: none;
}

.comments-page article > ul > li {
    margin-top: 45px;
    padding: 45px 50px;
    border-radius: 12px;
    background: white;
    color: #e16a3c;
}

.comments-page article > ul > li > p {
    margin: 0;
    font: 500 15px/2.2 Zen, sans-serif;
    letter-spacing: .05em;
    text-align: justify;
}

.comments-page article > ul > li > p + p {
    margin: 20px 0 1px;
    font-size: 20px;
    text-align: center;
}

body:has(.comments-page) .rail-social a {
    font-size: 0;
    background: transparent url("media/034-fec0300a3e025926acbc.webp") center / contain no-repeat;
}

body:has(.comments-page) .rail-social a + a {
    background-image: url("media/034-b1af87436d796028d453.webp");
}

@media (max-width: 960px) {
    .comments-page { --comments-width: 600px; }
    .comments-page article > div:has(> h1) > h1 { font-size: 40px; }
    .comments-page article > div:has(> h1) > p { font-size: 14px; }
    .comments-page article > div:empty { width: calc(100% - 100px); }
    .comments-page article > ul > li { padding-bottom: 40px; }
}

@media (max-width: 520px) {
    .comments-page article > div:has(> h1):has(> img) { min-height: 240px; }
    .comments-page article > div:has(> h1) > h1 { font-size: 32px; }
    .comments-page article > div:has(> h1) > p { font-size: 12px; }
    .comments-page article > div:empty { width: calc(100% - 40px); }
    .comments-page article > div:not(:has(> h1)) > p { font-size: 14px; }
    .comments-page article > ul { width: min(90%, calc(100% - 58px)); }
    .comments-page article > ul > li { margin-top: 70px; padding: 30px; }
    .comments-page article > ul > li > p { font-size: 14px; letter-spacing: .04em; }
    .comments-page article > ul > li > p + p { font-size: 16px; }
}

@media (max-width: 359px) {
    .comments-page article > ul > li { padding-inline: 22px; }
}
