/* A small place for this month's drawing, in the homepage's paper/frame style. */
.monthly-illustration {
    border: 1px solid #c2ad77;
    background: #fffdf0;
    padding: 12px 16px;
    margin: 0 0 18px;
    color: #514637;
}
.monthly-illustration-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    padding-bottom: 6px;
    border-bottom: 1px dotted #b9a573;
}
.monthly-illustration-heading h2 { margin: 0; font-size: 16px; color: #795527; }
.monthly-illustration-month { font-size: 12px; }
.monthly-illustration-rule { margin: 8px 0 12px; font-size: 12px; }
.monthly-illustration-content { display: flex; align-items: center; gap: 18px; }
.monthly-illustration-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    padding: 6px;
    border: 1px solid #cab98e;
    background: #fff;
    box-shadow: 2px 2px 0 #e7dec7;
    box-sizing: border-box;
}
.monthly-illustration-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.monthly-illustration-info { min-width: 0; overflow-wrap: anywhere; }
.monthly-illustration-subject { font-size: 16px; color: #880000; margin: 0 0 8px; }
.monthly-illustration-author { color: #006600; font-size: 13px; margin: 0 0 10px; }
.monthly-illustration-likes { color: #a3394e; font-size: 13px; margin: 0 0 14px; }
.monthly-illustration-open, .monthly-illustration-retry {
    font: inherit;
    font-size: 12px;
    color: #0000cd;
    text-decoration: underline;
    border: 0;
    background: transparent;
    padding: 2px 0;
    text-align: left;
}
.monthly-illustration button:focus-visible { outline: 2px solid #000080; outline-offset: 3px; }
.monthly-illustration-calendar { color: #716754; font-size: 11px; margin: 12px 0 0; }
.monthly-illustration-status { font-size: 13px; margin: 8px 0; }
.monthly-illustration-image-error { font: 12px/1.5 sans-serif; color: #716754; }
.monthly-illustration--compact .monthly-illustration-picture { flex-basis: 120px; width: 120px; height: 120px; }
.monthly-illustration--compact .monthly-illustration-subject { font-size: 14px; }
.monthly-illustration--compact .monthly-illustration-likes { margin-bottom: 6px; }
.gallery-list-items { display: contents; }
.monthly-illustration--tile {
    position: relative;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-right: 1px solid #d0e6f0;
    border-bottom: 1px solid #d0e6f0;
    background: #eaf3fa;
    align-self: stretch;
}
.monthly-illustration--tile .monthly-illustration-heading {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.monthly-illustration--tile .monthly-illustration-heading h2 { font-size: 11px; line-height: 1.3; }
.monthly-illustration--tile .monthly-illustration-month { font-size: 10px; display: block; }
.monthly-illustration--tile .monthly-illustration-rule,
.monthly-illustration--tile .monthly-illustration-calendar,
.monthly-illustration--tile .monthly-illustration-open { display: none; }
.monthly-illustration--tile .monthly-illustration-content { display: block; }
.monthly-illustration--tile .monthly-illustration-picture {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #f0f8ff;
}
.monthly-illustration--tile .monthly-illustration-picture::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 3px solid #259da8;
    pointer-events: none;
    animation: monthly-frame-colors 4s steps(1, end) infinite;
}
.monthly-illustration--tile .monthly-illustration-picture::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    width: 20px;
    height: 20px;
    background: #fffbea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23e12e65' d='M10 18C8 16 1 12 1 7C1 1 8 0 10 5C12 0 19 1 19 7C19 12 12 16 10 18Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    border: 1px solid #c97891;
    box-shadow: 1px 1px 0 #875368;
    pointer-events: none;
    animation: monthly-heart-blink 3s steps(1, end) infinite;
}
@keyframes monthly-frame-colors {
    0%, 100% { border-color: #259da8; }
    25% { border-color: #9461cb; }
    50% { border-color: #e56694; }
    75% { border-color: #c5a238; }
}
@keyframes monthly-heart-blink {
    0%, 100% { opacity: 1; }
    80% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .monthly-illustration--tile .monthly-illustration-picture::after,
    .monthly-illustration--tile .monthly-illustration-picture::before { animation: none; }
}
.monthly-illustration--tile .monthly-illustration-info { padding: 5px 7px; border-top: 1px solid #cce0ee; }
.monthly-illustration--tile .monthly-illustration-subject {
    font-size: 12px; margin: 0 0 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.monthly-illustration--tile .monthly-illustration-author { font-size: 11px; margin: 0; }
.monthly-illustration--tile .monthly-illustration-likes { font-size: 11px; margin: 0; }
.monthly-illustration--tile .monthly-illustration-status { padding: 12px 8px; font-size: 11px; }
.monthly-illustration--tile .monthly-illustration-retry { margin: 0 8px 8px; }
@media (max-width: 600px) {
    .monthly-illustration { padding: 10px; }
    .monthly-illustration-content { gap: 12px; flex-wrap: wrap; }
    .monthly-illustration-picture { flex-basis: 160px; width: 160px; height: 160px; }
    .monthly-illustration--tile { padding: 0; }
    .monthly-illustration--tile .monthly-illustration-picture { width: 100%; height: auto; }
}
