.gallery-shell__drawer .photographe-drawer-filters {
    --ph-drawer-text: #173646;
    --ph-drawer-text-muted: #5f7785;
    --ph-drawer-border: rgba(171, 194, 204, 0.35);
    --ph-drawer-chip-bg: linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
    --ph-drawer-chip-border: rgba(171, 194, 204, 0.5);
    --ph-drawer-chip-text: #315468;
    --ph-accent: #2a5c77;
    --ph-drawer-bg: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
    margin-top: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.gallery-shell__drawer .photographe-drawer-filters,
.gallery-shell__drawer .photographe-drawer-filters * {
    box-sizing: border-box;
}

.gallery-shell__drawer .photographe-drawer-filters__body {
    padding: 16px;
    border-top: 1px solid var(--ph-drawer-border);
    background: var(--ph-drawer-bg);
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
}

.gallery-shell__drawer .photographe-drawer-filters--has-reset .photographe-drawer-filters__body {
    padding-right: 34px;
}

.gallery-shell__drawer .photographe-drawer-filters__header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.gallery-shell__drawer .photographe-drawer-filters__title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ph-drawer-text);
}

.gallery-shell__drawer .photographe-drawer-filters__groups {
    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
}

.gallery-shell__drawer .photographe-drawer-filter-group {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.gallery-shell__drawer .photographe-drawer-filter-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.gallery-shell__drawer .photographe-drawer-filter-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    overflow: hidden;
    color: var(--ph-drawer-text-muted);
    flex: 0 0 16px;
}

.gallery-shell__drawer .photographe-drawer-filter-head-icon svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    flex: 0 0 16px;
}

.gallery-shell__drawer .photographe-drawer-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ph-drawer-text);
}

.gallery-shell__drawer .photographe-drawer-filter-help {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ph-drawer-text-muted);
}

.gallery-shell__drawer .photographe-drawer-filter-chips {
    display: grid !important;
    grid-template-columns: repeat(var(--photographe-drawer-filter-columns, 1), minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.gallery-shell__drawer .photographe-drawer-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--ph-drawer-chip-border);
    background: var(--ph-drawer-chip-bg);
    color: var(--ph-drawer-chip-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.gallery-shell__drawer .photographe-drawer-filter-chip--gender {
    min-width: 26px;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.gallery-shell__drawer .photographe-drawer-filter-chip:hover,
.gallery-shell__drawer .photographe-drawer-filter-chip:focus-visible {
    transform: translateY(-1px);
    border-color: #334155;
    background: #334155;
    color: #f8fafc;
    box-shadow: 0 10px 24px rgba(42, 92, 119, 0.12);
    outline: none;
}

.gallery-shell__drawer .photographe-drawer-filter-chip.is-active {
    background: linear-gradient(180deg, #2a5c77 0%, #1c485f 100%);
    border-color: #1c485f;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(28, 72, 95, 0.22);
}

.gallery-shell__drawer .photographe-drawer-filter-chip--amber.is-active {
    background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
    border-color: #ea580c;
}

.gallery-shell__drawer .photographe-drawer-filter-chip--emerald.is-active {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-color: #059669;
}

.gallery-shell__drawer .photographe-drawer-filter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-shell__drawer .photographe-drawer-filter-swatch {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    opacity: .82;
    cursor: pointer;
}

.gallery-shell__drawer .photographe-drawer-filter-swatch:hover,
.gallery-shell__drawer .photographe-drawer-filter-swatch:focus-visible {
    transform: scale(1.08);
    opacity: 1;
    outline: none;
}

.gallery-shell__drawer .photographe-drawer-filter-swatch--dark {
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.38), 0 0 0 1px rgba(148, 163, 184, 0.32);
}

.gallery-shell__drawer .photographe-drawer-filter-swatch.is-active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 92, 119, 0.3);
    opacity: 1;
}

.gallery-shell__drawer .photographe-drawer-filter-swatch-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.gallery-shell__drawer .photographe-drawer-filter-swatch-check--dark {
    color: #0f172a;
}

.gallery-shell__drawer .photographe-drawer-filter-actions {
    position: absolute;
    top: 74px;
    left: calc(100% + 2px);
    right: auto;
    z-index: 8;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.gallery-shell__drawer .photographe-drawer-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 132px;
    padding: 10px 2px 8px;
    border-radius: 0 12px 12px 0;
    border: 1px solid #334155;
    border-left: 0;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: transparent;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -4px 8px 18px rgba(15, 23, 42, 0.16);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    pointer-events: auto;
    cursor: pointer;
}

.gallery-shell__drawer .photographe-drawer-filter-reset:hover,
.gallery-shell__drawer .photographe-drawer-filter-reset:focus-visible {
    background: #1e293b;
    color: #ffffff;
    transform: translateX(2px);
    outline: none;
}

.gallery-shell__drawer .photographe-drawer-filter-reset.is-active {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: -4px 8px 18px rgba(234, 88, 12, 0.18);
}

.gallery-shell__drawer .photographe-drawer-filter-reset.is-active:hover,
.gallery-shell__drawer .photographe-drawer-filter-reset.is-active:focus-visible {
    background: linear-gradient(180deg, #fbbf24 0%, #f97316 100%);
    color: #ffffff;
    box-shadow: -8px 12px 22px rgba(234, 88, 12, 0.24);
}

@media (max-width: 1024px) {
    .gallery-shell__drawer .photographe-drawer-filter-actions {
        position: static;
        margin-top: 12px;
    }

    .gallery-shell__drawer .photographe-drawer-filter-reset {
        min-width: 0;
        min-height: 40px;
        padding: 0 14px;
        border-left: 1px solid #ea580c;
        border-radius: 999px;
        writing-mode: horizontal-tb;
    }
}
