.highlight-search { max-width: 760px; }
.highlight-search-field { position: relative; }
.highlight-search-field > i { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #777264; }
.highlight-search-field .form-control { min-height: 52px; padding-left: 2.75rem; }
.highlight-group-heading, .highlight-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.highlight-count { flex-shrink: 0; color: #70664d; font-size: .85rem; }
.highlight-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.highlight-story-card { overflow: hidden; min-width: 0; }
.highlight-story-cover, .highlight-reader-cover { position: relative; background: #f0ead7; }
.highlight-story-cover { height: 220px; }
.highlight-story-cover > img, .highlight-cover-trigger > img { width: 100%; height: 100%; object-fit: cover; }
.highlight-story-placeholder { height: 100%; display: grid; place-items: center; background: linear-gradient(140deg, #edf1da, #e7dcc0); color: #8a9b5e; font-size: 2.5rem; }
.highlight-story-label { position: absolute; left: 1rem; top: 1rem; background: #fff8e6; color: #674b21; border-radius: 999px; padding: .4rem .8rem; font-size: .75rem; font-weight: 800; }
.highlight-story-label i { color: #bc8b2e; margin-right: .3rem; }
.highlight-story-card .card-body { padding: 1.5rem; }
.highlight-story-place { display: flex; gap: .45rem; align-items: baseline; color: #7b735f; font-size: .8rem; margin-bottom: .7rem; overflow-wrap: anywhere; }
.highlight-story-excerpt { color: #766e5e; font-size: .94rem; line-height: 1.65; overflow-wrap: anywhere; }
.highlight-story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: #7b735f; font-size: .75rem; }
.highlight-story-status { padding: .25rem .65rem; border-radius: 999px; background: #f5efdf; }
.highlight-story-status.is-written { color: #466a25; background: #ecf3df; }
.highlight-empty { padding: clamp(1.5rem, 5vw, 4rem); text-align: center; color: #766e5e; }
.highlight-empty > i { display: block; color: #8c9e60; font-size: 2.2rem; margin-bottom: 1.2rem; }
.highlight-empty p { max-width: 620px; margin: 0 auto 1.5rem; }
.highlight-story-reader { max-width: 1040px; margin-inline: auto; overflow: hidden; }
.highlight-reader-cover { height: clamp(220px, 36vw, 420px); }
.highlight-reader-body { padding: clamp(1.4rem, 5vw, 4rem); }
.highlight-reader-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; color: #5d482b; overflow-wrap: anywhere; margin-bottom: 1.4rem; }
.highlight-prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; color: #655e50; }
.highlight-reader-intro { font-size: 1.1rem; }
.highlight-reader-section { margin-top: 2.7rem; }
.highlight-reader-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-block: 1.2rem; }
.highlight-reader-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.highlight-gallery-trigger { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: zoom-in; }
.highlight-gallery-trigger:focus-visible { outline: 3px solid var(--travelkiwi-link-color); outline-offset: 4px; }
.highlight-cover-trigger { height: 100%; border-radius: 0; }
.highlight-cover-trigger:focus-visible { outline-offset: -4px; }
.highlight-reader-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.highlight-reader-gallery.is-single img { aspect-ratio: auto; max-height: 680px; object-fit: contain; background: #f7f3ea; }
.highlight-editor-context { padding: 1rem 1.2rem; border-radius: 12px; background: #f6f2e6; color: #756750; overflow-wrap: anywhere; }
.highlight-story-textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.highlight-editor-block { padding: 1.25rem; border: 1px solid #e9e1d0; border-radius: 16px; margin-bottom: 1.25rem; min-width: 0; background: #fffdfa; }
.highlight-block-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.highlight-block-actions, .highlight-image-actions { display: flex; gap: .35rem; }
.highlight-block-number { color: #7b6541; font-weight: 800; }
.highlight-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-block: .9rem; }
.highlight-editor-image { min-width: 0; margin: 0; padding: .5rem; background: #f4efdf; border-radius: 12px; }
.highlight-editor-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.highlight-image-name { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-block: .4rem; }
.highlight-image-actions { flex-wrap: wrap; justify-content: center; }
.highlight-dropzone { display: grid; place-items: center; gap: .35rem; padding: 1.5rem 1rem; border: 2px dashed #c6cead; border-radius: 12px; background: #f4f6eb; text-align: center; color: #617248; cursor: pointer; }
.highlight-dropzone > i { font-size: 1.6rem; }
.highlight-dropzone small { color: #7a806f; }
.highlight-dropzone.is-dragging, .highlight-dropzone:focus-within { border-color: #579315; background: #ebf3db; }
.highlight-dropzone input { max-width: 100%; margin-top: .4rem; font-size: .85rem; }
.highlight-search [hidden], #highlightsContent [hidden], #highlightStoryModal [hidden], #highlightImageViewerModal [hidden] { display: none !important; }
#highlightImageViewerModal .modal-content { height: 100%; }
#highlightImageViewerModal .modal-body { display: flex; min-height: 0; padding: 0; overflow: hidden; }
.highlight-image-viewer-stage { flex: 1; min-width: 0; min-height: 0; padding: 0; }
.highlight-image-viewer-stage img { width: 100%; height: 100%; max-height: 100%; border-radius: 0; box-shadow: none; }
.highlight-image-viewer-stage > p { padding: 1.5rem; }
.highlight-viewer-caption { overflow-wrap: anywhere; color: #766e5e; font-size: .85rem; font-weight: 400; line-height: 1.4; }
@media (max-width: 575.98px) {
    .highlight-story-grid { gap: 1rem; }
    .highlight-story-card .card-body { padding: 1.15rem; }
    .highlight-group-heading, .highlight-editor-heading { flex-wrap: wrap; }
    .highlight-editor-block { padding: .85rem; }
    .highlight-reader-gallery { gap: .5rem; }
    .highlight-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}
