:root {
    --galsco-font-display: "Canela", "Cormorant Garamond", "Bodoni Moda", "Iowan Old Style", "Times New Roman", serif;
    --galsco-font-body: "Avenir Next", "Manrope", "Nunito Sans", "Segoe UI", sans-serif;
    --galsco-ui-color: #2b232a;
    --galsco-ui-color-soft: #695b65;
    --galsco-accent: #b77b8c;
    --galsco-accent-strong: #8f5a6a;
    --galsco-border: #e4d4dd;
    --galsco-border-strong: #d3bdc8;
    --galsco-bg-soft: #fbf4f8;
    --galsco-bg-strong: #f4e8ee;
    --galsco-surface: #ffffff;
    --galsco-shadow-soft: 0 14px 36px rgba(36, 27, 34, .10);
    --galsco-shadow-strong: 0 26px 56px rgba(36, 27, 34, .18);
    --galsco-touch-target: 44px;
    --galsco-grid-gap: 18px;
}

.galsco-gallery-wrap.galsco-theme-present,
.galsco-archive-wrap.galsco-theme-present,
.galsco-access-box.galsco-theme-present {
    --galsco-font-display: "Playfair Display", "Bodoni Moda", "Cormorant Garamond", "Times New Roman", serif;
    --galsco-font-body: "Avenir Next", "Manrope", "Segoe UI", sans-serif;
    --galsco-ui-color: #1f2a2d;
    --galsco-ui-color-soft: #4f6368;
    --galsco-accent: #7a9a92;
    --galsco-accent-strong: #5e7f78;
    --galsco-border: #d2dfde;
    --galsco-border-strong: #b8cecb;
    --galsco-bg-soft: #f4faf8;
    --galsco-bg-strong: #e8f2ef;
    --galsco-shadow-soft: 0 14px 36px rgba(27, 43, 45, .10);
    --galsco-shadow-strong: 0 24px 52px rgba(27, 43, 45, .18);
}

.galsco-gallery-wrap.galsco-theme-afleur,
.galsco-archive-wrap.galsco-theme-afleur,
.galsco-access-box.galsco-theme-afleur {
    --galsco-font-display: "Cormorant Garamond", "Bodoni Moda", "Iowan Old Style", "Times New Roman", serif;
    --galsco-font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    --galsco-ui-color: #f0e9e0;
    --galsco-ui-color-soft: #c8beb2;
    --galsco-accent: #c89f72;
    --galsco-accent-strong: #a57e56;
    --galsco-border: #4f463f;
    --galsco-border-strong: #655b53;
    --galsco-bg-soft: #171411;
    --galsco-bg-strong: #201c18;
    --galsco-shadow-soft: 0 14px 36px rgba(7, 6, 5, .56);
    --galsco-shadow-strong: 0 26px 54px rgba(7, 6, 5, .72);
}

@keyframes galsco-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.galsco-gallery-wrap,
.galsco-archive-wrap,
.galsco-access-box {
    font-family: var(--galsco-font-body);
    color: var(--galsco-ui-color);
}

.galsco-gallery-wrap,
.galsco-archive-header,
.galsco-access-box,
.galsco-item,
.galsco-archive-card,
.galsco-filter-bar,
.galsco-selection-bar {
    animation: galsco-fade-up .45s ease both;
}

.galsco-gallery-wrap {
    position: relative;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--galsco-border);
    border-radius: 24px;
    background:
        radial-gradient(1200px 450px at -10% -30%, rgba(183, 123, 140, .22) 0%, rgba(183, 123, 140, 0) 56%),
        radial-gradient(900px 380px at 110% -20%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(155deg, #ffffff 0%, #fdf8fb 52%, #f6edf2 100%);
    box-shadow: var(--galsco-shadow-soft);
    overflow: hidden;
}

.galsco-gallery-wrap.galsco-theme-afleur {
    background:
        radial-gradient(1100px 420px at -10% -28%, rgba(210, 165, 106, .18) 0%, rgba(210, 165, 106, 0) 58%),
        radial-gradient(900px 360px at 110% -20%, rgba(94, 77, 60, .25) 0%, rgba(94, 77, 60, 0) 52%),
        linear-gradient(155deg, #1e1914 0%, #17130f 48%, #120f0c 100%);
    border-color: #4f453b;
}

.galsco-gallery-wrap.galsco-theme-present {
    background:
        radial-gradient(980px 390px at -8% -20%, rgba(122, 154, 146, .22) 0%, rgba(122, 154, 146, 0) 55%),
        radial-gradient(840px 340px at 112% -14%, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(150deg, #f9fffd 0%, #f1faf7 50%, #e8f2ef 100%);
}

.galsco-gallery-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .58);
}

.galsco-archive-wrap {
    max-width: 1460px;
    margin: 30px auto 46px;
    padding: 0 16px;
}

.galsco-archive-header {
    position: relative;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 26px;
    border: 1px solid var(--galsco-border);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, .98) 0%, rgba(252, 246, 237, .96) 62%, rgba(245, 234, 217, .94) 100%);
    box-shadow: var(--galsco-shadow-soft);
    overflow: hidden;
}

.galsco-archive-header::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 123, 140, .24) 0%, rgba(183, 123, 140, 0) 68%);
    pointer-events: none;
}

.galsco-archive-header h1 {
    margin: 0;
    color: var(--galsco-ui-color);
    font-family: var(--galsco-font-display);
    font-weight: 600;
    line-height: 1.08;
    font-size: clamp(1.8rem, 3.3vw, 3rem);
    letter-spacing: .01em;
}

.galsco-archive-description,
.galsco-archive-header p {
    margin: 0;
    max-width: 68ch;
    font-size: 1rem;
    color: var(--galsco-ui-color-soft);
}

.galsco-archive-grid {
    display: grid;
    gap: clamp(8px, 1vw, 12px);
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.galsco-archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--galsco-border);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fcf8f2 100%);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .08);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.galsco-archive-card:hover {
    transform: translateY(-2px);
    border-color: var(--galsco-border-strong);
    box-shadow: 0 14px 26px rgba(17, 19, 21, .14);
}

.galsco-archive-thumb {
    display: block;
    aspect-ratio: 3 / 2;
    background: linear-gradient(140deg, #ede3d3 0%, #f7f2ea 100%);
    overflow: hidden;
}

.galsco-archive-wrap.galsco-arrangement-columns .galsco-archive-thumb {
    aspect-ratio: 4 / 5;
}

.galsco-archive-wrap.galsco-arrangement-squares .galsco-archive-thumb {
    aspect-ratio: 1 / 1;
}

.galsco-archive-wrap.galsco-arrangement-rows .galsco-archive-thumb {
    aspect-ratio: 16 / 9;
}

.galsco-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.galsco-archive-card:hover .galsco-archive-thumb img {
    transform: scale(1.04);
}

.galsco-archive-thumb-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 1.45rem;
    font-family: var(--galsco-font-display);
    font-weight: 600;
    color: #7a6750;
}

.galsco-archive-card-body {
    padding: 8px 9px 9px;
    display: grid;
    gap: 4px;
    align-content: start;
}

.galsco-archive-card-body > p:last-child {
    margin-top: auto;
}

.galsco-archive-card-body h2 {
    margin: 0;
    font-family: var(--galsco-font-display);
    font-size: clamp(.86rem, .9vw, .98rem);
    font-weight: 600;
    letter-spacing: .006em;
    line-height: 1.22;
}

.galsco-archive-card-body h2 a {
    color: var(--galsco-ui-color);
    text-decoration: none;
}

.galsco-archive-card-body h2 a:hover {
    color: var(--galsco-accent-strong);
}

.galsco-archive-badges {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.galsco-archive-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid var(--galsco-border);
    border-radius: 999px;
    background: #fff;
    padding: 1px 8px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5a4d3e;
}

.galsco-archive-meta,
.galsco-archive-excerpt,
.galsco-archive-empty {
    margin: 0;
    color: #6d665d;
}

.galsco-archive-meta {
    font-size: .84rem;
    line-height: 1.3;
}

.galsco-archive-open-wrap {
    margin: 0;
}

.galsco-archive-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--galsco-accent-strong);
}

.galsco-archive-open:hover {
    color: var(--galsco-ui-color);
    text-decoration: underline;
}

.galsco-gallery-header {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.galsco-gallery-header h2 {
    margin: 0 0 10px;
    color: var(--galsco-ui-color);
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    font-family: var(--galsco-font-display);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: .01em;
}

.galsco-gallery-meta {
    margin: 0 0 10px;
    font-size: .92rem;
    color: #5f574d;
}

.galsco-gallery-description {
    color: #433d35;
}

.galsco-gallery-inclusions {
    margin: 8px 0 2px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--galsco-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, .95) 0%, rgba(250, 243, 233, .9) 100%);
}

