/* Galerie ample ; titre, prix et action, puis récit et caractéristiques. */
.mb-work-page { min-height:70vh; }
.mb-work { display:grid; grid-template-columns:minmax(0,65%) minmax(0,1fr); gap:40px; max-width:1400px; margin:auto; padding:56px 50px 40px; align-items:start; }
/* Grande première vue puis deux colonnes ; défilement tactile sur téléphone. */
.mb-work-visual { min-width:0; }
.mb-gallery-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; margin:0; padding:0; list-style:none; }
.mb-gallery-slide { min-width:0; margin:0; }
.mb-gallery-slide:first-child { grid-column:1 / -1; }
.mb-art-zoom { position:relative; display:flex; align-items:center; justify-content:center; width:100%; margin:0; padding:0; border:1px solid rgb(18 18 18 / 5%); background:transparent; cursor:zoom-in; }
.mb-art-zoom img { display:block; width:auto; height:auto; max-width:100%; box-shadow:none; }
.mb-gallery-slide:first-child .mb-art-zoom img { max-height:calc(100dvh - 172px); }
.mb-photo-zoom-icon { position:absolute; top:12px; right:12px; display:flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid rgb(18 18 18 / 10%); border-radius:50%; color:#121212; background:#fff; opacity:0; transition:opacity .15s; }
.mb-photo-zoom-icon svg { width:18px; height:18px; }
.mb-art-zoom:hover .mb-photo-zoom-icon,.mb-art-zoom:focus-visible .mb-photo-zoom-icon { opacity:1; }
.mb-gallery-controls { display:none; }
.mb-gallery-counter .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mb-gallery-empty { color:var(--mb-muted); padding:40px 20px; text-align:center; }
.mb-work-copy { min-width:0; padding:0; color:var(--mb-muted); }
.mb-work-copy .mb-work-artist { margin:0; font-size:10px; line-height:12px; letter-spacing:1.3px; text-transform:uppercase; }
.mb-work-copy h1 { margin:0 0 15px; overflow-wrap:anywhere; }
.mb-work-copy h1:focus { outline:none; }
.mb-work-price-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-height:32px; margin:15px 0 0; }
.mb-work-copy .mb-price { margin:0; color:var(--mb-ink); font-size:18px; line-height:27px; letter-spacing:1.3px; }
.mb-work-status { display:inline-block; padding:4px 12px; border-radius:20px; background:var(--mb-ink); color:#fff; font-size:12px; line-height:18px; letter-spacing:1px; }
.mb-work-copy .mb-coming-soon { margin:0; padding:0; color:#666; font-size:12px; line-height:18px; font-weight:400; letter-spacing:normal; }
.mb-work-copy .mb-work-availability { margin:5px 0; font-size:12px; line-height:1.7; }
.mb-work-delivery-link { display:inline-block; color:var(--mb-muted); font-size:12px; line-height:20.4px; letter-spacing:.7px; text-underline-offset:3px; }
.mb-work-purchase { margin:25px 0; }
.mb-work-purchase form { margin:0; }
.mb-work-copy .mb-button { width:100%; min-height:51px; padding:15px 30px; border:1px solid #121212; border-radius:6px; background:#121212; color:#fff; font-size:15px; line-height:18px; letter-spacing:1px; }
.mb-work-copy .mb-button:hover { background:#292929; text-decoration:none; }
.mb-work-copy .mb-button:disabled { opacity:.55; cursor:not-allowed; }
.mb-work-question { display:block; width:fit-content; margin:12px auto 0; padding:6px 0; font-size:13px; }
.mb-work-description { margin:25px 0; }
.mb-work-description:empty { display:none; }
.mb-work-description p { margin:0 0 20px; }
.mb-work-description p:last-child { margin-bottom:0; }
.mb-work-meta { margin:25px 0; }
.mb-work-meta p { margin:0; }
.mb-work-collection { margin:25px 0; }
.mb-work-delivery { margin:25px 0 0; border-block:1px solid var(--mb-line); scroll-margin-top:calc(var(--mb-header-height) + 20px); }
.mb-work-delivery summary { display:flex; align-items:center; gap:10px; min-height:54px; padding:15px 0; color:var(--mb-ink); font-size:16.5px; line-height:24px; list-style:none; cursor:pointer; }
.mb-work-delivery summary::-webkit-details-marker { display:none; }
.mb-delivery-icon { flex:0 0 20px; width:20px; height:20px; }
.mb-delivery-caret { flex:0 0 10px; width:10px; height:6px; margin-left:auto; transition:transform .15s; }
.mb-work-delivery[open] .mb-delivery-caret { transform:rotate(180deg); }
.mb-work-delivery-content { margin:0 0 15px; padding:0 10px; }
.mb-work-delivery-content p { margin:0 0 1em; }
.mb-work-delivery-content p:last-child { margin-bottom:0; }
.mb-offer--print { margin:25px 0; padding:25px 0 0; border-top:1px solid var(--mb-line); }
.mb-offer--print h2 { margin:0 0 15px; font-size:20px; }
.mb-offer--print .mb-price { margin-bottom:15px; }
/* Agrandissement plein écran : toutes les vues sur ordinateur, vue choisie sur téléphone. */
body.mb-gallery-open { overflow:hidden; }
.mb-image-dialog { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:50px 110px; border:0; background:#fff; overflow:auto; overscroll-behavior:contain; }
.mb-image-dialog::backdrop { background:#fff; }
.mb-modal-photos { display:flex; flex-direction:column; align-items:center; gap:40px; }
.mb-modal-photos .mb-modal-photo { display:block; width:auto; height:auto; max-width:100%; }
.mb-dialog-close { position:fixed; z-index:2; top:30px; right:30px; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:12px; border:1px solid #d6d6d6; border-radius:50%; background:#fff; color:#121212; cursor:pointer; }
.mb-dialog-close svg { width:20px; height:20px; }
/* Partage natif lorsque disponible ; lien copiable en repli. */
.mb-work-share { position:relative; margin:15px 0; }
.mb-work-share > summary { display:flex; align-items:center; gap:10px; width:fit-content; min-height:44px; padding:0; color:var(--mb-muted); font-size:14px; list-style:none; cursor:pointer; }
.mb-work-share > summary::-webkit-details-marker { display:none; }
.mb-work-share > summary svg { width:14px; height:14px; }
.mb-work-share > summary:hover { text-decoration:underline; text-underline-offset:3px; }
.mb-share-panel { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; gap:0; align-items:center; width:100%; max-width:400px; padding:8px; border:1px solid #999; background:#fff; }
.mb-work-share:not(.is-enhanced) .mb-share-panel { grid-template-columns:minmax(0,1fr); }
.mb-share-panel noscript { grid-column:1 / -1; }
.mb-share-field { min-width:0; }
.mb-share-field label { display:block; padding:0 8px; color:var(--mb-muted); font-size:10px; line-height:17px; }
.mb-share-field input { width:100%; min-width:0; padding:4px 8px; border:0; border-radius:0; background:#fff; color:var(--mb-ink); font-size:13px; line-height:22px; }
.mb-share-panel button { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:12px; border:0; background:#fff; color:var(--mb-ink); }
.mb-share-panel button svg { width:20px; height:20px; }
.mb-share-status { grid-column:1 / -1; margin:0; font-size:12px; }
.mb-share-status:not(:empty) { padding:8px; }
.mb-related { max-width:1400px; margin:auto; padding:36px 50px 28px; }
.mb-related > h2 { margin:0 0 30px; }
.mb-related .mb-art-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mb-related .mb-card-caption > p:not(.mb-card-price):not(.mb-coming-soon) { display:none; }
@media (min-width:750px) and (max-width:989px) {
    .mb-work { grid-template-columns:minmax(0,50%) minmax(0,1fr); gap:50px; padding-inline:50px; }
    .mb-gallery-list { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:749px) {
    .mb-work { grid-template-columns:minmax(0,1fr); gap:20px; padding:36px 15px 36px; }
    .mb-work-copy .mb-work-artist { margin-top:10px; }
    .mb-work-price-row { min-height:29px; }
    .mb-work-copy .mb-price { font-size:16px; line-height:24px; }
    .mb-work-delivery-link { font-size:10px; line-height:17px; }
    .mb-related { padding:27px 15px 21px; }
    .mb-related .mb-art-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width:750px) {
    .mb-work-copy { position:sticky; top:calc(var(--mb-admin-height) + 30px); }
}
@media (max-width:749px) {
    .mb-gallery-list { display:flex; flex-wrap:nowrap; width:calc(100% + 30px); margin-inline:-15px; padding-inline:15px; gap:4px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:15px; scrollbar-width:none; }
    .mb-gallery-list::-webkit-scrollbar { display:none; }
    .mb-gallery-slide { flex:0 0 calc(100% - 4px); box-sizing:content-box; padding-block:5px; scroll-snap-align:start; scroll-snap-stop:always; aspect-ratio:var(--mb-gallery-ratio,1); }
    .mb-gallery-list--single { width:100%; margin-inline:0; padding-inline:0; }
    .mb-gallery-list--single .mb-gallery-slide { flex-basis:100%; }
    .mb-gallery-slide .mb-art-zoom { height:100%; }
    .mb-gallery-slide .mb-art-zoom img { width:100%; height:100%; max-height:none; object-fit:contain; }
    .mb-photo-zoom-icon { opacity:1; }
    .mb-gallery-controls { display:flex; align-items:center; justify-content:center; min-height:44px; margin-top:10px; gap:12px; }
    .mb-gallery-controls button { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:14px; border:0; background:transparent; color:var(--mb-muted); }
    .mb-gallery-controls button:disabled { opacity:.3; cursor:default; }
    .mb-gallery-controls svg { width:8px; height:12px; }
    .mb-gallery-counter { margin:0; min-width:36px; text-align:center; font-size:12px; }
    .mb-image-dialog { padding:0; }
    .mb-modal-photos { display:block; width:max-content; min-width:100%; }
    .mb-modal-photos .mb-modal-photo { display:none; }
    .mb-modal-photos .mb-modal-photo.is-active { display:block; width:1100px; max-width:none; height:auto; }
    .mb-dialog-close { top:15px; right:15px; }
}

/* Un ensemble reste visible dans son ordre, y compris sur téléphone. */
.mb-gallery-list.mb-gallery-list--set { display:grid; grid-template-columns:repeat(var(--mb-set-count,3),minmax(0,1fr)); gap:8px; width:100%; margin:0; padding:0; overflow:visible; }
.mb-gallery-list--set .mb-gallery-slide { min-width:0; padding:0; aspect-ratio:auto; }
.mb-gallery-list--set .mb-gallery-slide:first-child { grid-column:auto; }
.mb-gallery-list--set .mb-art-zoom { aspect-ratio:1; height:auto; }
.mb-gallery-list--set .mb-art-zoom img { width:100%; height:auto; max-height:none; object-fit:contain; }
.mb-panel-caption { margin:8px 0 0; color:var(--mb-muted); font-size:12px; line-height:1.5; text-align:center; }
.mb-work-visual--set .mb-gallery-controls { display:none; }
.mb-card-visual.mb-card-visual--set { display:grid; grid-template-columns:repeat(var(--mb-set-count,3),minmax(0,1fr)); align-content:center; gap:4px; padding:5%; }
.mb-card-visual--set img { width:100%; height:auto; }
