/* V3: only the four short homepage entries and the existing slanted photo layers.
   Load after styles.css and revision-home.css. No image bytes or Background A change. */

/* The four lower entries now have a dedicated media row and an opaque caption row.
   The same rows apply to real photographs and the two existing icon illustrations. */
.entry-grid .entry-tile.short{
  --short-entry-media-height:clamp(180px,16.5vw,280px);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:var(--short-entry-media-height) auto;
  align-content:stretch;
  aspect-ratio:auto;
  min-height:0;
  padding:0;
  background:var(--tint);
}
.entry-grid .entry-tile.short:after{
  display:none;
}
.entry-grid .entry-tile.short>img{
  grid-column:1;
  grid-row:1;
  position:static;
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  margin:0;
  object-fit:contain;
  object-position:center;
  transform:none;
}
.entry-grid .entry-tile.short>.tile-symbol{
  grid-column:1;
  grid-row:1;
  position:static;
  inset:auto;
  place-self:center;
  width:72px;
  height:72px;
  margin:0;
}
.entry-grid .entry-tile.short>span{
  grid-column:1;
  grid-row:2;
  position:relative;
  inset:auto;
  z-index:2;
  display:block;
  width:100%;
  min-height:112px;
  padding:20px 24px 22px;
  background:var(--base);
  border-top:1px solid var(--border);
  color:var(--heading);
  font-size:clamp(21px,1.5vw,28px);
  line-height:1.3;
  overflow-wrap:anywhere;
}
.entry-grid .entry-tile.short>span small{
  display:block;
  margin:0 0 8px;
  font-size:10px;
  line-height:1.5;
  letter-spacing:1.1px;
}
.entry-grid .entry-tile.short>span svg{
  width:22px;
  height:22px;
  margin-left:10px;
  vertical-align:middle;
}

/* Mirror the current 1400px content frame on wide screens, with at least
   50px breathing room on desktop. The photo's far edge remains in its own half. */
.slant-section{
  --slant-photo-inset:max(50px,calc((100% - 1400px)/2),calc(2vw + 20px));
}
.slant-section .section-backdrop>img{
  left:var(--slant-photo-inset);
  right:auto;
  width:calc(46% - var(--slant-photo-inset));
  object-fit:contain;
  object-position:left center;
}
#customization.slant-section .section-backdrop>img{
  left:auto;
  right:var(--slant-photo-inset);
  width:calc(46% - var(--slant-photo-inset));
  object-position:right center;
}
.slant-section.workflow .section-backdrop>img{
  left:var(--slant-photo-inset);
  right:auto;
  width:calc(43% - var(--slant-photo-inset));
  object-position:left bottom;
}

@media(max-width:768px){
  .entry-grid .entry-tile.short{
    --short-entry-media-height:clamp(210px,35vw,260px);
  }
  .entry-grid .entry-tile.short>span{
    min-height:108px;
    padding:19px 22px 21px;
    font-size:24px;
  }
  /* Keep the existing mobile photo zone, vertical layout and alternating clips. */
  .slant-section .section-backdrop>img,
  #customization.slant-section .section-backdrop>img,
  .slant-section.workflow .section-backdrop>img{
    left:18px;
    right:18px;
    width:calc(100% - 36px);
    object-fit:contain;
    object-position:center;
  }
}
@media(max-width:480px){
  .entry-grid .entry-tile.short{
    --short-entry-media-height:clamp(210px,65vw,290px);
  }
}

@media(hover:hover) and (pointer:fine){
  .entry-grid .entry-tile.short:hover>img,
  .entry-grid .entry-tile.short:focus-visible>img{
    transform:none;
  }
  .entry-grid .entry-tile.short:hover>span,
  .entry-grid .entry-tile.short:focus-visible>span{
    color:var(--primary);
  }
}
