/**
 * Gallery listing (locked Collection + top filters)
 * Requires body.gallery-page-locked
 */

body.gallery-page-locked .gallery-listing-section {
    width: 100%;
    overflow-x: hidden;
    background: #ffffff;
    padding-bottom: 20px;
}

body.gallery-page-locked.gallery-layout-collection .hiring-art-section {
    background: #ffffff;
    padding: 18px 0 16px;
}

/* One centered column: hero + listing share the same width and horizontal padding */
body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container.lg-container,
body.gallery-page-locked.gallery-layout-collection .gallery-listing-section .container.lg-container.gallery-listing-container {
    max-width: 1560px;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 3vw, 32px);
    padding-right: clamp(16px, 3vw, 32px);
}

/* Hero: title + intro use full container width (to the right padding edge) */
body.gallery-page-locked.gallery-layout-collection .hiring-art-section .exibition-title {
    text-align: left !important;
    margin-bottom: 0.75rem;
}

body.gallery-page-locked.gallery-layout-collection .exibition-title h3 {
    text-align: left;
}

body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container > .exibition-title + * {
    text-align: left !important;
    max-width: none !important;
    width: 100%;
}

body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container p {
    font-size: 17px;
    line-height: 1.65;
    max-width: none;
}

/* Hide legacy CMS divider blocks that render as a heavy red bar under the intro. */
body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container > h3[style*="background"] {
    display: none !important;
}

/* Tame CMS dividers that read as heavy bars */
body.gallery-page-locked .hiring-art-section hr {
    border: none !important;
    height: 1px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.25rem 0 !important;
    background: #dfe3ea !important;
    opacity: 1 !important;
}

body.gallery-page-locked .gallery-listing-container {
    width: 100%;
    max-width: 1560px;
}

body.gallery-page-locked.gallery-layout-collection .hiring-art-section + section .container.lg-container {
    max-width: 1560px;
}

/* Filter shell variables (always available, all viewports) */
body.gallery-layout-collection.gallery-page-locked #filter-sidebar,
body.gallery-page-locked #filter-sidebar {
    --gf-bg: #ececee;
    --gf-shell: #1e1e22;       /* dark band */
    --gf-surface: #f3f3f5;
    --gf-border: #c8ccd4;
    --gf-border-strong: #aeb4bf;
    --gf-text: #141418;
    --gf-muted: #5a5a62;
    --gf-accent: #1e1e24;
    box-sizing: border-box;
    background: var(--gf-shell) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
}

/* Desktop / tablet (>= 992px): in-flow filter bar above the grid */
@media (min-width: 992px) {
    body.gallery-layout-collection.gallery-page-locked #filter-sidebar,
    body.gallery-page-locked #filter-sidebar,
    body.gallery-page-locked #filter-sidebar:not(:target),
    body.gallery-page-locked #filter-sidebar:target {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 6px 8px 6px !important;
        margin: 0 0 10px !important;
        z-index: auto;
    }
}

/* Center filter chrome (toggle + inner panel) within the listing column */
body.gallery-page-locked #filter-sidebar .gallery-filters-master-toggle,
body.gallery-page-locked #filter-sidebar .gallery-filters-collapsible-body {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.gallery-page-locked #filter-sidebar .myaccordion {
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-body ul,
body.gallery-page-locked #filter-sidebar .gallery-facet-title {
    text-align: center;
}

body.gallery-page-locked #filter-sidebar .check_Box {
    justify-content: center;
}

body.gallery-page-locked #filter-sidebar .check_Box .css-label {
    text-align: center;
}

body.gallery-page-locked #filter-sidebar .filter-search > p {
    text-align: center;
}

body.gallery-page-locked #filter-sidebar .filter-search .input-group {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .rangVal,
body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .range-slide {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .rangVal {
    justify-content: center;
}

body.gallery-page-locked #filter-sidebar .reset-filter-btn-desk .enquiry-btn {
    display: flex;
    justify-content: center;
}

/* layout-collection sets sticky on #filter-sidebar — disable for locked listing (prevents overlap) */
body.gallery-page-locked.gallery-layout-collection #filter-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
}

