/* Wall to Wall. Without the view (no script, no engine, reduced motion, motion off,
 * the editor) the photographs are the native Gallery's own cropped grid, edge to edge.
 * Mounted, the root carries .patternpaste-fisheye-live and the Gallery two track lists the
 * view writes (--patternpaste-fisheye-x, -y): a grid of explicit tracks one screen tall
 * whose sizes glide. The column count is decided here: eight, six on a tablet, four on a
 * phone, capped by the Gallery's Columns setting. Only the band a saved page may keep
 * above the wall keeps to the theme's wide size; the wall itself runs to both edges. */
.patternpaste-designed-fisheye{--patternpaste-fisheye-ground:var(--pp-ink);--patternpaste-fisheye-mark:var(--pp-primary);padding:0}
.patternpaste-designed-fisheye[data-treatment="designed"]{--patternpaste-fisheye-ground:#0e0f11;--patternpaste-fisheye-ink:#eee8dc;--patternpaste-fisheye-mark:#f0b54a;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
.patternpaste-designed-fisheye[data-treatment="designed"]:not(.has-background){background:var(--patternpaste-fisheye-ground)}
.patternpaste-designed-fisheye[data-treatment="designed"]:not(.has-text-color){color:var(--patternpaste-fisheye-ink)}
.patternpaste-designed-fisheye .patternpaste-designed-layout{max-width:none;row-gap:0}

/* The band: kept for pages saved on 0.50.0 and 0.50.1, whose wall has an Introduction above it; the pattern since 0.50.2 is the wall alone. */
.patternpaste-designed-fisheye .patternpaste-fisheye-intro{box-sizing:border-box;width:100%;max-width:var(--wp--style--global--wide-size,1280px);margin-inline:auto;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:end;gap:6px var(--patternpaste-designed-block-gap,clamp(20px,4cqi,64px));padding:clamp(18px,2.2cqi,30px) clamp(16px,3cqi,40px)}
.patternpaste-designed-fisheye .patternpaste-fisheye-kicker{grid-column:1;font-size:11px;line-height:1.5;letter-spacing:.16em}
.patternpaste-designed-fisheye .patternpaste-fisheye-heading{grid-column:1;font-size:clamp(26px,3.1cqi,46px);line-height:1.04;letter-spacing:-.035em;overflow-wrap:break-word}
.patternpaste-designed-fisheye .patternpaste-fisheye-lede{grid-column:2;grid-row:1/span 2;max-width:44ch;justify-self:end;font-size:clamp(14px,1.1cqi,16px);line-height:1.5}
.patternpaste-designed-fisheye[data-treatment="designed"] .patternpaste-fisheye-heading{font-family:inherit;font-weight:500}
.patternpaste-designed-fisheye[data-treatment="designed"] :is(.patternpaste-fisheye-kicker,.patternpaste-fisheye-bar){font-family:ui-monospace,Menlo,Consolas,monospace}
.patternpaste-designed-fisheye[data-treatment="designed"] .patternpaste-fisheye-lede{opacity:.82}
.patternpaste-designed-fisheye[data-treatment="designed"]:not(.has-text-color) .patternpaste-fisheye-intro:not(.has-text-color) .patternpaste-fisheye-kicker:not(.has-text-color){color:var(--patternpaste-fisheye-mark)}
.editor-styles-wrapper .patternpaste-designed-fisheye .patternpaste-fisheye-intro>.block-editor-inner-blocks{display:contents}
.editor-styles-wrapper .patternpaste-designed-fisheye .patternpaste-fisheye-intro>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:end;gap:6px var(--patternpaste-designed-block-gap,clamp(20px,4cqi,64px))}

