/* v0.16 — brand, editorial images, rich instructor profiles, gift certificate */
.brand-header-horizontal{height:42px!important;max-width:205px!important;width:auto!important;object-fit:contain!important;mix-blend-mode:normal!important}
.brand-footer .brand-footer-white{height:83px!important;max-width:200px!important;width:auto!important;object-fit:contain!important;mix-blend-mode:normal!important;background:transparent!important;padding:0!important;border-radius:0!important}
.brand-footer{display:inline-flex!important;align-items:center}
/* Match the image's visible area to existing layout; never distort proportions */
.hero-art img,.direction-photo-card img,.learning-image img,.editorial-photo img,.service-card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hero-art,.learning-image,.direction-photo-card,.service-card-photo,.editorial-photo{overflow:hidden}
/* Profiles: wider editorial panel and deliberate hierarchy */
.instructor-profile{width:min(790px,calc(100% - 32px))!important;max-height:min(90dvh,920px)!important;overflow:hidden!important;border-radius:24px!important}
.instructor-profile .profile-body{height:auto;max-height:min(90dvh,920px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#86bfb6 #eef7f4;padding:0 34px 32px!important}
.instructor-profile .profile-body::-webkit-scrollbar{width:9px}
.instructor-profile .profile-body::-webkit-scrollbar-track{background:#edf5f2}
.instructor-profile .profile-body::-webkit-scrollbar-thumb{background:#80b8ae;border-radius:12px;border:2px solid #edf5f2}
.instructor-profile .profile-dialog-top{position:sticky!important;top:0!important;z-index:5;align-items:center!important;padding:22px 0 17px!important;margin-bottom:0!important;background:#fff;border-bottom:1px solid #e1ece7;box-shadow:0 9px 16px -16px #0e4b40aa}
.instructor-profile .profile-dialog-name{font-size:clamp(1.25rem,2.4vw,1.8rem);line-height:1.2;font-weight:800;letter-spacing:-.03em;color:#142a28}
.instructor-profile .dialog-close{flex:0 0 40px;cursor:pointer;background:#eaf3f0;color:#075f59}
.instructor-profile .profile-intro-elevated{display:grid!important;grid-template-columns:170px minmax(0,1fr);gap:22px!important;align-items:stretch!important;margin:24px 0 16px!important;padding:16px;background:#eff8f5;border:1px solid #d5ece4;border-radius:18px}
.instructor-profile .profile-lead-image{width:170px!important;height:210px!important;object-fit:cover;object-position:center 25%;border-radius:13px!important}
.instructor-profile .profile-intro-elevated>div{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:14px}
.instructor-profile .profile-sport-label{margin:0!important;align-self:start;display:inline-flex;border-radius:30px;background:#d9efe8;color:#006e65;font-size:.81rem;font-weight:800;padding:7px 13px}
.instructor-profile .profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.instructor-profile .profile-metric{background:white;border:1px solid #dcece6;border-radius:12px;padding:13px 10px;display:grid;gap:7px}
.instructor-profile .profile-metric-label{font-size:.72rem;color:#58726c;font-weight:700;letter-spacing:.01em}
.instructor-profile .profile-metric-value{font-size:.95rem;line-height:1.3;color:#075d56}
.instructor-profile .profile-story-paragraph{font-size:.93rem;line-height:1.8;color:#334944;margin:0 0 14px}
.instructor-profile .profile-story-lead{font-size:1rem;font-weight:570;color:#203e37;border-left:3px solid #049a87;padding:5px 0 5px 16px;margin-top:18px}
.instructor-profile .profile-gallery-rich{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;margin:16px 0 20px!important}
.instructor-profile .profile-gallery-rich:has(img:only-child){grid-template-columns:1fr}
.instructor-profile .profile-gallery-rich img{width:100%!important;height:200px!important;aspect-ratio:3/2;object-fit:cover;object-position:center 32%;border-radius:14px!important;border:1px solid #dce8e3}
.instructor-profile .profile-gallery-rich:has(img:only-child) img{height:230px!important;object-position:center 36%}
.instructor-profile .profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.instructor-profile .profile-detail-panel{background:#f4f8f6;padding:20px;border-radius:15px;border:1px solid #e3ebe7}
.instructor-profile .profile-detail-panel:nth-child(2){background:#e8f4ef;border-color:#cfe9df}
.instructor-profile .profile-detail-panel .profile-section-label{margin:0 0 12px!important;font-size:.98rem;color:#086b5f}
.instructor-profile .profile-detail-panel ul{margin:0;padding-left:18px;color:#294a42;font-size:.86rem;line-height:1.65}
.instructor-profile .profile-detail-panel li+li{margin-top:8px}
.instructor-profile .profile-cta{margin-top:4px;width:100%;min-height:52px;font-weight:800}
/* Certificates: single front on hero, back alongside the amount chooser */
.gift-hero-art .certificate-front-only{width:100%;max-width:600px;display:block!important;box-shadow:none;background:transparent}
.certificate-front-only img.certificate-sample-1{display:block;width:100%;height:auto!important;max-height:450px!important;object-fit:contain!important;filter:drop-shadow(0 10px 24px #09382a18);border-radius:10px}
.certificate-back-panel{margin:0;display:flex;align-items:center;justify-content:center;min-width:0;padding:16px;border-radius:22px;background:#e7f2ef}
.certificate-back-panel img{display:block;width:100%;height:auto!important;max-height:370px;object-fit:contain!important;box-shadow:0 15px 40px #063c3030;border-radius:12px}
@media (max-width:760px){
 .brand-header-horizontal{height:34px!important;max-width:152px!important}
 .brand-footer .brand-footer-white{height:67px!important}
 .instructor-profile{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
 .instructor-profile .profile-body{max-height:100dvh;padding:0 18px 26px!important}
 .instructor-profile .profile-dialog-top{padding:18px 0 14px!important}
 .instructor-profile .profile-intro-elevated{grid-template-columns:110px minmax(0,1fr);gap:12px!important;padding:11px}
 .instructor-profile .profile-lead-image{width:110px!important;height:158px!important}
 .instructor-profile .profile-metrics{grid-template-columns:1fr;gap:5px}
 .instructor-profile .profile-metric{padding:7px 9px;gap:2px}
 .instructor-profile .profile-metric-value{font-size:.84rem}
 .instructor-profile .profile-metric-label{font-size:.69rem}
 .instructor-profile .profile-gallery-rich img{height:150px!important}
 .instructor-profile .profile-gallery-rich:has(img:only-child) img{height:185px!important}
 .instructor-profile .profile-detail-grid{grid-template-columns:1fr;gap:10px}
 .instructor-profile .profile-detail-panel{padding:16px}
 .certificate-back-panel{padding:10px}
}
@media (max-width:390px){.instructor-profile .profile-intro-elevated{grid-template-columns:92px minmax(0,1fr)}.instructor-profile .profile-lead-image{width:92px!important;height:145px!important}.instructor-profile .profile-dialog-name{font-size:1.22rem}}
