.selected-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}
.selected-photos .editorial-photo { margin: 0; min-width: 0; }
.selected-photos .editorial-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.application-visual img[src$="glass-dome.webp"] { object-position: 50% 69%; }
@media (min-width: 901px) {
  .gallery .panel-copy, .gallery .glass-panel:not(.is-active) .panel-copy {
    left: 14px;
    width: calc(var(--canvas-width) - 28px);
  }
  .gallery .panel-copy h2, .gallery .is-active .panel-copy h2, .gallery .glass-panel:not(.is-active) .panel-copy h2 {
    font-size: clamp(17px, 1.65vw, 27px);
  }
  .gallery .panel-top, .gallery .glass-panel:not(.is-active) .panel-top { left: 12px; width: calc(var(--canvas-width) - 24px); }
  .gallery .glass-panel:not(.is-active) .material-tag { opacity: 0; }
}
@media (max-width: 900px) {
  .mobile-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-types button:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .selected-photos { gap: 18px; }
}
.gallery .scene-wash, .gallery .glass-panel:not(.is-active) .scene-wash {
  background: linear-gradient(180deg, #f4f8ef18 0%, #f4f8ef00 36%, #f4f8ef81 68%, #f4f8efe8 100%);
}
@media (min-width: 701px) {
  .catalog-family-grid .catalog-family-card.family-heat:nth-child(n) { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
  .catalog-family-card.family-heat img { height: auto; min-height: 0; aspect-ratio: 1.8; }
}

.application-visual img[data-photo="true"] { object-fit: cover; }
.application-visual img[src$="radius-shower.webp"] { object-position: 50% 62%; }
.application-visual img[src$="ornament-cabinet.webp"] { object-position: 50% 60%; }

/* A single native link covers the visible crop, including the painted CTA. */
.gallery a.panel-select {
  display: block;
  z-index: 4;
  cursor: pointer;
}
.gallery a.panel-select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--teal);
}
.gallery [data-type="triplex"] .scene-image { object-position: 50% 43%; }
.type-options label:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 480px) {
  .type-options { grid-template-columns: minmax(0, 1fr); }
}
.catalog-photo-row { grid-template-columns: 1fr 1fr; align-items: start; }
.catalog-photo-row > * { min-width: 0; }
.catalog-photo-row figure { margin: 0; }
.catalog-photo-row figure img { display: block; width: 100%; height: auto; }
.material-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.material-types .catalog-section-head { grid-column: 1 / -1; margin-bottom: 4px; }
.material-types .catalog-variant { grid-template-columns: 1fr auto; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px,2.4vw,32px); }
.material-types .catalog-variant:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.material-types .variant-arrow { color: var(--teal); }
@media(max-width: 700px) {
  .catalog-photo-row, .material-types { grid-template-columns: minmax(0,1fr); }
  .catalog-photo-row { gap: 20px; }
}
main .catalog-photo-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px,4vw,64px);
  align-items: start; text-align: left;
}
.catalog-photo-copy, .catalog-photo-media { display: grid; align-content: start; gap: 20px; }
.catalog-photo-copy > :first-child, .catalog-photo-copy > :first-child > :first-child { margin-top: 0; }
.catalog-summary.catalog-photo-row .catalog-photo-copy p { margin: 0; }
.catalog-photo-row.heat-reading .catalog-photo-copy article { display: block; }
.catalog-photo-row .catalog-photo-media figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.material-types > h2 { grid-column: 1 / -1; }
.catalog-directory > div, .catalog-related {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: stretch;
}
.catalog-directory > div a, .catalog-related a {
  display: flex; align-items: center; padding: 16px 20px; border: 1px solid var(--line);
  border-radius: 12px; line-height: 1.45; min-width: 0;
}
.catalog-directory > div a:hover, .catalog-related a:hover { background: #eaf1ed; }
@media(max-width:700px) {
  main .catalog-photo-row, .catalog-directory > div, .catalog-related { grid-template-columns: minmax(0,1fr); }
}
.material-notes {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:clamp(24px,4vw,56px)}
.material-notes h2,.decor-copy h2 {font-size:clamp(22px,2.2vw,31px);margin:0 0 12px;font-weight:450;line-height:1.16}
.material-notes p,.material-feature p,.decor-copy p {margin:0;color:var(--muted);line-height:1.7}
.material-feature,.decor-story {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:clamp(24px,5vw,68px)}
.material-feature h2{margin-top:0}
.material-feature figure,.decor-story figure,.detail-gallery figure{margin:0}
.material-feature figure img,.decor-story figure img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px}
.decor-copy{display:grid;gap:24px}
.decor-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:12px}
.decor-images:has(figure + figure) img{aspect-ratio:3/4}
.detail-trigger{cursor:pointer;background:none;border:0;color:var(--teal);padding:10px 0;font:inherit}
.detail-gallery{width:min(760px,calc(100% - 28px));max-height:94dvh;border:0;background:#f8faf7;color:var(--ink);padding:clamp(16px,3vw,30px);border-radius:18px}
.detail-gallery::backdrop{background:#102421b8}
.detail-gallery header,.detail-gallery footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.detail-gallery header{margin-bottom:14px}.detail-gallery header h2{margin:0;font-size:clamp(24px,3vw,32px);font-weight:450}
.detail-gallery footer{justify-content:center;margin-top:10px}
.detail-gallery button{min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);padding:6px 12px;cursor:pointer;font:inherit}
.detail-gallery .gallery-slides img{display:block;width:100%;height: min(55vh,500px);object-fit:contain;background:#e9eeeb;border-radius:10px}
.detail-gallery [hidden]{display:none!important}
@media(max-width:700px){.material-feature,.decor-story{grid-template-columns:minmax(0,1fr)}.decor-images{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))}}

