.ks-category {
  --paper: #fbf6ef;
  --ink: #211c16;
  --green: #07543d;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 Arial, sans-serif;
}
.ks-lead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(350px, 39vw, 590px);
  background: #f2e6d8;
}
.ks-lead > img {
  position: absolute;
  z-index: -1;
  right: 0;
  width: 63%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 13%);
}
.ks-canvas > img { width: 68%; object-fit: contain; object-position: right center; }
.ks-lead > div { width: 43%; padding: clamp(24px, 4vw, 72px); }
.ks-category h1 { font-size: clamp(40px, 5.8vw, 90px); line-height: 1; }
.ks-lead p { margin: 20px 0; font: clamp(19px, 2vw, 32px)/1.18 Georgia, serif; }
.ks-category a.ks-btn {
  display: inline-block;
  padding: 12px 21px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 600;
}
.ks-category section, .ks-contact { padding: clamp(16px, 2.3vw, 38px); scroll-margin-top: 100px; }
.ks-category h2 { margin: 0 0 18px; font: 600 clamp(30px, 3.7vw, 60px)/1.05 Georgia, serif; }
.ks-category h3 { font: 600 clamp(20px, 1.8vw, 30px)/1.14 Georgia, serif; }
.ks-grid, .ks-details, .ks-gallery, .ks-directions { display: grid; gap: clamp(8px, 1vw, 18px); }
.ks-cols-2, .ks-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ks-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ks-cols-4, .ks-directions { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ks-gallery { grid-auto-columns: 1fr; grid-auto-flow: column; }
.ks-card, .ks-directions a { background: #f5ecdf; border-radius: 10px; overflow: hidden; }
.ks-card img, .ks-details img, .ks-gallery img, .ks-directions img { width: 100%; display: block; object-fit: cover; }
.ks-card img { aspect-ratio: 1.8; }
.ks-card h3, .ks-card p { margin: 12px 16px; }
.ks-details img { aspect-ratio: 1.55; }
.ks-gallery img { aspect-ratio: .79; }
.ks-gallery button { display: block; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.ks-contact { text-align: center; background: #f3ecdf; }
.ks-contact p { margin: 12px 0 16px; }
.ks-directions { margin-top: 18px; }
.ks-directions img { aspect-ratio: 1.55; }
.ks-directions strong { display: block; padding: 12px; font: bold clamp(16px,1.4vw,26px)/1.16 Georgia, serif; }
.ks-category:has(.ks-canvas) h2 { text-align: center; }
@media (max-width: 700px) {
  .ks-lead { display: flex; flex-direction: column-reverse; min-height: 0; }
  .ks-lead > div { width: 100%; padding: 24px 18px; }
  .ks-lead > img { position: static; width: 100%; height: auto; max-height: 320px; mask-image: none; }
  .ks-canvas > img { object-position: center; }
  .ks-grid, .ks-directions, .ks-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; }
  .ks-card h3, .ks-card p { margin: 9px; }
}
@media (max-width: 390px) { .ks-grid { grid-template-columns: 1fr; } }