.galsco-gallery-inclusions strong {
    display: block;
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #3f382f;
}

.galsco-gallery-inclusions ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

.galsco-gallery-inclusions li {
    margin: 0;
    color: #433d35;
    font-size: .92rem;
}

.galsco-cover-header {
    display: grid;
    gap: 10px;
}

.galsco-gallery-wrap.galsco-cover-centered .galsco-gallery-header,
.galsco-archive-wrap.galsco-cover-centered .galsco-archive-header {
    text-align: center;
}

.galsco-gallery-wrap.galsco-cover-centered .galsco-gallery-header > *,
.galsco-archive-wrap.galsco-cover-centered .galsco-archive-header > * {
    margin-left: auto;
    margin-right: auto;
}

.galsco-gallery-wrap.galsco-cover-centered .galsco-gallery-intro,
.galsco-gallery-wrap.galsco-cover-centered .galsco-gallery-description,
.galsco-gallery-wrap.galsco-cover-centered .galsco-gallery-inclusions,
.galsco-archive-wrap.galsco-cover-centered .galsco-archive-description,
.galsco-archive-wrap.galsco-cover-centered .galsco-archive-header p {
    max-width: 72ch;
}

.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 10px;
    align-items: start;
}

.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header h2,
.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-meta {
    grid-column: 1;
}

.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-intro,
.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-description,
.galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-inclusions {
    grid-column: 2;
}

.galsco-archive-wrap.galsco-cover-split .galsco-archive-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px 20px;
    align-items: start;
}

.galsco-archive-wrap.galsco-cover-split .galsco-archive-header h1 {
    margin-bottom: 0;
}

.galsco-gallery-wrap.galsco-cover-minimal {
    background: #fff;
}

.galsco-gallery-wrap.galsco-cover-minimal::after {
    display: none;
}

.galsco-gallery-wrap.galsco-cover-minimal .galsco-gallery-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--galsco-border);
}

.galsco-archive-wrap.galsco-cover-minimal .galsco-archive-header {
    background: #fff;
    border-color: var(--galsco-border);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .05);
}

.galsco-gallery-intro {
    margin: 12px 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--galsco-border);
    background: linear-gradient(175deg, #fff 0%, #faf4ea 100%);
    color: #2f2923;
    box-shadow: 0 10px 24px rgba(17, 19, 21, .06);
}

.galsco-offers {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--galsco-border);
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(212, 177, 103, .16) 0%, rgba(212, 177, 103, 0) 56%),
        linear-gradient(145deg, rgba(255, 252, 245, .97) 0%, rgba(248, 240, 228, .96) 100%);
    box-shadow: 0 14px 28px rgba(17, 19, 21, .08);
}

.galsco-offers-copy {
    display: grid;
    gap: 6px;
}

.galsco-offers-kicker {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
    color: #7b6133;
}

.galsco-offers-copy h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
    color: #2f241c;
}

.galsco-offers-copy p {
    margin: 0;
    color: #615347;
}

.galsco-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.galsco-catalog-overview {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--galsco-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(247, 240, 231, .95) 100%);
    box-shadow: 0 12px 26px rgba(17, 19, 21, .06);
}

.galsco-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.galsco-catalog-card {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(147, 117, 58, .14);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .04);
}

.galsco-catalog-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: #2f241c;
}

.galsco-catalog-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.galsco-catalog-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(51, 41, 31, .08);
    color: #6c5530;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.galsco-catalog-price {
    margin: 0;
    color: #2f241c;
    font-weight: 700;
}

.galsco-catalog-note {
    margin: 0;
    color: #615347;
    font-size: .88rem;
}

.galsco-offer-card {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(147, 117, 58, .16);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.galsco-offer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 117, 58, .3);
    box-shadow: 0 12px 22px rgba(17, 19, 21, .08);
}

.galsco-offer-card.is-active {
    border-color: #8f6c36;
    box-shadow: 0 0 0 2px rgba(143, 108, 54, .14), 0 14px 24px rgba(17, 19, 21, .1);
}

.galsco-offer-badge {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: #33291f;
    color: #f5ebdd;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.galsco-offer-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: #2c2119;
}

.galsco-offer-summary,
.galsco-offer-note {
    margin: 0;
    color: #5b4c40;
    font-size: .85rem;
}

.galsco-offer-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #241912;
}

.galsco-offer-select {
    align-self: end;
    justify-self: start;
}

.galsco-proofing-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .95fr) minmax(220px, .8fr);
    gap: 14px;
    align-items: start;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--galsco-border);
    background:
        radial-gradient(440px 180px at 100% 0%, rgba(190, 135, 151, .12) 0%, rgba(190, 135, 151, 0) 58%),
        linear-gradient(145deg, rgba(255, 255, 255, .97) 0%, rgba(248, 239, 228, .96) 100%);
    box-shadow: 0 14px 28px rgba(17, 19, 21, .08);
}

.galsco-proofing-summary-kicker {
    margin: 0 0 6px;
    font-size: .72rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700;
    color: #755f52;
}

.galsco-proofing-summary-copy h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    line-height: 1.2;
    color: #2f241c;
}

.galsco-proofing-summary-state {
    margin: 0;
    color: #5f5248;
    font-size: .92rem;
}

.galsco-proofing-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.galsco-proofing-stat {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(132, 109, 92, .18);
}

.galsco-proofing-stat strong {
    font-size: 1.1rem;
    line-height: 1;
    color: #2b2018;
}

.galsco-proofing-stat span {
    font-size: .78rem;
    color: #6c5d50;
}

.galsco-proofing-summary-actions {
    display: grid;
    gap: 8px;
}

.galsco-proofing-summary-note {
    margin: 0;
    font-size: .82rem;
    color: #6d6055;
}

.galsco-selection-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 14px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--galsco-border);
    background: linear-gradient(140deg, rgba(255, 255, 255, .95) 0%, rgba(250, 243, 233, .94) 100%);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .06);
}

.galsco-selection-bar strong {
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .76rem;
    color: #5f574d;
}

.galsco-selection-count {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    background: #fff;
    border: 1px solid var(--galsco-border);
    font-weight: 700;
    color: #3c342b;
}

.galsco-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid var(--galsco-border);
    border-radius: 16px;
    background: linear-gradient(140deg, #ffffff 0%, #fbf4e9 100%);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .05);
}

.galsco-filter-label {
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .73rem;
    color: #5f574d;
}

.galsco-filter-input {
    min-width: 220px;
    flex: 1;
    border: 1px solid var(--galsco-border);
    border-radius: 12px;
    min-height: var(--galsco-touch-target);
    padding: 8px 11px;
    background: #fff;
    color: var(--galsco-ui-color);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.galsco-filter-input:focus-visible,
.galsco-proof-status:focus-visible,
.galsco-proof-comment:focus-visible,
.galsco-proof-history-toggle:focus-visible,
.galsco-variant-select:focus-visible,
.galsco-access-form input:focus-visible,
.galsco-access-form button:focus-visible,
.galsco-btn:focus-visible,
.galsco-favorite:focus-visible,
.galsco-page-link:focus-visible,
.galsco-lightbox-close:focus-visible {
    outline: none;
    border-color: var(--galsco-accent-strong);
    box-shadow: 0 0 0 3px rgba(183, 123, 140, .2);
}

.galsco-btn-secondary {
    background: #fff;
    color: #302a24;
    border-color: #d7c6af;
}

.galsco-filter-count {
    margin-left: auto;
    color: #695f54;
    font-size: .9rem;
}

.galsco-filter-empty {
    margin: 0 0 14px;
    color: #7a7267;
    font-style: italic;
}

.galsco-keyword-filters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    padding: 10px;
    border: 1px solid var(--galsco-border);
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .96) 0%, rgba(250, 243, 233, .94) 100%);
    box-shadow: 0 8px 18px rgba(17, 19, 21, .05);
}

.galsco-keyword-label {
    margin-right: 2px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .73rem;
    color: #5f574d;
}