/* Listing clears filter — no paint overlap */
body.gallery-page-locked .gallery-listing-main {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    background: #ffffff;
    padding-top: 0;
}

/* Master toggle: one control for entire filter block */
body.gallery-page-locked .gallery-filters-master-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    font: 600 11px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

body.gallery-page-locked .gallery-filters-master-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
}

body.gallery-page-locked .gallery-filters-master-chevron {
    color: #ffffff;
    opacity: 0.85;
}

body.gallery-page-locked .gallery-filters-master-toggle-label {
    flex: 1 1 auto;
    text-align: center;
}

body.gallery-page-locked .gallery-filters-master-toggle-hint {
    flex: 1 1 auto;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--gf-muted);
}

body.gallery-page-locked .gallery-filters-master-chevron {
    flex: 0 0 auto;
    font-size: 11px;
    transition: transform 0.2s ease;
    opacity: 0.75;
}

body.gallery-page-locked .gallery-filters-master-toggle-hint {
    display: none !important;
}

body.gallery-page-locked .gallery-filters-master-toggle.collapsed .gallery-filters-master-chevron {
    transform: rotate(180deg);
}

body.gallery-page-locked .gallery-filters-collapsible-body {
    padding: 12px 14px 14px;
    background: transparent;
}

body.gallery-page-locked .gallery-filters-bar .filter-search {
    margin-bottom: 4px;
    padding: 0;
}

body.gallery-page-locked .gallery-filters-bar .filter-search > p {
    font-size: 10px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--gf-muted);
    margin-bottom: 3px;
    text-align: left;
}

body.gallery-page-locked .gallery-filters-bar .myaccordion {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

body.gallery-page-locked .gallery-filters-bar .myaccordion > .gallery-facet-card {
    flex: 1 1 300px;
    min-width: 260px;
    max-width: 100%;
    border: none;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    background: var(--gf-bg);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.gallery-page-locked .gallery-filters-bar .myaccordion > .gallery-facet-card-price {
    flex: 1 1 100%;
    min-width: 100%;
    min-height: 0;
}

body.gallery-page-locked .gallery-filters-bar .gallery-facet-header {
    padding: 4px 8px !important;
    margin: 0 !important;
    background: var(--gf-surface) !important;
    border-bottom: 1px solid #eef1f5 !important;
}

body.gallery-page-locked .gallery-filters-bar .gallery-facet-title {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gf-accent);
    line-height: 1.25;
}

body.gallery-page-locked .gallery-filters-bar .gallery-facet-body {
    padding: 6px 10px 7px !important;
    max-height: none;
    overflow-y: visible;
    flex: 1 1 auto;
}

body.gallery-page-locked .gallery-filters-bar .reset-filter-btn-desk {
    flex: 1 1 100%;
    margin-top: 2px;
}

/* Legacy .pgntn-wdth caps pagination — breaks alignment with filters */
body.gallery-page-locked ul.pagination.pgntn-wdth {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center;
}

@media (max-width: 991px) {
    /* Match the desktop selectors so this wins source-order; force off-canvas.
       z-index 9999 sits ABOVE the JS-injected .sidebar-overlay (9998). */
    body.gallery-page-locked #filter-sidebar,
    body.gallery-page-locked #filter-sidebar:not(:target),
    body.gallery-layout-collection.gallery-page-locked #filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        right: auto !important;
        width: min(420px, 100%) !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 22px 22px 32px !important;
        overflow-y: auto !important;
        z-index: 9999;
        background: #ffffff !important;
        border: none !important;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.18);
        transition: left 0.3s ease;
    }

    /* Drawer opened either via URL hash or JS .active class */
    body.gallery-page-locked #filter-sidebar:target,
    body.gallery-page-locked #filter-sidebar.active {
        left: 0 !important;
    }

    /* Inside drawer: stack filter cards full-width, always visible */
    body.gallery-page-locked .gallery-filters-bar .myaccordion {
        flex-direction: column;
    }

    body.gallery-page-locked .gallery-filters-bar .myaccordion > .gallery-facet-card,
    body.gallery-page-locked .gallery-filters-bar .myaccordion > .gallery-facet-card-price {
        flex: 1 1 auto;
        min-width: 100%;
    }

    /* Drawer is the title; hide the redundant "Search & filters" master toggle */
    body.gallery-page-locked #filter-sidebar .gallery-filters-master-toggle {
        display: none !important;
    }

    /* Always-expanded facet body inside the drawer (ignore Bootstrap collapse) */
    body.gallery-page-locked #filter-sidebar .gallery-filters-collapsible-body,
    body.gallery-page-locked #filter-sidebar .gallery-filters-collapsible-body.collapse,
    body.gallery-page-locked #filter-sidebar .gallery-filters-collapsible-body.collapsing {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Sticky drawer chrome: Close / Clear / Done stay reachable while scrolling long facet lists */
    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header {
        position: sticky;
        top: 0;
        z-index: 6;
        margin: -22px -22px 16px;
        padding: 16px 48px 14px 22px;
        background: #ffffff;
        border-bottom: 1px solid #e2e4e8;
    }

    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header .close-sidebar {
        display: block !important;
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 7;
        float: none;
        font-size: 22px;
        line-height: 1;
        color: #7b8088;
        text-decoration: none;
    }
}

