/* 2026-10-10, batch 2: inner pages follow the homepage look, and carry real photos. */

/* Content sections alternate white and light grey; cards and tables on grey sit on white. */
.marketing-inner main > section.content-section:nth-of-type(odd) { background: #f4f4f3; }
.marketing-inner main > section.content-section:nth-of-type(odd) .content-card { background: #fff; padding: 26px 24px 18px; }
.marketing-inner main > section.content-section:nth-of-type(odd) .procurement-table td { background: #fff; }

/* Rows of photos: product shots shown whole on white, workshop views cropped to 16:9. */
.photo-subhead { margin: 34px 0 14px; font-size: clamp(18px, 1.3vw, 22px); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 18px; }
.photo-grid-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.photo-tile { margin: 0; min-width: 0; }
.photo-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 8px; background: #fff; border: 1px solid #e3e3e6; }
.photo-tile a:hover img, .photo-tile a:focus-visible img { border-color: var(--red); }
.photo-tile.photo-wide { grid-column: span 2; }
.photo-grid-wide .photo-tile.photo-wide { grid-column: auto; }
.photo-tile.photo-wide img { aspect-ratio: 16 / 9; object-fit: cover; padding: 0; }
.photo-tile figcaption { margin-top: 8px; font-size: var(--marketing-small, 14px); line-height: 1.45; color: #4a4f57; }
.photo-section .text-link { display: inline-block; margin-top: 22px; }

/* Click-to-play YouTube films (same behaviour as the homepage; nothing loads from YouTube before play). */
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.yt-film h3 { margin: 12px 0 0; font-size: 17px; }
.yt-facade { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play-icon { position: absolute; top: 50%; left: 50%; width: 64px; height: 45px; border-radius: 11px; background: #e62117; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .18s ease, background .18s ease; }
.yt-play-icon::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.yt-play:hover .yt-play-icon, .yt-play:focus-visible .yt-play-icon { background: #c4170f; transform: translate(-50%, -50%) scale(1.06); }
.yt-play:focus-visible { outline: 3px solid var(--red, #c6232a); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .yt-play-icon { transition: none; } }

/* Case studies: a photo on each card. Resources: photos instead of the grey placeholders. */
.content-card .card-photo img { display: block; width: 100%; max-width: 220px; height: auto; aspect-ratio: 3 / 4; object-fit: contain; margin: 0 0 16px; padding: 8px; background: #f4f4f4; }
.resource-thumb.has-photo { padding: 0; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f4f3; }
.resource-thumb.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource-thumb.has-photo.is-product { background: #fff; }
.resource-thumb.has-photo.is-product img { object-fit: contain; padding: 10px; }

/* About: the schedule block in light grey, so red is kept for the closing quote strip. */
.marketing-inner .schedule-section { background: #f4f4f3; color: var(--ink, #33373d); }
.marketing-inner .schedule-section .eyebrow { color: var(--red, #c6232a); }
.marketing-inner .schedule-section p { color: #4e4e51; }
.marketing-inner .schedule-section .schedule-label { color: var(--ink, #33373d); }

/* Customization: the same page width as the header, and a plain (not half-height grey) option index. */
@media (min-width: 761px) {
  .marketing-inner .craft-hero, .marketing-inner .craft-layout { width: min(var(--max), calc(100% - 96px)); }
  .marketing-inner .craft-hero { padding-left: 0; padding-right: 0; }
  .marketing-inner .craft-index { min-height: 0; background: transparent; border-right: 0; padding-left: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .marketing-inner .craft-hero, .marketing-inner .craft-layout { width: calc(100% - 64px); }
}

@media (max-width: 900px) {
  .film-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-grid-wide { grid-template-columns: 1fr; }
  .photo-tile.photo-wide { grid-column: 1 / -1; }
  .marketing-inner main > section.content-section:nth-of-type(odd) .content-card { padding: 20px 16px 14px; }
}
