.lens-editorial { --leica-red: var(--lens-accent, #675b4e); }
.lens-editorial[data-lens-brand="nikon"] { --lens-accent: #7a610e; }
.lens-editorial[data-lens-brand="zeiss"] { --lens-accent: #294f7c; }
.lens-editorial[data-lens-brand="essilor"] { --lens-accent: #225a70; }
.lens-editorial[data-lens-brand="hoya"] { --lens-accent: #5e475d; }
.lens-editorial[data-lens-brand="wanxin"] { --lens-accent: #326453; }

.lens-editorial .leica-intro h1 { max-width: 15em; font-size: clamp(35px, 4.4vw, 66px); }
.lens-editorial .leica-intro-copy > a { color: var(--leica-red); }
.lens-photo-credit { margin-top: 10px; font-size: .8125rem; color: var(--leica-muted); }
.lens-photo-credit a, .lens-editorial .leica-card-copy > a {
  color: var(--leica-red);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.lens-editorial .leica-card-copy > a { display: inline-flex; align-items: center; min-height: 34px; margin-top: 7px; font-size: .875rem; }
.lens-editorial .leica-technology { max-width: none; }
.lens-editorial .leica-diagram { aspect-ratio: 900 / 560; }
.lens-editorial .leica-product figure { aspect-ratio: 8 / 5; }
.lens-editorial .leica-product img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lens-editorial .leica-card-copy .lens-technical-name {
  margin: 0;
  color: var(--leica-red);
  font-size: .875rem;
  font-weight: 680;
  letter-spacing: .025em;
}
.lens-editorial .leica-card-copy .lens-review {
  color: var(--leica-red);
  font-size: .8125rem;
  padding-inline-start: 10px;
  border-inline-start: 2px solid currentColor;
}
.lens-editorial .lens-tech-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lens-tech-grid > article { grid-column: span 2; }
.lens-tech-grid[data-count="5"] > article:nth-child(n+4),
.lens-tech-grid[data-count="4"] > article { grid-column: span 3; }
.lens-editorial .lens-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lens-editorial .lens-product-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lens-editorial .lens-editorial-image { overflow: hidden; }
.lens-editorial .leica-callout p + p { margin-top: .5em; }

@media (min-width: 771px) {
  .lens-editorial[data-lens-brand="rodenstock"] .lens-tech-grid > article:nth-child(4) { grid-column: 2 / span 2; }
  .lens-editorial[data-lens-brand="rodenstock"] .lens-tech-grid > article:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 770px) {
  .lens-editorial .lens-tech-grid { grid-template-columns: minmax(0, 1fr); }
  .lens-editorial .lens-tech-grid > article { grid-column: auto; }
  .lens-editorial[data-lens-brand="rodenstock"] .lens-tech-grid[data-count="5"] > article { grid-column: 1 / -1; }
  .lens-editorial .lens-product-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .lens-editorial .lens-product-grid, .lens-editorial .lens-product-grid[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .lens-editorial .lens-enter { animation: lens-appear .42s ease-out both; }
  @keyframes lens-appear {
    from { opacity: .72; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lens-editorial .lens-editorial-image img { transition: transform .32s ease; }
  .lens-editorial .lens-editorial-image:hover img { transform: scale(1.025); }
}