@media (min-width: 992px) {
    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header {
        display: none !important;
    }
}

/* ——— Search, inputs, checkboxes (locked gallery) ——— */
body.gallery-page-locked #filter-sidebar .filter-search .input-group {
    border-radius: 0 !important;
    overflow: hidden;
    border: 1px solid #e3e6eb;
}

body.gallery-page-locked #filter-sidebar .filter-search .form-control {
    background: #fff;
    border: none;
    border-radius: 0 !important;
    color: var(--gf-text);
    font-size: 14px;
    padding: 7px 10px;
    text-align: left;
    transition: box-shadow 0.2s ease;
}

body.gallery-page-locked #filter-sidebar .filter-search .form-control:focus {
    box-shadow: inset 0 0 0 1px var(--gf-border-strong);
    outline: none;
}

body.gallery-page-locked #filter-sidebar .filter-search .form-control::placeholder {
    color: #a0a0a8;
}

body.gallery-page-locked #filter-sidebar .filter-search .input-group-append .btn {
    border-radius: 0 !important;
    background: var(--gf-accent);
    border: none;
    color: #fff;
    min-width: 42px;
    padding: 7px 10px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

body.gallery-page-locked #filter-sidebar .filter-search .input-group-append .btn:hover {
    background: #3d3d44;
}

