/* Responsive treatment shared by galleries, category pages, and their editors. */
@media(max-width:900px){
 html body header.nav.fv-has-account .nav-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body header.nav.fv-has-account .nav-links>.fv-account-menu{grid-column:1/-1;grid-row:auto;justify-self:center;margin:4px 0 0;max-width:100%}
 html body header.nav.fv-has-account .fv-account-label{display:inline!important}
 html body header.nav.fv-has-account .nav-links>a{min-width:0;font-size:14px}
}
@media(max-width:740px){
 header:not(.nav){flex-wrap:wrap;justify-content:center;gap:16px;padding:20px 16px}
 header:not(.nav)>a{max-width:100%}
 header:not(.nav)>nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:100%;text-align:center}
 header:not(.nav)>nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 8px}
 .catalog-controls>div,.catalog-grid>*,.detail-heading>*,.composer-layout>*,.studio>*,.template-grid>*{min-width:0}
 .catalog-controls input,.catalog-controls select,input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-width:0}
 .category-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:20px 16px 0}
 .category-tabs a{display:flex;justify-content:center;align-items:center;min-height:48px;padding:10px 8px;text-align:center;overflow-wrap:anywhere}
 .catalog-controls{padding:0 16px;grid-template-columns:minmax(0,1fr);gap:0}
 .catalog-grid{gap:20px;padding:0 16px}
 .catalog-card h2,.catalog-card p,.catalog-facts p,.detail-heading h2,.occasion-event h1,.occasion-event p{overflow-wrap:anywhere}
 .catalog-button,.design-actions a,.design-next a,.actions>a,.first-free-button{max-width:100%;min-height:48px;white-space:normal;text-align:center;justify-content:center;overflow-wrap:anywhere}
 .template-detail{margin:35px auto;padding:20px 16px}.detail-heading{gap:14px}.detail-heading h2{font-size:clamp(30px,8vw,40px)}
 .detail-heading .catalog-button,.detail-bottom .catalog-button{width:100%}
 .design-actions{padding:0 16px}.design-actions select{width:100%;min-width:0;font-size:16px}.design-actions a{width:100%}
 .personalizing-composer .box{padding:20px 16px;border-radius:18px}.personalizing-composer #heading{font-size:clamp(30px,8vw,40px)}
 .editor-menu{padding:10px;gap:7px}.editor-menu a{flex:1 1 125px;justify-content:center;text-align:center}
 .occasion-site .mini-nav{flex-wrap:wrap;gap:8px}.occasion-site .mini-hero-copy,.occasion-site[data-layout=editorial] .mini-hero-copy,.occasion-site[data-layout=split] .mini-hero-copy{padding:28px 20px}
 .greeting.occasion-site h2,.greeting.occasion-site[data-layout=editorial] h2,.template-detail .mini-hero h2{font-size:clamp(30px,8vw,46px);letter-spacing:-1px;overflow-wrap:anywhere}
 .occasion-site .recipient{font-size:22px}.occasion-site .mini-ribbon{gap:10px}.occasion-site .mini-story{padding:28px 20px}
 .occasion-site .mini-story>*{min-width:0}.occasion-site .message{line-height:1.75}.occasion-site .pet-note{flex-wrap:wrap;padding:22px 20px}
 .occasion-event .event-hero-copy{padding:28px 20px}.occasion-event .event-hero h1{font-size:clamp(32px,9vw,48px);letter-spacing:-1px;overflow-wrap:anywhere}
 .occasion-event #pagePhotos{padding:12px 16px}.occasion-event #pagePhotos img{width:100%!important;max-width:100%;margin:8px 0!important}
 .occasion-event #eventDetails{grid-template-columns:minmax(0,1fr);padding:16px 20px}.occasion-event #rsvpPanel,.occasion-event #votePanel,.occasion-event #conversation{padding:18px 14px;margin:16px 12px}
 #publishPanel button,#publishPanel a,#save{min-height:48px;max-width:100%;white-space:normal;margin-top:12px}
 input[type=file]{padding:10px 6px;overflow:hidden}input[type=file]::file-selector-button{max-width:100%;white-space:normal}
}
@media(max-width:600px){
 .catalog-grid,.occasion-first .template-grid{grid-template-columns:minmax(0,1fr)}
 .catalog-card-copy{padding:22px}.catalog-facts{grid-template-columns:minmax(0,1fr)}
 .catalog-facts div{padding:20px}.occasion-site[data-layout=editorial] .mini-hero{grid-template-columns:minmax(0,1fr)}
 .occasion-site[data-layout=editorial] .mini-cover{height:240px;min-height:0;max-width:100%;object-fit:cover}
 .occasion-site[data-layout=spotlight] .mini-hero-copy{padding-top:210px}
 .template-head h2{overflow-wrap:anywhere}.template-search,.occasion-search-controls{min-width:0;max-width:100%}
 .hero .first-free-action .first-free-button{width:100%;font-size:15px;padding:15px 16px}
}
@media(prefers-reduced-motion:reduce){.catalog-card{transition:none}.catalog-card:hover{transform:none}}
