/* Photographer Marketplace DEV20 — Homepage Design Reference.
   Only applies to generated Homepage blocks carrying homepage_reference=true.
   All typography uses PixelCMS Core DEV221 role tokens (no plugin-owned font px).
   Core owns page width, theme header/footer, font family and type scale.
   This is not a standalone hard-coded HTML template. */
.pxphoto-home-ref{--pxphoto-ref-blue:var(--pxth-button,var(--pxth-primary,#1668e8));--pxphoto-ref-ink:var(--pxth-text,#132845);--pxphoto-ref-muted:var(--pxth-text-muted,#70839c);--pxphoto-ref-line:var(--pxth-border,#e3eaf2);--pxphoto-ref-white:#fff;--pxphoto-ref-light:#f4f8fd;box-sizing:border-box;min-width:0;background:#fff;color:var(--pxphoto-ref-ink)}
.pxphoto-home-ref,.pxphoto-home-ref *{box-sizing:border-box}
.pxphoto-home-ref > .pxphoto-section-inner,
.pxphoto-home-ref > .pxphoto-hero-inner,
.pxphoto-home-ref > .pxphoto-stats,
.pxphoto-home-ref > .pxphoto-register-cta{max-width:var(--pxth-block-content-max-width,var(--container,100%))!important;width:100%!important;min-width:0;margin-inline:auto}
/* Reference sequence alternates gentle backgrounds; outside blocks remain Core-owned. */
.pxphoto-home-ref.pxphoto-featured-section,.pxphoto-home-ref.pxphoto-latest-section,.pxphoto-home-ref.pxphoto-pricing-section,.pxphoto-home-ref.pxphoto-stats-section{background:var(--pxphoto-ref-light)}
.pxphoto-home-ref .pxphoto-section-head{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-auto-rows:min-content;row-gap:0;column-gap:20px;margin:0 0 18px!important;align-items:start;max-width:none!important;width:100%}
.pxphoto-home-ref .pxphoto-section-eyebrow{grid-column:1/-1;display:flex!important;gap:9px;align-items:center;margin:0!important;letter-spacing:.09em;text-transform:uppercase;color:var(--pxphoto-ref-blue);font-weight:800}
.pxphoto-home-ref .pxphoto-section-eyebrow:before,.pxphoto-home-ref .pxphoto-hero-copy .pxphoto-kicker:before{content:"";display:inline-block;width:18px;height:3px;background:currentColor}
.pxphoto-home-ref .pxphoto-section-head h2{grid-column:1;grid-row:auto;margin:0!important;font-size:var(--pxth-font-section-title)!important;color:var(--pxphoto-ref-ink);font-weight:850;line-height:1.25}
.pxphoto-home-ref .pxphoto-section-head p{grid-column:1;max-width:100%;margin:6px 0 0!important;line-height:1.5;color:var(--pxphoto-ref-muted)}
.pxphoto-home-ref .pxphoto-ref-more{grid-column:2;grid-row:2 / 4;align-self:center;color:var(--pxphoto-ref-blue);font-weight:800;text-decoration:none;white-space:nowrap;font-size:var(--pxth-font-body,inherit)}
.pxphoto-home-ref .pxphoto-ref-more:hover{text-decoration:underline}
/* Hero: the search panel deliberately overlaps the visual, as in the reference design. */
.pxphoto-home-ref.pxphoto-hero{background:linear-gradient(120deg,#f1f7fe,#f7fbff);border:0;overflow:hidden;isolation:isolate}
.pxphoto-home-ref .pxphoto-hero-inner{position:relative;display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(0,.85fr);gap:20px;min-height:410px!important;align-items:center;padding:0!important}
.pxphoto-home-ref .pxphoto-hero-copy{z-index:3;position:relative;width:auto!important;max-width:none;padding:8px 0!important}
.pxphoto-home-ref .pxphoto-hero-copy .pxphoto-kicker{display:inline-flex!important;align-items:center;gap:8px;padding:0!important;margin:0 0 12px;background:none!important;border:0!important;color:var(--pxphoto-ref-blue);font-weight:800;letter-spacing:.04em}
.pxphoto-home-ref .pxphoto-hero-copy h1{margin:0 0 12px!important;max-width:100%;font-size:var(--pxth-font-display)!important;line-height:1.22!important;color:var(--pxphoto-ref-ink)}
.pxphoto-home-ref .pxphoto-hero-copy .pxphoto-ref-highlight{color:var(--pxphoto-ref-blue)}
.pxphoto-home-ref .pxphoto-hero-copy>p{max-width:90%;margin:0!important;color:var(--pxphoto-ref-muted)}
.pxphoto-home-ref .pxphoto-hero-search{display:grid!important;width:calc(100% + 110px)!important;max-width:none!important;grid-template-columns:minmax(0,1.45fr) minmax(0,.95fr) minmax(0,.95fr) auto!important;margin:22px 0 0!important;gap:0!important;padding:8px!important;border:1px solid var(--pxphoto-ref-line);background:#fff;border-radius:var(--pxth-radius-card,12px);box-shadow:0 15px 32px rgba(27,64,101,.1)}
.pxphoto-home-ref .pxphoto-hero-search label{padding:6px 12px!important;margin:0;border:0!important;border-right:1px solid var(--pxphoto-ref-line)!important;min-width:0;display:flex;flex-direction:column;justify-content:center}
.pxphoto-home-ref .pxphoto-hero-search label span{color:var(--pxphoto-ref-muted);line-height:1.4}
.pxphoto-home-ref .pxphoto-hero-search :is(input,select){width:100%;height:35px!important;min-height:35px!important;padding:3px 0!important;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--pxphoto-ref-ink);font-size:var(--pxth-font-body)!important}
.pxphoto-home-ref .pxphoto-hero-search button{margin:0;min-height:52px!important;min-width:110px;padding:0 18px!important;background:var(--pxphoto-ref-blue);border:0;color:#fff;font-weight:800;border-radius:var(--pxth-radius-button,8px)}
.pxphoto-home-ref .pxphoto-hero-trust{display:flex;gap:10px 18px;margin:15px 0 0;flex-wrap:wrap;color:var(--pxphoto-ref-muted)}
.pxphoto-home-ref .pxphoto-hero-trust span{border:0;background:none;padding:0!important;white-space:normal}
.pxphoto-home-ref .pxphoto-hero-visual{position:relative!important;z-index:1;inset:auto!important;width:100%!important;height:305px!important;min-height:305px!important;overflow:visible;margin:0!important;pointer-events:none;transform:none}
.pxphoto-home-ref .pxphoto-hero-main{position:absolute;inset:0!important;overflow:hidden;border-radius:var(--pxth-radius-card,18px)}
.pxphoto-home-ref .pxphoto-hero-main img{display:block;width:100%;height:100%;object-fit:cover}
.pxphoto-home-ref .pxphoto-hero-polaroid{display:block;position:absolute;right:auto;top:0;width:35%;height:31%;padding:5px!important;border:3px solid white;background:white;box-shadow:0 9px 18px rgba(3,30,71,.24)}
.pxphoto-home-ref .pxphoto-hero-polaroid.is-1{left:-15%;top:4%!important;transform:rotate(-7deg)}
.pxphoto-home-ref .pxphoto-hero-polaroid.is-2{left:auto;right:-3%;top:auto!important;bottom:1%!important;transform:rotate(7deg)}
.pxphoto-home-ref .pxphoto-hero-polaroid img{width:100%;height:100%;object-fit:cover}
.pxphoto-home-ref .pxphoto-hero-polaroid span,.pxphoto-home-ref .pxphoto-hero-script{display:none!important}
/* 8 styles cards in one desktop row. */
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-grid{display:grid;grid-template-columns:repeat(var(--pxphoto-cols,8),minmax(0,1fr))!important;gap:10px}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-card{position:relative;display:block;min-width:0;min-height:0!important;height:auto!important;aspect-ratio:1.02;box-shadow:none;border:0;border-radius:var(--pxth-radius-card,12px);overflow:hidden;background:#edf2f9}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-media{position:absolute;inset:0;width:100%;height:100%!important}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-media img{width:100%;height:100%;object-fit:cover}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-card>div:last-child{position:absolute;z-index:3;bottom:10px;left:5px;right:5px;padding:0!important;text-align:center}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-card strong{display:block;color:#fff;text-shadow:0 1px 6px #000b;font-size:var(--pxth-font-small)!important;white-space:normal!important;overflow-wrap:anywhere}
.pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-card>div:last-child span{display:none!important}
/* Recommended 3 card grid. Card rendering and real data stay in the plugin. */
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-profile-grid{grid-template-columns:repeat(var(--pxphoto-cols,3),minmax(0,1fr))!important;gap:16px}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-profile-card{display:flex;flex-direction:column;height:100%;background:#fff;box-shadow:0 8px 22px rgba(21,51,96,.05);border:1px solid var(--pxphoto-ref-line);border-radius:var(--pxth-radius-card,12px)}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-card-media{height:auto!important;aspect-ratio:1.8;overflow:hidden}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-card-media img{width:100%;height:100%;object-fit:cover}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-card-body{padding:16px!important;display:flex;flex-direction:column;flex:1;gap:4px}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-card-pricing{margin-top:auto}
.pxphoto-home-ref.pxphoto-featured-section .pxphoto-card-footer{display:flex;justify-content:space-between;align-items:center}
/* Six provinces without the decorative 77-province map panel. */
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-layout{display:block!important}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-thailand-mark{display:none!important}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid{grid-template-columns:repeat(var(--pxphoto-cols,6),minmax(0,1fr))!important;gap:12px}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid a{position:relative;display:block;height:auto!important;min-height:0;aspect-ratio:1.55;overflow:hidden;border:0;border-radius:var(--pxth-radius-card,12px)}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-art{position:absolute;inset:0;height:100%!important}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-art img{width:100%;height:100%;object-fit:cover}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid strong{position:absolute;bottom:10px;left:10px;right:10px;color:#fff;font-size:var(--pxth-font-small)!important}
.pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid small{display:none!important}
/* Portraits of newcomers */
.pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-strip{display:grid;grid-template-columns:repeat(var(--pxphoto-cols,6),minmax(0,1fr))!important;background:#fff;border:1px solid var(--pxphoto-ref-line);border-radius:var(--pxth-radius-card,12px);overflow:hidden}
.pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-person{padding:22px 8px;border-right:1px solid var(--pxphoto-ref-line);min-width:0}
.pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-person img,.pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-person>span{width:74px;height:74px;max-width:100%;border-radius:50%;margin:0 auto 9px;object-fit:cover}
.pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-person strong{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
/* Homepage preview grid: standalone 3 cards; omit old promotional/sidebar block entirely. */
.pxphoto-home-ref.pxphoto-results-reference{min-height:0!important;background:#fff;padding-block:var(--pxphoto-section-y,60px)!important}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-discovery-shell{display:block!important;min-height:0;border:0;overflow:visible;background:transparent;box-shadow:none}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-discovery-promo{display:none!important}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-discovery-results{padding:0!important}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-results-main{width:100%}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-results.is-grid{grid-template-columns:repeat(var(--pxphoto-cols,3),minmax(0,1fr))!important;gap:16px}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-result-media{height:auto!important;aspect-ratio:1.5}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-result-body{padding:16px!important}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-result-card{min-width:0}
.pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-result-prices{grid-template-columns:repeat(3,minmax(0,1fr))!important}
/* Dashboard figures, 4 steps, 3-column pricing, and closing registration CTA. */

.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0;background:linear-gradient(110deg,#12365f,#1666d5);color:#fff;border:0;border-radius:var(--pxth-radius-card,12px);overflow:hidden}
.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats div{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;gap:3px 9px;align-content:center;padding:22px 15px;border-right:1px solid #ffffff22}
.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats i{grid-row:1/3;display:grid;place-items:center;background:#ffffff22;color:#fff;width:36px;height:36px;border-radius:50%}
.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats span,.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats strong{color:#fff}
.pxphoto-home-ref.pxphoto-how .pxphoto-how-grid{grid-template-columns:repeat(var(--pxphoto-cols,4),minmax(0,1fr));gap:13px;border:0}
.pxphoto-home-ref.pxphoto-how .pxphoto-how-grid article{position:relative;min-height:175px;padding:22px;border:1px solid var(--pxphoto-ref-line)!important;border-radius:var(--pxth-radius-card,12px);background:#fff;box-shadow:0 8px 20px #0e39700a}
.pxphoto-home-ref.pxphoto-how .pxphoto-how-grid b{display:grid;position:static;margin-bottom:12px;width:36px;height:36px;place-items:center;border:0;border-radius:10px;background:#eaf2ff;color:var(--pxphoto-ref-blue)}
.pxphoto-home-ref.pxphoto-how .pxphoto-how-grid article:after{display:none!important}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-plan{display:flex;flex-direction:column;min-height:0;padding:22px!important;border:1px solid var(--pxphoto-ref-line);border-radius:var(--pxth-radius-card,12px);background:#fff}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-plan.is-featured{border-color:var(--pxphoto-ref-blue)}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-plan>strong{margin:16px 0!important;color:var(--pxphoto-ref-ink)}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-plan ul{flex:1;margin-top:12px;display:grid;align-content:start;gap:10px}
.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-plan>a{margin-top:auto;min-height:42px;background:var(--pxphoto-ref-blue);color:white}
.pxphoto-home-ref.pxphoto-cta-section{background:#fff}
.pxphoto-home-ref.pxphoto-cta-section .pxphoto-register-cta{padding:32px!important;min-height:0;border-radius:var(--pxth-radius-card,15px);border:0;display:flex;gap:18px;background:linear-gradient(100deg,#112e5a,#1d64c4);color:#fff;overflow:hidden}
.pxphoto-home-ref.pxphoto-cta-section :is(.pxphoto-register-cta h2,.pxphoto-register-cta p,.pxphoto-register-cta .pxphoto-kicker){color:#fff}
.pxphoto-home-ref.pxphoto-cta-section .pxphoto-register-cta>a{background:#fff;color:#1454aa;border:0;min-width:160px;min-height:46px}
@media(max-width:1100px){
 .pxphoto-home-ref .pxphoto-hero-inner{grid-template-columns:minmax(0,1.4fr) minmax(0,.9fr)}
 .pxphoto-home-ref .pxphoto-hero-search{width:calc(100% + 30px)!important}
 .pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-grid{grid-template-columns:repeat(var(--pxphoto-cols-tablet,4),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-featured-section .pxphoto-profile-grid{grid-template-columns:repeat(var(--pxphoto-cols-tablet,2),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid{grid-template-columns:repeat(var(--pxphoto-cols-tablet,3),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-strip{grid-template-columns:repeat(var(--pxphoto-cols-tablet,3),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-results.is-grid{grid-template-columns:repeat(var(--pxphoto-cols-tablet,2),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-how .pxphoto-how-grid,.pxphoto-home-ref.pxphoto-pricing-section .pxphoto-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 
 .pxphoto-home-ref .pxphoto-hero-inner{display:flex!important;flex-direction:column;min-height:0!important;gap:18px;padding:0!important}
 .pxphoto-home-ref .pxphoto-hero-copy{width:100%!important;padding:0!important}
 .pxphoto-home-ref .pxphoto-hero-copy>p{max-width:100%}
 .pxphoto-home-ref .pxphoto-hero-trust{gap:8px 15px}
 .pxphoto-home-ref .pxphoto-hero-visual{order:2;width:100%!important;min-height:210px!important;height:210px!important;margin:0!important}
 .pxphoto-home-ref .pxphoto-hero-main{border-radius:var(--pxth-radius-card,12px) var(--pxth-radius-card,12px) 0 0}
 .pxphoto-home-ref .pxphoto-hero-polaroid{width:29%;height:34%}
 .pxphoto-home-ref .pxphoto-hero-polaroid.is-1{left:4%;top:8%!important}
 .pxphoto-home-ref .pxphoto-hero-polaroid.is-2{right:3%;bottom:8%!important}
 .pxphoto-home-ref .pxphoto-section-head{column-gap:10px;row-gap:0}
 .pxphoto-home-ref .pxphoto-ref-more{grid-row:2/4;align-self:end}
 .pxphoto-home-ref.pxphoto-styles-section .pxphoto-style-grid{grid-template-columns:repeat(var(--pxphoto-cols-mobile,2),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-featured-section .pxphoto-profile-grid{grid-template-columns:repeat(var(--pxphoto-cols-mobile,1),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-province-section .pxphoto-province-grid{grid-template-columns:repeat(var(--pxphoto-cols-mobile,2),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-latest-section .pxphoto-latest-strip{grid-template-columns:repeat(var(--pxphoto-cols-mobile,2),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-results-reference .pxphoto-search-results.is-grid{grid-template-columns:repeat(var(--pxphoto-cols-mobile,1),minmax(0,1fr))!important}
 .pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pxphoto-home-ref.pxphoto-cta-section .pxphoto-register-cta{flex-direction:column;align-items:flex-start}
 .pxphoto-home-ref.pxphoto-cta-section .pxphoto-register-cta>a{width:100%}
}
@media(max-width:420px){
 .pxphoto-home-ref .pxphoto-section-head{grid-template-columns:1fr}
 .pxphoto-home-ref .pxphoto-ref-more{grid-column:1;grid-row:auto;justify-self:start}
}

/* DEV10 — Compact Marketplace Statistics (canonical component layout).
   Real icon + value + label; no cosmetic pseudo-icons. The Core handles
   typography theme, content width and section padding. Responsive columns
   are read from the existing block's desktop/tablet/mobile settings.
   Do not alter the DEV7 editor-modal scrollbar implementation. */
.pxphoto-v2-block.pxphoto-stats-section > .pxphoto-stats {
  display:grid;
  grid-template-columns:repeat(var(--pxphoto-v2-desktop-cols,5),minmax(0,1fr));
  grid-auto-rows:auto;
  align-items:stretch;
  gap:0;
  min-width:0;
  height:auto;
  min-height:0;
  max-width:var(--pxth-block-content-max-width,var(--container,100%))!important;
}
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  grid-template-rows:min-content min-content;
  align-content:center;
  align-items:center;
  column-gap:10px;
  row-gap:3px;
  min-width:0;
  min-height:0;
  height:auto;
  margin:0;
  padding:16px 14px;
  text-align:left;
  border-bottom:1px solid var(--pxphoto-line,#e6ebf2);
}
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item::before,
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item::after {
  content:none!important;
  display:none!important;
}
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item > .pxphoto-stat-icon {
  display:grid;
  grid-column:1;
  grid-row:1 / span 2;
  place-items:center;
  width:32px;
  height:32px;
  min-width:32px;
  min-height:32px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:inherit;
  font-size:1.3em;
  font-style:normal;
  line-height:1;
}
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item > .pxphoto-stat-value {
  display:block;
  grid-column:2;
  grid-row:1;
  min-width:0;
  margin:0;
  padding:0;
  font-size:var(--pxth-font-card-title,inherit);
  font-weight:800;
  line-height:1.2;
  white-space:normal;
  word-break:normal;
}
.pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item > .pxphoto-stat-label {
  display:block;
  grid-column:2;
  grid-row:2;
  min-width:0;
  margin:0;
  padding:0;
  font-size:var(--pxth-font-small,inherit);
  font-weight:500;
  line-height:1.4;
  word-break:normal;
}
.pxphoto-home-ref.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item > :is(.pxphoto-stat-value,.pxphoto-stat-label){color:inherit}
@media (min-width:681px) and (max-width:1024px){
  .pxphoto-v2-block.pxphoto-stats-section > .pxphoto-stats{grid-template-columns:repeat(var(--pxphoto-v2-tablet-cols,3),minmax(0,1fr))!important}
}
@media (max-width:680px){
  .pxphoto-v2-block.pxphoto-stats-section > .pxphoto-stats{
    grid-template-columns:repeat(var(--pxphoto-v2-mobile-cols,2),minmax(0,1fr))!important;
    grid-auto-rows:min-content;
    align-items:stretch;
    height:auto;
    min-height:0;
  }
  .pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item{
    grid-template-columns:26px minmax(0,1fr);
    column-gap:7px;
    row-gap:2px;
    align-content:center;
    padding:12px 8px!important;
    min-height:76px;
    height:auto;
  }
  /* If five stat cells are shown, the last cell fills the last row instead
     of leaving an orphaned empty half-cell. One-column overrides still work. */
  .pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
  .pxphoto-v2-block.pxphoto-stats-section .pxphoto-stats > .pxphoto-stat-item > .pxphoto-stat-icon{
    width:26px;
    height:26px;
    min-width:26px;
    min-height:26px;
  }
}
/* DEV23 — Core DEV221 OWNERSHIP: outer section spacing is owned by Page Builder.
   Do not emulate Section Settings with plugin-owned margin/padding.
   Retain *internal* form field and card spacing for usability. */
section.pxphoto-block, .pxphoto-block.pxphoto-home-ref, .pxphoto-block.pxphoto-hero,
.pxphoto-block.pxphoto-stats-section, .pxphoto-block.pxphoto-styles-section,
.pxphoto-block.pxphoto-featured-section, .pxphoto-block.pxphoto-latest-section,
.pxphoto-block.pxphoto-province-section, .pxphoto-block.pxphoto-pricing-section,
.pxphoto-block.pxphoto-how, .pxphoto-block.pxphoto-results-reference,
.pxphoto-block.pxphoto-cta-section {
  padding:0!important;
  margin:0!important;
}
/* Block wrappers should not create a second inset; Core container rules own width. */
.pxphoto-block > .pxphoto-hero-inner {padding:0!important}
/* DEV23 — requested square geometry (avatar portraits are the only exception). */
.pxphoto-block, .pxphoto-block *, .pxphoto-block *::before, .pxphoto-block *::after {border-radius:0!important}
/* Only true *profile/portrait* elements stay circular, independent of card radius. */
.pxphoto-block .pxphoto-result-avatar,
.pxphoto-block .pxphoto-result-avatar :is(img,span),
.pxphoto-block .pxphoto-latest-person > :is(img,span),
.pxphoto-block [data-radius-mode="circle"] {border-radius:50%!important;aspect-ratio:1/1;object-fit:cover}
/* A native select menu is OS-rendered; make the CLOSED control consistent and legible. */
.pxphoto-block select {
  appearance:none!important;-webkit-appearance:none!important;
  padding-inline:14px 38px!important;
  border:1px solid var(--pxth-border,#cbd5e1)!important;
  border-radius:0!important;
  color:var(--pxth-text,#12243a)!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2333495f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-position:right 12px center!important;background-repeat:no-repeat!important;background-size:16px!important;
  min-width:0;line-height:1.4!important;
}
.pxphoto-block select:focus-visible {outline:2px solid var(--pxth-button-bg,#2563eb)!important;outline-offset:2px}
/* Hero-search is visually borderless by design; preserve its inset whilst showing the arrow. */
.pxphoto-home-ref .pxphoto-hero-search select {border:0!important;background-color:transparent!important;padding-inline:0 26px!important;background-position:right 2px center!important}

/* DEV25 — Only remove the unintended pale-blue full-block surfaces.
   Preserve all original Hero/banner, CTA photography, and stats visual design.
   Core Page Builder continues to own the outer Section background and padding. */
.pxphoto-block.pxphoto-featured-section,
.pxphoto-block.pxphoto-latest-section,
.pxphoto-block.pxphoto-pricing-section,
.pxphoto-block.pxphoto-results-reference {
 background:transparent!important;
}

/* DEV6: optional Eyebrow remains a real user-owned Block control. */
.pxphoto-home-ref .pxphoto-section-head>.pxphoto-section-eyebrow{
  grid-column:1/-1!important;grid-row:auto!important;visibility:visible!important;
  opacity:1!important;min-width:0!important;
}