body.gallery-page-locked #filter-sidebar .check_Box .css-label {
    color: var(--gf-text);
    font-size: 13px;
    text-align: left;
    display: block;
    width: auto;
    line-height: 1.4;
    font-weight: 400;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-body ul {
    text-align: center;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-body ul li {
    margin-bottom: 2px;
    width: auto;
    display: block;
}

body.gallery-page-locked #filter-sidebar .check_Box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Final alignment pass: center each facet as a neat vertical list */
body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .gallery-facet-body ul {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .gallery-facet-body ul li {
    width: 100%;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box {
    justify-content: flex-start;
    gap: 4px;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label {
    text-align: left;
    min-width: 170px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.01em;
    display: inline-block;
    padding-left: 24px;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 20px;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label:before {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin: 0;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label:after {
    top: 50%;
    left: 4px;
    margin-top: 0;
    transform: translateY(-50%) scale(0);
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-checkbox:checked + .css-label:after {
    transform: translateY(-50%) scale(1);
}

/* Mobile drawer: bigger touch targets, baseline-aligned label + box */
@media (max-width: 991px) {
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .gallery-facet-body ul {
        align-items: flex-start;
        width: 100%;
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .gallery-facet-body ul li {
        width: 100%;
        margin-bottom: 6px;
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box {
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 6px 0;
        min-height: 28px;
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label {
        min-width: 0;
        min-height: 22px;
        font-size: 14px;
        line-height: 22px;
        padding-left: 28px;
        display: inline-block;
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label:before {
        width: 18px;
        height: 18px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        margin: 0;
        font-size: 13px;
        line-height: 18px;
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-label:after {
        top: 50%;
        left: 4px;
        transform: translateY(-50%) scale(0);
    }
    body.gallery-page-locked #filter-sidebar .gallery-facet-card:not(.gallery-facet-card-price) .check_Box .css-checkbox:checked + .css-label:after {
        transform: translateY(-50%) scale(1);
    }
}

/* Add breathing room before first paintings row */
body.gallery-page-locked .gallery-listing-main .gallery-masonry-root {
    margin-top: 36px;
}

/* Duplicate live values overlap the track — inputs below are enough */
body.gallery-page-locked #filter-sidebar .sliderValues {
    display: none !important;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .range-slide {
    width: 100%;
    max-width: 560px;
    margin: 8px auto 6px;
    height: 3px;
}

/* Price facet should stay slider-only; hide any checkbox UI if present */
body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .css-checkbox,
body.gallery-page-locked #filter-sidebar .gallery-facet-card-price input[type="checkbox"] {
    display: none !important;
}

body.gallery-page-locked #filter-sidebar .gallery-facet-card-price .range-slide.noUi-horizontal {
    height: 3px;
}

body.gallery-page-locked #filter-sidebar .noUi-target {
    border-radius: 0 !important;
    border: none;
    box-shadow: none;
    background: #e2e2e6;
}

body.gallery-page-locked #filter-sidebar .noUi-connect {
    background: #8e8e96;
    border-radius: 0 !important;
}

body.gallery-page-locked #filter-sidebar .noUi-horizontal .noUi-handle {
    width: 14px;
    height: 18px;
    border-radius: 0 !important;
    background: #fff;
    border: 1px solid var(--gf-border-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    top: -8px;
    right: -7px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.gallery-page-locked #filter-sidebar .noUi-horizontal .noUi-handle:hover {
    border-color: var(--gf-muted);
}

body.gallery-page-locked #filter-sidebar .rangVal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 1px;
    padding: 2px 2px 0;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

body.gallery-page-locked #filter-sidebar .rangVal label {
    color: var(--gf-muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

body.gallery-page-locked #filter-sidebar .rangVal .box {
    width: auto;
    min-width: 76px;
    max-width: 110px;
    height: 32px;
    border-radius: 0 !important;
    border: 1px solid #e3e6eb;
    background: #fff;
    color: var(--gf-text);
    font-size: 13px;
    padding: 5px 8px;
    transition: border-color 0.2s ease;
}

body.gallery-page-locked #filter-sidebar .rangVal .box:focus {
    outline: none;
    border-color: var(--gf-muted);
}

body.gallery-page-locked #filter-sidebar .reset-filter-btn-desk .enquiry-btn a,
body.gallery-page-locked #filter-sidebar a.reset {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 2px auto 0;
    padding: 7px 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gf-text) !important;
    background: var(--gf-bg) !important;
    border: 1px solid #e3e6eb !important;
    border-radius: 0 !important;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.gallery-page-locked #filter-sidebar .reset-filter-btn-desk .enquiry-btn {
    text-align: center;
}

body.gallery-page-locked #filter-sidebar .reset-filter-btn-desk .enquiry-btn a:hover,
body.gallery-page-locked #filter-sidebar a.reset:hover {
    border-color: #d2d8e0 !important;
    background: #fff !important;
    color: var(--gf-text) !important;
}

/* Page X of Y */
body.gallery-page-locked .gallery-pagination-status {
    margin: 4px 0 6px;
    padding: 0 0 6px;
    text-align: center;
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c5c64;
    border-bottom: 1px solid #dcdfe5;
    box-sizing: border-box;
}

/* Toolbar + pagination — same width as filters; controls to edges */
body.gallery-page-locked .gallery-listing-main .sorting-section {
    margin-bottom: 8px;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    box-sizing: border-box;
}

body.gallery-page-locked .gallery-listing-main .sorting-justified {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px 16px;
    box-sizing: border-box;
}

body.gallery-page-locked .gallery-listing-main .sorting-justified > li {
    flex: 0 0 auto;
}

body.gallery-page-locked .gallery-listing-main .sorting-justified > li:has(.gallery-pagination),
body.gallery-page-locked .gallery-listing-main .sorting-justified > li:has(ul.pagination.pgntn-wdth) {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.gallery-page-locked .gallery-listing-main .sorting-justified > li:has(ul.pagination.pgntn-wdth) > ul.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

body.gallery-page-locked .gallery-listing-main .desk-sort-by {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #5c5c64;
    text-align: left;
}

body.gallery-page-locked .gallery-listing-main .desk-sort-by select {
    border-radius: 0 !important;
    border: 1px solid #c8ccd4;
    background: #fff;
    padding: 5px 9px;
    font-size: 11px;
    color: #1c1c1f;
    transition: border-color 0.2s ease;
}

body.gallery-page-locked .gallery-listing-main .desk-sort-by select:focus {
    outline: none;
    border-color: #a8a8b0;
}

body.gallery-page-locked div.gallery-pagination {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 3px 6px;
    background: #fff;
    border: 1px solid #c8ccd4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.gallery-page-locked ul.pagination.gallery-pagination {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    background: #fff;
    border: 1px solid #c8ccd4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.gallery-page-locked div.gallery-pagination > ul.pagination {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: center;
}

body.gallery-page-locked .gallery-pagination ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.gallery-page-locked .gallery-pagination ul.pagination li {
    margin: 0;
}

body.gallery-page-locked .gallery-pagination ul.pagination li a.paginate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #141418;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 0 !important;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.gallery-page-locked .gallery-pagination ul.pagination li a.paginate:hover:not([disabled]) {
    background: #eef0f4;
    border-color: #c8ccd4;
}

body.gallery-page-locked .gallery-pagination ul.pagination li.current a.paginate {
    background: #141418;
    color: #fff;
    border-color: #141418;
    font-weight: 600;
}

body.gallery-page-locked .gallery-pagination ul.pagination li a.paginate[disabled] {
    opacity: 0.38;
    pointer-events: none;
}

body.gallery-page-locked .gallery-pagination .gallery-paginate-prev,
body.gallery-page-locked .gallery-pagination .gallery-paginate-next {
    gap: 6px;
    padding: 0 12px !important;
    min-width: auto !important;
    min-height: 30px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #141418 !important;
    font-weight: 600;
}

body.gallery-page-locked .gallery-pagination .gallery-paginate-prev:hover:not([disabled]),
body.gallery-page-locked .gallery-pagination .gallery-paginate-next:hover:not([disabled]) {
    background: #eef0f4 !important;
    border-color: #c8ccd4 !important;
}

body.gallery-page-locked .gallery-pagination .gallery-paginate-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.gallery-page-locked .gallery-pagination .gallery-paginate-arrow {
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
}

/* Four-up grid: extra air between works */
body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root {
    column-count: 4;
    column-gap: 28px;
}

body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root #pinBoot.gallery-art > .gallery-box-wrapper {
    margin: 0 0 32px;
}

@media (max-width: 1399px) {
    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root {
        column-count: 3;
        column-gap: 24px;
    }

    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root #pinBoot.gallery-art > .gallery-box-wrapper {
        margin: 0 0 28px;
    }
}

@media (max-width: 991px) {
    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root {
        column-count: 2;
        column-gap: 18px;
    }

    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root #pinBoot.gallery-art > .gallery-box-wrapper {
        margin: 0 0 24px;
    }
}

