/* Main gallery header and responsive filter controls. */
.wc-gallery-head { padding-top: 212px; padding-bottom: 36px; }
.wc-gallery-heading { display: grid; gap: 20px; text-align: center; }
.wc-gallery-heading h1 { margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.08; letter-spacing: -.025em; }
.wc-gallery-heading p { max-width: 780px; margin: 0 auto; font-size: var(--wc-body, 20px); line-height: 1.5; color: #777; }
.wc-gallery-main .wc-gh-chevron { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.wc-gallery-main .gallery-filter { gap: 0; border: 1px solid #e8e8e8; border-radius: 16px; }
.wc-gallery-main .filter-group { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.wc-gallery-main .filter-header { min-width: 0; width: 100%; display: flex; align-items: center; padding-right: 48px; border: 0; border-left: 1px solid #e8e8e8; border-radius: 0; font-size: 16px; }
.wc-gallery-main .selected-value { display: block; flex: 1; min-width: 0; max-width: none; }
.wc-gallery-main .filter-header:after { top: 50%; right: 20px; width: 20px; height: 20px; transform: translateY(-50%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.wc-gallery-main .has-selection .filter-header:after { display: none; }
.wc-gallery-main [data-filter="mark"] .filter-header { border-left: 0; border-radius: 15px 0 0 15px; }
.wc-gallery-main [data-filter="color"] .filter-header { border-radius: 0 15px 15px 0; }
.wc-gallery-main .clear-filter { display: none; place-items: center; top: 50%; right: 14px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: #000; font-size: 0; line-height: 0; transform: translateY(-50%); }
.wc-gallery-main .has-selection .clear-filter { display: grid; }
.wc-gallery-main .clear-filter svg { display: block; width: 20px; height: 20px; pointer-events: none; }
.wc-gallery-main .clear-filter:focus-visible { outline: 2px solid #111; outline-offset: 1px; border-radius: 50%; }
.wc-gallery-main .wc-albums.galocat { margin-top: 56px; }
.wc-gh-mobile-tools, .wc-gh-mobile-done { display: none; }
@media (max-width: 1024px) {
    .wc-gallery-head { padding-top: 140px; }
}
@media (max-width: 720px) {
    .wc-gallery-head { padding-top: 124px; padding-bottom: 24px; }
    .wc-gallery-heading { gap: 14px; }
    .wc-gallery-heading p { font-size: 16px; line-height: 1.5; }
    .wc-gallery-main .gallery-filter { grid-template-columns: minmax(0, 1fr); gap: 10px; border: 0; }
    .wc-gallery-main .gallery-filter.fr3,
    .wc-gallery-main .gallery-filter.fr4,
    .wc-gallery-main .gallery-filter.fr5 { grid-template-columns: minmax(0, 1fr); }
    .wc-gallery-main .gallery-filter [data-filter] { grid-column: 1; }
    .wc-gallery-main .gallery-filter .filter-header { height: 52px; padding: 16px 40px 16px 12px; font-size: 16px; border: 1px solid #e8e8e8; border-radius: 13px; }
    .wc-gallery-main .filter-header:after { right: 12px; }
    .wc-gallery-main .clear-filter { right: 6px; }
    .wc-gallery-main.wc-gh-mobile-ready .wc-gh-mobile-tools { display: block; }
    .wc-gallery-main.wc-gh-mobile-ready .gallery-filter { margin-top: 12px; }
    .wc-gallery-main.wc-gh-mobile-ready:not(.wc-gh-mobile-open) .gallery-filter { display: none; }
    .wc-gh-mobile-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; min-height: 56px; border: 1px solid #e8e8e8; border-radius: 15px; background: #fff; color: #111; font-family: inherit; font-size: 16px; text-align: left; cursor: pointer; }
    .wc-gh-mobile-label { flex: 1; }
    .wc-gh-mobile-toggle[aria-expanded="true"] .wc-gh-chevron { transform: rotate(180deg); }
    .wc-gh-mobile-count { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; font-size: 12px; }
    .wc-gh-mobile-count[hidden], .wc-gh-chips[hidden] { display: none; }
    .wc-gh-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
    .wc-gh-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 12px; border: 0; border-radius: 24px; background: #f5f5f5; color: #444; font-family: inherit; font-size: 13px; text-align: left; cursor: pointer; }
    .wc-gh-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wc-gh-chip svg { flex: none; }
    .wc-gh-mobile-open .wc-gh-mobile-done { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 14px; background: #111; color: #fff; font-family: inherit; font-size: 15px; cursor: pointer; }
    .wc-gh-mobile-toggle:focus-visible, .wc-gh-chip:focus-visible, .wc-gh-mobile-done:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
    .wc-gallery-main .wc-albums.galocat { margin-top: 48px; }
}
@media (max-width: 380px) {
    .wc-gallery-heading h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-gallery-main .wc-gh-chevron { transition: none; }
}
