/* Premium photographic practitioner directory cards */
.cfm-category-photo-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0!important;background:#fffdf9!important;border:1px solid #dcc4d0!important;border-radius:14px!important;box-shadow:0 8px 24px #271a3419;transition:box-shadow .18s,transform .18s}
.cfm-category-photo-card:hover{transform:translateY(-2px);box-shadow:0 14px 29px #28183825}
.cfm-category-photo-card>.icon{display:none!important}
.cfm-card-photo{position:relative;margin:0!important;aspect-ratio:3/2;overflow:hidden;background:#342441;flex-shrink:0}
.cfm-card-photo img{width:100%;height:100%;display:block;object-fit:cover;filter:saturate(.96) contrast(1.03)}
.cfm-card-photo-caption{position:absolute;right:9px;bottom:9px;background:#24152eda;color:#fffaf4;padding:5px 8px;border-radius:5px;font-size:10px;line-height:1.25}
.cfm-category-photo-card>h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(26px,2.75vw,34px)!important;line-height:1.14;color:#382247;margin:20px 23px 11px!important}
.cfm-category-photo-card>p{color:#66516d;margin:0 23px 17px!important;font-size:14px;line-height:1.55;flex:1}
.cfm-category-photo-card>.browse-practitioners-button,.cfm-category-photo-card>a.button{margin:4px 23px 24px!important;align-self:flex-start;background:#422550!important;color:#fff8ec!important;border-radius:8px}
.cfm-category-photo-card>.practitioner-panel{margin:6px 22px 23px!important}
.cfm-category-photo-card>.practitioner-panel>summary{border-radius:8px;min-height:44px}
.cfm-profile-photo-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0!important;border:1px solid #d8bed3!important;background:#fffdfa!important;border-radius:13px!important;box-shadow:0 7px 21px #28163717}
.cfm-profile-photo-card>.cfm-card-photo{width:100%}
.cfm-profile-photo-card>h3,.cfm-profile-photo-card>h4{font-family:'Cormorant Garamond',Georgia,serif!important;font-size:27px!important;line-height:1.12!important;color:#372449;padding:0 22px;margin:21px 0 5px!important}
.cfm-profile-photo-card>p{padding:0 22px;margin:5px 0 10px!important;font-size:13px;line-height:1.52;color:#62536d}
.cfm-profile-photo-card>p.sub,.cfm-profile-photo-card>p.location{color:#735881;font-size:12px!important}
.cfm-profile-photo-card>p:last-of-type{padding-bottom:20px;margin-top:auto!important}
.cfm-profile-photo-card a{color:#603d76;font-weight:650;text-underline-offset:3px;overflow-wrap:anywhere}
.cfm-profile-photo-card>.listing-links{padding:10px 22px;display:flex;gap:8px;flex-wrap:wrap}
.cfm-profile-photo-card>.listing-links a{border:1px solid #d9c3de;background:#f1e6f3;padding:8px 11px;border-radius:8px;display:inline-flex;align-items:center;min-height:37px;text-decoration:none;font-size:12px}
.cfm-profile-photo-card>.listing-links a:first-child{background:#432657;color:#fff9ed;border-color:#432657}
.directory-list.cfm-photo-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:18px;align-items:stretch}
.directory-list.cfm-photo-directory>.directory-count,.directory-list.cfm-photo-directory>p:not(.directory-count),.directory-list.cfm-photo-directory>button,.directory-list.cfm-photo-directory>a{grid-column:1/-1}
.directory-list.cfm-photo-directory>.cfm-profile-photo-card{margin:0}
@media(max-width:700px){.cfm-category-photo-card>h3{font-size:28px!important}.cfm-card-photo{aspect-ratio:3/2}.cfm-profile-photo-card>h3,.cfm-profile-photo-card>h4{font-size:25px!important}}
@media(prefers-reduced-motion:reduce){.cfm-category-photo-card{transition:none}.cfm-category-photo-card:hover{transform:none}}
/* Relevant, inclusive category images - a single reusable optimized image sheet. */
.cfm-card-photo .cfm-photo-sprite{position:absolute;inset:0;display:block;background-image:url('https://static.wixstatic.com/media/8d982d_e791f19b8bc34e8483b978031c47ff61~mv2.png');background-repeat:no-repeat;background-size:300% 300%;background-position:var(--cfm-photo-x) var(--cfm-photo-y);filter:saturate(.98) contrast(1.02);}

/* Unified practitioner image grid — Nov 2026 */
/* Every image frame uses the exact same 3:2 crop and full card width. */
.cfm-category-photo-card>.cfm-card-photo,.cfm-profile-photo-card>.cfm-card-photo{box-sizing:border-box;width:100%;height:auto;aspect-ratio:3/2;flex:0 0 auto;align-self:stretch;min-width:0;overflow:hidden}
.cfm-card-photo .cfm-photo-sprite{width:100%;height:100%;inset:0;background-size:300% 300%;}
/* Category cards have the same vertical rhythm even when headings wrap. */
.grid>.cfm-category-photo-card>h3{min-height:2.3em;display:flex;align-items:end}
.grid>.cfm-category-photo-card>p{flex:1 1 auto;min-height:0}
.grid>.cfm-category-photo-card>.practitioner-panel{margin-top:auto!important}
/* Expanded category: the photo stays a normal card width and the listings get their own full row. */
@media(min-width:801px){
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open]){display:grid;grid-template-columns:minmax(240px,38%) minmax(0,1fr);column-gap:22px;align-items:start;align-content:start}
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open])>.cfm-card-photo{grid-column:1;grid-row:1 / span 2;align-self:start;width:100%;aspect-ratio:3/2}
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open])>h3{grid-column:2;grid-row:1;align-self:end;margin:24px 22px 8px 0!important;min-height:0}
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open])>p{grid-column:2;grid-row:2;margin:0 26px 14px 0!important;align-self:start}
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open])>.practitioner-panel{grid-column:1 / -1;grid-row:3;margin:18px 22px 24px!important}
}
/* Phone and small tablet: an expanded card stays stacked, with an ordinary image crop. */
@media(max-width:800px){
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open]){display:flex;flex-direction:column}
 .directory-grid>.cfm-category-photo-card:has(>.practitioner-panel[open])>.cfm-card-photo{width:100%;aspect-ratio:3/2}
 .grid>.cfm-category-photo-card>h3{min-height:0}
}
/* Skip visual shifts for reduced-motion users. */
@media(prefers-reduced-motion:reduce){.cfm-card-photo .cfm-photo-sprite{transition:none}}