@media (max-width: 575px) {
    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root {
        column-count: 1;
        column-gap: 0;
    }

    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root #pinBoot.gallery-art > .gallery-box-wrapper {
        margin: 0 0 20px;
    }
}

/* ——— Locked cards: minimal editorial (price → title → category), left-aligned ——— */
body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-box {
    -webkit-font-smoothing: antialiased;
}


body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-card-top {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-card-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-action-icon {
    width: 22px;
    height: 22px;
    border: 1px solid #d7dbe2;
    color: #3e4047;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-action-icon:hover {
    border-color: #b8bec8;
    color: #1b1d22;
    background: #f9fafb;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-action-icon:focus {
    outline: none;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-action-icon:focus-visible {
    border-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(27, 29, 34, 0.12);
}

/* Hide the legacy bottom social row inside cards on the locked layout —
   the top icon row (like / enquire / view) is the canonical interaction surface,
   and the legacy row's Facebook/Twitter URLs were broken (raw image / 404). */
body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-share-social {
    display: none !important;
}

/* Sold state in the icon row: muted ban-icon to keep card balanced */
body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-action-sold {
    cursor: not-allowed;
    color: #b8bec8;
    border-color: #e6e9ef;
    background: #f6f7f9;
}

/* Liked state: header heart only (PHP adds .is-active on likeBtn) */
body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot a.likeBtn.collection-action-icon.is-active {
    border-color: #ca181f;
    color: #ca181f;
    background: #fff;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot a.likeBtn.collection-action-icon.is-active:hover {
    border-color: #a81419;
    color: #a81419;
    background: #fff5f5;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title {
    order: 2;
    width: 100%;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-desciption {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 10px 2px 0;
    gap: 4px;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title h5 {
    margin: 0;
    line-height: 1.35;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title h5 a {
    font-size: clamp(15px, 1.12vw, 17px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.38;
    color: #141418;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title h5 a:hover {
    color: #4a4a52;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .collection-card-price {
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: #1a1a1f;
    order: 1;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title ul {
    text-align: left !important;
    margin: 0;
}

body.gallery-page-locked.gallery-layout-collection.gallery-info-name-price #pinBoot .gallery-art-title ul li:nth-child(2) span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #86868f;
    line-height: 1.45;
}

/* Mobile “Filter” control: match light bar, no rounded corners */
body.gallery-page-locked .gallery-listing-main .mobile-filter a {
    border-radius: 0 !important;
    border: 1px solid #d8d8de !important;
    color: #2a2a2f !important;
    background: #fff !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.gallery-page-locked .gallery-listing-main .mobile-filter a:hover {
    background: #f7f7f8 !important;
    border-color: #c8c8d0 !important;
}

body.gallery-page-locked .gallery-listing-main .mobile-filter a i {
    font-size: 12px !important;
}

/* Image well + minimal hover */
body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-img > a > img.w-100 {
    background: #f7f7f8;
    transition: none;
}

body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-box:hover .gallery-img > a > img.w-100 {
    opacity: 1;
    transform: none !important;
}

body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-box:hover .gallery-img img {
    transform: none !important;
}

/* SOLD: compact, square, editorial */
body.gallery-page-locked.gallery-layout-collection #pinBoot .gallery-img .sold:has(.soldImg) {
    margin-top: 12px;
    padding: 4px 9px;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.1em;
    background: #b01028;
    border-radius: 0 !important;
}

/* ---------- Mobile / tablet listing layout (≤ 991px) ---------- */
@media (max-width: 991px) {
    /* Keep top pagination visible on mobile so users can paginate
       without scrolling to the bottom — full prev/next + page numbers row. */
    body.gallery-page-locked .gallery-listing-main .sorting-section:first-of-type
        .sorting-justified > li:has(.gallery-pagination),
    body.gallery-page-locked .gallery-listing-main .sorting-section:first-of-type
        .sorting-justified > li:has(ul.pagination.pgntn-wdth) {
        flex: 1 1 100%;
        order: 99; /* render below the [Filter] [Sort By] row */
        display: flex !important;
        justify-content: center;
        margin-top: 8px;
    }

    /* Status line above toolbar: subtle, centred, single line */
    body.gallery-page-locked .gallery-pagination-status {
        margin: 4px 0 12px;
        padding: 0;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #6b6e76;
        text-align: center;
        border: none;
    }

    /* Toolbar = clean 2-column row: Filter | Sort By */
    body.gallery-page-locked .gallery-listing-main .sorting-section {
        margin: 0 0 22px;
    }

    body.gallery-page-locked .gallery-listing-main .sorting-justified {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: stretch;
        margin: 0;
        padding: 0;
    }

    body.gallery-page-locked .gallery-listing-main .sorting-justified > li.mobile-filter,
    body.gallery-page-locked .gallery-listing-main .sorting-justified > li.sort-by:not(.hidden-mobile) {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        list-style: none;
    }

    body.gallery-page-locked .gallery-listing-main .sorting-justified > li.hidden-mobile {
        display: none !important;
    }

    body.gallery-page-locked .gallery-listing-main .mobile-filter a,
    body.gallery-page-locked .gallery-listing-main .desk-sort-by select {
        min-height: 44px;
    }

    body.gallery-page-locked .gallery-listing-main .mobile-filter a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 0 14px !important;
        font-size: 11px !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase;
    }

    body.gallery-page-locked .gallery-listing-main .desk-sort-by {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px;
        height: 100%;
        text-align: right;
        white-space: nowrap;
    }

    body.gallery-page-locked .gallery-listing-main .desk-sort-by label {
        margin: 0;
        min-width: 0;
    }

    body.gallery-page-locked .gallery-listing-main .desk-sort-by select {
        width: 100%;
        padding: 0 34px 0 12px;
        font-size: 12px;
        border: 1px solid #d8dce3;
        background: #fff;
        border-radius: 0;
        appearance: none;
        -webkit-appearance: none;
    }

    /* Spacing between toolbar and grid */
    body.gallery-page-locked .gallery-listing-main .gallery-masonry-root {
        margin-top: 22px;
    }

    /* Bottom pagination panel: centred, generous taps, no overflow */
    body.gallery-page-locked .gallery-listing-main .sorting-section:last-of-type {
        margin: 28px 0 8px;
    }

    body.gallery-page-locked .gallery-listing-main .sorting-section:last-of-type
        .sorting-justified {
        justify-content: center;
    }

    body.gallery-page-locked .gallery-listing-main .sorting-section:last-of-type
        .sorting-justified > li {
        flex: 1 1 100%;
    }

    body.gallery-page-locked div.gallery-pagination,
    body.gallery-page-locked ul.pagination.gallery-pagination {
        padding: 10px 8px;
        border-color: #d7dbe2;
        box-shadow: none;
    }

    body.gallery-page-locked .gallery-pagination ul.pagination {
        gap: 6px;
    }

    body.gallery-page-locked .gallery-pagination ul.pagination li a.paginate {
        min-width: 38px;
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    body.gallery-page-locked .gallery-pagination .gallery-paginate-prev,
    body.gallery-page-locked .gallery-pagination .gallery-paginate-next {
        min-height: 38px !important;
        padding: 0 12px !important;
    }

    /* Filter drawer header — already :grid'd at <575 below; tablet baseline here */
    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header .filter-title-mobile {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0;
        padding: 0 34px 0 0;
        background: transparent !important;
        border-bottom: none;
    }

    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header .filter-title-mobile p {
        float: none;
        margin: 0;
        color: #141418;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header .filter-title-mobile ul {
        float: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.gallery-page-locked #filter-sidebar .gallery-filter-drawer-header .filter-title-mobile a {
        border-radius: 0 !important;
        padding: 9px 14px !important;
        font-size: 11px !important;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 600;
    }
}

/* ---------- Phone-only refinements (≤ 575px) ---------- */
@media (max-width: 575px) {
    body.gallery-page-locked.gallery-layout-collection .hiring-art-section {
        padding: 16px 0 4px;
    }

    body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container.lg-container,
    body.gallery-page-locked.gallery-layout-collection .gallery-listing-section .container.lg-container.gallery-listing-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.gallery-page-locked.gallery-layout-collection .exibition-title h3 {
        margin: 0 0 10px;
        font-size: 22px;
        line-height: 1.2;
        letter-spacing: 0.02em;
    }

    body.gallery-page-locked.gallery-layout-collection .hiring-art-section .container p {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 0;
    }

    /* Single-column grid, edge-to-edge cards within container padding */
    body.gallery-page-locked.gallery-layout-collection .gallery-masonry-root #pinBoot.gallery-art > .gallery-box-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
