/* INNOVATIVE FOOTWEAR responsive patch 2026-10-20. Scoped layouts. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { overflow-x: clip; }
img, video { max-width:100%; }
main, section, article, .container, .container-fluid { min-width:0; }
:where(main,article,section) :where(p,li) { overflow-wrap:break-word; }
/* Keep icons/logos unaltered; scale photographs only in their own sections. */
#portfolio .works-grid {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:clamp(12px,1.8vw,24px) !important;
  width:min(100% - 32px,1240px) !important;
  margin-inline:auto !important;
  height:auto !important;
}
#portfolio .works-grid > .work-item {
  width:100% !important; min-width:0 !important;
  float:none !important; position:relative !important;
  inset:auto !important; margin:0 !important;
}
#portfolio .work-img { height:auto !important; aspect-ratio:4/5; overflow:hidden; }
#portfolio .work-img img { display:block; width:100%; height:100% !important; aspect-ratio:4/5; object-fit:cover; object-position:center; }
#portfolio .work-intro { width:100%; height:auto; padding:12px 8px 16px; }
#portfolio .work-title { font-size:clamp(18px,1.55vw,24px); line-height:1.3; }
#portfolio .work-descr { font-size:clamp(15px,1.1vw,18px); line-height:1.5; }
/* Collection/other article photographs, not nav icons. */
.post-prev-img { overflow:hidden; }
.post-prev-img img { width:100%; height:auto; display:block; }
/* B2B grid and copy readability, without overriding the visual theme. */
.kremara-b2b-ref :is(.shell,.hero-layout,.process-grid,.product-grid) { min-width:0; }
.kremara-b2b-ref :is(.hero-copy,.hero-photo,.stage-photo,.cta-photo) { min-width:0; max-width:100%; }
.kremara-b2b-ref :is(.hero-photo,.stage-photo,.cta-photo) img { max-width:100%; height:auto; }
.kremara-b2b-ref :is(.hero-lead,.stage-copy p,.process-grid p) { font-size:clamp(16px,1.25vw,19px); line-height:1.65; }
@media (max-width:991px) {
  #portfolio .works-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .kremara-b2b-ref :is(.hero-layout,.process-grid,.product-grid) { max-width:100%; }
}
@media (max-width:767px) {
  body { overflow-x:clip; }
  #portfolio .works-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; width:calc(100% - 24px) !important; gap:12px !important; }
  #portfolio .work-title { font-size:clamp(17px,4.5vw,21px); }
  #portfolio .work-descr { font-size:clamp(14px,3.6vw,16px); }
  .kremara-b2b-ref :is(.hero-layout,.process-grid,.product-grid) { grid-template-columns:minmax(0,1fr); }
  .kremara-b2b-ref :is(.hero-copy,.hero-photo,.stage-photo,.cta-photo) { width:100%; }
  .kremara-b2b-ref :is(.hero-lead,.stage-copy p,.process-grid p) { font-size:16px; }
  .post-prev-img img { object-fit:contain; }
}
@media (max-width:380px) {
  #portfolio .works-grid { grid-template-columns:minmax(0,1fr) !important; max-width:440px !important; }
}
