/* Five image-led gallery choices; their names remain available to screen readers. */
.product-gallery .gallery-bottom { gap: 9px 7px; margin-top: 10px; }
.product-gallery .gallery-bottom .gallery-caption { font-size: 13px; }
.product-gallery .gallery-bottom .gallery-count { color: #52697c; }
.product-gallery .gallery-thumbnails {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.product-gallery .gallery-thumbnails button {
  position: relative;
  display: block;
  grid-template-rows: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto !important;
  aspect-ratio: 1;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e9f2f8;
}
.product-gallery .gallery-thumbnails button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.product-gallery .gallery-thumbnails button[data-gallery-select="cover"] img { object-position: 50% 36%; }
.product-gallery .gallery-thumbnails button[data-gallery-select="recipe"] img { object-position: 35% 50%; }
.product-gallery .gallery-thumbnails button[data-gallery-select="format"] img { object-position: 33% 50%; }
.product-gallery .gallery-thumbnails button[data-gallery-select="devices"] img { object-position: 60% 50%; }
.product-gallery .gallery-thumbnails button[aria-pressed="true"] { border-color: #315e85; background: #e9f2f8; }
.product-gallery .gallery-thumbnails button:hover { border-color: #789ebd; }
.product-gallery .gallery-thumbnails button:focus-visible { outline: 3px solid #315e85; outline-offset: 3px; }

/* The interactive checklist uses the same blue-and-white utility language as
   the cookbook. Its three rows are an explicitly partial public recipe sample. */
.product-gallery .gallery-stage .gallery-checklist { justify-content: center; gap: 16px !important; }
.product-gallery .gallery-checklist .ingredient-demo {
  flex: 0 0 auto;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 17px 18px 2px;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 22px -15px #253e5450;
}
.product-gallery .ingredient-demo-heading { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding-bottom: 13px; }
.product-gallery .ingredient-demo-heading img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.product-gallery .ingredient-demo-heading h3 {
  margin: 0;
  color: #253e54;
  font: 550 17px/1.3 Bitter, Georgia, serif;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.ingredient-demo-subhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 9px; }
.ingredient-demo-subhead h4 { margin: 0; color: #294f70; font: 650 15px/1.3 Figtree, Arial, sans-serif; }
.ingredient-demo-subhead [data-checklist-count] { color: #52697c; font: 500 12px/1.3 Figtree, Arial, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ingredient-demo [data-checklist-progress] {
  display: block;
  appearance: none;
  width: 100%;
  height: 3px;
  margin: 0 0 6px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #e4eef5;
  color: #315e85;
}
.ingredient-demo [data-checklist-progress]::-webkit-progress-bar { background: #e4eef5; }
.ingredient-demo [data-checklist-progress]::-webkit-progress-value { background: #315e85; }
.ingredient-demo [data-checklist-progress]::-moz-progress-bar { background: #315e85; }
.product-gallery .ingredient-demo fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.product-gallery .ingredient-demo label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  margin: 0 -6px;
  padding: 9px 6px;
  border-top: 1px solid #e4edf4;
  border-radius: 4px;
  color: #344d62;
  font: 400 15px/1.4 Figtree, Arial, sans-serif;
  cursor: pointer;
}
.product-gallery .ingredient-demo label:first-child { border-top: 0; }
.product-gallery .ingredient-demo label:hover,
.product-gallery .ingredient-demo label:has(input:checked) { background: #f1f7fb; }
.product-gallery .ingredient-demo input { width: 21px; height: 21px; margin: 0; flex: 0 0 21px; accent-color: #315e85; }
.product-gallery .ingredient-demo input:focus-visible { outline: 3px solid #315e85; outline-offset: 3px; }
.product-gallery .ingredient-demo input:checked + span { color: #52697c; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.product-gallery .ingredient-demo-footer { min-height: 44px; font-size: 12px; color: #52697c; }
.product-gallery .ingredient-demo-footer button { min-width: 44px; min-height: 44px; color: #315e85; font-size: 12px; }
.product-gallery .ingredient-demo-footer button:disabled { opacity: 1; color: #66737e; cursor: default; text-decoration: none; }
.product-gallery .ingredient-demo-footer button:focus-visible { outline: 3px solid #315e85; outline-offset: 2px; }

@media (max-width: 700px) {
  .product-gallery .gallery-thumbnails { gap: 6px; }
  .product-gallery .gallery-stage .gallery-checklist { padding: 16px !important; gap: 12px !important; }
  .product-gallery .gallery-checklist .ingredient-demo { padding: 12px 13px 0; }
  .product-gallery .ingredient-demo-heading { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding-bottom: 8px; }
  .product-gallery .ingredient-demo-heading img { width: 40px; height: 40px; }
  .product-gallery .ingredient-demo-heading h3 { font-size: 15px; }
  .ingredient-demo-subhead { padding-block: 8px; gap: 8px; }
  .ingredient-demo-subhead h4 { font-size: 14px; }
  .ingredient-demo-subhead [data-checklist-count] { font-size: 11px; }
  .product-gallery .ingredient-demo label { min-height: 44px; padding-block: 7px; gap: 9px; font-size: 14px; }
  .product-gallery .ingredient-demo input { width: 20px; height: 20px; flex-basis: 20px; }
  .product-gallery .ingredient-demo-footer { font-size: 11px; }
}