.galsco-keyword-btn {
    appearance: none;
    border: 1px solid var(--galsco-border);
    border-radius: 999px;
    background: #fff;
    color: #3a3128;
    min-height: 34px;
    padding: 6px 12px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.galsco-keyword-btn:hover {
    border-color: #bca687;
    transform: translateY(-1px);
}

.galsco-keyword-btn:focus-visible {
    outline: none;
    border-color: var(--galsco-accent-strong);
    box-shadow: 0 0 0 3px rgba(183, 123, 140, .2);
}

.galsco-keyword-btn.is-active {
    border-color: #33291f;
    background: #33291f;
    color: #f4ebdf;
    box-shadow: 0 8px 14px rgba(17, 19, 21, .18);
}

.galsco-keyword-empty {
    margin: 0 0 14px;
    color: #7a7267;
    font-style: italic;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-filters {
    border-color: #5c4b3d;
    background: linear-gradient(150deg, rgba(34, 28, 22, .98) 0%, rgba(26, 21, 16, .96) 100%);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-label {
    color: #d2c5b7;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-btn {
    border-color: #68543f;
    background: rgba(39, 31, 24, .92);
    color: #f0e5d8;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-btn:hover {
    border-color: #957656;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-btn.is-active {
    border-color: #ccb08d;
    background: #ccb08d;
    color: #1e1610;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-keyword-empty {
    color: #ccbead;
}

.galsco-gallery-grid {
    display: grid;
    gap: var(--galsco-grid-gap, 18px);
    grid-template-columns: repeat(var(--galsco-gallery-columns, 4), minmax(0, 1fr));
}

.galsco-gallery-wrap.galsco-spacing-tight,
.galsco-archive-wrap.galsco-spacing-tight {
    --galsco-grid-gap: 8px;
}

.galsco-gallery-wrap.galsco-spacing-normal,
.galsco-archive-wrap.galsco-spacing-normal {
    --galsco-grid-gap: 14px;
}

.galsco-gallery-wrap.galsco-spacing-airy,
.galsco-archive-wrap.galsco-spacing-airy {
    --galsco-grid-gap: 24px;
}

.galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.galsco-gallery-wrap.galsco-arrangement-rows .galsco-gallery-grid {
    grid-template-columns: 1fr;
}

.galsco-gallery-wrap.galsco-arrangement-rows .galsco-item {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
    align-items: stretch;
}

.galsco-gallery-wrap.galsco-arrangement-rows .galsco-preview {
    height: 100%;
}

.galsco-gallery-wrap.galsco-arrangement-rows .galsco-preview img {
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.galsco-gallery-wrap.galsco-arrangement-rows .galsco-item-footer {
    align-content: center;
    padding: 16px;
}

.galsco-layout-masonry {
    grid-auto-rows: 12px;
}

.galsco-item {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fcf7ef 100%);
    border: 1px solid var(--galsco-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 19, 21, .07);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.galsco-theme-afleur .galsco-item,
.galsco-theme-afleur .galsco-archive-card {
    background: linear-gradient(180deg, #272019 0%, #1f1914 100%);
    border-color: #53473c;
    box-shadow: 0 12px 28px rgba(6, 5, 4, .52);
}

.galsco-theme-afleur .galsco-item-title,
.galsco-theme-afleur .galsco-archive-card-body h2 a,
.galsco-theme-afleur .galsco-item-price {
    color: #f3ece3;
}

.galsco-theme-afleur .galsco-item-ref,
.galsco-theme-afleur .galsco-item-keywords,
.galsco-theme-afleur .galsco-archive-meta,
.galsco-theme-afleur .galsco-archive-excerpt {
    color: #cfc4b7;
}

.galsco-theme-afleur .galsco-btn-cart {
    border-color: #735b44;
    background: linear-gradient(180deg, #31261b 0%, #271e15 100%);
    color: #f3ece4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 16px rgba(0, 0, 0, .35);
}

.galsco-theme-afleur .galsco-gallery-intro,
.galsco-theme-afleur .galsco-archive-header,
.galsco-access-box.galsco-theme-afleur {
    background: linear-gradient(160deg, rgba(45, 36, 28, .95) 0%, rgba(30, 24, 19, .96) 100%);
    border-color: #54473c;
    color: #e9dfd4;
}

.galsco-theme-afleur.galsco-cover-minimal .galsco-gallery-wrap,
.galsco-gallery-wrap.galsco-theme-afleur.galsco-cover-minimal {
    background: #181410;
}

.galsco-archive-wrap.galsco-theme-afleur.galsco-cover-minimal .galsco-archive-header,
.galsco-gallery-wrap.galsco-theme-afleur.galsco-cover-minimal .galsco-gallery-header {
    border-color: #4f4438;
    background: #201912;
}

.galsco-theme-afleur .galsco-access-form input,
.galsco-theme-afleur .galsco-proof-status,
.galsco-theme-afleur .galsco-proof-comment,
.galsco-theme-afleur .galsco-variant-select {
    background: #201912;
    color: #f1e8dc;
    border-color: #5b4b3e;
}

.galsco-theme-afleur .galsco-offers {
    border-color: #5b4b3e;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(204, 176, 141, .14) 0%, rgba(204, 176, 141, 0) 56%),
        linear-gradient(145deg, rgba(39, 31, 24, .98) 0%, rgba(27, 21, 16, .97) 100%);
}

.galsco-theme-afleur .galsco-offers-kicker {
    color: #ccb08d;
}

.galsco-theme-afleur .galsco-offers-copy h3,
.galsco-theme-afleur .galsco-offer-card h4,
.galsco-theme-afleur .galsco-offer-price {
    color: #f1e8dc;
}

.galsco-theme-afleur .galsco-offers-copy p,
.galsco-theme-afleur .galsco-offer-summary,
.galsco-theme-afleur .galsco-offer-note {
    color: #cfbfac;
}

.galsco-theme-afleur .galsco-offer-card {
    border-color: #5b4b3e;
    background: rgba(35, 28, 22, .92);
}

.galsco-theme-afleur .galsco-offer-card.is-active {
    border-color: #ccb08d;
    box-shadow: 0 0 0 2px rgba(204, 176, 141, .14), 0 14px 24px rgba(0, 0, 0, .24);
}

.galsco-theme-afleur .galsco-proofing-summary {
    border-color: #5b4b3e;
    background:
        radial-gradient(440px 180px at 100% 0%, rgba(204, 176, 141, .12) 0%, rgba(204, 176, 141, 0) 58%),
        linear-gradient(145deg, rgba(39, 31, 24, .98) 0%, rgba(27, 21, 16, .97) 100%);
}

.galsco-theme-afleur .galsco-proofing-summary-copy h3,
.galsco-theme-afleur .galsco-proofing-stat strong,
.galsco-theme-afleur .galsco-proof-history-item-head strong,
.galsco-theme-afleur .galsco-proof-history-comment,
.galsco-theme-afleur .galsco-proof-history-empty {
    color: #f1e8dc;
}

.galsco-theme-afleur .galsco-proofing-summary-kicker,
.galsco-theme-afleur .galsco-proofing-summary-state,
.galsco-theme-afleur .galsco-proofing-stat span,
.galsco-theme-afleur .galsco-proofing-summary-note,
.galsco-theme-afleur .galsco-proof-meta,
.galsco-theme-afleur .galsco-proof-history-item-head {
    color: #cfbfac;
}

.galsco-theme-afleur .galsco-proof-history {
    background: rgba(26, 20, 16, .78);
    border-color: #5b4b3e;
}

.galsco-theme-present .galsco-item,
.galsco-theme-present .galsco-archive-card {
    border-radius: 22px;
}

.galsco-item:hover {
    transform: translateY(-5px);
    border-color: var(--galsco-border-strong);
    box-shadow: var(--galsco-shadow-strong);
}

.galsco-item.is-selected {
    border-color: var(--galsco-accent);
    box-shadow: 0 0 0 2px rgba(183, 123, 140, .18), 0 16px 34px rgba(17, 19, 21, .14);
}

.galsco-item.galsco-proof-approved {
    border-color: #3f8555;
}

.galsco-item.galsco-proof-pending {
    border-color: #ba915c;
}

.galsco-item.galsco-proof-rejected {
    border-color: #9a3f42;
}

.galsco-item.galsco-proof-retouch {
    border-color: #7f5ab6;
}

.galsco-item.galsco-proof-favorite {
    border-color: #c3627b;
}

.galsco-item[hidden] {
    display: none !important;
}

.galsco-preview {
    all: unset;
    display: block;
    width: 100%;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    background: #e9dfd0;
}

.galsco-preview img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.galsco-gallery-wrap.galsco-arrangement-columns .galsco-preview {
    background: linear-gradient(180deg, #f5edde 0%, #e9ddc9 100%);
}

.galsco-gallery-wrap.galsco-arrangement-columns .galsco-preview img {
    height: auto;
    max-height: 540px;
    object-fit: contain;
}

.galsco-gallery-wrap.galsco-arrangement-squares .galsco-preview img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.galsco-item:hover .galsco-preview img {
    transform: scale(1.045);
}

.galsco-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    /* Pattern SVG diagonal répété — résistant aux IA (ne peut pas être supprimé comme un seul élément) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' transform='rotate(-30 90 30)' font-family='Arial,sans-serif' font-size='11' font-weight='700' letter-spacing='2' fill='rgba(255,255,255,0.35)' paint-order='stroke' stroke='rgba(0,0,0,0.18)' stroke-width='3'%3E%40WATERMARK%40%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 60px;
}

.galsco-item-footer {
    padding: 12px;
    display: grid;
    gap: 7px;
}

.galsco-item-product-label {
    color: #2f241c;
    font-size: .84rem;
    font-weight: 600;
}

.galsco-item-product-hint,
.galsco-item-included-note {
    color: #6b6053;
    font-size: .78rem;
    line-height: 1.4;
}

.galsco-proofing {
    display: grid;
    gap: 7px;
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px dashed #dbcbb5;
}

.galsco-proof-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.galsco-proof-label {
    font-size: .74rem;
    color: #72695d;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}

.galsco-proof-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.galsco-proof-status {
    border: 1px solid var(--galsco-border);
    border-radius: 10px;
    min-height: 38px;
    padding: 4px 8px;
    width: 100%;
    background: #fff;
    color: #2f2923;
}

.galsco-proof-comment {
    border: 1px solid var(--galsco-border);
    border-radius: 10px;
    min-height: 64px;
    padding: 7px 9px;
    resize: vertical;
    background: #fff;
    color: #2f2923;
}

.galsco-proof-save {
    white-space: nowrap;
}

.galsco-proof-meta {
    color: #7a7166;
    font-size: .75rem;
}

.galsco-proof-feedback {
    margin: 0;
    min-height: 1.1rem;
    color: #547a61;
    font-size: .77rem;
    font-weight: 600;
}

.galsco-proof-feedback.is-error {
    color: #973a40;
}

.galsco-proof-history-toggle {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--galsco-accent-strong);
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.galsco-proof-history {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(142, 117, 100, .2);
    background: rgba(255, 255, 255, .76);
}

.galsco-proof-history-list {
    display: grid;
    gap: 8px;
}

.galsco-proof-history-item {
    display: grid;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(142, 117, 100, .24);
}

.galsco-proof-history-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.galsco-proof-history-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    font-size: .76rem;
    color: #6a5d52;
}

.galsco-proof-history-item-head strong {
    color: #2c221b;
}

.galsco-proof-history-comment,
.galsco-proof-history-empty {
    margin: 0;
    font-size: .83rem;
    color: #42372d;
}

.galsco-item-title {
    font-weight: 700;
    color: #1f1a16;
    font-size: .98rem;
}

.galsco-item-ref,
.galsco-item-keywords {
    color: #70685d;
    font-size: .84rem;
}

.galsco-item-price {
    color: #1f1a16;
    font-weight: 700;
}

.galsco-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(20, 22, 24, .56);
    color: #f6f4f0;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: transform .18s ease, background .18s ease;
}

.galsco-favorite:hover {
    transform: scale(1.05);
    background: rgba(20, 22, 24, .72);
}

.galsco-favorite.is-active {
    color: #ffb1ad;
    border-color: rgba(255, 177, 173, .58);
    background: rgba(132, 38, 43, .66);
}

.galsco-btn {
    border: 1px solid var(--galsco-accent-strong);
    background: linear-gradient(135deg, #be8797 0%, #a66e7f 52%, #8f5a6a 100%);
    color: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    min-height: var(--galsco-touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.galsco-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(143, 90, 106, .34);
    filter: saturate(1.05);
}

.galsco-theme-present .galsco-btn {
    border-color: #5e7f78;
    background: linear-gradient(135deg, #86a79f 0%, #6d8f87 54%, #567871 100%);
}

.galsco-theme-present .galsco-btn:hover {
    box-shadow: 0 8px 18px rgba(86, 120, 113, .33);
}

.galsco-theme-afleur .galsco-btn {
    border-color: #8e6e4d;
    background: linear-gradient(135deg, #b49168 0%, #987653 54%, #7f6142 100%);
}

.galsco-theme-afleur .galsco-btn:hover {
    box-shadow: 0 8px 18px rgba(127, 97, 66, .38);
}

.galsco-btn-secondary:hover {
    box-shadow: 0 6px 14px rgba(17, 19, 21, .1);
}

.galsco-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.1);
}

.galsco-btn-cart {
    border: 1px solid #d7c3aa;
    background: linear-gradient(180deg, #ffffff 0%, #f7f0e5 100%);
    color: #3a3229;
    letter-spacing: .05em;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 14px rgba(17, 19, 21, .08);
}

.galsco-btn-cart:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 18px rgba(17, 19, 21, .12);
    filter: none;
}

.galsco-btn-cart[disabled] {
    box-shadow: none;
}

.galsco-variant-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 18px;
    background: radial-gradient(circle at top, rgba(87, 66, 40, .18) 0%, rgba(17, 16, 15, .72) 62%);
    overflow-x: hidden;
}

.galsco-variant-modal,
.galsco-variant-modal * {
    box-sizing: border-box;
}

.galsco-variant-modal[hidden] {
    display: none;
}

.galsco-variant-dialog {
    width: min(95vw, 460px);
    border-radius: 18px;
    border: 1px solid var(--galsco-border);
    padding: 18px;
    background: linear-gradient(170deg, #ffffff 0%, #f8f1e7 100%);
    box-shadow: var(--galsco-shadow-strong);
    position: relative;
    display: grid;
    gap: 10px;
}

.galsco-variant-dialog h3 {
    margin: 0;
    font-family: var(--galsco-font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.15;
}

.galsco-variant-subtitle {
    margin: 0;
    color: #5f574d;
    font-size: .9rem;
}

.galsco-variant-fields {
    display: grid;
    gap: 7px;
}

.galsco-variant-label {
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5f574d;
    font-weight: 700;
}

.galsco-variant-select {
    border: 1px solid var(--galsco-border);
    border-radius: 12px;
    min-height: var(--galsco-touch-target);
    padding: 8px 10px;
    background: #fff;
    color: #2f2923;
}

/* ════════════════════════════════════════════════════
   Modal produit — dialog compact
   ════════════════════════════════════════════════════ */
.galsco-product-dialog {
    width: min(96vw, 620px);
    max-height: min(90vh, 760px);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 100%;
}

.galsco-product-dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--galsco-border);
    flex-shrink: 0;
    min-width: 0;
}

/* Mini-preview photo dans le header */
.galsco-product-dialog-head img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--galsco-border);
}

.galsco-product-dialog-head h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--galsco-ui-color);
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Bouton fermer dans le header */
.galsco-product-dialog .galsco-variant-close {
    position: static;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--galsco-border);
    background: transparent;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--galsco-ui-color-soft);
    transition: background .12s;
    padding: 0;
    line-height: 1;
}
.galsco-product-dialog .galsco-variant-close:hover {
    background: var(--galsco-bg-strong);
}

