
  /* ====== JCL Horses – refined look to match your palette ====== */
:root{
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-muted: #f6f1f1;         /* site beige */
  --border: #e8e4e1;                /* soft border */
  --beige-accent: #efe6d7;          /* tabs & chip active */
  --text: #333333;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
}


  .horse-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: #f6f1f1;
  padding: 10px 14px;
  border-radius: 5px;
  border: 1px solid #e8e4e1;
  max-width: 1100px;
  margin: 10px auto 16px;
  box-shadow: var(--shadow);
}

.horse-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  font: 500 14px/1 Arial, sans-serif;
}
.chip.active {
  background: var(--beige-accent);
  border-color: #e2d6c5;
  box-shadow: inset 0 -2px 0 #ddccb4;
}

.horse-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2ddd9;
  border-radius: 5px;
  padding: 6px 10px;
  background: #fff;
  min-width: 220px;
}
.horse-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

/* a11y helper */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}



.horse-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
}
/* ---- Card look for thumbnails ---- */
.gallery-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}
.horse-thumbnail {
  background-color: #f6f1f1;
  border-radius: 5px;
  border: 1px solid #e8e4e1;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.horse-thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.horse-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: contain;   /* fits the whole horse */
  background-color: transparent; /* let card bg show through */
}
.horse-thumbnail h3 {
  font-weight: 200;
  font-size: 18px;
  text-shadow: none;
  color: #222;
  padding: 12px 14px 16px;
  margin: 0;
}
/* Category badge on the image */
.horse-thumbnail .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font: 600 12px/1 Arial, sans-serif;
  letter-spacing: .04em;
}

/* Placeholder styling for horses without pictures */
.horse-thumbnail.no-image .placeholder {
  width: 100%;
  height: 240px;                       /* same as image height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: #666;
  background: linear-gradient(180deg, #f7f5f0 0%, #e9e3d9 100%); /* subtle beige gradient */
  border-radius: 6px 6px 0 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
      
@media (max-width: 720px) {
.horse-thumbnail { grid-column: span 12; }
.horse-thumbnail img { height: 350px; }
}

/* Detail gallery placeholder (matches card style, sized for detail view) */
.horse-item1 .gallery .placeholder,
.horse-item .gallery .placeholder {
  width: 100%;
  height: 360px; /* taller than cards for detail view */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: #555;
  background: linear-gradient(180deg, #f7f5f0 0%, #e9e3d9 100%);
  border: 1px solid #e8e4e1;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
@media (max-width: 720px){
  .horse-item1 .gallery .placeholder,
  .horse-item .gallery .placeholder {
    height: 260px;
  }
}
