/* SITE-1201-02 v2: /works and /works/<slug>. Clean pictures in rows, title on hover; a work opens over the grid (dialog
   #wd) or as its own page with the marked preview, its caption, the site's main button and a small license link.
   Colours, corners, buttons and type come from site-base.css. --r = a picture's width / height. */
/* the header is the site's page header (as /about and /pricing): the site's page-title size, padding and lead */
.wg-intro .page-title { text-wrap: balance }
.wg-intro .btn { margin-top: clamp(1.5rem, 2.5vw, 2rem) }
.wg-hero-a .wg-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 4vw, 4rem); align-items: center }
.wg-hero-a .page-title { font-size: clamp(2.375rem, 4.6vw, 4rem) }   /* the site's .wf-hero title size, for a two-column header */
.wg-hero-pic { display: block; border-radius: 14px; overflow: hidden }
/*zoom-twin*/@media (min-width: 1601px){/* the site's .wf-hero title size, for a two-column header */ .wg-hero-pic{border-radius:calc(14rem / 13.6)}}   /* the clean 480 px picture, shown at 480 px or less; opens the work */
.wg-hero-pic img { display: block; width: 100%; height: auto }
@media (max-width: 899px) { .wg-hero-a .wg-hero { display: block } .wg-hero-pic { margin-top: 1.5rem } }   /* phones: the work under the button, so a picture is on the first screen */
/* the wall: the site's column (edges on the logo's line) on white; the hero above and the questions below are mist, as the
   site alternates its sections. A picture painted on white sits on a mist card (multiply), so every tile reads as a picture */
.section.wg-wall { padding-top: clamp(2.5rem, 5vw, 4rem) }
.wg-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(1.25rem, 2vw, 1.5rem); padding: 0; list-style: none }
.wg-jump a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap }
/*zoom-twin*/@media (min-width: 1601px){.wg-jump a{border-radius:calc(999rem / 13.6);font-size:calc(14rem / 13.6)}}   /* text.pill 14/700 */
.wg-jump a:hover { box-shadow: 0 0 0 1.5px var(--ink) }
@media (max-width: 767px) {   /* phones: no section buttons (a cut row read as a cropped frame); the headings below name the sections and the works reach the first screen */
  .wg-jump { display: none }
}
.wg-order { display: none }
.wg-sec { scroll-margin-top: 6rem }
.wg-sec + .wg-sec { margin-top: clamp(3rem, 5vw, 4.5rem) }
.wg-sec h2 { font-size: clamp(1.625rem, 2.1vw, 40px); line-height: 1.1; margin: 0 }
/*zoom-twin*/@media (min-width: 1601px){.wg-sec h2{font-size:clamp(1.625rem, 2.1vw, calc(40rem / 13.6))}}   /* text.section-title, 40 at 1920 */
.wg-sec .wg-line { margin: .5rem 0 1.25rem; color: var(--ink-2); font-size: 16px; line-height: 1.5 }
/*zoom-twin*/@media (min-width: 1601px){/* text.section-title, 40 at 1920 */ .wg-sec .wg-line{font-size:calc(16rem / 13.6)}}   /* text.body */
.wg { list-style: none; margin: 0; padding: 0 }
.wg-tile { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--mist); color: #fff; text-decoration: none }
/*zoom-twin*/@media (min-width: 1601px){.wg-tile{border-radius:calc(14rem / 13.6)}}
.wg-tile img { mix-blend-mode: multiply }
.wg-tile img { display: block; width: 100%; height: auto }
.wg-cap { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .8rem; font-size: .9375rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(to top, rgb(31 34 49 / .7), rgb(31 34 49 / 0)); opacity: 0; transform: translateY(.375rem);
  transition: opacity .2s ease, transform .2s ease }
@media (hover: hover) { .wg-tile:hover .wg-cap { opacity: 1; transform: none } }
.wg-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
/*zoom-twin*/@media (min-width: 1601px){.wg-tile:focus-visible{outline:calc(3rem / 13.6) solid var(--ink);outline-offset:calc(3rem / 13.6)}}
.wg-tile:focus-visible .wg-cap { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .wg-cap { transition: none } }
.wg-rows { display: flex; flex-wrap: wrap; gap: 14px }
/*zoom-twin*/@media (min-width: 1601px){.wg-rows{gap:calc(14rem / 13.6)}}
.wg-rows::after { content: ""; flex: 1000 1 30% }   /* the last row keeps its height instead of stretching 1-2 works full width */
.wg-rows > li { flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--rh)) }
/* /works rows are cut in advance (rows_for): every row is full, no lone work at a section's end. A break item ends a row;
   .d breaks are for screens from 768 px, .m breaks for phones. Within a row widths follow --r, so heights match. */