.galsco-product-dialog-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 18px;
    overscroll-behavior: contain;
    min-width: 0;
}


.galsco-product-dialog-foot {
    display: flex;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--galsco-border);
    flex-shrink: 0;
}

/* ── Inner ── */
.galsco-product-modal-inner {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Section : bloc normal, pas de display:contents */
.galsco-product-section {
    display: block;
    width: 100%;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
}
.galsco-product-section:last-child { margin-bottom: 0; }

.galsco-product-section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
    margin-bottom: 8px;
}

.galsco-product-section-icon { font-size: .95rem; line-height: 1; flex-shrink: 0; }

.galsco-product-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--galsco-ui-color-soft);
}

/* ── Liste de produits ── */
.galsco-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* ── Bouton produit ── */
.galsco-product-card {
    display: grid;
    align-content: start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 14px 16px;
    border-radius: 16px;
    border: 2px solid var(--galsco-border);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .12s, background .15s;
    min-height: 132px;
}

.galsco-product-card:hover {
    border-color: var(--galsco-border-strong);
    box-shadow: 0 6px 20px rgba(17, 19, 21, .10);
    background: linear-gradient(180deg, #ffffff 0%, #fcf7f1 100%);
}

.galsco-product-card:active { transform: scale(.97); }

.galsco-product-card.is-selected {
    border-color: var(--galsco-accent-strong);
    background: linear-gradient(160deg, #fff8f5 0%, #f3e8ea 100%);
    box-shadow: 0 0 0 3px rgba(143, 90, 106, .14);
}

.galsco-product-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(123, 97, 51, .08);
    color: #7b6133;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.galsco-product-card-badge.is-digital {
    background: rgba(42, 96, 89, .08);
    color: #2a6059;
}

.galsco-product-card-badge.is-pack {
    background: rgba(98, 71, 143, .10);
    color: #62478f;
}

/* Titre : se réduit et se coupe si nécessaire */
.galsco-product-card-title {
    display: block !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2f241c;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    hyphens: auto;
}

.galsco-variant-dialog .galsco-product-card .galsco-product-card-title {
    display: block !important;
    width: 100% !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
}

/* Prix : taille fixe, ne se coupe pas */
.galsco-product-card-price {
    display: inline-block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--galsco-accent-strong);
    white-space: nowrap;
}

