/* רק סתימות – work section v12: loaded after sections-v11.css.
   Toilet case with its own before/after photos; older job photos move to a secondary row. No scripts. */

/* ---------- Layout: case on the right, photo pair on the left (RTL) ---------- */
.home-work-grid.toilet-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-areas: "head pair" "more more";
  grid-template-rows: auto;
  gap: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  align-items: start;
}

/* ---------- Before / after pair ---------- */
.toilet-pair {
  grid-area: pair; justify-self: end;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px); align-items: start;
  width: 100%; max-width: 650px;
}
.toilet-fig { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.toilet-label {
  align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  background: var(--pink); color: var(--navy);
  font-size: .9375rem; font-weight: 800; line-height: 1.3;
}
.toilet-fig-after .toilet-label { background: var(--cyan); }
/* Photos are shown whole: the mat is rounded, the image itself is never clipped or cropped. */
.toilet-frame { padding: 6px; border-radius: 20px; background: var(--cyan-l); }
.toilet-frame img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; }
.toilet-note { color: var(--muted); font-size: .875rem; line-height: 1.45; }

/* ---------- Secondary gallery: separate jobs ---------- */
.toilet-more { grid-area: more; padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.toilet-more-title { font-size: clamp(1.15rem, 1rem + calc(.5vw * var(--a11y-scale, 1)), 1.35rem); font-weight: 800; line-height: 1.3; }
.toilet-more-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(16px, 2.5vw, 28px); margin-top: 20px;
}
.toilet-more .home-shot img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .home-work-grid.toilet-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "pair" "more";
    gap: 36px;
  }
  .toilet-pair { justify-self: start; }
}
@media (max-width: 639px) {
  .toilet-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .toilet-more .home-shot img { aspect-ratio: 1; border-radius: 14px; }
  .toilet-more .home-shot:nth-child(3) { grid-column: 1 / -1; }
  .toilet-more .home-shot:nth-child(3) img { aspect-ratio: 16 / 9; }
}
@media (max-width: 380px) {
  .toilet-fig { gap: 8px; }
  .toilet-label { padding: 5px 10px; font-size: .8125rem; }
  .toilet-frame { padding: 4px; border-radius: 14px; }
  .toilet-note { font-size: .8125rem; }
}
