/* The shared site supplies type, navigation and the two-panel workspace. */
.klimov-photo .photo-intro { font-size: 19px; line-height: 1.6; max-width: 42ch; margin: 24px 0 32px; }
.klimov-photo .form-label { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.klimov-photo textarea { resize: vertical; padding: 14px 16px; }
.klimov-photo .background-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.klimov-photo .background-sample { display: block; position: relative; overflow: hidden; border-radius: 6px; border: 2px solid transparent; }
.klimov-photo .background-sample img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.klimov-photo .background-sample > span { position: absolute; bottom: 16%; left: 8%; font-size: clamp(12px, 1.1vw, 18px); font-weight: 700; }
.klimov-photo .background-name { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; font-size: 14px; margin-top: 5px; }
.klimov-photo .background-name small { color: #626970; font-size: 12px; }
.klimov-photo .photo-background:checked + label .background-sample { border-color: #3b82f6; box-shadow: 0 0 0 2px #fff; }
.klimov-photo .photo-background + label:hover .background-sample { border-color: #3b82f6; }
.klimov-photo .photo-publish { padding-top: 20px; border-top: 1px solid #cdd7c7; }
.klimov-photo .photo-publish summary { cursor: pointer; font-size: 16px; }
.klimov-photo .preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.klimov-photo .preview-heading h2 { margin: 0; }
.klimov-photo .preview-heading > span { color: #626970; font-size: 13px; white-space: nowrap; }
.klimov-photo .post-card { border: 1px solid #e3e7ea; border-radius: 8px; background: #fff; overflow: hidden; }
.klimov-photo #image-preview { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #101216; }
.klimov-photo #post-preview-caption { margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.klimov-photo .preview-note { font-size: 13px; color: #626970; margin: 14px 0 24px; }
.klimov-photo .photo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.klimov-photo #photo-status { margin: 16px 0 0; font-size: 14px; color: #626970; }
.klimov-photo #photo-error { margin-top: 16px; padding: 14px 16px; color: #9e2016; background: #fff0ed; border-radius: 8px; }
.klimov-photo #published-link { display: inline-block; margin-top: 16px; }
.klimov-photo [hidden] { display: none !important; }
@media (max-width: 1000px) {
    .klimov-photo .photo-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .klimov-photo .photo-editor, .klimov-photo .photo-preview { padding: 24px; }
    .klimov-photo .photo-preview-content { position: sticky; top: 20px; }
}
@media (max-width: 760px) {
    .klimov-photo .photo-layout { grid-template-columns: minmax(0, 1fr); }
    .klimov-photo .photo-preview-content { position: static; }
    .klimov-photo .photo-editor, .klimov-photo .photo-preview { padding: 28px 20px; }
    .klimov-photo .photo-actions > button { flex: 1 1 180px; }
}

.klimov-photo .photo-editor { background: #f0f2f5; }
.klimov-photo .photo-preview { background: #e7ebf0; }
.klimov-photo .background-total { float: right; color: #626970; font-size: 13px; font-weight: 400; }
.klimov-photo .background-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 18px; }
.klimov-photo .background-filters button { border: 1px solid #cdd3db; border-radius: 20px; padding: 6px 13px; color: #394352; background: transparent; font: inherit; font-size: 13px; }
.klimov-photo .background-filters button[aria-pressed="true"] { color: #fff; background: #202630; border-color: #202630; }
.klimov-photo .background-filters button:hover { border-color: #202630; }
.klimov-photo .background-name { font-size: 13px; }
.klimov-photo .photo-background:checked + label .background-sample::after { content: '✓'; position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1d4ed8; font-size: 15px; font-weight: 700; box-shadow: 0 1px 4px #0003; }
.klimov-photo .photo-publish { border-color: #cdd3db; }
@media (max-width: 1150px) { .klimov-photo .background-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
