/* Seranaya 2.4.18 — only catalog/CV; homepage belongs to PBK. */
@media screen and (max-width:1100px) {
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone,
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-track,
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) {
    min-height:0!important;
    max-height:none!important;
    height:auto!important;
  }
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide.is-active:not(.sncv-hero-slide--template) {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) > img,
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) > picture > img {
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
  }
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) .sncv-hero-overlay {
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    padding:clamp(14px,3.2vw,28px)!important;
    background:#fffaf0!important;
    box-sizing:border-box!important;
  }
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-nav {
    position:relative!important;
    inset:auto!important;
    transform:none!important;
  }
  body.sncv-responsive-page .sncv-catalog,
  body.sncv-responsive-page .sncv-catalog .sncv-catalog-shell,
  body.sncv-responsive-page .sncv-catalog .sncv-filter-layout {
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body.sncv-responsive-page .sncv-catalog .sncv-grid,
  body.sncv-responsive-page .sncv-catalog .sncv-filter-layout .sncv-filter-main-group {
    min-width:0!important;
  }
  body.sncv-responsive-home :is(.site-header, .site-branding, .site-logo, .header-inner),
  body.sncv-responsive-page :is(.site-header, .site-branding, .site-logo, .header-inner) {
    min-width:0!important;
    box-sizing:border-box!important;
  }
}
@media screen and (max-width: 600px) {
  body.sncv-responsive-page .sncv-catalog .sncv-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.sncv-responsive-page .sncv-catalog .sncv-filter-layout .sncv-filter-main-group {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.sncv-responsive-page .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide .sncv-hero-overlay h2 {
    font-size:clamp(25px,7vw,36px)!important;
    line-height:1.12!important;
    overflow-wrap:break-word!important;
  }
}
@media screen and (max-width: 350px) {
  body.sncv-responsive-page .sncv-catalog .sncv-grid{grid-template-columns:minmax(0,1fr)!important;}
  body.sncv-responsive-page .sncv-catalog .sncv-filter-layout .sncv-filter-main-group{grid-template-columns:minmax(0,1fr)!important;}
}

/* v2.4.17 — Catalog hero only. The original image height determines its
   rendered height on phones/tablets; no dependency on WordPress body_class(). */
@media screen and (max-width:1100px) {
  .sncv-hero-slider.sncv-hero-standalone,
  .sncv-hero-slider.sncv-hero-standalone .sncv-hero-track {
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
  }
  .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide.is-active:not(.sncv-hero-slide--template) {
    position:relative!important;inset:auto!important;
    display:flex!important;flex-direction:column!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
  }
  .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) > img {
    display:block!important;position:relative!important;
    width:100%!important;max-width:100%!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
    transform:none!important;
  }
  .sncv-hero-slider.sncv-hero-standalone .sncv-hero-slide:not(.sncv-hero-slide--template) .sncv-hero-overlay {
    position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;max-width:100%!important;
    margin:0!important;padding:clamp(12px,3vw,24px)!important;
    transform:none!important;box-sizing:border-box!important;
  }
  .sncv-hero-slider.sncv-hero-standalone .sncv-hero-nav {
    position:relative!important;inset:auto!important;transform:none!important;
    width:100%!important;min-height:44px!important;
  }
}
