.course-story{margin-top:36px;padding:32px;border-radius:18px;background:#f2f5ed;text-align:center}.course-story h2{font-size:clamp(25px,4vw,38px);margin:10px 0}.eyebrow{font-size:12px;letter-spacing:.16em;color:#44664e}.course-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.course-photos img{width:100%;height:190px;object-fit:cover;border-radius:10px}.course-form select{width:100%;padding:12px;border:1px solid #bcc7d4;border-radius:8px;background:white;font:inherit}.course-slots{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:20px 0}.course-slots label{display:flex;gap:8px;margin:9px 0;align-items:center;font-size:14px}.course-slots input{width:auto}.course-summary{align-self:start}.course-action{display:inline-block;padding:12px 18px;border-radius:8px;background:#235747;color:#fff;text-decoration:none;margin-top:16px}.course-cart-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid #e0e5e9}.course-cart-item small{display:block;margin-top:5px}.course-cart-item button{background:transparent;color:#903c28;border:1px solid #dbcac4;padding:8px 12px;border-radius:7px}.ce-message{padding:15px;background:#f2f5ed;border-radius:8px}.course-form fieldset{border:1px solid #dce2e6;border-radius:10px;padding:16px}.course-form legend{padding:0 6px}.course-form .summary-note{line-height:1.6}@media(max-width:650px){.course-photos{grid-template-columns:repeat(2,1fr)}.course-photos img{height:140px}.course-story{padding:20px}.course-slots{grid-template-columns:1fr}.course-cart-item{align-items:flex-start}}

/* Four rows per gallery page: 4 columns on desktop, 2 on mobile. */
.course-story-expanded{padding:24px;margin-top:28px}
.course-story-expanded .eyebrow{margin:0 0 4px;line-height:1.3}
.course-story-expanded h2{margin:0 0 5px;line-height:1.15}
.course-story-expanded .course-gallery-intro{margin:0;line-height:1.4}
.course-story-expanded .course-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.course-story-expanded .course-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:9px}
.course-gallery-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:16px}
.course-gallery-controls[hidden],.course-gallery-grid[hidden]{display:none}
.course-gallery-controls button{padding:10px 16px;min-height:44px;border:1px solid #b9c9bc;border-radius:8px;background:white;color:#235747;font:600 14px/1.2 system-ui;cursor:pointer}
.course-gallery-controls button:disabled{opacity:.4;cursor:default}
.course-gallery-controls button:focus-visible{outline:2px solid #235747;outline-offset:3px}
.course-gallery-controls span{font-size:13px;color:#49634e}
@media(max-width:650px){.course-story-expanded{padding:18px 12px}.course-story-expanded .course-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.course-gallery-controls{gap:8px;flex-wrap:wrap}.course-gallery-controls button{padding:9px 12px}.course-gallery-controls span{font-size:12px}}