/* The wall: hairline gaps on the ground colour, square corners, in every mode. */
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery{--patternpaste-fisheye-columns:3;--patternpaste-fisheye-most:8;width:100%;margin:0;padding:0}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery:not(.has-background){background:var(--patternpaste-fisheye-ground)}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-1{--patternpaste-fisheye-columns:1}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-2{--patternpaste-fisheye-columns:2}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-4{--patternpaste-fisheye-columns:4}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-5{--patternpaste-fisheye-columns:5}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-6{--patternpaste-fisheye-columns:6}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-7{--patternpaste-fisheye-columns:7}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery.columns-8{--patternpaste-fisheye-columns:8}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery figure.wp-block-image img{border-radius:0}
/* A caption sits on its own dark slab, never on whatever the photograph happens to be. */
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery figure.wp-block-image:has(figcaption)::before{display:none}
.patternpaste-designed-fisheye .patternpaste-fisheye-gallery figure.wp-block-image figcaption{background:rgba(14,15,17,.86);color:#fff;text-shadow:none;padding:8px 12px;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;text-align:left}

/* The plate the view adds in the wall's corner: which picture is forward, and how to drive it. */
.patternpaste-designed-fisheye .patternpaste-fisheye-bar{position:absolute;right:12px;bottom:12px;z-index:3;display:flex;align-items:baseline;gap:12px;max-width:calc(100% - 24px);padding:7px 11px;background:rgba(14,15,17,.86);color:#fff;font-size:11px;line-height:1.4;letter-spacing:.06em;pointer-events:none}
.patternpaste-designed-fisheye .patternpaste-fisheye-count{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.patternpaste-designed-fisheye .patternpaste-fisheye-hint{opacity:.8}
.patternpaste-designed-fisheye .patternpaste-fisheye-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The lens: explicit tracks, one screen tall, an outer size that never moves. */
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery.wp-block-gallery{position:relative;display:grid;grid-template-columns:var(--patternpaste-fisheye-x);grid-template-rows:var(--patternpaste-fisheye-y);height:100vh;height:100svh;min-height:max(420px,calc(var(--patternpaste-fisheye-r,4) * 44px));touch-action:pan-y pinch-zoom;outline-offset:-3px}
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery:focus-visible{outline:3px solid var(--patternpaste-fisheye-mark)}
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery.wp-block-gallery figure.wp-block-image:not(#individual-image){width:auto;height:auto;min-width:0;min-height:0;margin:0;overflow:hidden;cursor:zoom-in}
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-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-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery figure.patternpaste-fisheye-open img{outline:2px solid var(--patternpaste-fisheye-mark);outline-offset:-2px}
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery figure.wp-block-image figcaption{right:auto;bottom:12px;left:12px;width:max-content;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery figure.wp-block-image:not(.patternpaste-fisheye-open) figcaption{opacity:0;visibility:hidden}

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

/* Six columns on a tablet; four on a phone, where a tap brings a picture forward. */
@container (max-width:900px){
  .patternpaste-designed-fisheye .patternpaste-fisheye-gallery{--patternpaste-fisheye-most:6}
}
@container (max-width:600px){
  .patternpaste-designed-fisheye .patternpaste-fisheye-intro{grid-template-columns:1fr}
  .patternpaste-designed-fisheye .patternpaste-fisheye-lede{grid-column:1;grid-row:auto;justify-self:start}
  .patternpaste-designed-fisheye .patternpaste-fisheye-gallery{--patternpaste-fisheye-most:4}
  .patternpaste-designed-fisheye .patternpaste-fisheye-bar{right:8px;bottom:8px}
  .patternpaste-designed-fisheye .patternpaste-fisheye-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .patternpaste-designed-fisheye.patternpaste-fisheye-live .patternpaste-fisheye-gallery figure.wp-block-image figcaption{bottom:8px;left:8px;max-width:calc(100% - 16px);padding:6px 9px;font-size:11px}
  .editor-styles-wrapper .patternpaste-designed-fisheye .patternpaste-fisheye-intro>.block-editor-inner-blocks>.block-editor-block-list__layout{grid-template-columns:1fr}
}