.galsco-product-card-notes {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    color: #5f574d;
    font-size: .82rem;
    line-height: 1.45;
    min-width: 0;
    max-width: 100%;
}

.galsco-product-card-notes li {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ── Boutons radio visuels (variants) ── */
.galsco-variant-radio-grid {
    display: grid;
    gap: 8px;
}

.galsco-variant-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.galsco-variant-radio-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2px solid var(--galsco-border);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: var(--galsco-touch-target);
}

.galsco-variant-radio-label:hover {
    border-color: var(--galsco-border-strong);
    background: #faf6f1;
}

.galsco-variant-radio-input:checked + .galsco-variant-radio-label {
    border-color: #8a5867;
    background: linear-gradient(160deg, #fff8f5 0%, #f3e8ea 100%);
}

.galsco-variant-radio-name {
    font-size: .95rem;
    font-weight: 600;
    color: #2f241c;
}

.galsco-variant-radio-price {
    font-size: .9rem;
    font-weight: 700;
    color: #8a5867;
    white-space: nowrap;
}

.galsco-pack-dialog {
    width: min(96vw, 980px);
    max-height: min(92vh, 860px);
    overflow: hidden;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

.galsco-pack-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.galsco-pack-step {
    border: 1px solid var(--galsco-border);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .84);
    color: #2f241c;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    text-align: left;
}

.galsco-pack-step.is-active {
    border-color: #8f5a6a;
    box-shadow: 0 0 0 2px rgba(143, 90, 106, .14);
}

.galsco-pack-step.is-complete {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 240, 228, .94) 100%);
}

.galsco-pack-step-index {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f1e4d3;
    color: #5f4a2f;
    font-weight: 700;
    font-size: .84rem;
}

.galsco-pack-step-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.galsco-pack-step-copy strong {
    font-size: .9rem;
    line-height: 1.25;
}

.galsco-pack-step-meta {
    color: #5f574d;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galsco-pack-step-label {
    margin: 0;
    font-weight: 700;
    color: #3d342b;
}

.galsco-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
    max-height: 48vh;
    overflow: auto;
    padding-right: 4px;
}

.galsco-pack-photo {
    position: relative;
    border: 1px solid var(--galsco-border);
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(245, 235, 222, .96) 100%);
    display: grid;
    gap: 7px;
    text-align: left;
    cursor: pointer;
    color: #2f241c;
    box-shadow: 0 10px 20px rgba(47, 36, 28, .08);
}

.galsco-pack-photo:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(47, 36, 28, .14);
}

.galsco-pack-photo.is-used {
    border-color: #ceb391;
}

.galsco-pack-photo.is-selected {
    border-color: #8f5a6a;
    box-shadow: 0 0 0 2px rgba(143, 90, 106, .16), 0 18px 30px rgba(47, 36, 28, .12);
}

.galsco-pack-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #f2e7d8;
}

.galsco-pack-photo-ref {
    font-size: .8rem;
    font-weight: 700;
    color: #4f3b22;
}

.galsco-pack-photo-title {
    font-size: .73rem;
    color: #5f574d;
    line-height: 1.3;
}

.galsco-pack-photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(47, 36, 28, .82);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.galsco-variant-feedback {
    margin: 0;
    min-height: 1.1em;
    font-size: .86rem;
    color: #5f574d;
}

.galsco-variant-feedback.is-error {
    color: #7f2f34;
}

.galsco-variant-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.galsco-variant-confirm {
    min-width: 170px;
}

.galsco-variant-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #dbcab3;
    background: #fff;
    color: #3e352b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.galsco-pagination {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.galsco-page-link {
    border: 1px solid var(--galsco-border);
    border-radius: 999px;
    padding: 5px 12px;
    color: #4f463c;
    text-decoration: none;
    background: #fff;
    font-weight: 600;
}

.galsco-page-link:hover {
    border-color: var(--galsco-border-strong);
    color: #2f2923;
}

