/* THE IMAGE-OR-NO-IMAGE SANDBOX (design/SandboxFlow.astro layout "image", creator-flow-start.js): its start, its image steps,
   its last step; moved out of sandbox-flow-split.css to keep each file short (on top of it) */
/* ITS START, AN IMAGE OR NONE (the sandbox image-or-no-image, .gcf-try--image; creator-flow-start.js): till one is chosen
   (data-gcf-started) its title and the two ways alone at the left, its placeholders at the right; then its words, no Advanced */
.gcf__start { display: none; }
.gcf-try--image .gcf:not([data-gcf-started], [data-gcf-imaging]) [data-step="details"] .gcf__start { display: grid; gap: var(--g-4); }
.gcf-try--image .gcf:not([data-gcf-started]) [data-step="details"] :is(.g-tb__s, .gcf__slot, .gcf__typebtn, .gcf__err, .gcf__go) { display: none !important; }
.gcf-try--image .gcf :is(.gcf__advbtn, .gcf__adv) { display: none !important; }   /* no Advanced (Maayan, 2026-11-23) */
.gcf__startimg { display: grid; gap: var(--g-3); padding: var(--g-5); border: 1px solid rgb(232 210 170 / .35); border-radius: var(--g-r-lg, 14px); cursor: pointer; transition: border-color .3s ease, background-color .3s ease; }
.gcf__startimg:hover, .gcf__startimg:focus-visible { border-color: var(--g-cry-ink, #e8b84a); background: rgb(232 184 74 / .06); }
.gcf__startimg .gcf__h { margin: 0; padding: var(--g-3) 0 var(--g-4); text-align: center; }   /* room above and below (Maayan, 2026-11-23) */
.gcf__startsub { margin: 0 0 var(--g-2); color: var(--g-cry-ink, #e8b84a); font: normal var(--g-t-title2)/1.35 var(--g-font-book); }
/* the photo, its arrow and its miniature: the kit's (ui/FromPhoto.astro, kit-fromphoto.css) */
.gcf__startarrow svg { display: block; width: 100%; height: auto; }
.gcf__startarrow { flex: none; width: 64px; margin-bottom: 18%; transform: scaleY(-1); }   /* in the middle, turned over (Maayan, 2026-11-23: "flip it vertically") */
[dir="rtl"] .gcf__startarrow { transform: scale(-1, -1); }
.gcf__startart .g-fromphoto__to { margin-inline-start: calc(-1 * var(--g-4)); } .gcf__startmini { width: 100%; aspect-ratio: 1; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .55)); }
/* its two ways alike, each an option (Maayan, 2026-11-23: "the button below the same style as the element above it") */
.gcf__start [data-gcf-startnone] { min-height: 0; padding: var(--g-6) var(--g-5); border: 1px solid rgb(232 210 170 / .35); border-radius: var(--g-r-lg, 14px); background: none; color: var(--g-text); font: normal var(--g-t-title2)/1.3 var(--g-font-book); transition: border-color .3s ease, background-color .3s ease; }
.gcf__start [data-gcf-startnone]:hover, .gcf__start [data-gcf-startnone]:focus-visible { border-color: var(--g-cry-ink, #e8b84a); background: rgb(232 184 74 / .06); }
/* its type a word in its title's sentence: a thin line around it and a chevron, the title's own type (Maayan, 2026-11-23) */
.gcf-try--image .gcf__typeword { display: inline-block; margin-top: .14em; line-height: 1.05; padding: .02em .08em 0 .12em; border: 3px solid var(--g-cry-ink); border-radius: 10px; background: #f0c25a1f; cursor: pointer;   /* Maayan, 2026-11-23: 3px gold, 10px round, its gold faint behind */ white-space: nowrap; transition: border-color .3s ease; }
.gcf-try--image .gcf__typeword:hover, .gcf-try--image .gcf__typeword:focus-visible { border-color: var(--g-cry-ink, #e8b84a); outline: none; }
.gcf-try--image .gcf__typeword svg { display: inline; width: .42em; height: .42em; margin-inline-start: .1em; vertical-align: .12em; color: var(--g-cry-ink, #e8b84a); }
/* its type in its title only, none beside its name (Maayan, 2026-11-23) */
.gcf-try--image .gcf #gcType { display: none; }
.gcf-try--image .gcf .gc-details__who { grid-template-columns: minmax(0, 1fr); }
/* Back, under its Continue, once past its start */
.gcf__back { display: none; }
.gcf-try--image .gcf[data-gcf-started] [data-step="details"] .gcf__back { display: inline-block; margin-inline-start: var(--g-5); }
/* its step's parts come and go by the kit's moveBetweenSteps alone (kit-motion.js): no entrance of their own replaying
   after it as they are shown again (Maayan, 2026-11-23: "the content disappeard and re-appeard again abruptly") */
.gcf-try--image .gcf [data-step="details"] > *, .gcf-try--image .gcf [data-step="details"] :is(.gcf__go, .gcf__imggo) .g-btn { animation: none; }   /* a secondary button after its Create (Maayan, 2026-11-23) */
/* each way a chevron at its end, the kit's (icons.ts chevron), turning with the page's side (Maayan, 2026-11-23: "Add chevrons") */
.gcf__start :is([data-gcf-startimg], [data-gcf-startnone]) { position: relative; padding-inline: calc(var(--g-5) + 28px); }   /* even both sides: its words and example stay centred */
.gcf__start :is([data-gcf-startimg], [data-gcf-startnone])::before { content: ""; position: absolute; inset-inline-end: var(--g-5); top: 50%; width: 26px; height: 26px; margin-top: -13px; background: currentColor; opacity: .75; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
[dir="rtl"] .gcf__start :is([data-gcf-startimg], [data-gcf-startnone])::before { transform: scaleX(-1); }
.gcf__start [data-gcf-startimg] { color: var(--g-text); }
.gcf-try--split .gcf .gcf__step > .g-bottomfoot { width: auto; max-width: none; margin: 0; justify-self: stretch; }   /* the kit's footer the screen's width, never the column's */
/* START FROM IMAGE, ITS STEP (Maayan's mock, 2026-11-23): its words, its question, its three kinds, Upload Image and Back;
   at the right its card with the question in place of its placeholders, one fading into the other */
.gcf-try--image .gcf[data-gcf-imaging]:not([data-gcf-choosing]) [data-step="details"] .gcf__imgstep { display: grid; gap: var(--g-4); }
/* what it is, its own step (Maayan, 2026-11-23): its two boxes, its examples small, its sprite a link under them */
.gcf-try--image .gcf[data-gcf-choosing] [data-step="details"] .gcf__imgpick { display: grid; gap: var(--g-4); }
.gcf__pickrow { display: grid; gap: var(--g-4); }
.gcf__pickrow .gcf__h { margin: 0; color: var(--g-cry-ink, #e8b84a); }
.gcf__picksub { color: var(--g-text-3); font-size: var(--g-t); }
.gcf__pickart { display: flex; align-items: center; gap: var(--g-5); }
.gcf__pickpic { flex: none; width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border: 2px solid #f6f1e6; }
.gcf__pickpic--drawing { object-fit: contain; background: #fff; }
.gcf__pickart .gcf__startarrow { flex: none; width: 52px; margin: 0; }
.gcf__picksheet { flex: none; height: 138px; }
.gcf__pickart > .g-btn { margin-inline-start: auto; min-width: 150px; }
/* OR, a line either side of it (his mock) */
.gcf__or { display: flex; align-items: center; gap: var(--g-3); margin: var(--g-2) 0; color: var(--g-text-3); font-family: var(--g-font-book); text-transform: uppercase; }
.gcf__or::before { content: ""; flex: 0 0 var(--g-6); border-top: 1px solid rgb(255 255 255 / .2); } .gcf__or::after { content: ""; flex: 1; border-top: 1px solid rgb(255 255 255 / .2); }
.gcf__picklink { margin: 0; }
.gcf__picklink .g-btn { font-size: var(--g-t-title3, 1.15rem); text-decoration: underline; text-decoration-color: var(--g-cry-ink, #e8b84a); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.gcf__imgask { margin: 0 0 var(--g-2); color: var(--g-cry-ink, #e8b84a); font: normal var(--g-t-title2)/1.35 var(--g-font-book); }   /* its one line, as a title block's */
.gcf__imggo { display: flex; flex-wrap: wrap; gap: var(--g-5); margin-top: var(--g-cta-gap); }   /* its buttons as its words step's: their size, their words, their light, their gap */
@media (min-width: 900px) {
  /* appearElements (the kit's, kit-motion.js; Maayan, 2026-11-23): what is shown fades out, a moment, then the other
     fades in moving up; either way */
  .gcf-try--image .gcf__phq { display: grid; grid-area: 1 / 1; height: min(58vh, 500px); width: auto; aspect-ratio: auto; opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, width .45s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1); }
  .gcf-try--image .gcf[data-gcf-imaging] .gcf__phq { opacity: 1; transform: none; transition: opacity .4s ease .45s, transform .45s cubic-bezier(.2, .8, .2, 1) .45s, width .45s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1); }
  .gcf-try--image .gcf__phq:not([style*="width"]) { aspect-ratio: 2 / 3; }   /* till an image changes it: a card's shape */
  /* an image added: its question out, the image in, inside its inner frame (creator-flow-start.js card) */
  .gcf-try--image .gcf__phq .gcf__q { transition: opacity .3s ease; }
  .gcf-try--image .gcf__phq.has-pic .gcf__q { opacity: 0; }
  /* its frame the same on every side whatever its shape (Maayan, 2026-11-23: "outer rect - same paddings all sides"), the
     image filling its inner one, no room inside it */
  .gcf-try--image .gcf__phq::before { inset: 14px; } .gcf-try--image .gcf__phq::after { inset: 22px; }
  .gcf-try--image .gcf__phq .gcf__phqin { position: absolute; inset: 23px; width: calc(100% - 46px); height: calc(100% - 46px); max-width: none; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
  .gcf-try--image .gcf__phq.is-shown .gcf__phqin { opacity: 1; }
  .gcf-try--image .gcf__phs > .gcf__ph { transition: filter .4s ease .45s; }
  .gcf-try--image .gcf[data-gcf-imaging] .gcf__phs > .gcf__ph { filter: opacity(0); transition: filter .3s ease; }
}
/* its images, a row each (Maayan's mock, 2026-11-23): its square, then its links one under the other at its foot */
.gcf__imgrows { display: grid; gap: var(--g-4); margin-top: var(--g-4); }
.gcf__imgrow { display: flex; align-items: flex-end; gap: var(--g-5); }
.gcf__imgrow .g-slots { flex: none; width: 152px; height: 192px; } .gcf__imgrow .g-slots__row { height: 100%; }   /* its square a card's shape (his mock) */
.gcf__imglinks { display: grid; justify-items: start; gap: var(--g-4); padding-bottom: var(--g-2); }
.gcf__imglinks .g-btn { font-size: var(--g-t-title3, 1.15rem); text-decoration: underline; text-decoration-color: var(--g-cry-ink, #e8b84a); text-underline-offset: .18em; text-decoration-thickness: 1px; }   /* underlined (Maayan, 2026-11-23) */
.gcf__imglinks [data-gcf-imgmore] { font-size: var(--g-t, 1rem); }   /* the second, a bit smaller in every state */
.gcf__imgup { display: inline-flex; align-items: baseline; gap: var(--g-2); }
.gcf__orpaste { color: var(--g-text-2); font: normal var(--g-t)/1.3 var(--g-font-book); }
.gcf__orpaste[hidden] { display: none; }
.gcf-try--image .gcf [data-step="details"] { animation: none; }   /* on load it is simply there, nothing sliding in (Maayan, 2026-11-23: "a funny transition ... we don't want that") */
.gcf__imglinks [data-gcf-imguse][hidden] { display: none; }   /* its switch once its picture is in */
/* each image's links: its switch first, then Edit, then Add another image (Maayan, 2026-11-23) */
.gcf__imglinks > [data-gcf-imguse] { order: 1; } .gcf__imglinks > .gcf__imgup { order: 2; } .gcf__imglinks > [data-gcf-imgmore] { order: 3; }
.gcf__pickart > .g-btn { flex: 0 1 200px; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding-block: var(--g-2); }   /* its words on two lines when long, in the column */
/* its references, three side by side, each its name above it, tapped to add or edit (Maayan's mock, 2026-11-23) */
.gcf__imgrowlabel { display: none; }
.gcf__imgrows[data-mode="ref"] { display: flex; gap: var(--g-5); }
.gcf__imgrows[data-mode="ref"] .gcf__imgrow { flex-direction: column; align-items: flex-start; gap: var(--g-3); }
.gcf__imgrows[data-mode="ref"] .gcf__imgrowlabel { display: block; margin: 0; color: var(--g-cry-ink, #e8b84a); font: normal var(--g-t-title3)/1.3 var(--g-font-book); }
.gcf__imgrows[data-mode="ref"] .gcf__imglinks { display: none; }
.gcf__imgrows[data-mode="ref"] .gcf__imgrow .g-slots { width: 136px; height: 176px; }
.gcf-try--split .gcf .gcf__step > :is(.gcf__go, .gcf__imggo), .gcf-try--split .gcf .gcf__imgpick > .gcf__imggo { margin-top: var(--g-cta-gap); }   /* above the column's own margins */
/* a sprite's step: its long title smaller (Maayan, 2026-11-23); its cover's row named, under the sprite */
.gcf-try--image .gcf[data-gcf-imgmode="sprite"] .gcf__typed .g-tb__t { font-size: min(var(--g-cry-size), 2.2rem); }
.gcf__imgcovername { margin: 0; color: var(--g-cry-ink, #e8b84a); font: normal var(--g-t-title3)/1.3 var(--g-font-book); }
.gcf__imgrow[hidden] { display: none; }
/* ITS LAST STEP WITH IMAGES (Maayan, 2026-11-23: "the right panel now will show the grid. the left panel ... doesn't change"):
   its picture at the right slides away to the right; then, in its place, its images one by one, top left to bottom right,
   each its name under it (creator-flow-start.js mine) */
.gcf__mine, .gcf__wordsnote { display: none; }
.gcf-try--image .gcf[data-gcf-started] [data-step="details"] .gcf__wordsnote { display: block; margin: var(--g-5) 0 0; color: var(--g-text-2); font: normal var(--g-t)/1.4 var(--g-font-book); }
@media (min-width: 900px) {
  .gcf-try--image .gcf [data-step="details"] .gcf__phs { transition: transform .8s cubic-bezier(.6, 0, .25, 1), opacity .6s ease; }
  .gcf-try--image .gcf[data-gcf-gridded] [data-step="details"] .gcf__phs { transform: translateX(50vw); opacity: 0; }
  /* the whole picture side away (its moving board too: Maayan, 2026-11-23, "taking our focus"), its two halves kept */
  .gcf-try--image .gcf-try__boards { transition: left .8s cubic-bezier(.6, 0, .25, 1); }
  .gcf-try--image:has(.gcf[data-gcf-gridded]:not([data-gcf-step="reveal"])) .gcf-try__boards { left: 100%; }
  /* its three: the boards back across the screen, fading in slowly (Maayan, 2026-11-23) */
  .gcf-try--image:has(.gcf[data-gcf-step="reveal"]) .gcf-try__boards { left: 0; transition: none; animation: gcf-boards-in 2.4s ease both; }
  @keyframes gcf-boards-in { from { opacity: 0; } }
  /* its images at the right, their row centred, their top at the title's (creator-flow-start.js mine sets --mine-top) */
  .gcf-try--split.gcf-try--image .gcf[data-gcf-gridded] .gcf__step > .gcf__mine { grid-column: 2; grid-row: 1 / -1; justify-self: stretch; align-self: start; z-index: 1;
    width: auto; margin: 0; padding: var(--mine-top, 0px) var(--g-7) 0; box-sizing: border-box; justify-content: center; align-content: start; }
}
.gcf-try--image .gcf[data-gcf-gridded] [data-step="details"] .gcf__mine { display: grid; grid-template-columns: repeat(auto-fit, 150px); gap: var(--g-7); justify-content: center; }   /* room between them (Maayan, 2026-11-23) */
.gcf__mineone { margin: 0; display: grid; gap: var(--g-4); text-align: center; min-width: 0; opacity: 0; animation: gcf-mine-in .45s cubic-bezier(.2, .8, .2, 1) calc(.9s + var(--i) * .14s) forwards; }   /* the kit's appear, after the side has closed */
.gcf__mineone img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--g-r-sm); }
.gcf__mineone img { box-shadow: 0 10px 24px rgb(0 0 0 / .5); }
.gcf__mineone figcaption { color: var(--g-text); font: normal var(--g-t-sub)/1.3 var(--g-font-book); overflow-wrap: anywhere; }
@keyframes gcf-mine-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* THE SAME ROOM ON EVERY STEP (Maayan, 2026-11-23): its line (or title) to its content --g-step-gap; its content to its
   buttons --g-cta-gap; its buttons to the line under them --g-5; its last part to the foot of its column --g-8 */
.gcf-try--image { --g-step-gap: var(--g-7); }
.gcf-try--image [data-step="details"] > .gcf__typed { margin-bottom: 0; padding-bottom: var(--g-step-gap); }
.gcf-try--image [data-step="details"] > .gcf__typed .g-tb__s { margin-bottom: 0; }
.gcf-try--image [data-step="details"] :is(.gcf__start, .gcf__imgpick, .gcf__imgstep, .gcf__slot) > :first-child,
.gcf-try--image [data-step="details"] .gcf__imgstep > .gcf__imgrows { margin-top: 0; }
.gcf-try--image .gcf [data-step="details"] :is(.gcf__go, .gcf__imggo) { margin-top: calc(var(--g-cta-gap) - var(--g-4)); }
.gcf-try--image .gcf[data-gcf-started] [data-step="details"] .gcf__wordsnote { margin-top: calc(var(--g-5) - var(--g-4)); }
.gcf-try--image [data-step="details"] > .gcf__typed:not(:has(.g-tb__s:not([hidden]):not([style*="none"]))) .g-tb__t, .gcf-try--image .gcf:not([data-gcf-started]) [data-step="details"] > .gcf__typed .g-tb__t { margin-bottom: 0; }   /* no line under it: the title itself the step gap's start */
.gcf-try--image .gcf [data-step="details"] { padding-bottom: calc(var(--g-8) - var(--g-4)); }   /* its last part (its own --g-4 under it) to its foot: --g-8 */
/* no scroll it doesn't need (Maayan, 2026-11-23): its column's room counted in its height; whatever slides out clipped */
.gcf-try--image .gcf [data-step="details"] { box-sizing: border-box; }
.gcf-try--image { overflow-x: clip; }
.gcf-try--image .gcf__step::before { height: clamp(24px, 5vh, 80px); }   /* less room above: a step that fits the screen needs no scroll */
@media (min-width: 900px) { .gcf-try--split.gcf-try--image .gcf .gcf__step :is(.gcf__phs, .gcf__cover, .gcf__full, .gcf__done) { height: calc(100dvh - var(--g-head-h) - var(--g-8) + var(--g-4)); } }   /* its picture side and the column's foot room together: the screen, no more */
/* A PHONE (Maayan, 2026-11-24: "make all the create flow steps work on mobile"): each way to add its image, its pictures in a
   row and its Upload the whole width under them; nothing past the screen, a long link on two lines */
@media (max-width: 599px) {
  .gcf-try--image .gcf .gcf__imgpick, .gcf__pickrow { grid-template-columns: minmax(0, 1fr); }
  .gcf__pickart { flex-wrap: wrap; justify-content: center; gap: var(--g-3) var(--g-4); }
  .gcf__pickart > .g-btn { flex: 1 1 100%; min-width: 0; margin: 0; min-height: var(--g-touch-lg); }
  .gcf__imgpick .g-btn--link, .gcf__imgpick .g-btn--link .g-btn__t { white-space: normal; text-align: center; }
}
