.editorial-entry { display:flex; align-items:center; gap:24px; border-top:1px solid #ddd; margin-top:28px; padding-top:24px; }
.editorial-entry strong { font-size:19px; }
.editorial-entry p { font-size:14px; line-height:1.55; margin:6px 0 0; }
.editorial-entry .btn-outline { flex-shrink:0; background:#dad6ff; border:0; }
.editorial-dialog { width:min(1160px,calc(100vw - 48px)); max-height:calc(100dvh - 48px); margin:auto; inset:0; box-sizing:border-box; border:0; border-radius:36px; background:var(--bg, #F7F5EB); padding:32px; overflow:auto; box-shadow:0 32px 100px #0004; color:#141414; }
.editorial-dialog::backdrop { background:#0006; }
.editorial-dialog [hidden] { display:none!important; }
.editorial-close { position:absolute; top:20px; right:18px; width:32px; height:32px; border:0; background:transparent; font-size:30px; cursor:pointer; }
.editorial-eyebrow { font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.editorial-dialog > h2 { font:700 64px/1 var(--font-display); color:#584bb3; margin:12px 0; }
.editorial-intro { font-size:16px; max-width:740px; line-height:1.5; margin:0 0 24px; }
.editorial-workspace { display:grid; grid-template-columns:250px minmax(0,1fr); gap:32px; }
.editorial-options { display:flex; flex-direction:column; gap:14px; }
.editorial-options > * { flex-shrink:0; }
.editorial-options p, .editorial-options small { font-size:12px; line-height:1.6; margin:0; }
.editorial-options > strong { font-size:17px; }
.editorial-variant-label { display:grid; gap:8px; font-size:13px; }
.editorial-variant-label select { width:100%; padding:12px; border:1px solid #d8d5cd; border-radius:8px; background:var(--bg, #F7F5EB); font:inherit; }
.editorial-check { display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.5; }
.editorial-check input { margin:3px 0 0; accent-color:#584bb3; flex-shrink:0; }
.editorial-check small { display:block; color:#777; }
.editorial-days { max-height:200px; overflow:auto; display:grid; gap:12px; padding:16px 0; border-block:1px solid #ddd; }
.editorial-options .btn-outline { min-height:42px; width:100%; white-space:normal; font-size:13px; padding:10px 16px; border:0; background:#f0f0f0; }
.editorial-status { min-height:48px; color:#584bb3; }
.editorial-preview-wrap { min-width:0; background:#f3f2ef; border-radius:20px; padding:16px; }
.editorial-view-switch { display:flex; gap:8px; justify-content:center; margin-bottom:16px; }
.editorial-view-switch button { border:0; border-radius:20px; padding:8px 18px; background:var(--bg, #F7F5EB); cursor:pointer; font-size:12px; }
.editorial-view-switch [aria-pressed=true] { background:#151515; color:var(--bg, #F7F5EB); }
.editorial-preview { max-height:550px; overflow:auto; background:var(--bg, #F7F5EB); padding:22px; overscroll-behavior:contain; scrollbar-gutter:stable; }
.editorial-day { padding:18px 0 30px; }
.editorial-preview[data-view=desktop] { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:1.5151515%; }
.editorial-preview[data-view=desktop] > * { grid-column:1 / -1; min-width:0; }
.editorial-preview[data-view=desktop] > .editorial-day { grid-column:3 / 11; }
.editorial-day > h3 { font-size:12px; line-height:1.5; padding-bottom:12px; margin:0 0 18px; border-bottom:1px solid #181818; }
.editorial-sheet { position:relative; width:100%; container-type:inline-size; }
.editorial-preview-block { position:absolute; overflow:hidden; }
.editorial-photo { background:#eee; }
.editorial-photo img { width:100%; height:100%; display:block; object-fit:cover; }
.editorial-photo-group { display:grid; grid-template-columns:62% 38%; grid-template-rows:repeat(3,minmax(0,1fr)); gap:2px; }
.editorial-photo-group img:first-child { grid-row:1 / -1; }
.editorial-more { position:absolute; right:8px; bottom:8px; background:#0008; color:var(--bg, #F7F5EB); padding:2px 5px; font-size:12px; }
.editorial-text .gen-day-text { color:#141414; margin:0; padding:0; min-height:0; }
.editorial-text :is(p,h1,h2,h3) { margin:0 0 .6em; }
.editorial-text.is-article { padding:calc(var(--editorial-body-scale,2cqw) * 1.2); background:#fff2b8; box-sizing:border-box; }
.editorial-preview .is-rounded { border-radius:10px; }
.editorial-chapter { position:relative; display:flex; align-items:flex-end; min-height:240px; padding:24px; margin-bottom:12px; overflow:hidden; background:#dad6ff; }
.editorial-chapter.theme-yellow { background:#fff2b8; }
.editorial-chapter.theme-rose { background:#f9d1db; }
.editorial-chapter > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.editorial-chapter:has(img)::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent,#0008); }
.editorial-chapter > div { position:relative; z-index:1; }
.editorial-chapter:has(img) > div { color:var(--bg, #F7F5EB); }
.editorial-chapter h3 { font:700 36px/1 var(--font-display); margin:8px 0; }
.editorial-chapter small { text-transform:uppercase; letter-spacing:.12em; font-size:10px; }
.editorial-chapter p { font-size:12px; margin:0; line-height:1.5; }
.editorial-end-chapter { font:700 36px var(--font-display); padding:24px; background:#dad6ff; }
.editorial-preserved { font-size:12px; color:#777; padding:18px; background:#f6f6f6; margin:0; }
.editorial-actions { display:flex; justify-content:space-between; gap:18px; position:sticky; bottom:-32px; background:var(--bg, #F7F5EB); padding:22px 0 8px; margin-top:12px; }
.editorial-actions button { width:180px; }
.editorial-text-probe { position:fixed; top:0; left:-10000px; visibility:hidden; height:auto; }
.editorial-text-probe .gen-day-text { min-height:0; width:100%; margin:0; }
.editorial-text-probe :is(p,h1,h2,h3) { margin:0 0 .6em; }
.editorial-text-probe.is-article { padding:20px; box-sizing:border-box; }
.editorial-preview[data-view=mobile] { max-width:300px; margin:auto; }
.editorial-preview[data-view=mobile] .editorial-sheet { aspect-ratio:auto!important; display:flex; flex-direction:column; gap:18px; }
.editorial-preview[data-view=mobile] .editorial-preview-block { position:relative; top:auto!important; left:auto!important; width:100%!important; height:auto!important; }
.editorial-preview[data-view=mobile] .editorial-photo { aspect-ratio:3 / 2; }
@media(min-width:761px) {
    .editorial-dialog[open] { display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; height:min(880px,calc(100dvh - 48px)); overflow:hidden; }
    .editorial-workspace { min-height:0; }
    .editorial-options { overflow:auto; padding-right:8px; }
    .editorial-preview-wrap { display:flex; flex-direction:column; min-height:0; }
    .editorial-view-switch { flex-shrink:0; }
    .editorial-preview { min-height:0; max-height:none; flex:1; }
    .editorial-actions { position:static; }
    #memory-generated .memory-layout-custom .is-editorial-canvas.gen-grid-canvas { width:100%; }
    #memory-generated .memory-layout-custom .is-editorial-grid { width:100%; }
}
/* The story has twelve outer columns; days keep their independent inner grid.
   Only applied Editorial days move into columns 3–10. Preserved days keep their
   existing canvas. The header shares the days' reading column; an open desktop
   map brings chapters into it too, without changing saved coordinates. */
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day::before {
    background:var(--bg, #F7F5EB);
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header .chapter-dot {
    visibility:hidden;
}
/* Compact header statistics and sharing beside the date. */
#memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero > .memory-hero-content {
    padding-bottom:50px !important;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy {
    display:grid;
    grid-template-columns:minmax(0,1fr) 32px;
    width:100%;
    min-width:0;
    column-gap:12px;
    align-items:center;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > :is(.gen-day-tag,.gen-day-date,.gen-day-location) {
    grid-column:1;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-share {
    display:block;
    position:relative;
    grid-column:2;
    grid-row:2;
    align-self:center;
    justify-self:end;
    inset:auto;
    transform:none;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-share::before {
    display:none;
}
@media(min-width:769px) {
    .horizontal-drag-hint { position:fixed;left:96px;bottom:24px;z-index:9000;max-width:calc(100vw - 128px);box-sizing:border-box;padding:8px 16px;border-radius:4px;background:#111;color:var(--bg, #F7F5EB);font:14px/24px sans-serif;pointer-events:none; }
    #memory-generated .is-horizontal-photobook > .is-horizontal-reordering { outline:2px solid #584bb3;outline-offset:4px; }
    #memory-generated#memory-generated#memory-generated .is-horizontal-photobook { height:var(--book-canvas-height,100%)!important; }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy {
        grid-template-columns:max-content minmax(0,1fr) 32px;
        grid-template-rows:repeat(2,16px);
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-tag {
        grid-column:1;
        grid-row:1 / 3;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-date {
        grid-column:2;
        grid-row:1;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-location {
        grid-column:2;
        grid-row:2;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy > .gen-day-share {
        grid-column:3;
        grid-row:1;
    }
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy:not(:has(.gen-day-tag)) {
    grid-template-columns:minmax(0,1fr) 32px;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy:not(:has(.gen-day-tag)) > .gen-day-date {
    grid-column:1;
    grid-row:1;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy:not(:has(.gen-day-tag)) > .gen-day-location {
    grid-column:1;
    grid-row:2;
}
#memory-generated .memory-layout-custom.is-editorial-memory .gen-day-header-copy:not(:has(.gen-day-tag)) > .gen-day-share {
    grid-column:2;
    grid-row:1;
}
@media(min-width:1025px) {
    /* Editorial needs the actual available space, including the former map
       reservation when the map is hidden. The outer grid creates its margins. */
    #memory-generated .memory-shell.memory-hero-in-story.memory-layout-custom.is-editorial-memory .memory-shell-viewport {
        width:100%;
        max-width:100%;
        justify-self:stretch;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-body,
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-timeline {
        display:grid;
        /* Eight 131px tracks keep the reading width exactly 1048px.
           Below that width, those tracks fill the available space. */
        grid-template-columns:repeat(2,minmax(0,1fr)) repeat(8,minmax(0,min(131px,12.5%))) repeat(2,minmax(0,1fr));
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-body {
        width:100%;
        max-width:1636px; /* Twelve 131px columns plus the existing 32px padding. */
        margin-inline:auto;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero .memory-hero-main {
        grid-template-columns:minmax(0,3fr) minmax(0,1fr);
        gap:0;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero .memory-hero-copy {
        padding-right:32px;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-body > *,
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-timeline > * {
        grid-column:1 / -1;
        min-width:0;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .gen-timeline > .is-editorial-day {
        grid-column:3 / 11;
        padding-left:0;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .is-editorial-day::before {
        left:-32px;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero {
        container:editorial-hero / inline-size;
        grid-column:3 / 11;
        padding-left:0;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-map-collapsed .memory-map-reopen {
        left:40px;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory:not(.no-map):not(.is-map-collapsed) .gen-timeline > .memory-chapter {
        grid-column:3 / 11;
    }
}
@container editorial-hero (max-width:680px) {
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero .memory-hero-main {
        grid-template-columns:minmax(0,1fr);
        gap:28px;
    }
    #memory-generated .memory-layout-custom.is-editorial-memory .memory-story-hero .memory-hero-copy {
        padding-right:0;
    }
}
@media(max-width:760px) {
    .editorial-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:28px; padding:24px 18px; }
    .editorial-dialog > h2 { font-size:48px; }
    .editorial-workspace { grid-template-columns:1fr; gap:20px; }
    .editorial-options { gap:12px; }
    .editorial-days { max-height:110px; }
    .editorial-preview-wrap { padding:12px; }
    .editorial-preview { padding:14px; max-height:440px; }
    .editorial-intro { font-size:14px; }
    .editorial-entry { align-items:flex-start; flex-direction:column; gap:16px; }
    .editorial-actions { bottom:-24px; padding:18px 0 0; }
    .editorial-actions button { width:48%; font-size:14px; padding:12px; }
}

/* Unified Editorial, version 2. 8 × 110 + 7 × 24 = 1048.
   The wide chapter uses 12 × 110 + 11 × 24 = 1584. */
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-shell-viewport { container:editorial-page / inline-size; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body,
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-timeline {
    display:grid;
    grid-template-columns:repeat(8,minmax(0,1fr));
    column-gap:24px;
}
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body {
    width:100%; max-width:1112px; margin-inline:auto; padding-inline:32px;
}
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body > *,
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-timeline > *,
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body > .memory-story-hero,
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-timeline > .is-editorial-day,
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory:not(.no-map):not(.is-map-collapsed) .gen-timeline > .memory-chapter {
    grid-column:1 / -1; min-width:0;
}
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-story-hero { padding-left:0; container:editorial-hero / inline-size; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-story-hero > .memory-hero-content { padding-bottom:80px!important; }

#memory-generated#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-story-hero .memory-hero-content h1 { margin:16px 0 24px; position:relative; left:-4px; overflow-wrap:anywhere;
}
#memory-generated#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-story-hero .memory-hero-subtitle { margin:0 0 24px; }

#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day { padding-left:0; margin-bottom:192px; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header { margin-bottom:32px; }
#memory-generated#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header .gen-day-tag { margin:0 8px 0 0; grid-column:1; grid-row:1 / 3; white-space:nowrap; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory :is(.gen-day-date,.gen-day-location) { min-width:0; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; grid-column:2; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-date { grid-row:1; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-location { grid-row:2; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy { grid-template-columns:max-content minmax(0,1fr) 32px; gap:5px 12px; grid-template-rows:16px 16px; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy:has(> .gen-day-tag) { min-height:64px; align-content:center; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy > .gen-day-share { grid-column:3; grid-row:1; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy:not(:has(.gen-day-tag)) { grid-template-columns:minmax(0,1fr) 32px; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy:not(:has(.gen-day-tag)) > :is(.gen-day-date,.gen-day-location) { grid-column:1; }
#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day-header-copy:not(:has(.gen-day-tag)) > .gen-day-share { grid-column:2; }
.editorial-day-tools { display:none; }
#memory-generated.is-editing .is-unified-day .editorial-day-tools { display:flex; justify-content:space-between; gap:16px; align-items:center; margin:0 0 24px; font-size:12px; line-height:16px; color:#666; }
.editorial-day-tools button { border:1px solid #d8d5cd; border-radius:8px; background:var(--bg, #F7F5EB); color:#181818; font:inherit; padding:8px 12px; cursor:pointer; }
#memory-generated#memory-generated .is-unified-grid > [data-block-id][data-positioning-mode="absolute"] {
    position:absolute; left:var(--editorial-x); top:var(--editorial-y); width:var(--editorial-w);
    min-height:var(--editorial-h); height:var(--editorial-h); margin:0; box-sizing:border-box;
}
#memory-generated#memory-generated .is-unified-grid > .gen-day-story-block { height:auto!important; }
#memory-generated#memory-generated .is-unified-grid > [data-block-id] > .gen-day-text,
#memory-generated#memory-generated .is-unified-day .gen-day-text {
    width:100%; min-height:0;
    white-space:normal; overflow-wrap:anywhere; word-break:normal; padding:0;
}
#memory-generated#memory-generated .is-unified-day .gen-day-text h3 { margin:0 0 16px; }
#memory-generated#memory-generated .is-unified-day .gen-day-text h4 { margin:0 0 16px; }
#memory-generated#memory-generated .is-unified-day .gen-day-text > :last-child { margin-bottom:0; }
#memory-generated#memory-generated .is-unified-day .is-highlighted-text-block > .gen-day-text { padding:24px; }
/* Horizontal guides use the same viewport modules as photographs. Vertical
   guides retain their photo references; the 8px text baseline stays faint. */
#memory-generated#memory-generated.is-editing :is(.is-unified-canvas,.is-photobook-day .gen-grid-canvas)::before {
    mask:none; -webkit-mask:none; background:none;
}
@media(min-width:769px) {
    #memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .gen-grid-insert-overlay {
        display:block!important;
    }
    body.has-layout-dock #memory-generated#memory-generated :is(.is-unified-grid,.is-horizontal-photobook),
    #memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) {
        background-image:
            repeating-linear-gradient(to right,#584bb323 0,#584bb323 1px,transparent 1px,transparent calc(var(--canvas-photo-width) - 1px),#584bb323 calc(var(--canvas-photo-width) - 1px),#584bb323 var(--canvas-photo-width),transparent var(--canvas-photo-width),transparent var(--canvas-photo-column-pitch)),
            repeating-linear-gradient(to bottom,#584bb323 0,#584bb323 1px,transparent 1px,transparent calc(var(--canvas-photo-height) - 1px),#584bb323 calc(var(--canvas-photo-height) - 1px),#584bb323 var(--canvas-photo-height),transparent var(--canvas-photo-height),transparent var(--canvas-photo-row-pitch)),
            repeating-linear-gradient(to right,#584bb309 0,#584bb309 calc(var(--canvas-pitch) - var(--canvas-gutter)),transparent calc(var(--canvas-pitch) - var(--canvas-gutter)),transparent var(--canvas-pitch)),
            repeating-linear-gradient(to bottom,#584bb305 0,#584bb305 1px,transparent 1px,transparent var(--canvas-baseline));
    }
}
#memory-generated#memory-generated .is-unified-grid .gen-grid-compact-action,
#memory-generated#memory-generated .is-unified-grid .gen-grid-insert-menu [onclick*="Sticker"] { display:none!important; }
#memory-generated .is-unified-grid > .gen-insert-point-inline { display:none!important; }
#memory-generated .is-unified-grid .is-editorial-moving { outline:2px solid #584bb3; outline-offset:4px; z-index:80; }
#memory-generated .is-editorial-stacked :is(.gen-block-drag-handle,.gen-block-resize-handle,.gen-gap-handle) { display:none!important; }
.editorial-text-probe.is-article { padding:24px; }
@container editorial-page (min-width:1648px) {
    #memory-generated#memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-story-hero .memory-hero-content h1 { left:calc(-12.5% - 7px); }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body { max-width:1648px; }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory :is(.memory-body,.gen-timeline) { grid-template-columns:repeat(12,minmax(0,1fr)); }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body > .memory-story-hero,
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-timeline > .is-editorial-day,
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory:not(.no-map):not(.is-map-collapsed) .gen-timeline > .memory-chapter { grid-column:3 / 11; }
}

@media(max-width:760px) {
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .memory-body { padding-inline:16px; }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory :is(.memory-body,.gen-timeline) { grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:16px; }
    #memory-generated .memory-layout-custom.is-editorial-memory.is-unified-memory .gen-day { margin-bottom:128px; }

}
@media(min-width:769px) and (max-width:1024px) {
    #memory-generated .memory-layout-custom.is-editorial-memory.is-map-collapsed .memory-map-reopen { left:0; }
}

/* Chapter covers occupy whole columns near two thirds of their canvas. */
@media(min-width:769px) {
    #memory-generated#memory-generated .memory-chapter {
        grid-column:1 / -1; width:var(--chapter-grid-width,66.6667%); max-width:none;
        margin-left:0; margin-right:0;
    }
}
#memory-generated#memory-generated .memory-shell :is(.memory-shell-drawer,.memory-shell-drawer-scroll,.memory-map-panel,#genStoryMap) { box-shadow:none!important; }
#memory-generated#memory-generated .is-unified-grid > .is-highlighted-text-block { height:var(--editorial-h)!important; }
#memory-generated#memory-generated .is-unified-grid > .is-highlighted-text-block > .gen-day-text { min-height:100%; box-sizing:border-box; }
/* Articles expose all eight resize directions, including their four edges. */
#memory-generated#memory-generated.is-editing .is-unified-grid > .is-highlighted-text-block > .gen-block-resize-handle,
#memory-generated#memory-generated.is-editing .is-horizontal-photobook > .is-highlighted-text-block > .gen-block-resize-handle {
    display:block!important; position:absolute; width:16px; height:16px; z-index:7100!important; background:transparent; border:0; box-shadow:none;
}
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-nw { left:-8px;top:-8px;right:auto;bottom:auto;cursor:nwse-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-ne { left:auto;top:-8px;right:-8px;bottom:auto;cursor:nesw-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-sw { left:-8px;top:auto;right:auto;bottom:-8px;cursor:nesw-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-se { left:auto;top:auto;right:-8px;bottom:-8px;cursor:nwse-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-n { left:16px;top:-6px;right:16px;bottom:auto;width:auto;height:12px;cursor:ns-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-s { left:16px;top:auto;right:16px;bottom:-6px;width:auto;height:12px;cursor:ns-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-w { left:-6px;top:16px;right:auto;bottom:16px;width:12px;height:auto;cursor:ew-resize; }
#memory-generated#memory-generated.is-editing :is(.is-unified-grid,.is-horizontal-photobook) > .is-highlighted-text-block > .gen-block-resize-handle.is-e { left:auto;top:16px;right:-6px;bottom:16px;width:12px;height:auto;cursor:ew-resize; }

@media(min-width:769px) {
    #memory-generated#memory-generated .is-horizontal-photobook > [data-block-id] { position:absolute!important; left:var(--book-x)!important; top:var(--book-y)!important; width:var(--book-w)!important; height:var(--book-h)!important; min-height:0!important; margin:0!important; transform:none!important; }
    #memory-generated#memory-generated .is-horizontal-photobook > [data-block-id] > :is(.gen-photo,.gen-photo-group) { width:100%!important; height:100%!important; }
    #memory-generated#memory-generated .is-horizontal-photobook .gen-photo > img { width:100%;height:100%;object-fit:cover; }
    #memory-generated#memory-generated .is-horizontal-photobook > .gen-story-block > .gen-day-text { box-sizing:border-box; width:100%!important; max-width:none!important; height:100%!important; min-height:0!important; max-height:none!important; overflow:visible!important; column-count:var(--book-text-columns,1)!important; column-width:auto!important; column-gap:var(--book-text-gap,24px)!important; column-fill:auto; padding:0; }
    #memory-generated#memory-generated .is-horizontal-photobook .gen-day-text :is(h1,h2,h3,h4,p,ul,ol) { margin-top:0;margin-bottom:16px; }
    #memory-generated#memory-generated .is-horizontal-photobook .gen-day-text > :last-child { margin-bottom:0; }
    #memory-generated.is-editing .is-photobook-day .editorial-day-tools { display:flex; }
    #memory-generated .is-photobook-day .gen-day-header { max-width:none; }
    #memory-generated .memory-layout-horizontal-timeline .is-photobook-day { padding-right:0; }
    #memory-generated .memory-layout-horizontal-timeline .is-photobook-day::before {
        right:auto; width:calc(var(--horizontal-content-width) - 16px);
    }
    #memory-generated .memory-layout-horizontal-timeline .is-photobook-day > .gen-day-share {
        right:auto; left:calc(var(--horizontal-content-width) - 32px);
    }
    #memory-generated .memory-layout-horizontal-timeline .is-photobook-day > .gen-day-share > .gen-day-share-trigger {
        justify-items:end;
    }
    #memory-generated.is-editing .memory-layout-horizontal-timeline .is-photobook-day > .gen-day-order-control {
        right:0;
    }
}
.editorial-preview[data-orientation=horizontal][data-view=desktop] .editorial-sheet { min-width:100%; width:var(--book-preview-width); }
.editorial-preview[data-orientation=horizontal][data-view=desktop] .editorial-day { overflow-x:auto; }
.editorial-preview[data-orientation=horizontal][data-view=desktop] .editorial-text { column-count:var(--book-preview-columns,1); column-gap:var(--book-preview-gap,24px); column-fill:auto; }

.editorial-preview[data-orientation=horizontal][data-view=desktop] .editorial-text.is-article { padding:var(--book-preview-padding); }
.editorial-preview[data-orientation=horizontal] .editorial-photo img { object-fit:cover; }
.editorial-preview[data-orientation=horizontal][data-view=desktop] { grid-auto-rows:max-content; align-content:start; }

@media(min-width:769px) {
    #memory-generated.is-editing .is-photobook-day > .editorial-day-tools { position:absolute; top:4px; left:360px; width:max-content; height:auto; margin:0; z-index:20; }
    #memory-generated.is-editing .is-photobook-day > .editorial-day-tools > span { display:none; }
}
