/* Homepage work showcase. All three cards share one media geometry. */
#featured-services .work-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
#featured-services .work-showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}
#featured-services .work-showcase-card h3 {
  min-height: 2.5em;
  margin: 0 0 14px;
  line-height: 1.25;
}
#featured-services .work-showcase-card figure {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
}
#featured-services .work-showcase-frame {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 9px;
  background: #102a43;
}
#featured-services .work-showcase-frame .work-media-player {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 50%;
  background: #102a43;
}
#featured-services .work-showcase-frame .work-media-player--carpet {
  object-position: 50% 60%;
}
#featured-services .work-showcase-frame [hidden] { display: none; }
#featured-services .work-showcase-frame:focus-within {
  outline: 3px solid #00788a;
  outline-offset: 3px;
}
#featured-services .work-showcase-label {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 5px;
  background: rgba(16, 42, 67, .90);
  color: #fff;
  font: 700 12px / 1.4 Manrope, sans-serif;
  letter-spacing: .02em;
}
#featured-services .work-showcase-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-top: 12px;
  color: var(--muted, #52636b);
  font-size: 12px;
  line-height: 1.4;
}
#featured-services .work-showcase-tools > a { text-underline-offset: 3px; }
#featured-services .work-shower-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  padding: 4px;
  border: 1px solid #bcc8c6;
  border-radius: 7px;
  background: #f1f4f1;
}
#featured-services .work-shower-buttons button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 12px;
  background: transparent;
  color: #102a43;
  font: 700 13px / 1.4 Manrope, sans-serif;
  cursor: pointer;
}
#featured-services .work-shower-buttons button[aria-pressed="true"] {
  background: #102a43;
  color: #fff;
  box-shadow: 0 1px 3px rgba(16, 42, 67, .18);
}
#featured-services .work-shower-buttons button:hover { border-color: #00788a; }
#featured-services .work-shower-buttons button:focus-visible {
  outline: 3px solid #00788a;
  outline-offset: 2px;
}
#featured-services .work-showcase-caption {
  margin: 12px 0 16px;
  color: var(--muted, #52636b);
  font-size: 13px;
  line-height: 1.65;
}
#featured-services .work-showcase-card > .text-link { margin-top: auto; }
.work-showcase-status:empty { display: none; }
.work-showcase-status { margin: 10px 0 0; font-size: 13px; }
@media (min-width: 1100px) {
  #featured-services .work-showcase-card h3 { min-height: 1.25em; }
}
@media (max-width: 900px) {
  #featured-services .work-showcase-grid { gap: 16px; }
  #featured-services .work-showcase-card { padding: 14px; }
  #featured-services .work-showcase-card h3 { font-size: 22px; }
}
@media (max-width: 680px) {
  #featured-services .work-showcase-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #featured-services .work-showcase-card { padding: 18px; }
  #featured-services .work-showcase-card h3 { min-height: 0; font-size: 26px; }
  #featured-services .work-showcase-frame { max-width: 420px; margin-inline: auto; }
  #featured-services .work-showcase-tools,
  #featured-services .work-showcase-caption { width: 100%; max-width: 420px; margin-inline: auto; }
  #featured-services .work-shower-buttons button { min-height: 44px; }
}

/* Matched still-image views. One image pair gives both states identical geometry. */
.shower-photo-comparison { max-width: 440px; margin: 24px 0; }
#featured-services .shower-photo-comparison { max-width: none; }
.shower-photo-comparison .shower-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 9px;
  background: #e4e0d5;
}
.shower-photo-comparison .shower-photo-view { position: absolute; inset: 0; overflow: hidden; }
.shower-photo-comparison .shower-photo-view[hidden] { display: none !important; }
.shower-photo-comparison .shower-photo-pair {
  display: block;
  width: 200%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: fill;
}
.shower-photo-comparison [data-shower-phase="after"] .shower-photo-pair { transform: translateX(-50%); }
.shower-photo-comparison .work-showcase-label {
  position: absolute; top: 12px; left: 12px; pointer-events: none;
  padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px;
  background: rgba(16,42,67,.92); color: #fff;
  font: 700 12px / 1.4 Manrope, sans-serif; letter-spacing: .02em;
}
.shower-photo-comparison .work-showcase-tools { display: flex; align-items: center; min-height: 48px; margin-top: 12px; }
.shower-photo-comparison .work-shower-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; padding: 4px;
  border: 1px solid #bcc8c6; border-radius: 7px; background: #f1f4f1;
}
.shower-photo-comparison .work-shower-buttons button {
  min-height: 44px; border: 1px solid transparent; border-radius: 4px; padding: 7px 12px;
  background: transparent; color: #102a43; font: 700 13px / 1.4 Manrope, sans-serif; cursor: pointer;
}
.shower-photo-comparison .work-shower-buttons button[aria-pressed="true"] { background: #102a43; color: #fff; }
.shower-photo-comparison .work-shower-buttons button:hover { border-color: #00788a; }
.shower-photo-comparison .work-shower-buttons button:focus-visible { outline: 3px solid #00788a; outline-offset: 2px; }
.shower-photo-comparison .work-showcase-caption { margin: 12px 0 16px; color: #52636b; font-size: 13px; line-height: 1.65; }
.shower-photo-comparison .shower-photo-note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.55; }
#featured-services .shower-photo-comparison .work-shower-buttons button { min-height: 44px; }