.wg-rows.wg-fit { row-gap: 0 }
.wg-rows.wg-fit::after { display: none }
.wg-rows.wg-fit > li { flex: var(--r) 1 0; min-width: 0; margin-bottom: 14px }
/*zoom-twin*/@media (min-width: 1601px){.wg-rows.wg-fit > li{margin-bottom:calc(14rem / 13.6)}}
.wg-rows.wg-fit > li.wg-br { flex: 0 0 100%; height: 0; margin: 0 }
@media (min-width: 768px) { .wg-rows.wg-fit > li.wg-br:not(.d) { display: none } }
@media (max-width: 767px) { .wg-rows.wg-fit > li.wg-br:not(.m) { display: none } .wg-rows.wg-fit > li { margin-bottom: 8px } }
@media (max-width: 767px) { .wg-rows { --rh: 8.5rem !important; gap: 8px } }
/* questions: the site's open two-column block (as /pricing «Before you pay.»); the end: the site's closing card (as the home page) */
.wg-faq .section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem) }
/* the opened work: the same block in the dialog and on the work's own page */
.wd { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center }   /* no empty field under the panel */
.wd-pic img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--ground) }
/*zoom-twin*/@media (min-width: 1601px){/* no empty field under the panel */ .wd-pic img{border-radius:calc(14rem / 13.6)}}
.wd-panel { display: flex; flex-direction: column; gap: .75rem }
.wd-panel .crumbs { margin: 0 }
.wd-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15 }
.wd-by, .wd-about { margin: 0; color: var(--ink-2) }
.wd-cta { margin: .75rem 0 0; color: var(--ink) }
.wd-panel .btn { align-self: flex-start }
.wd-lic { margin: .25rem 0 0; font-size: 13px }
/*zoom-twin*/@media (min-width: 1601px){.wd-lic{font-size:calc(13rem / 13.6)}}   /* small, but not under the site's 13 px */
.wd-lic a { color: var(--ink-2) }
.wd-text { max-width: 46em; margin-top: clamp(1.75rem, 4vw, 2.5rem); color: var(--ink-2) }
.wd-text p + p { margin-top: .875rem }
.wd-more { margin-top: clamp(2rem, 4vw, 3rem) }
.wd-more-h { margin: 0 0 1rem; font-size: clamp(1.25rem, 2vw, 1.5rem) }
.wd-all { margin-top: 1.25rem }
.wd-dialog { width: min(1180px, 94vw); max-height: 92vh; margin: auto; padding: clamp(1rem, 2.5vw, 2rem); border: 0; border-radius: 14px;
  background: #fff; color: var(--ink); overflow: auto }
/*zoom-twin*/@media (min-width: 1601px){.wd-dialog{width:min(calc(1180rem / 13.6), 94vw);border-radius:calc(14rem / 13.6)}}
.wd-dialog::backdrop { background: rgb(31 34 49 / .62) }
/* the close button floats over the corner and takes no width from the picture */
.wd-close { position: sticky; top: 0; display: block; width: 2.5rem; height: 2.5rem; margin: -.5rem -.5rem -2rem auto; border: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; z-index: 1 }
/*zoom-twin*/@media (min-width: 1601px){/* the close button floats over the corner and takes no width from the picture */ .wd-close{border-radius:calc(999rem / 13.6)}}
.wd-dialog .wd { padding-right: 2.5rem }
.wd-dialog .wd-more ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 }
/*zoom-twin*/@media (min-width: 1601px){.wd-dialog .wd-more ul{gap:calc(8rem / 13.6)}}
.wd-dialog .wd-more li { flex: var(--r) 1 0; min-width: 0 }   /* «More» fills its row, heights match */
.wd-more-tile img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--mist); mix-blend-mode: multiply }
/*zoom-twin*/@media (min-width: 1601px){/* «More» fills its row, heights match */ .wd-more-tile img{border-radius:calc(10rem / 13.6)}}
.wd-more-tile { display: block; border-radius: 10px; background: var(--mist) }
/*zoom-twin*/@media (min-width: 1601px){.wd-more-tile{border-radius:calc(10rem / 13.6)}}
@media (max-width: 899px) {
  .wd-dialog .wd { padding-right: 0 }
  .wd-dialog .wd-more ul { overflow-x: auto }
  .wd-dialog .wd-more li { flex: none }
  .wd-more-tile img { height: 6.5rem; width: auto }
}
@media (max-width: 899px) { .wd { grid-template-columns: 1fr } .wd-dialog { width: 100vw; max-height: 100vh; border-radius: 0 } }
.wg-rows { --rh: 15rem }
.w-red-velvet-curtain-gradient-mesh { --r: 1.5534 }
.w-cream-gold-silk-wave-gradient-mesh { --r: 1.7712 }
.w-black-gold-silk-ribbons-gradient-mesh { --r: 1.8182 }
.w-violet-flowing-waves-gradient-mesh { --r: 1.7518 }
.w-red-silk-drapery-gradient-mesh { --r: 1.2938 }
.w-black-and-gold-liquid-marble-gradient-mesh { --r: 1.6842 }
.w-water-drops-on-blue-gradient-mesh { --r: 1.7712 }
.w-clear-water-splash-gradient-mesh { --r: 1.2632 }
.w-curved-water-splash-gradient-mesh { --r: 1.2565 }
.w-red-paint-splash-gradient-mesh { --r: 1.0573 }
.w-blue-water-wave-gradient-mesh { --r: 1.6783 }
.w-sea-foam-edge-gradient-mesh { --r: 1.5894 }
.w-milk-crown-splash-gradient-mesh { --r: 1.2698 }
.w-peach-cream-splash-gradient-mesh { --r: 1.4201 }
.w-soft-grey-cloud-gradient-mesh { --r: 1.8251 }
.w-white-clouds-blue-sky-gradient-mesh { --r: 1.5385 }
.w-white-clouds-on-blue-gradient-mesh { --r: 1.1268 }
.w-round-cartoon-clouds-gradient-mesh { --r: 2.212 }
.w-pink-cloud-gradient-mesh { --r: 1.9592 }
.w-yellow-moon-on-clouds-gradient-mesh { --r: 1.6327 }
.w-golden-moon-and-stars-over-clouds-gradient-mesh { --r: 1.5584 }
.w-golden-moon-pink-cloud-gradient-mesh { --r: 1.5142 }
.w-blue-cloud-in-a-light-ring-gradient-mesh { --r: 1.3953 }
.w-red-neon-ring-in-smoke-gradient-mesh { --r: 1.6961 }
.w-purple-smoke-gradient-mesh { --r: 1.7329 }
.w-green-hills-clouds-gradient-mesh { --r: 1.6667 }
.w-tree-on-a-green-hill-gradient-mesh { --r: 1.5142 }
.w-monstera-palm-leaves-gradient-mesh { --r: 1.25 }
.w-tropical-leaves-bouquet-gradient-mesh { --r: 1.7844 }
.w-cherry-blossom-branch-gradient-mesh { --r: 1.3636 }
.w-yellow-leaves-gradient-mesh { --r: 1.6609 }
.w-falling-golden-leaves-gradient-mesh { --r: 1.9753 }
.w-hibiscus-tropical-leaves-gradient-mesh { --r: 1.3187 }
.w-bird-with-spring-flowers-gradient-mesh { --r: 0.7833 }
.w-palm-leaves-on-yellow-gradient-mesh { --r: 1.7143 }
.w-autumn-leaves-at-sunrise-gradient-mesh { --r: 1.6842 }
.w-fantasy-plants-podium-gradient-mesh { --r: 1.8182 }
.w-pink-podium-with-petals-gradient-mesh { --r: 1.7582 }
.w-podium-with-green-leaves-gradient-mesh { --r: 1.7582 }
.w-podium-with-palm-leaves-gradient-mesh { --r: 1.7582 }
.w-podium-in-pink-clouds-gradient-mesh { --r: 1.459 }
.w-cloud-in-a-glass-ring-gradient-mesh { --r: 1.4634 }
.w-podiums-with-clouds-gradient-mesh { --r: 1.6107 }
.w-easter-podium-with-leaves-gradient-mesh { --r: 1.5484 }
.w-red-silk-over-a-stand-gradient-mesh { --r: 1.1294 }
.w-white-layered-sphere-gradient-mesh { --r: 1.4035 }
.w-abstract-shapes-with-a-gold-spiral-gradient-mesh { --r: 1.3483 }
.w-white-pumpkin-gold-leaves-gradient-mesh { --r: 1.7143 }
.w-golden-and-white-eggs-gradient-mesh { --r: 2.0426 }
.w-golden-eggs-nest-gradient-mesh { --r: 1.0738 }
.w-easter-eggs-in-bright-leaves-gradient-mesh { --r: 1.5842 }

/* build43 (wide43; owner 01.12 «расширяй изображения»): /works and the work pages stand on the site's wide column, the width of
   the guide pages (guides-tree.css: --dl-max = max(103rem, 88vw), the shell the owner chose 30.11 as «Б»). This file loads only
   on /works and the 51 work pages, so --max changes there alone: the header, every section, the closing card and the footer
   widen together and the logo, the titles and the pictures keep one left line (ACCEPTANCE 24.4). The grid's rows are cut in
   advance and fill the width, so every picture grows with the column; the opened work grows with it. Phones do not change. */
@media (min-width: 1024px) {
  :root { --max: max(103rem, 88vw) }
  .wd-dialog { width: min(var(--max), 94vw) }
}
