/* qy-size-floor v1 */
/* QY post style "Gallery + Local Pro" (2026-10-08). Only active with html.qy-np (see container.phtml / qy_posts.php). */

/* ---- photos: edge to edge, natural shape, never cut off ---- */
html.qy-np .tag_post_full_img.qynp-ph{max-height:none!important;background:#0f1416;position:relative;overflow:hidden;isolation:isolate}
html.qy-np .tag_post_full_img.qynp-ph::before{content:'';position:absolute;inset:-48px;z-index:-1;background:var(--qynp-bg) center/cover no-repeat;filter:blur(32px) saturate(1.25) brightness(.82);transform:scale(1.08)}
html.qy-np .tag_post_full_img.qynp-ph img.image-file{display:block;width:100%;height:auto;max-width:none;margin:0;border-radius:0}
/* very tall posters: show whole up to a 2:3 frame, the rest on "See full poster" */
html.qy-np .tag_post_full_img.qynp-tall{aspect-ratio:2/3}
html.qy-np .tag_post_full_img.qynp-tall img.image-file{height:100%;object-fit:cover;object-position:center top}   /* fills the frame, top shows (owner 2026-10-11: no blurred half) */
html.qy-np .tag_post_full_img.qynp-tall.qynp-open{aspect-ratio:auto}
html.qy-np .tag_post_full_img.qynp-tall.qynp-open img.image-file{height:auto}
/* very wide panoramas: 1.91:1 frame, ambient fill above and below */
html.qy-np .tag_post_full_img.qynp-wide{aspect-ratio:1.91/1}
html.qy-np .tag_post_full_img.qynp-wide img.image-file{height:100%;object-fit:cover}
html.qy-np .qynp-more{position:absolute;right:12px;bottom:12px;z-index:2;border:0;background:rgba(16,26,31,.74);color:#fff;font:700 13.5px/1 'Plus Jakarta Sans',system-ui,sans-serif;padding:9px 13px;border-radius:999px;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.qy-np .qynp-more:focus-visible{outline:2px solid #fff;outline-offset:2px}
html.qy-np .tag_post_full_img.qynp-ph img.image-file{opacity:1;transition:opacity .18s ease}

/* ---- card: a soft glow in the photo's own colour ---- */
html.qy-np .post .panel.qynp-glow{box-shadow:0 22px 44px -30px var(--qynp-dom,rgba(16,26,31,.35)),0 1px 2px rgba(16,26,31,.06)!important}

/* ---- gold Gift button ---- */
html.qy-np .qy-giftbtn{background:linear-gradient(135deg,#FFF6DF,#FCE7B5)!important;color:#7A5410!important;border:1px solid #EBCB80!important;border-radius:999px!important;padding:7px 14px!important;font-weight:700!important;opacity:1!important}
html.qy-np .qy-giftbtn:hover{background:linear-gradient(135deg,#FFF0C9,#F8DC98)!important}

/* ---- business strip + ribbon ---- */
html.qy-np .qynp-biz{display:grid;grid-template-columns:repeat(var(--n,4),1fr);margin:0 -15px;border-top:1px solid #E6ECEE;border-bottom:1px solid #E6ECEE;background:#fff}
html.qy-np .qynp-biz a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;padding:9px 4px;font:700 13.5px/1.15 'Plus Jakarta Sans',system-ui,sans-serif;color:#101A1F!important;text-decoration:none!important;text-align:center;border-right:1px solid #E6ECEE}
html.qy-np .qynp-biz a:last-child{border-right:0}
html.qy-np .qynp-biz a:hover{background:#F4F9FA}
html.qy-np .qynp-biz a span{font-size:18px;line-height:1}
html.qy-np .qynp-biz a small{display:block;font-weight:600;font-size:12.5px;color:#6B7D84;margin-top:1px}
html.qy-np .qynp-biz a.is-open{color:#137333!important}
html.qy-np .qynp-biz a.is-closed{color:#9A3412!important}
html.qy-np .qynp-ribbon{display:inline-flex;align-items:center;gap:4px;margin-top:3px;font:700 13px/1.4 'Plus Jakarta Sans',system-ui,sans-serif;color:#7A5410;background:#FFF6DF;border:1px solid #EBCB80;border-radius:999px;padding:1px 8px;width:max-content;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.qy-np .qynp-ribbon[hidden]{display:none}

/* ---- dark mode ---- */
html.qy-np:has(#night-mode-css) .qynp-biz{background:var(--paper);border-color:var(--line)}
html.qy-np:has(#night-mode-css) .qynp-biz a{color:var(--ink)!important;border-color:var(--line)}
html.qy-np:has(#night-mode-css) .qynp-biz a:hover{background:var(--chip)}
html.qy-np:has(#night-mode-css) .qynp-biz a small{color:var(--mut)}

@media (prefers-reduced-motion:reduce){html.qy-np .tag_post_full_img.qynp-ph img.image-file{transition:none}}
/* invitation shown only to a business owner without a plan, on their own posts */
html.qy-np .qynp-upsell{display:block;margin:0 -15px;padding:10px 16px;background:#FFF8E6;border-top:1px solid #F3D9A6;border-bottom:1px solid #F3D9A6;color:#5B3C08!important;text-decoration:none!important;font:500 14px/1.4 'Plus Jakarta Sans',system-ui,sans-serif}
html.qy-np .qynp-upsell b{display:block;font-weight:800;font-size:14px;color:#7A5410}
html.qy-np .qynp-upsell:hover{background:#FFF1CC}
/* free businesses: one wide Message button */
html.qy-np .qynp-biz.qynp-biz-free a{flex-direction:row;gap:8px;min-height:46px;font-size:14px}
/* the owner's private note (start free days / days left / results) */
html.qy-np .qynp-note{display:flex;flex-direction:column;gap:4px;margin:0 -15px;padding:12px 16px;background:#F3FBFC;border-bottom:1px solid #CDE9EC;font:500 14px/1.45 'Plus Jakarta Sans',system-ui,sans-serif;color:#3E5058}
html.qy-np .qynp-note.is-trial{background:#FFF8E6;border-color:#F3D9A6}
html.qy-np .qynp-note b{font-weight:800;font-size:14px;color:#101A1F}
html.qy-np .qynp-note small{font-size:13px;color:#6B7D84}
html.qy-np .qynp-start,html.qy-np .qynp-note-cta{align-self:flex-start;margin-top:4px;border:0;border-radius:999px;padding:9px 16px;background:#0E8C9B;color:#fff!important;font:700 14px/1 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer;text-decoration:none!important}
html.qy-np .qynp-start:hover,html.qy-np .qynp-note-cta:hover{background:#0A6570}
html.qy-np .qynp-start[disabled]{opacity:.7;cursor:wait}
html.qy-np .qynp-note-msg{font-weight:700;color:#137333}
/* dark mode: the private tap counter matches the card (owner 2026-10-11 screenshot: bright white box) */
html.qy-np:has(#night-mode-css) .qynp-note{background:var(--chip);border-color:var(--line);color:var(--ink2)}
html.qy-np:has(#night-mode-css) .qynp-note b{color:var(--ink)}
html.qy-np:has(#night-mode-css) .qynp-note small{color:var(--mut)}
html.qy-np:has(#night-mode-css) .qynp-note.is-trial{background:rgba(242,183,5,.12);border-color:rgba(242,183,5,.35)}
/* Video ads + Message us (Business Studio phase 2) */
.qy-adv-media{position:relative;margin:8px 0;border-radius:14px;overflow:hidden;background:#0F1A1E}
.qy-adv-media video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#0F1A1E}
.qy-adv-media.tall video{aspect-ratio:9/16;max-height:640px;object-fit:contain}
.qy-adv-ai{position:absolute;right:10px;top:10px;background:rgba(255,255,255,.92);color:#3C4D54;font:800 12.5px/1 'Plus Jakarta Sans',system-ui,sans-serif;border-radius:6px;padding:5px 8px;pointer-events:none}
.qy-adv-msg{margin:10px 0 6px}
.qy-adv-mbtn{display:block;text-align:center;background:#0E8C9B;color:#fff!important;border-radius:14px;padding:12px;font:800 15px 'Plus Jakarta Sans',system-ui,sans-serif;text-decoration:none!important}
.qy-adv-mbtn:hover{background:#0A6570}
.qy-adv-q{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.qy-adv-q a{background:#E3F2F3;color:#0A6570!important;border-radius:99px;padding:6px 11px;font:700 13.5px 'Plus Jakarta Sans',system-ui,sans-serif;text-decoration:none!important}
.post .qy-adv-msg a.qy-adv-mbtn,.post .qy-adv-msg a.qy-adv-mbtn:hover,.post .qy-adv-msg a.qy-adv-mbtn:visited{color:#fff!important}
.post .qy-adv-msg .qy-adv-q a{color:#0A6570!important}
.tag_post_prods .qy-adv-media{flex:1 1 100%;width:100%}
/* Local Partners disclosure label (FTC: clear, at the top, before the content) */
.qy-pp{background:#0F1A1E;color:#fff;font:800 13.5px/1.3 'Plus Jakarta Sans',system-ui,sans-serif;padding:8px 14px;border-radius:12px 12px 0 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.qy-pp a{color:#E9C46A!important;text-decoration:none!important}.qy-pp-dot{color:#E9C46A}.qy-pp-sub{font-weight:600;color:#CFE3E5}
/* reply-speed badge under the business strip (2026-10-08) */
.qynp-fast{display:inline-flex;align-items:center;gap:4px;margin:6px 0 2px;background:#E8F6EC;color:#137333;border-radius:99px;padding:4px 10px;font:700 13px/1.3 'Plus Jakarta Sans',system-ui,sans-serif}
/* product photos fill the post: full width, square like Facebook Marketplace, no blurred side bars (owner 2026-10-11) */
html .tag_post_prods .prod_full_size_slide,html .tag_post_prods .carousel,html .tag_post_prods .carousel-inner,html .tag_post_prods .carousel-item{height:auto!important;max-height:none!important}
html .tag_post_prods .carousel{background:transparent!important}
html .tag_post_prods .tag_post_prods_slide .tag_lbox_blur_img{display:none!important}
html .tag_post_prods .tag_post_prods_thumb{width:100%}
html .tag_post_prods .tag_post_prods_thumb img{max-width:none!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
