/* The Whole Shoot. Without the view (no script, no engine, reduced motion, motion off,
 * the editor) the photographs are the native Gallery's own cropped grid. Mounted, the
 * root carries .patternpaste-spines-live and each photograph a --patternpaste-spines-g
 * between 0 and 1: a row grows it into flex-grow, the phone's stack into height. */
.patternpaste-designed-spines{--patternpaste-spines-ground:var(--pp-ground);--patternpaste-spines-ink:var(--pp-ink);--patternpaste-spines-mark:currentColor;padding:clamp(36px,6vw,96px) 0;overflow:hidden}
.patternpaste-designed-spines[data-treatment="designed"]{--patternpaste-spines-ground:#12130f;--patternpaste-spines-ink:#ece6d8;--patternpaste-spines-mark:#e0613a;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
.patternpaste-designed-spines[data-treatment="designed"]:not(.has-background){background:var(--patternpaste-spines-ground)}
.patternpaste-designed-spines[data-treatment="designed"]:not(.has-text-color){color:var(--patternpaste-spines-ink)}
.patternpaste-designed-spines .patternpaste-designed-layout{max-width:none}
.patternpaste-designed-spines .patternpaste-spines-intro{max-width:var(--wp--style--global--wide-size,1320px);margin-inline:auto;padding:0 clamp(18px,4vw,64px) clamp(28px,4cqi,56px);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr);align-items:end;gap:var(--patternpaste-designed-block-gap,clamp(18px,3cqi,48px))}
.patternpaste-designed-spines .patternpaste-spines-kicker{grid-column:1/-1;font-size:11px;line-height:1.5;letter-spacing:.18em}
.patternpaste-designed-spines .patternpaste-spines-heading{font-size:clamp(44px,7.4cqi,112px);line-height:.92;overflow-wrap:break-word}
.patternpaste-designed-spines[data-treatment="designed"] .patternpaste-spines-heading{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;letter-spacing:-.055em}
.patternpaste-designed-spines .patternpaste-spines-lede{max-width:34ch;font-size:clamp(15px,1.3cqi,19px);line-height:1.55}
.patternpaste-designed-spines[data-treatment="designed"]:not(.has-text-color) .patternpaste-spines-intro:not(.has-text-color) .patternpaste-spines-kicker:not(.has-text-color){color:var(--patternpaste-spines-mark)}
.patternpaste-designed-spines .patternpaste-spines-gallery{padding-inline:clamp(10px,2vw,28px)}
/* A caption sits on its own dark slab, never on whatever the photograph happens to be. */
.patternpaste-designed-spines .patternpaste-spines-gallery figure.wp-block-image:has(figcaption)::before{display:none}
.patternpaste-designed-spines .patternpaste-spines-gallery figure.wp-block-image figcaption{background:rgba(14,14,12,.82);color:#fff;text-shadow:none;padding:10px 14px;font-size:12px;line-height:1.4;text-align:left}
.patternpaste-designed-spines .patternpaste-spines-note{max-width:var(--wp--style--global--wide-size,1320px);margin:clamp(20px,3cqi,40px) auto 0;padding-inline:clamp(18px,4vw,64px);font-size:13px;line-height:1.5;letter-spacing:.04em}
.editor-styles-wrapper .patternpaste-designed-spines .patternpaste-spines-intro>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr);align-items:end;gap:var(--patternpaste-designed-block-gap,clamp(18px,3cqi,48px))}
.editor-styles-wrapper .patternpaste-designed-spines .patternpaste-spines-intro>.block-editor-inner-blocks{display:contents}
.editor-styles-wrapper .patternpaste-designed-spines .patternpaste-spines-intro>.block-editor-inner-blocks>.block-editor-block-list__layout>.patternpaste-spines-kicker{grid-column:1/-1}

/* The bar the view adds: where you are, and how to drive it. */
.patternpaste-designed-spines .patternpaste-spines-bar{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:0 clamp(10px,2vw,28px) 12px;font-size:11px;line-height:1.5;letter-spacing:.14em;text-transform:uppercase}
.patternpaste-designed-spines .patternpaste-spines-count{font-variant-numeric:tabular-nums;font-weight:700}
.patternpaste-designed-spines:not(.has-text-color) .patternpaste-spines-count{color:var(--patternpaste-spines-mark)}
.patternpaste-designed-spines .patternpaste-spines-hint{text-align:right;opacity:.75}
.patternpaste-designed-spines .patternpaste-spines-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The row. */
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery.wp-block-gallery{flex-wrap:nowrap;align-items:stretch;height:min(clamp(360px,46cqi,680px),82svh);touch-action:pan-y;outline-offset:4px}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery:focus-visible{outline:2px solid currentColor}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery.wp-block-gallery figure.wp-block-image:not(#individual-image){flex:calc(1 + var(--patternpaste-spines-reach,8) * var(--patternpaste-spines-g,0)) 1 0;width:auto;min-width:0;height:auto;margin:0;overflow:hidden;cursor:pointer}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.wp-block-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.wp-block-image:not(.patternpaste-spines-open) img{cursor:pointer}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.wp-block-image figcaption{right:auto;bottom:16px;left:16px;width:max-content;max-width:calc(100% - 32px);padding:10px 14px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.wp-block-image:not(.patternpaste-spines-open) figcaption,.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.wp-block-image:not(.patternpaste-spines-open)::before{opacity:0;visibility:hidden}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.patternpaste-spines-held::after{content:"";position:absolute;top:18px;left:18px;width:9px;height:9px;border-radius:50%;background:var(--patternpaste-spines-mark);box-shadow:0 0 0 2px #0006}

/* Core's Enlarge button, on the open spine only, with a finger-sized target. */
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery .lightbox-trigger{opacity:0;pointer-events:none;width:44px;height:44px;top:12px!important;right:12px!important;border-radius:50%;background-color:rgba(14,14,12,.55)!important}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery .lightbox-trigger svg{width:16px;height:16px}
.patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery figure.patternpaste-spines-open .lightbox-trigger{opacity:1;pointer-events:auto}

/* The phone: a stack of strips, the open one tall, every strip a 44px target. */
@container (max-width:600px){
  .patternpaste-designed-spines .patternpaste-spines-intro{grid-template-columns:1fr}
  .patternpaste-designed-spines .patternpaste-spines-hint{display:none}
  .patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery.wp-block-gallery{flex-direction:column;height:auto}
  .patternpaste-designed-spines.patternpaste-spines-live .patternpaste-spines-gallery.wp-block-gallery figure.wp-block-image:not(#individual-image){flex:none;width:100%;height:calc(46px + (min(118cqi,520px) - 46px) * var(--patternpaste-spines-g,0))}
  .editor-styles-wrapper .patternpaste-designed-spines .patternpaste-spines-intro>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr}
}
