/* Mo gallery (2026-11-24): the /mo/ hand-drawn look (paper, pencil, Patrick Hand) on a plain grid of ready-made Mos */
.mogal { --paper: #f6efe1; --paper2: #efe6d3; --pencil: #282522; --muted: #5d5850; color: var(--pencil); padding: 0 16px 72px; }
body:has(.mogal) { --pencil: #282522; }
.mogal .wrap { max-width: 1128px; margin: 0 auto; }
.mogal h1, .mogal h2, .mogal .gchips a, .mogal .gw, .mogal .gbtn, .mogal .glink, .mogal .gsw, .mogal .crumb { font-family: "Patrick Hand", "Comic Sans MS", cursive; font-weight: 400; }
.ghero { padding: 56px 0 12px; }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 18px; }
.ghero h1 { text-align: left; font-size: clamp(52px, 9vw, 88px); line-height: 1.15; margin: 0; padding-bottom: 6px; } /* room for the g and y below the line (owner, 2026-11-24) */
.gown { flex: none; }
.ghero .lede { max-width: 680px; margin: 0 0 18px; font: 17px/1.5 "Open Sans", Poppins, sans-serif; color: var(--muted); text-align: left; }
.crumb { margin: 0 0 4px; font-size: 20px; text-align: left; } .crumb a { color: var(--pencil); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchips a { font-size: 20px; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; padding: 3px 14px 4px; }
.gchips a:hover { background: var(--paper2); }
.gchips a[aria-current] { background: var(--pencil); color: #fffdf8; }
.gsec { padding: 28px 0 4px; }
.gsec h2 { text-align: left; font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; } .gsec h2 a { color: var(--pencil); text-decoration: none; } .gsec h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
@media (max-width: 520px) { .ggrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .mogal { padding: 0 12px 56px; } }
.gcard { position: relative; display: flex; flex-direction: column; background: #fffdf8; border: 2px solid var(--pencil); border-radius: 14px 9px 15px 10px; overflow: hidden; box-shadow: 3px 3px 0 rgba(40,37,34,.18); }
.gcard video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper2); }
/* a mouse: the buttons sit over the bottom of the loop and show on hover or keyboard focus */
/* desktop drop-down removed (owner, 2026-11-24): the buttons are always under the card, on every device */
}
/* touch screens: no hover, so the two buttons are always there, under the loop */
.gtoast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); margin: 0; padding: 8px 16px; background: var(--pencil); color: #fffdf8; border-radius: 12px 8px 13px 9px; font: 15px/1.3 "Open Sans", Poppins, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.gtoast.on { opacity: 1; transform: translate(-50%, 0); }
.gmake { margin-top: 44px; padding: 28px 24px; background: var(--paper2); border: 2px solid var(--pencil); border-radius: 18px 12px 20px 14px; text-align: center; }
.gmake h2 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 6px; }
.gmake p { max-width: 620px; margin: 0 auto 16px; font: 16px/1.5 "Open Sans", Poppins, sans-serif; color: var(--muted); text-align: left; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 22px 6px; font-size: 22px; color: var(--pencil); background: #fffdf8; border: 2px solid var(--pencil); border-radius: 13px 8px 14px 9px; text-decoration: none; cursor: pointer; }
.gbtn.primary { background: var(--pencil); color: #fffdf8; }
.gbtn:disabled { opacity: .6; cursor: progress; }
.glink { background: none; border: 0; padding: 4px 0; font-size: 18px; color: var(--pencil); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* the /mo/ background (owner, 2026-11-24): paper, the soft moving blobs behind everything (herofx, as on /mo/), the site header see-through and dark */
body { background: var(--paper, #f6efe1) !important; }
body:has(.mogal) { --paper: #f6efe1; }
body:has(.mogal) .header { background: transparent !important; }
body:has(.mogal) .header > .controls > a, body:has(.mogal) .header .logo, body:has(.mogal) .header .logo *, body:has(.mogal) #links > a, body:has(.mogal) .header .dropdown > a, body:has(.mogal) .header i.fa-bars, body:has(.mogal) .headerlinksicon, body:has(.mogal) .headerlinksicon i { color: var(--pencil) !important; }
body:has(.mogal) #templatelink, body:has(.mogal) #bloglink, body:has(.mogal) #pricinglink, body:has(.mogal) #helplink, body:has(.mogal) .headerlinks > a { color: var(--pencil) !important; }
body:has(.mogal) #signincontent, body:has(.mogal) #signincontent a, body:has(.mogal) #signincontent button { color: var(--pencil) !important; }
body:has(.mogal) .header .logo { text-shadow: none !important; }
body:has(.mogal) .userdownarrow, body:has(.mogal) .userdownarrow i { color: var(--pencil) !important; }
.mogal { position: relative; margin-top: -60px; padding-top: 60px; } /* under the see-through header, as on /mo/ */
.mogal > .gbgfx.hfx-host { position: absolute; top: 0; left: 0; right: 0; height: 1000px; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); } /* the blobs fill one screen at the top, like /mo/'s hero and maker, and fade out below */
.mogal > .gbgfx > .hfx-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mogal > main { position: relative; z-index: 1; }
body:has(.mogal) .header { position: relative; z-index: 5; }
.mogal .gmake { margin-top: 72px; } /* the .wrap rule zeroed its top margin; clear space above the box (owner, 2026-11-24) */
.mogal .aifoot { margin-top: 28px; text-align: center; font: 13px/1.4 "Open Sans", Poppins, sans-serif; color: var(--muted); }
/* the card menu (2026-11-24): the same four actions, a list on a computer, a 2 x 2 of buttons on a phone */
.gacts { display: grid; }
.gact { display: flex; align-items: center; gap: 8px; margin: 0; font: 17px/1.1 "Patrick Hand", "Comic Sans MS", cursive; color: var(--pencil); text-decoration: none; cursor: pointer; white-space: nowrap; }
.gact svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gact:disabled { opacity: .6; cursor: progress; }
@media (hover: none) {
  .gacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; padding: 7px 6px 6px; }
  .gact { min-width: 0; overflow: hidden; justify-content: center; gap: 5px; min-height: 34px; padding: 2px 4px 3px; font-size: 15.5px; background: #fffdf8; border: 1.5px solid var(--pencil); border-radius: 11px 7px 12px 8px; }
  .gact.primary { background: var(--pencil); color: #fffdf8; }
  .gact svg { width: 15px; height: 15px; }
}
@media (hover: none) and (max-width: 520px) { .gact svg { display: none; } .gact { font-size: 15px; } } /* two narrow columns: words only */
.gact[hidden] { display: none; }
/* Download with its two choices on one line (computers); phones keep Send this / Send video */
.gdl { cursor: default; }
.gopts { display: flex; gap: 6px; } /* no "Download" word (owner, 2026-11-24): the icon and the two choices say it */
.gopt { font: 16px/1 "Patrick Hand", "Comic Sans MS", cursive; color: var(--pencil); background: #fffdf8; border: 1.5px solid var(--pencil); border-radius: 9px 6px 10px 7px; padding: 3px 10px 4px; cursor: pointer; }
.gopt:hover, .gopt:focus-visible { background: var(--pencil); color: #fffdf8; outline: none; }
.gopt:disabled { opacity: .6; cursor: progress; }
@media (hover: hover) { .gtouch { display: none; } .gdl:hover { background: none; } }
@media (hover: none) { .gdl { display: none; } }
/* How to send a Mo */
.mogal .ghelp { margin-top: 64px; }
.ghelp h2 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 14px; text-align: left; }
.ghcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .ghcards { grid-template-columns: 1fr; } }
.ghcard { background: #fffdf8; border: 2px solid var(--pencil); border-radius: 14px 9px 15px 10px; padding: 14px 16px; box-shadow: 3px 3px 0 rgba(40,37,34,.18); }
.ghcard h3 { margin: 0 0 6px; font: 400 24px/1.1 "Patrick Hand", "Comic Sans MS", cursive; text-align: left; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ghcard p, .ghapps li { margin: 0; font: 15px/1.5 "Open Sans", Poppins, sans-serif; color: var(--muted); text-align: left; }
.ghcard b, .ghapps b { color: var(--pencil); font-weight: 600; }
.gtag { font: 14px/1 "Patrick Hand", cursive; border: 1.5px solid var(--pencil); border-radius: 999px; padding: 2px 8px 3px; }
.ghapps { margin-top: 14px; } .ghapps summary { cursor: pointer; font: 19px "Patrick Hand", cursive; color: var(--pencil); text-align: left; }
.ghapps ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.gtoast.on { pointer-events: auto; } .gtoast a { color: #fffdf8; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
/* Send it (2026-11-24): Send it (red, as on /mo/) + Make it mine; Send it swaps them for "Where's it going?" in the card */
.mogal .gmainv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.mogal .gmainv[hidden] { display: none; }
.mogal .gmainv .gact { justify-content: center; gap: 6px; min-height: 36px; padding: 3px 6px 5px; font-size: 18px; background: #fffdf8; border: 2px solid var(--pencil); border-radius: 13px 8px 14px 9px; box-shadow: 2px 2px 0 var(--pencil); width: auto; text-align: center; }
.mogal .gmainv .gact:active { transform: translate(2px, 2px); box-shadow: none; }
.mogal .gmainv .gsendit { background: #fc4a1a; color: #fff; }
.mogal .gmainv .gsendit:hover, .mogal .gmainv .gsendit:focus-visible { background: #e23f12; }
.mogal .gmainv .gmine:hover, .mogal .gmainv .gmine:focus-visible { background: var(--paper2); }
.mogal .gmainv .gact.gmine { margin: 0; border-top: 2px solid var(--pencil); padding-top: 3px; }
.gdonet { margin: 4px 0 0; padding: 7px 9px; background: var(--paper2); border-radius: 9px 6px 10px 7px; font: 13px/1.4 "Open Sans", Poppins, sans-serif; color: var(--pencil); text-align: left; }
.gdonet[hidden] { display: none; }
@media (hover: none) { .mogal .gmainv .gact { font-size: 16px; min-height: 36px; } }
@media (hover: none) and (max-width: 520px) { .mogal .gmainv .gact svg { display: none; } }
.mogal .gacts { grid-template-columns: minmax(0, 1fr) !important; } /* the Send it pieces fill the card (the old 2-column rule split them) */
@media (hover: hover) { .mogal .gmainv { grid-template-columns: minmax(0, 1fr); } } /* computers: Send it over Make it mine, each full width */
/* the toast, as the site's moToast: a white card at the bottom, bold Open Sans, a teal check */
.mogal .gtoast { display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(460px, calc(100vw - 32px)); box-sizing: border-box; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); padding: 14px 20px; background: #fff; color: #2b2f33; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.2); font: bold 16px/1.3 "Open Sans", sans-serif; text-align: left; z-index: 100000; cursor: pointer; }
.mogal .gtoast svg { flex: none; width: 24px; height: 24px; }
/* Send it dialog, as /mo/'s (2026-11-24): the phones and choices are copied from mo/index.php (.sc-*, .howphone, .spick) */
.mogal { --ink: #282522; --accent: #fc4a1a; }
/* the Send it pictures and choices come from /mo/sendit.css, shared with /mo/ (linked in page.php) */

#gwhere { box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; background: #fffdf8; color: var(--pencil); border: 2.5px solid var(--pencil); border-radius: 22px 10px 24px 12px / 12px 24px 10px 22px; box-shadow: 5px 6px 0 var(--pencil); font-family: "Open Sans", Poppins, sans-serif; }
#gwhere::backdrop { background: rgba(40,37,34,.45); }
#gwhere .gwtop { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
#gwhere .gwh { margin: 0; font: 400 30px/1.1 "Patrick Hand", "Comic Sans MS", cursive; color: var(--pencil); text-align: left; }
#gwhere .gx { width: 40px; height: 40px; font-size: 30px; line-height: 1; background: none; border: 0; color: #0e3b45; cursor: pointer; }
#gwhere .gx:focus:not(:focus-visible) { outline: none; }
#gwhere .spick .sc-mo { object-fit: cover; }
#gwhere .gdonet { margin: 8px 0 0; }
@media (max-width: 560px) {
  #gwhere { width: 100%; max-width: 100%; inset: auto 0 0 0; margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
  #gwhere[open] { animation: gup .2s ease-out; }
}
@keyframes gup { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.spick:disabled { opacity: .6; cursor: progress; }
.spick:hover, .spick:focus-visible { background: #fbf5e8; outline: none; }
/* Send it dialog, 2026-11-24 later (owner): the Mo on top, smaller choices, and a step screen after a choice */
#gwhere .gwmo { display: block; width: 132px; aspect-ratio: 1; margin: 0 auto 12px; border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; background: var(--paper2); object-fit: cover; }
#gwhere .sendpick { gap: 8px; margin: 0; }
#gwhere .spick { gap: 10px; padding: 6px 10px 6px 7px; border-width: 2px; box-shadow: 2px 3px 0 var(--pencil); }
#gwhere .spick .howphone { --z: .13; }
#gwhere .sptext b { font-size: 21px; }
#gwhere .sptext small { font-size: 12.5px; margin-top: 2px; }
#gwhere .spgo { font-size: 30px; }
#gwhere .gwpick[hidden], #gwhere .gwstep[hidden] { display: none; }
#gwhere .gwkind { margin: 0 0 6px; font: 400 18px "Patrick Hand", cursive; color: var(--muted); text-align: center; }
#gwhere .gwsteps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; font: 15px/1.45 "Open Sans", sans-serif; color: var(--pencil); text-align: left; }
#gwhere .gwsteps b { font-weight: 700; }
#gwhere .gwbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
#gwhere .gwbtn { min-width: 130px; font: 400 20px "Patrick Hand", cursive; padding: 5px 20px 7px; background: #fffdf8; color: var(--pencil); border: 2.5px solid var(--pencil); border-radius: 22px 12px 20px 14px / 14px 20px 12px 22px; box-shadow: 3px 3px 0 var(--pencil); cursor: pointer; }
#gwhere .gwbtn.primary { background: #fc4a1a; color: #fff; }
#gwhere .gwbtn:active { transform: translate(3px, 3px); box-shadow: none; }
#gwhere .gwbtn:disabled { opacity: .6; cursor: progress; }
#gwhere .gwfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
#gwhere .gwother, #gwhere .gwdone { font: 400 18px "Patrick Hand", cursive; color: var(--pencil); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#gwhere .gwdone { text-decoration: none; border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; padding: 3px 16px 5px; }
#gwhere .gdonet { text-align: center; }
@media (max-width: 560px) { #gwhere .gwmo { width: 110px; } }
#gwhere .gwkind[hidden] { display: none; }
#gwhere .gwbtns .gwbtn { min-width: 0; flex: 1 1 0; max-width: 170px; }
#gwhere .gwsteps li { padding-left: 2px; }
/* card buttons, 2026-11-24 (owner): Send it and Make it mine the same size, and GIF / Video downloads under Send it like /mo/'s Build GIF / Build video */
.mogal .gmainv { grid-template-columns: minmax(0, 1fr) !important; gap: 6px; }
.mogal .gmainv .gact, .mogal .gmainv .gact.gmine { box-sizing: border-box; height: 40px; min-height: 0; margin: 0; padding: 0 8px 2px; border: 2px solid var(--pencil); font-size: 18px; }
.mogal .gdlrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.mogal .gmainv .gdl2 { height: 34px; font-size: 16px; gap: 4px; }
.mogal .gmainv .gdl2 svg { width: 15px; height: 15px; display: block !important; }
.mogal .gmainv .gdl2:hover, .mogal .gmainv .gdl2:focus-visible { background: var(--paper2); }
.mogal .gmainv .gdl2:disabled { opacity: .6; cursor: progress; }
/* SEO pass (2026-11-24): the card picture is a real <img> (indexable, alt = the words); the loop plays over it once on screen */
.gpic { position: relative; aspect-ratio: 1; background: var(--paper2); }
.gpic img, .gpic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gpic video { opacity: 0; transition: opacity .2s; } .gpic video.on { opacity: 1; }
.mogal .gcard .gpic video { aspect-ratio: auto; }
.gkick { display: block; font: 600 14px/1.3 Poppins, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; color: var(--pencil); }
.ghero .lede { max-width: 760px; }
/* Send it choices as tiles (owner, 2026-11-24: "images bigger ... more of a tile layout"): three across, the phone picture large, its name under it */
#gwhere { width: min(600px, calc(100vw - 24px)); }
#gwhere .sendpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#gwhere .spick { flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 12px 8px 10px; text-align: center; }
#gwhere .spick .howphone { --z: .42; }
#gwhere .sptext { text-align: center; }
#gwhere .sptext b { font-size: 22px; }
#gwhere .sptext small { font-size: 12.5px; line-height: 1.3; margin-top: 3px; }
#gwhere .spgo { display: none; }
#gwhere .spick:hover, #gwhere .spick:focus-visible { background: #fbf5e8; transform: translateY(-2px); }
@media (max-width: 560px) {
  #gwhere .sendpick { gap: 6px; }
  #gwhere .spick { padding: 8px 4px 8px; gap: 6px; border-radius: 14px 8px 15px 9px; }
  #gwhere .spick .howphone { --z: .26; }
  #gwhere .sptext b { font-size: 18px; }
  #gwhere .sptext small { font-size: 11px; }
  #gwhere .gwmo { width: 96px; margin-bottom: 8px; }
}
#gwhere .sc-player { object-fit: contain; background: #111; } /* the gallery video is square: shown letterboxed, as YouTube would */
/* tile order (owner, 2026-11-24): the name above the phone, the short line under it */
#gwhere .spick .sptext { display: contents; }
#gwhere .spick .sptext b { order: 0; margin: 0; }
#gwhere .spick .howphone { order: 1; }
#gwhere .spick .sptext small { order: 2; margin: 0; }
/* search (2026-11-24) */
.gsearch { margin: 0 0 14px; max-width: 520px; }
.gsearch input { box-sizing: border-box; width: 100%; font: 19px "Patrick Hand", "Comic Sans MS", cursive; color: var(--pencil); background: #fffdf8; border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; padding: 8px 14px; outline: none; }
.gsearch input:focus { box-shadow: 0 0 0 3px rgba(252,74,26,.25); }
.gnone { margin: 10px 0 0; font: 16px/1.4 "Open Sans", sans-serif; color: var(--muted); text-align: left; } .gnone a { color: var(--pencil); font-weight: 600; }
.gitem[hidden], .gsec[hidden], .gnone[hidden] { display: none; }
#gwhere .gwmore { margin: 12px 0 0; font: 14px/1.4 "Open Sans", sans-serif; color: var(--muted); text-align: center; } #gwhere .gwmore a { color: var(--pencil); font-weight: 700; }
/* the size pointer as its own box (owner, 2026-11-24) */
#gwhere .gwmore { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; background: var(--paper2); border: 2px dashed rgba(40,37,34,.45); border-radius: 14px 9px 15px 10px; text-align: left; }
#gwhere .gwshapes { flex: none; display: flex; align-items: flex-end; gap: 4px; }
#gwhere .gwshapes i { display: block; border: 2px solid var(--pencil); border-radius: 3px; background: #fffdf8; }
#gwhere .gwshapes .v { width: 16px; height: 28px; } #gwhere .gwshapes .w { width: 30px; height: 17px; }
#gwhere .gwmt { flex: 1; min-width: 0; font: 13.5px/1.35 "Open Sans", sans-serif; color: var(--muted); }
#gwhere .gwmt b { display: block; font: 400 19px/1.15 "Patrick Hand", cursive; color: var(--pencil); margin-bottom: 1px; }
#gwhere .gwmore a.gwmbtn { flex: none; font: 400 17px "Patrick Hand", cursive; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 2px solid var(--pencil); border-radius: 11px 7px 12px 8px; padding: 4px 12px 5px; box-shadow: 2px 2px 0 var(--pencil); white-space: nowrap; font-weight: 400; }
#gwhere .gwmore a.gwmbtn:hover { background: #fbf5e8; }
@media (max-width: 420px) { #gwhere .gwmore { flex-wrap: wrap; } #gwhere .gwmore a.gwmbtn { margin-left: auto; } }
#gwhere li.gwmore { display: list-item; margin: 0; padding: 0; background: none; border: 0; font: inherit; color: var(--pencil); } #gwhere li.gwmore a { color: var(--pencil); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; } /* the size note is now step 3 */
/* phone sheet, last so nothing later overrides it (iPhone 2026-11-24: the tile width rule above left a gap on the right) */
@media (max-width: 560px) {
  #gwhere { box-sizing: border-box; width: 100vw; max-width: 100vw; left: 0; right: 0; bottom: 0; top: auto; margin: 0; max-height: calc(100dvh - 40px); border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* card buttons on every device (owner, 2026-11-24: "show the buttons always"): Send it + Make it mine, then GIF + Video */
.mogal .gcard { overflow: hidden; }
.mogal .gacts { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; border: 0 !important; box-shadow: none !important; background: none !important; padding: 8px 7px 8px !important; }
.mogal .gmainv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 6px; }
.mogal .gmainv .gsendit { grid-column: 1; grid-row: 1; }
.mogal .gmainv .gmine { grid-column: 2; grid-row: 1; }
.mogal .gmainv .gdlrow { grid-column: 1 / -1; grid-row: 2; }
.mogal .gmainv .gact, .mogal .gmainv .gact.gmine { height: 36px; font-size: 17px; gap: 5px; padding: 0 6px 2px; width: auto; justify-content: center; text-align: center; border-radius: 12px 8px 13px 9px; }
.mogal .gmainv .gdl2 { height: 30px; font-size: 15px; box-shadow: 1px 1px 0 var(--pencil); }
.mogal .gmainv .gact svg { width: 15px; height: 15px; }
.mogal .gmainv .gsendit:hover { background: #e23f12; } .mogal .gmainv .gmine:hover, .mogal .gmainv .gdl2:hover { background: var(--paper2); }
.mogal .gpic { cursor: pointer; }
@media (max-width: 520px) { .mogal .gmainv .gact, .mogal .gmainv .gact.gmine { font-size: 15px; height: 34px; } .mogal .gmainv .gact svg { display: none !important; } .mogal .gacts { padding: 6px 5px 6px !important; } }
.mogal .gmainv .gsendit svg, .mogal .gmainv .gmine svg { display: none !important; } /* the words fit the narrow cards; the GIF/Video download arrows stay */
.mogal .gmainv .gact { white-space: nowrap; overflow: hidden; }
/* Send it in the same paper style as the other card buttons (owner, 2026-11-24); it stays first and a little bolder */
.mogal .gmainv .gsendit { background: #fffdf8 !important; color: var(--pencil) !important; font-weight: 700; }
.mogal .gmainv .gsendit:hover, .mogal .gmainv .gsendit:focus-visible { background: var(--paper2) !important; }
/* three icon buttons per card + the Download dialog (owner, 2026-11-24) */
.mogal .gicons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mogal .gico { display: flex; align-items: center; justify-content: center; height: 38px; background: #fffdf8; color: var(--pencil); border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; box-shadow: 2px 2px 0 var(--pencil); cursor: pointer; text-decoration: none; padding: 0; }
.mogal .gico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.mogal .gico:hover, .mogal .gico:focus-visible { background: var(--paper2); outline: none; }
.mogal .gico:active { transform: translate(2px, 2px); box-shadow: none; }
#gdl { box-sizing: border-box; width: min(400px, calc(100vw - 24px)); padding: 18px; background: #fffdf8; color: var(--pencil); border: 2.5px solid var(--pencil); border-radius: 22px 10px 24px 12px / 12px 24px 10px 22px; box-shadow: 5px 6px 0 var(--pencil); font-family: "Open Sans", Poppins, sans-serif; }
#gdl::backdrop { background: rgba(40,37,34,.45); }
#gdl .gwtop { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
#gdl .gwh { margin: 0; font: 400 30px/1.1 "Patrick Hand", "Comic Sans MS", cursive; text-align: left; }
#gdl .gx { width: 40px; height: 40px; font-size: 30px; line-height: 1; background: none; border: 0; color: #0e3b45; cursor: pointer; }
#gdl .gwmo { display: block; width: 132px; aspect-ratio: 1; margin: 0 auto 14px; border: 2px solid var(--pencil); border-radius: 12px 8px 13px 9px; background: var(--paper2); object-fit: cover; }
#gdl .gdlpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#gdl .gdlbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; background: #fffdf8; color: var(--pencil); border: 2.5px solid var(--pencil); border-radius: 18px 9px 20px 10px / 10px 20px 9px 18px; box-shadow: 3px 4px 0 var(--pencil); cursor: pointer; }
#gdl .gdlbtn:hover, #gdl .gdlbtn:focus-visible { background: #fbf5e8; outline: none; } #gdl .gdlbtn:active { transform: translate(3px, 3px); box-shadow: none; } #gdl .gdlbtn:disabled { opacity: .6; cursor: progress; }
#gdl .gdlbtn b { font: 400 26px/1 "Patrick Hand", cursive; } #gdl .gdlbtn small { font-size: 12.5px; line-height: 1.35; color: var(--muted); text-align: center; }
@media (max-width: 560px) { #gdl { width: 100vw; max-width: 100vw; left: 0; right: 0; bottom: 0; top: auto; margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } .mogal .gico { height: 40px; } }
/* borderless icons (owner, 2026-11-24): bigger strokes, a soft round highlight on hover/tap instead of boxes */
.mogal .gicons { gap: 0; }
.mogal .gico { height: 42px; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 999px; }
.mogal .gico svg { width: 25px; height: 25px; stroke-width: 2.2; }
.mogal .gico:hover, .mogal .gico:focus-visible { background: var(--paper2) !important; }
.mogal .gico:active { transform: scale(.92); }
.mogal .gacts { padding: 4px 6px 4px !important; }
/* lighter icons (owner, 2026-11-24: emphasis back on the Mos): thinner, muted; full pencil color on hover/tap */
.mogal .gico { color: #9a9187; height: 38px; transition: color .12s, background .12s; }
.mogal .gico svg { width: 21px; height: 21px; stroke-width: 1.7; }
.mogal .gico:hover, .mogal .gico:focus-visible { color: var(--pencil); }
.mogal .gacts { padding: 2px 6px 2px !important; }
/* icons as a compact set at the right, not spread across the card (owner, 2026-11-24) */
.mogal .gicons { display: flex; justify-content: flex-end; gap: 2px; }
.mogal .gico { width: 38px; flex: none; }
@media (hover: none) { .mogal .gico { width: 42px; height: 40px; } }
#gwhere, #gdl { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } /* a scroll inside a dialog stays inside it */
/* clean grid (2026-11-24): a card is a link to the Mo's page */
.mogal a.gcard { display: block; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.mogal a.gcard:hover, .mogal a.gcard:focus-visible { transform: translateY(-3px) rotate(-.4deg); box-shadow: 4px 6px 0 rgba(40,37,34,.25); outline: none; }
.ghint { margin: 0 0 12px; font: 400 19px "Patrick Hand", "Comic Sans MS", cursive; color: var(--muted); text-align: left; }
/* the Mo page (mo/share.php for gallery Mos) */
.mogwrap { --paper: #f6efe1; --paper2: #efe6d3; --pencil: #282522; --muted: #5d5850; }
.mogitem h1 { font: 400 46px/1.05 "Patrick Hand", cursive; margin: 4px 0 6px; }
.mogitem .mogcrumb { margin: 0 0 6px; font: 400 19px "Patrick Hand", cursive; } .mogitem .mogcrumb a { color: var(--pencil); }
.mogitem .moglead { margin: 0 0 18px; }
.mogacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.mogacts .mbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; font: 400 23px "Patrick Hand", cursive; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 2.5px solid var(--pencil); border-radius: 22px 12px 20px 14px / 14px 20px 12px 22px; box-shadow: 3px 4px 0 var(--pencil); cursor: pointer; }
.mogacts .mbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mogacts .mbtn.go { grid-column: 1 / -1; background: #fc4a1a; color: #fff; }
.mogacts .mbtn:hover { background: var(--paper2); } .mogacts .mbtn.go:hover { background: #e23f12; } .mogacts .mbtn:active { transform: translate(3px, 3px); box-shadow: none; }
.mogtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.mogtags a { display: inline-block; font: 13px/1 "Open Sans", sans-serif; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 1.5px solid rgba(40,37,34,.35); border-radius: 999px; padding: 6px 11px; }
.mogtags a:hover { border-color: var(--pencil); }
.mognav { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 0; max-width: 420px; }
.mognav a { font: 400 18px "Patrick Hand", cursive; color: var(--pencil); }
.mogmore { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 32px 64px; box-sizing: border-box; }
.mogmore h2 { font: 400 36px "Patrick Hand", cursive; margin: 0 0 14px; text-align: left; }
.mogmore .ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.mogmore .gcard { display: block; position: relative; overflow: hidden; background: #fffdf8; border: 2px solid var(--pencil); border-radius: 14px 9px 15px 10px; box-shadow: 3px 3px 0 rgba(40,37,34,.18); text-decoration: none; }
.mogmore a.gcard:hover { transform: translateY(-3px); }
@media (max-width: 860px) { .mogitem h1 { font-size: 36px; } .mogmore { padding: 0 16px 48px; } .mogmore .ggrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .mogacts { max-width: none; } .mognav { max-width: none; } }
.mogitem .mogcrumb a { text-decoration: underline; text-underline-offset: 3px; } .mogitem .mogcrumb span { color: var(--muted); margin: 0 4px; }
.mogback { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.mogback .mbtnlink { font: 400 21px "Patrick Hand", cursive; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 2.5px solid var(--pencil); border-radius: 22px 12px 20px 14px / 14px 20px 12px 22px; box-shadow: 3px 3px 0 var(--pencil); padding: 6px 22px 8px; }
.mogback .mbtnlink:hover { background: var(--paper2); }
.mogwrap > .mogmore { width: 100%; align-self: stretch; } /* the page centers its children; the More grid takes the full width */
.mogwrap .gtoast, .mogal .gtoast { display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(460px, calc(100vw - 32px)); box-sizing: border-box; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); padding: 14px 20px; background: #fff; color: #2b2f33; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.2); font: bold 16px/1.3 "Open Sans", sans-serif; text-align: left; z-index: 100000; }
.mogwrap .gtoast svg { flex: none; width: 24px; height: 24px; }
/* the toast stays hidden until it has something to say (2026-11-24: an empty white box showed at the bottom left of the gallery) */
.mogal .gtoast, .mogwrap .gtoast { position: fixed !important; left: 50% !important; transform: translate(-50%, 20px) !important; opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
.mogal .gtoast.on, .mogwrap .gtoast.on { opacity: 1 !important; visibility: visible; transform: translate(-50%, 0) !important; pointer-events: auto; }
/* Make your own Mo, at the bottom of a gallery Mo page (owner, 2026-11-24) */
.mogmade { position: relative; z-index: 1; width: calc(100% - 64px); max-width: 1216px; margin: 8px auto 64px; padding: 28px 24px; box-sizing: border-box; background: var(--paper2); border: 2px solid var(--pencil); border-radius: 18px 12px 20px 14px; text-align: center; align-self: center; }
.mogmade h2 { font: 400 clamp(32px, 5vw, 44px)/1.1 "Patrick Hand", cursive; margin: 0 0 6px; }
.mogmade p { max-width: 620px; margin: 0 auto 16px; font: 16px/1.5 "Open Sans", sans-serif; color: var(--muted); text-align: left; }
.mogmade .mogmadebtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; text-align: center; }
.mogmade .mbtnlink { font: 400 21px "Patrick Hand", cursive; color: var(--pencil); text-decoration: none; background: #fffdf8; border: 2.5px solid var(--pencil); border-radius: 22px 12px 20px 14px / 14px 20px 12px 22px; box-shadow: 3px 3px 0 var(--pencil); padding: 6px 22px 8px; }
.mogmade .mbtnlink.go { background: var(--pencil); color: #fffdf8; }
@media (max-width: 860px) { .mogmade { width: calc(100% - 32px); margin-bottom: 40px; } }
.mogmade p.mogmadebtns { max-width: none; width: 100%; justify-content: center; }
