/* v0.17: scoped patch to home + ski + snowboard */
/* Single product-style photo gallery inside instructor profile */
.instructor-profile .profile-intro-elevated{grid-template-columns:minmax(0,245px) minmax(0,1fr)!important;align-items:start!important;gap:22px!important}
.instructor-profile .profile-media-showcase{width:100%;min-width:0;display:grid;gap:9px}
.instructor-profile .profile-featured-photo{position:relative;display:block;width:100%;border:0;padding:0;overflow:hidden;border-radius:13px;background:#dcece7;cursor:zoom-in}
.instructor-profile .profile-featured-photo>img{display:block;width:100%;height:265px;object-fit:cover;object-position:center 25%}
.instructor-profile .profile-zoom-hint{position:absolute;bottom:9px;right:9px;padding:5px 10px;border-radius:9px;background:#123d37df;color:#fff;font-size:12px;font-weight:700}
.instructor-profile .profile-photo-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.instructor-profile .profile-thumb{display:block;padding:3px;overflow:hidden;background:#fff;border:2px solid #d5e7df;border-radius:10px;transition:border-color .15s,background .15s;cursor:pointer}
.instructor-profile .profile-thumb.is-active,.instructor-profile .profile-thumb:hover{border-color:#087a6d;background:#e5f5ee}
.instructor-profile .profile-thumb img{display:block;width:100%;height:65px;object-fit:cover;object-position:center 25%;border-radius:6px}
.instructor-profile .profile-intro-elevated>div:not(.profile-media-showcase){min-width:0}
/* Full-screen overlay: the original image is loaded only on demand */
.instructor-photo-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#0b1415f5;color:#fff;overflow:hidden}
.instructor-photo-lightbox::backdrop{background:#071010ea}
.instructor-photo-viewer{height:100%;display:grid;grid-template-rows:56px minmax(0,1fr) 56px;gap:2px;padding:0 12px}
.instructor-photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1100px;width:100%;margin:auto}
.instructor-photo-counter{font-size:.92rem;color:#d4ede7;font-weight:700}
.instructor-photo-lightbox button{background:#ffffff24;border:1px solid #ffffff36;color:#fff;min-width:43px;min-height:43px;border-radius:14px;font-size:1.55rem;cursor:pointer}
.instructor-photo-lightbox button:hover{background:#ffffff3d}
.instructor-photo-display{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;max-width:1100px;width:100%;margin:auto;gap:15px}
.instructor-photo-display img{display:block;width:auto;height:auto;max-height:100%;max-width:calc(100% - 130px);object-fit:contain;box-shadow:0 12px 40px #0005}
.instructor-photo-viewer-footer{display:flex;align-items:center;justify-content:center;color:#dceee9;font-size:.82rem}
/* Shorter, topical tariff imagery, body layout unchanged */
section .service-card-photo>img{height:148px!important;width:100%;object-fit:cover!important;object-position:center 40%}
/* Fully tall beginner image, next to all text and outcome on desktop */
@media (min-width:761px){.learning-panel-feature{grid-template-rows:auto auto 1fr!important;align-items:stretch!important}.learning-panel-feature .learning-image{grid-column:2!important;grid-row:1/4!important;height:100%!important;min-height:100%!important;aspect-ratio:auto!important;margin:0!important}.learning-panel-feature .learning-image img{inset:0!important;position:absolute!important;width:100%!important;height:100%!important;object-fit:cover!important}.learning-panel-feature .learning-outcome{grid-column:1!important;grid-row:3!important;align-self:end!important}}
/* Main gift image from actual certificate; compact in the existing block */
.home-gift-art{display:flex!important;align-items:center;justify-content:center;background:transparent!important;max-width:410px!important;width:100%;margin-inline:auto!important;min-height:0!important}
.home-gift-art img{height:auto!important;max-height:255px!important;width:100%!important;object-fit:contain!important;box-shadow:0 10px 24px #07483d1a;border-radius:13px}
@media(max-width:760px){.instructor-profile .profile-intro-elevated{grid-template-columns:minmax(0,165px) minmax(0,1fr)!important;gap:12px!important}.instructor-profile .profile-featured-photo img{height:210px}.instructor-profile .profile-thumb img{height:52px}.instructor-photo-display{gap:7px}.instructor-photo-display img{max-width:calc(100% - 95px)}.home-gift-art img{max-height:215px!important}}
@media(max-width:490px){.instructor-profile .profile-intro-elevated{grid-template-columns:1fr!important}.instructor-profile .profile-media-showcase{grid-template-columns:minmax(0,1fr) 75px;align-items:stretch}.instructor-profile .profile-featured-photo img{height:240px}.instructor-profile .profile-photo-thumbnails{display:flex;flex-direction:column;justify-content:start}.instructor-profile .profile-thumb img{height:66px}.instructor-profile .profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.instructor-photo-display img{max-width:calc(100% - 70px)}.instructor-photo-lightbox button{min-width:31px;min-height:38px;font-size:1.3rem}.instructor-photo-viewer{padding:0 5px}}