.galsco-page-link.is-active {
    background: linear-gradient(135deg, #be8797 0%, #8f5a6a 100%);
    border-color: #8a5867;
    color: #fff;
}

.galsco-theme-present .galsco-page-link.is-active {
    background: linear-gradient(135deg, #86a79f 0%, #567871 100%);
    border-color: #4f736b;
}

.galsco-theme-afleur .galsco-page-link.is-active {
    background: linear-gradient(135deg, #b49168 0%, #7f6142 100%);
    border-color: #705639;
}

.galsco-lightbox {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(59, 44, 27, .25) 0%, rgba(0, 0, 0, .95) 56%);
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.galsco-lightbox[hidden] {
    display: none;
}

.galsco-lightbox-image {
    max-width: min(94vw, 1400px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 56px rgba(0, 0, 0, .42);
}

.galsco-lightbox-watermark {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='60'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' transform='rotate(-30 90 30)' font-family='Arial,sans-serif' font-size='11' font-weight='700' letter-spacing='2' fill='rgba(255,255,255,0.28)' paint-order='stroke' stroke='rgba(0,0,0,0.15)' stroke-width='3'%3E%40WATERMARK%40%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 60px;
}



/* ---- Message clic droit ---- */
.galsco-copyright-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(16px);
    background: rgba(20, 16, 12, .92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 11px 20px;
    font-size: .84rem;
    max-width: min(92vw, 480px);
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 200000;
}

.galsco-copyright-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.galsco-copyright-toast.is-warning {
    background: rgba(180, 50, 20, .95);
    border-color: rgba(255, 160, 100, .4);
    font-weight: 600;
    font-size: .9rem;
    padding: 14px 24px;
}

.galsco-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(0, 0, 0, .36);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
}

.galsco-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(0, 0, 0, .36);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 100001;
    font-size: 1.6rem;
    line-height: 1;
}

.galsco-lightbox-prev {
    left: 16px;
}

.galsco-lightbox-next {
    right: 16px;
}

.galsco-lightbox-tools {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.galsco-lightbox-action {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.galsco-lightbox-action svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.galsco-lightbox-action[hidden] {
    display: none !important;
}

/* Bouton panier lightbox — pilule icône + texte */
.galsco-lightbox-add-btn {
    width: auto;
    min-width: 0;
    padding: 0 18px 0 14px;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.galsco-lightbox-add-label {
    white-space: nowrap;
}

.galsco-lightbox-action:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.galsco-access-box {
    border: 1px solid var(--galsco-border);
    background:
        radial-gradient(circle at 120% -30%, rgba(183, 123, 140, .22) 0%, rgba(183, 123, 140, 0) 52%),
        linear-gradient(160deg, #fff 0%, #f8f1f5 100%);
    border-radius: 18px;
    padding: 20px;
    max-width: 510px;
    box-shadow: var(--galsco-shadow-soft);
}

.galsco-access-box h2,
.galsco-access-box h3 {
    font-family: var(--galsco-font-display);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    line-height: 1.15;
    margin: 0 0 8px;
}

.galsco-access-form {
    display: grid;
    gap: 8px;
}

.galsco-access-form input,
.galsco-access-form button {
    min-height: var(--galsco-touch-target);
    border-radius: 11px;
    border: 1px solid var(--galsco-border);
    padding: 8px 9px;
}

.galsco-access-form input {
    background: #fff;
    color: #2f2923;
}

.galsco-access-form button {
    border-color: var(--galsco-accent-strong);
    background: linear-gradient(135deg, #be8797 0%, #8f5a6a 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .78rem;
}

.galsco-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(145deg, #1f1c19 0%, #11100f 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: .88rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all .2s ease;
    z-index: 100000;
}

.galsco-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Modal choix après ajout au panier ---- */
.galsco-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100001;
    padding: 0 0 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.galsco-cart-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.galsco-cart-modal {
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px 20px;
    width: min(92vw, 360px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    transform: translateY(20px);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.galsco-cart-overlay.is-visible .galsco-cart-modal {
    transform: translateY(0);
}

.galsco-cart-modal-msg {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #1d2327;
    text-align: center;
}

.galsco-cart-modal-msg::before {
    content: '✓ ';
    color: #2e7d32;
}

.galsco-cart-modal-actions {
    display: flex;
    gap: 10px;
}

.galsco-cart-modal-stay,
.galsco-cart-modal-go {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .15s;
    line-height: 1.2;
}

.galsco-cart-modal-stay {
    background: #f0f0f0;
    color: #1d2327;
}

.galsco-cart-modal-stay:hover {
    background: #e2e2e2;
}

.galsco-cart-modal-go {
    background: var(--galsco-ui-color, #1a1a1a);
    color: #fff;
}

.galsco-cart-modal-go:hover {
    opacity: .88;
}

.galsco-family-entry,
.galsco-family-section {
    margin: 0 0 32px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.galsco-family-entry {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
}

.galsco-family-entry h2,
.galsco-family-section-head h2 {
    margin: 0 0 8px;
}

.galsco-family-entry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.galsco-family-entry-row {
    display: flex;
    gap: 12px;
}

.galsco-family-entry-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.galsco-family-entry-row button {
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--galsco-ui-color);
    color: #fff;
    cursor: pointer;
}

.galsco-family-entry-error {
    margin: 10px 0 0;
    color: #9f1239;
    font-weight: 600;
}

.galsco-family-wrap .galsco-hero {
    margin-bottom: 28px;
}

.galsco-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.galsco-family-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.galsco-family-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.galsco-family-card-body {
    padding: 18px;
}

.galsco-family-card-body h3 {
    margin: 0 0 8px;
}

.galsco-family-card-body p {
    margin: 0 0 10px;
}

.galsco-family-card-actions {
    margin-top: 14px;
}

.galsco-family-photo-card .galsco-family-photo-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (max-width: 860px) {
    .galsco-family-entry {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .galsco-family-entry,
    .galsco-family-section {
        padding: 18px;
        border-radius: 20px;
    }

    .galsco-family-entry-row {
        flex-direction: column;
    }
}

.galsco-archive-card:nth-child(2),
.galsco-item:nth-child(2) {
    animation-delay: .03s;
}

.galsco-archive-card:nth-child(3),
.galsco-item:nth-child(3) {
    animation-delay: .06s;
}

.galsco-archive-card:nth-child(4),
.galsco-item:nth-child(4) {
    animation-delay: .09s;
}

@media (max-width: 1024px) {
    .galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header,
    .galsco-archive-wrap.galsco-cover-split .galsco-archive-header {
        grid-template-columns: 1fr;
    }

    .galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-intro,
    .galsco-gallery-wrap.galsco-cover-split .galsco-gallery-header .galsco-gallery-description {
        grid-column: 1;
    }

    .galsco-gallery-wrap {
        padding: 18px;
        border-radius: 20px;
    }

    .galsco-archive-header {
        padding: 24px 24px;
    }

    .galsco-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .galsco-gallery-grid {
        gap: var(--galsco-grid-gap, 13px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .galsco-preview img {
        height: 182px;
    }

    .galsco-proofing-summary {
        grid-template-columns: 1fr;
    }

    .galsco-offers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .galsco-archive-wrap {
        margin: 14px auto 26px;
        padding: 0 12px;
    }

    .galsco-archive-header {
        margin-bottom: 14px;
        border-radius: 18px;
        padding: 18px 14px;
    }

    .galsco-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--galsco-grid-gap, 8px);
    }

    .galsco-gallery-wrap {
        border-radius: 16px;
        padding: 14px;
    }

    .galsco-gallery-grid {
        gap: var(--galsco-grid-gap, 10px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .galsco-proofing-summary {
        padding: 14px;
    }

    .galsco-proofing-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .galsco-proof-head,
    .galsco-proof-history-item-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-item {
        grid-template-columns: 1fr;
    }

    .galsco-preview {
        background: linear-gradient(180deg, #f4ecdf 0%, #e9ddcb 100%);
    }

    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-preview img,
    .galsco-preview img {
        height: auto;
        max-height: 56vh;
        object-fit: contain;
    }

    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-preview img {
        height: auto;
        max-height: 62vh;
        object-fit: cover;
    }

    .galsco-gallery-wrap.galsco-arrangement-squares .galsco-preview img {
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .galsco-gallery-wrap.galsco-spacing-airy,
    .galsco-archive-wrap.galsco-spacing-airy {
        --galsco-grid-gap: 14px;
    }

    .galsco-selection-bar {
        gap: 6px;
    }

    .galsco-selection-bar strong {
        width: 100%;
    }

    .galsco-selection-bar .galsco-btn {
        flex: 1 1 calc(50% - 6px);
    }

    .galsco-filter-bar {
        gap: 6px;
    }

    .galsco-filter-label {
        width: 100%;
    }

    .galsco-filter-input {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }

    .galsco-filter-bar .galsco-btn {
        flex: 1 1 auto;
    }

    .galsco-keyword-filters {
        gap: 6px;
    }

    .galsco-keyword-label {
        width: 100%;
    }

    .galsco-keyword-btn {
        flex: 1 1 auto;
    }

    .galsco-btn {
        padding: 8px;
        font-size: .75rem;
    }

    .galsco-filter-count {
        margin-left: 0;
        width: 100%;
    }

    .galsco-proof-row {
        flex-direction: column;
        align-items: stretch;
    }

    .galsco-proof-save {
        width: 100%;
    }

    .galsco-lightbox {
        padding: 10px;
    }

    .galsco-lightbox-close {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        width: var(--galsco-touch-target);
        height: var(--galsco-touch-target);
        display: grid;
        place-items: center;
    }

    .galsco-lightbox-nav {
        width: var(--galsco-touch-target);
        height: var(--galsco-touch-target);
    }

    .galsco-lightbox-prev {
        left: max(6px, env(safe-area-inset-left));
    }

    .galsco-lightbox-next {
        right: max(6px, env(safe-area-inset-right));
    }

    .galsco-lightbox-tools {
        left: max(8px, env(safe-area-inset-left));
        top: max(8px, env(safe-area-inset-top));
    }

    .galsco-lightbox-action {
        width: var(--galsco-touch-target);
        min-width: var(--galsco-touch-target);
        min-height: var(--galsco-touch-target);
    }

    .galsco-lightbox-watermark {
        left: max(10px, env(safe-area-inset-left));
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .galsco-variant-dialog {
        padding: 14px;
        border-radius: 14px;
    }

    .galsco-pack-dialog {
        max-height: 94vh;
    }

    .galsco-pack-steps {
        grid-template-columns: 1fr;
    }

    .galsco-pack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 42vh;
    }

    .galsco-variant-actions {
        flex-direction: column;
    }

    .galsco-variant-actions .galsco-btn,
    .galsco-variant-confirm {
        width: 100%;
        min-width: 0;
    }

    /* product-dialog : padding réduit sur tablette */
    .galsco-product-dialog-head,
    .galsco-product-dialog-body,
    .galsco-product-dialog-foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 420px) {
    .galsco-archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .galsco-gallery-wrap {
        margin: 12px 0;
        border-radius: 12px;
        padding: 10px;
    }

    .galsco-gallery-header h2 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .galsco-gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--galsco-grid-gap, 10px);
    }

    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid {
        grid-template-columns: 1fr;
    }

    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-item {
        grid-template-columns: 1fr;
    }

    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-preview img,
    .galsco-preview img {
        height: auto;
        max-height: 74vh;
        object-fit: contain;
    }

    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-preview img {
        height: auto;
        max-height: 70vh;
        object-fit: cover;
    }

    .galsco-gallery-wrap.galsco-arrangement-squares .galsco-preview img {
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .galsco-gallery-wrap.galsco-spacing-airy,
    .galsco-archive-wrap.galsco-spacing-airy {
        --galsco-grid-gap: 10px;
    }

    .galsco-item-footer {
        gap: 8px;
    }

    .galsco-proofing-summary-stats {
        grid-template-columns: 1fr;
    }

    .galsco-proof-comment {
        min-height: 78px;
    }

    .galsco-selection-bar .galsco-btn {
        flex: 1 1 100%;
    }

    .galsco-pagination {
        gap: 8px;
    }

    .galsco-page-link {
        min-height: var(--galsco-touch-target);
        display: inline-flex;
        align-items: center;
    }

    .galsco-variant-modal {
        padding: 0;
        align-items: flex-end;
    }

    .galsco-variant-dialog:not(.galsco-product-dialog) {
        width: 100%;
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 28px 16px max(20px, env(safe-area-inset-bottom)) 16px;
        max-height: 90vh;
        overflow-y: auto;
        animation: galsco-sheet-up .22s cubic-bezier(.22,.61,.36,1);
    }

    .galsco-variant-dialog:not(.galsco-product-dialog)::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: #ccc;
        margin: 0 auto 14px;
    }

    .galsco-variant-close {
        width: var(--galsco-touch-target);
        height: var(--galsco-touch-target);
    }

    .galsco-pack-dialog {
        border-radius: 22px 22px 0 0;
        max-height: 90vh;
        grid-template-rows: auto auto auto minmax(0,1fr) auto auto;
    }

    .galsco-pack-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* product-dialog mobile : bottom sheet */
    .galsco-product-dialog {
        width: 100%;
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        max-height: 80vh;
        animation: galsco-sheet-up .22s cubic-bezier(.22,.61,.36,1);
    }

    .galsco-product-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .galsco-product-card {
        min-height: 0;
    }

    .galsco-product-dialog-foot {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

@keyframes galsco-sheet-up {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Editorial presets closer to requested Lumys references. */
.galsco-gallery-wrap.galsco-theme-feminite,
.galsco-gallery-wrap.galsco-theme-present {
    --galsco-shell-pad: clamp(14px, 2.8vw, 34px);
    border-radius: 34px;
    padding: var(--galsco-shell-pad);
}

.galsco-gallery-wrap.galsco-theme-feminite {
    background:
        radial-gradient(1020px 420px at -4% -28%, rgba(217, 185, 156, .24) 0%, rgba(217, 185, 156, 0) 58%),
        radial-gradient(900px 380px at 112% -18%, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(165deg, #fefaf5 0%, #f6ede2 60%, #eee2d4 100%);
    border-color: #e8dac8;
    box-shadow: 0 18px 46px rgba(33, 22, 13, .12);
}

.galsco-gallery-wrap.galsco-theme-present {
    background:
        radial-gradient(1020px 420px at -4% -28%, rgba(120, 154, 142, .24) 0%, rgba(120, 154, 142, 0) 58%),
        radial-gradient(900px 380px at 112% -18%, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(165deg, #f7fffc 0%, #edf7f2 58%, #e2efea 100%);
    border-color: #cbddd7;
    box-shadow: 0 18px 46px rgba(22, 45, 42, .12);
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover {
    position: relative;
    margin: calc(-1 * var(--galsco-shell-pad)) calc(-1 * var(--galsco-shell-pad)) 26px;
    min-height: clamp(100px, 14vw, 180px);
    padding: clamp(18px, 3vw, 36px) clamp(20px, 4vw, 56px);
    display: grid;
    align-content: center;
    gap: 8px;
    border-radius: 26px 26px 18px 18px;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover {
    background:
        radial-gradient(900px 420px at 12% -26%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 46%),
        var(--galsco-cover-image, linear-gradient(135deg, #b89880 0%, #7a5c48 100%));
    background-size: cover;
    background-position: center;
}

.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover {
    background:
        radial-gradient(900px 420px at 12% -26%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 46%),
        var(--galsco-cover-image, linear-gradient(135deg, #7aa49c 0%, #3e6059 100%));
    background-size: cover;
    background-position: center;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover::after,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .28);
    pointer-events: none;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover > *,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover > * {
    position: relative;
    z-index: 1;
    max-width: min(84ch, 96%);
}

.galsco-gallery-kicker {
    margin: 0;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-size: .66rem;
    font-weight: 700;
    opacity: .92;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header h2,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: .015em;
    overflow-wrap: break-word;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-meta,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-meta {
    margin: 0;
    color: rgba(255, 255, 255, .92);
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-meta strong,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-meta strong {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-intro,
.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-description,
.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-inclusions,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-intro,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-description,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-inclusions {
    margin: 0;
    max-width: min(74ch, 100%);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .94);
    background: rgba(15, 15, 15, .16);
    backdrop-filter: blur(4px);
    box-shadow: none;
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-inclusions strong,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-inclusions strong,
.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover .galsco-gallery-inclusions li,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover .galsco-gallery-inclusions li {
    color: rgba(255, 255, 255, .94);
}

.galsco-gallery-wrap.galsco-theme-feminite:not(.galsco-has-cover) .galsco-gallery-header,
.galsco-gallery-wrap.galsco-theme-present:not(.galsco-has-cover) .galsco-gallery-header {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--galsco-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
}

.galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-grid,
.galsco-gallery-wrap.galsco-theme-present .galsco-gallery-grid {
    gap: clamp(10px, 1.5vw, 18px);
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item {
    border: 0;
    border-radius: 7px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item:hover,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item:hover,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item:hover,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-preview,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-preview,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-preview,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-preview {
    background: transparent;
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-preview img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-preview img {
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: cover;
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px 12px 14px;
    gap: 4px;
    color: #fff;
    transform: translateY(calc(100% - 2.2rem));
    transition: transform .26s ease;
    background: linear-gradient(180deg, rgba(11, 13, 14, 0) 0%, rgba(11, 13, 14, .46) 52%, rgba(11, 13, 14, .86) 100%);
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item:focus-within .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item:focus-within .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item:focus-within .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item:focus-within .galsco-item-footer {
    transform: translateY(0);
}

.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-title,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-title,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-ref,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-ref,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-keywords,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-keywords,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-price,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-price,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-title,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-title,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-ref,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-ref,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-keywords,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-keywords,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-price,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-price {
    color: rgba(255, 255, 255, .94);
}

.galsco-btn-cart {
    border: 1px solid rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .18);
    color: #f6f4f2;
    letter-spacing: .09em;
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
    min-height: 34px;
    padding: 5px 10px;
    box-shadow: none;
    backdrop-filter: blur(3px);
}

.galsco-btn-cart:hover {
    transform: none;
    border-color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .32);
    box-shadow: none;
    filter: none;
}

.galsco-gallery-wrap.galsco-theme-feminite:not(.galsco-arrangement-columns):not(.galsco-arrangement-squares) .galsco-btn-cart,
.galsco-gallery-wrap.galsco-theme-present:not(.galsco-arrangement-columns):not(.galsco-arrangement-squares) .galsco-btn-cart {
    border-color: var(--galsco-border-strong);
    background: rgba(255, 255, 255, .72);
    color: #2f2923;
}

.galsco-theme-afleur .galsco-btn-cart {
    border-color: #6f5a47;
    background: rgba(25, 20, 16, .58);
    color: #ece3d8;
}

.galsco-theme-afleur .galsco-btn-cart:hover {
    background: rgba(25, 20, 16, .76);
    border-color: #8f7358;
}

.galsco-theme-feminite .galsco-archive-card,
.galsco-theme-present .galsco-archive-card {
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
}

@media (hover: none) {
    .galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-item-footer,
    .galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-squares .galsco-item-footer,
    .galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-item-footer,
    .galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-squares .galsco-item-footer {
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(11, 13, 14, .12) 0%, rgba(11, 13, 14, .66) 56%, rgba(11, 13, 14, .9) 100%);
    }
}

@media (max-width: 900px) {
    .galsco-gallery-wrap.galsco-theme-feminite,
    .galsco-gallery-wrap.galsco-theme-present {
        border-radius: 22px;
    }

    .galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover,
    .galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover {
        margin-bottom: 18px;
        border-radius: 22px 22px 16px 16px;
        min-height: clamp(220px, 72vw, 430px);
    }

    .galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header h2,
    .galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header h2 {
        font-size: clamp(1.7rem, 7vw, 3rem);
    }
}

@media (max-width: 768px) {
    .galsco-btn-cart {
        width: 100%;
        min-height: 36px;
        font-size: .65rem;
        letter-spacing: .08em;
    }

    .galsco-gallery-wrap.galsco-theme-feminite .galsco-gallery-header-with-cover,
    .galsco-gallery-wrap.galsco-theme-present .galsco-gallery-header-with-cover {
        margin-left: calc(-1 * var(--galsco-shell-pad));
        margin-right: calc(-1 * var(--galsco-shell-pad));
        padding: 16px;
    }
}

/* A fleur de peau: vignette mosaic closer to requested reference. */
.galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 16px);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item {
    display: block;
    grid-column: span 4;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-preview {
    background: #14110f;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(.92) contrast(1.03);
    transition: transform .8s ease, filter .35s ease;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:hover .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:focus-within .galsco-preview img {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.06);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 1) {
    grid-column: span 5;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 1) .galsco-preview img {
    aspect-ratio: 4 / 5;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 2) {
    grid-column: span 3;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 2) .galsco-preview img {
    aspect-ratio: 3 / 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 3) {
    grid-column: span 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 3) .galsco-preview img {
    aspect-ratio: 1 / 1;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 4) {
    grid-column: span 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 4) .galsco-preview img {
    aspect-ratio: 5 / 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 5) {
    grid-column: span 5;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 5) .galsco-preview img {
    aspect-ratio: 16 / 10;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 6) {
    grid-column: span 3;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 6) .galsco-preview img {
    aspect-ratio: 4 / 5;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 7) {
    grid-column: span 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 7) .galsco-preview img {
    aspect-ratio: 3 / 4;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px;
    gap: 4px;
    background: linear-gradient(180deg, rgba(9, 8, 7, 0) 0%, rgba(9, 8, 7, .62) 60%, rgba(9, 8, 7, .92) 100%);
    transform: translateY(calc(100% - 2.25rem));
    transition: transform .28s ease;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:focus-within .galsco-item-footer {
    transform: translateY(0);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item-title {
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(244, 235, 226, .95);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item-ref {
    color: rgba(216, 201, 186, .9);
    font-size: .75rem;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item-keywords {
    display: none;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-item-price {
    color: rgba(238, 229, 218, .95);
    font-size: .8rem;
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-btn-cart {
    width: auto;
    min-height: 30px;
    padding: 4px 10px;
    letter-spacing: .08em;
    font-size: .6rem;
    border: 1px solid rgba(255, 255, 255, .52);
    background: rgba(18, 15, 13, .42);
    color: #f0e7dd;
    backdrop-filter: blur(3px);
}

.galsco-gallery-wrap.galsco-theme-afleur .galsco-btn-cart:hover {
    border-color: rgba(255, 255, 255, .78);
    background: rgba(18, 15, 13, .68);
}

@media (hover: none) {
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item-footer {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item {
        grid-column: span 4;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 1),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 2),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 3),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 4),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 5),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 6),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 7) {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item,
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 1),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 2),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 3),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 4),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 5),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 6),
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 7) {
        grid-column: span 1;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(odd) .galsco-preview img {
        aspect-ratio: 4 / 5;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(even) .galsco-preview img {
        aspect-ratio: 3 / 4;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-item-footer {
        padding: 10px;
    }

    .galsco-gallery-wrap.galsco-theme-afleur .galsco-btn-cart {
        width: auto;
        min-height: 32px;
    }
}

/* Layout override: single premium contact sheet (no crop, no gaps). */
.galsco-gallery-wrap {
    --galsco-grid-gap: 0;
}

.galsco-gallery-wrap .galsco-gallery-grid,
.galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid,
.galsco-gallery-wrap.galsco-arrangement-squares .galsco-gallery-grid,
.galsco-gallery-wrap.galsco-arrangement-rows .galsco-gallery-grid,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
    display: block !important;
    column-count: 4;
    column-gap: 0 !important;
    line-height: 0;
    font-size: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.galsco-gallery-wrap .galsco-item,
.galsco-gallery-wrap.galsco-arrangement-rows .galsco-item,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 1),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 2),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 3),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 4),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 5),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 6),
.galsco-gallery-wrap.galsco-theme-afleur .galsco-item:nth-child(7n + 7) {
    break-inside: avoid;
    page-break-inside: avoid;
    display: block !important;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
    position: relative;
    vertical-align: top;
}

.galsco-gallery-wrap .galsco-item:hover {
    transform: none;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.galsco-gallery-wrap .galsco-item:focus-within,
.galsco-gallery-wrap .galsco-item.is-selected,
.galsco-gallery-wrap .galsco-item.galsco-proof-approved,
.galsco-gallery-wrap .galsco-item.galsco-proof-pending,
.galsco-gallery-wrap .galsco-item.galsco-proof-rejected {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.galsco-gallery-wrap .galsco-item[hidden] {
    display: none !important;
}

.galsco-gallery-wrap .galsco-preview {
    display: block !important;
    min-height: 0 !important;
    height: auto;
    line-height: 0;
    aspect-ratio: auto !important;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
}

.galsco-gallery-wrap .galsco-preview img,
.galsco-gallery-wrap.galsco-arrangement-columns .galsco-preview img,
.galsco-gallery-wrap.galsco-arrangement-squares .galsco-preview img,
.galsco-gallery-wrap.galsco-arrangement-rows .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-feminite.galsco-arrangement-columns .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-present.galsco-arrangement-columns .galsco-preview img,
.galsco-gallery-wrap.galsco-theme-afleur .galsco-preview img {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto !important;
    object-fit: contain;
    background: transparent;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top;
}

.galsco-gallery-wrap .galsco-item-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 10px;
    gap: 6px;
    display: grid;
    background: linear-gradient(180deg, rgba(8, 10, 12, 0) 0%, rgba(8, 10, 12, .58) 54%, rgba(8, 10, 12, .92) 100%);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.galsco-gallery-wrap .galsco-item:hover .galsco-item-footer,
.galsco-gallery-wrap .galsco-item:focus-within .galsco-item-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.galsco-gallery-wrap .galsco-item-title,
.galsco-gallery-wrap .galsco-item-keywords,
.galsco-gallery-wrap .galsco-item-price,
.galsco-gallery-wrap .galsco-item-ref {
    display: none !important;
}

.galsco-gallery-wrap .galsco-item:hover .galsco-item-ref,
.galsco-gallery-wrap .galsco-item:focus-within .galsco-item-ref {
    display: inline !important;
    color: rgba(255, 255, 255, .94);
    font-size: .74rem;
    letter-spacing: .05em;
}

.galsco-gallery-wrap .galsco-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.galsco-gallery-wrap .galsco-btn-icon {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(12, 14, 16, .46);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.galsco-gallery-wrap .galsco-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.galsco-gallery-wrap .galsco-btn-icon:hover {
    transform: none;
    border-color: rgba(255, 255, 255, .85);
    background: rgba(12, 14, 16, .66);
    box-shadow: none;
    filter: none;
}

.galsco-gallery-wrap .galsco-btn-download {
    border-color: rgba(206, 232, 220, .65);
    background: rgba(28, 56, 45, .52);
}

.galsco-gallery-wrap .galsco-btn-download:hover {
    border-color: rgba(223, 244, 235, .88);
    background: rgba(28, 56, 45, .72);
}

.galsco-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

@media (hover: none) {
    .galsco-gallery-wrap .galsco-item-footer {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        background: linear-gradient(180deg, rgba(8, 10, 12, .16) 0%, rgba(8, 10, 12, .72) 58%, rgba(8, 10, 12, .94) 100%);
    }

    .galsco-gallery-wrap .galsco-item-ref {
        display: inline !important;
        color: rgba(255, 255, 255, .94);
        font-size: .74rem;
        letter-spacing: .05em;
    }
}

@media (max-width: 1024px) {
    .galsco-gallery-wrap .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-squares .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .galsco-gallery-wrap .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-squares .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .galsco-gallery-wrap .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-columns .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-squares .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-arrangement-rows .galsco-gallery-grid,
    .galsco-gallery-wrap.galsco-theme-afleur .galsco-gallery-grid {
        column-count: 1;
    }
}

/* ============================================================
   Page code élève — shortcode [galsco_code_eleve]
   ============================================================ */

.galsco-student-code-wrap {
    --galsco-code-accent: #8a5867;
    max-width: 580px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px);
    display: grid;
    gap: 32px;
    font-family: var(--galsco-font-body, system-ui, sans-serif);
}

.galsco-student-code-hero {
    display: flex;
    justify-content: center;
}

.galsco-student-code-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(138,88,103,.12);
    color: var(--galsco-code-accent);
}

.galsco-student-code-icon svg {
    width: 44px;
    height: 44px;
}

.galsco-student-code-content {
    display: grid;
    gap: 16px;
}

.galsco-student-code-title {
    margin: 0;
    font-family: var(--galsco-font-display, Georgia, serif);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    line-height: 1.15;
    color: #1f1a22;
    text-align: center;
}

.galsco-student-code-desc {
    margin: 0;
    color: #5f574d;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.galsco-student-code-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #7f2f34;
    font-size: .9rem;
    font-weight: 600;
}

.galsco-student-code-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.galsco-student-code-form {
    display: grid;
    gap: 10px;
}

.galsco-student-code-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #5f574d;
}

.galsco-student-code-row {
    display: flex;
    gap: 8px;
}

.galsco-student-code-input {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 2px solid #e4d4dd;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1f1a22;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

.galsco-student-code-input::placeholder {
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: #b8a8b4;
}

.galsco-student-code-input:focus {
    outline: none;
    border-color: var(--galsco-code-accent);
    box-shadow: 0 0 0 3px rgba(138,88,103,.18);
}

.galsco-student-code-input.is-error {
    border-color: #e87474;
}

.galsco-student-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    background: var(--galsco-code-accent);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}

.galsco-student-code-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .15s;
}

.galsco-student-code-btn:hover {
    background: #73404f;
}

.galsco-student-code-btn:hover svg {
    transform: translateX(3px);
}

.galsco-student-code-btn:active {
    transform: scale(.97);
}

.galsco-student-code-hint {
    margin: 0;
    font-size: .82rem;
    color: #9b8fa0;
    text-align: center;
}

.galsco-student-code-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.galsco-student-code-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #5f574d;
    text-align: center;
    max-width: 90px;
}

.galsco-student-code-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #e4d4dd;
    background: #fbf4f8;
    color: var(--galsco-code-accent);
}

.galsco-student-code-feature-icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 480px) {
    .galsco-student-code-row {
        flex-direction: column;
    }

    .galsco-student-code-btn {
        width: 100%;
        height: 54px;
    }

    .galsco-student-code-input {
        height: 54px;
        font-size: 1.25rem;
    }

    .galsco-student-code-icon {
        width: 64px;
        height: 64px;
    }

    .galsco-student-code-icon svg {
        width: 36px;
        height: 36px;
    }
}
