#photoFilmstrip{--bubble-image:50px;--bubble-cell:64px;grid-template-columns:minmax(100px,155px) minmax(0,1fr) 34px 34px}#photoFilmstrip[data-bubble-size=small]{--bubble-image:36px;--bubble-cell:50px}#photoFilmstrip[data-bubble-size=large]{--bubble-image:76px;--bubble-cell:94px}#photoFilmstrip .photo-filmstrip-item{flex:0 0 var(--bubble-cell);width:var(--bubble-cell);font-size:10px}#photoFilmstrip .photo-filmstrip-item img{width:var(--bubble-image);height:var(--bubble-image)}#photoFilmstrip .photo-filmstrip-item.is-current-photo img{border:3px solid #caf46c;box-shadow:0 0 0 3px #caf46c66,0 4px 12px #0008}#photoFilmstrip .photo-filmstrip-item.is-current-photo span{color:#dcff91}#photoFilmstrip[data-bubble-names=hover] .photo-filmstrip-item span{visibility:hidden}#photoFilmstrip[data-bubble-names=hover] .photo-filmstrip-item:hover span,#photoFilmstrip[data-bubble-names=hover] .photo-filmstrip-item:focus-visible span{visibility:visible}#photoFilmstrip .bubbles-settings{width:32px;height:34px;padding:0;font-size:17px;color:#dcf1bc;border:1px solid #95ac6e;background:#152011aa}#photoFilmstrip[data-bubble-layout=vertical],#photoFilmstrip[data-bubble-layout=grid]{grid-template-columns:minmax(0,1fr) 34px 34px;align-items:start;width:min(330px,calc(100% - 24px))}#photoFilmstrip[data-bubble-layout=vertical] #photoFilmstripLevel,#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripLevel{grid-column:1;grid-row:1;min-width:0}#photoFilmstrip[data-bubble-layout=vertical] #photoFilmstripToggle,#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripToggle{grid-column:2;grid-row:1}#photoFilmstrip[data-bubble-layout=vertical] .bubbles-settings,#photoFilmstrip[data-bubble-layout=grid] .bubbles-settings{grid-column:3;grid-row:1}#photoFilmstrip[data-bubble-layout=vertical] #photoFilmstripItems,#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripItems{grid-column:1/-1;grid-row:2;max-height:min(55vh,480px);overflow:auto;min-height:0;width:100%}#photoFilmstrip[data-bubble-layout=vertical] #photoFilmstripItems{display:flex;flex-direction:column;align-items:center}#photoFilmstrip[data-bubble-layout=vertical] .photo-filmstrip-item{flex:none}#photoFilmstrip[data-bubble-layout=grid]{width:min(550px,calc(100% - 24px))}#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripItems{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--bubble-cell),1fr));justify-items:center;gap:12px}#photoFilmstrip.is-collapsed{width:48px;grid-template-columns:1fr}#photoFilmstrip.is-collapsed .bubbles-settings{display:none}#photoFilmstrip.is-collapsed #photoFilmstripToggle{grid-column:1;grid-row:1}
#bubbleSettingsDialog{background:#182114;color:#eef5e6;border:1px solid #7c9354;border-radius:14px;padding:22px;width:min(460px,92vw);max-height:90vh;overflow:auto;font:14px/1.5 system-ui}#bubbleSettingsDialog::backdrop{background:#0009}#bubbleSettingsDialog h2{color:#caf46c;margin-top:0}#bubbleSettingsDialog label{display:grid;gap:6px;margin:12px 0}#bubbleSettingsDialog select{width:100%;padding:10px;border:1px solid #6b7b50;border-radius:8px;background:#25301e;color:#f0f6e9;font:inherit}#bubbleSettingsDialog button{padding:10px;margin:4px;border:1px solid #718754;border-radius:8px;color:#f1f7e9;background:#27351e}#bubbleSettingsDialog button.primary{background:#caf46c;color:#17220b}.bubble-photo-navigation{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;width:100%;padding:10px;border-top:1px solid #6b7a5144;color:#e7f2db;background:#151e11}.bubble-photo-navigation[hidden],.bubble-photo-navigation button[hidden]{display:none!important}.bubble-photo-navigation button{padding:8px 12px;border:1px solid #68794e;border-radius:8px;background:#26331e;color:#edf7de;font:600 13px system-ui}.bubble-photo-navigation button:disabled{opacity:.4;cursor:default}.bubble-photo-navigation span{min-width:55px;text-align:center}#lightbox .caption{flex-wrap:wrap}#panoramaDialog .panorama-footer .bubble-photo-navigation{flex-basis:100%}.bubble-location-target{position:absolute;pointer-events:none;width:38px;height:38px;margin:-19px 0 0 -19px;border:3px solid #caf46c;border-radius:50%;box-shadow:0 0 0 7px #caf46c44,0 0 20px #000;z-index:12}.bubble-location-target:after{content:'';position:absolute;inset:10px;border-radius:50%;background:#caf46c}
@media(max-width:700px){#photoFilmstrip{grid-template-columns:minmax(65px,90px) minmax(0,1fr) 30px 30px;gap:4px}.bubble-photo-navigation{gap:5px;padding:6px}.bubble-photo-navigation button{font-size:12px;padding:7px}#photoFilmstrip[data-bubble-layout=grid]{width:calc(100% - 14px)}}

#lightbox[open],#panoramaDialog[open]{display:flex;flex-direction:column}#lightbox[open] #largePhoto{flex:1 1 auto;min-height:0;height:0;width:100%;object-fit:contain}#lightbox .caption{height:auto;min-height:100px;flex:0 0 auto;max-height:45%;overflow:auto}#panoramaDialog #panoramaViewer{flex:1 1 auto;min-height:120px;height:auto}#panoramaDialog .panorama-footer{flex:0 0 auto;flex-wrap:wrap;max-height:45%;overflow:auto}

#photoFilmstrip.is-collapsed{width:48px;grid-template-columns:1fr}#photoFilmstrip.is-collapsed #photoFilmstripItems,#photoFilmstrip.is-collapsed #photoFilmstripLevel{display:none!important}

/* Organisation : les étoiles restent des boutons distincts des photos. */
#photoFilmstrip .bubble-cell{position:relative;flex:0 0 auto;min-width:0}
#photoFilmstrip .bubble-cell .photo-filmstrip-item{width:var(--bubble-cell)}
#photoFilmstrip .bubble-favorite-toggle{position:absolute;right:0;top:0;padding:0;width:23px;height:23px;border-radius:50%;background:#172014;color:#eaff81;line-height:1;font-size:18px;z-index:2}
#photoFilmstrip .bubble-favorite-toggle[hidden]{display:none}
#photoFilmstrip .is-bubble-favorite:after{content:'★';position:absolute;left:1px;top:0;color:#eaff81;background:#172014;border-radius:50%;padding:1px 3px;font-size:14px}
#photoFilmstrip .photo-filmstrip-item{position:relative}
#photoFilmstrip .photo-filmstrip-item[draggable=true]{cursor:grab}
#photoFilmstrip .is-dragging{opacity:.45}
#photoFilmstrip .is-drop-target{outline:2px dashed #caff63;border-radius:8px}
#bubbleSettingsDialog .bubble-organizer{border-top:1px solid #6f8156;margin-top:16px;padding-top:10px}
#bubbleSettingsDialog .bubble-organizer[hidden]{display:none}

#photoFilmstrip .bubble-filters{grid-column:1/-1;display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:5px 0;max-width:min(780px,80vw)}
#photoFilmstrip .bubble-filters label{display:grid;gap:3px;font:11px/1.3 system-ui;color:#dce9ca;min-width:0}
#photoFilmstrip .bubble-filters select,#photoFilmstrip .bubble-filters input{font:12px system-ui;max-width:190px;width:100%;background:#172014;color:#f2f7e9;border:1px solid #6e8058;border-radius:6px;padding:6px}
#photoFilmstrip .bubble-filters button{font-size:11px;padding:6px}#photoFilmstrip [data-bubble-results]{font-size:11px;color:#d3eeaf}
#photoFilmstrip.is-collapsed .bubble-filters{display:none!important}
#photoFilmstrip[data-bubble-layout=grid] .bubble-filters,#photoFilmstrip[data-bubble-layout=vertical] .bubble-filters{grid-row:2}
#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripItems,#photoFilmstrip[data-bubble-layout=vertical] #photoFilmstripItems{grid-row:3}
#photoFilmstrip .bubble-type-badge{display:block;font:8px/1.3 system-ui;color:#e4f4ca;background:#35432c;border-radius:4px;max-width:var(--bubble-cell);white-space:normal;overflow-wrap:anywhere;padding:2px}
.bubble-hover-preview{position:fixed;z-index:2147483000;pointer-events:none;background:#182114;color:#eef7df;border:1px solid #a9c578;border-radius:10px;padding:9px;box-shadow:0 8px 30px #0008;font:13px/1.4 system-ui;box-sizing:border-box}
.bubble-hover-preview[hidden]{display:none}.bubble-hover-preview img{width:100%;height:160px;object-fit:contain;background:#0b1009;border-radius:5px}.bubble-hover-preview strong,.bubble-hover-preview span{display:block;overflow-wrap:anywhere}.bubble-hover-preview span{color:#c7d7b8;font-size:12px}
#photoFilmstrip[data-bubble-layout=horizontal] .bubbles-settings{grid-row:1;grid-column:4}
#photoFilmstrip[data-bubble-layout=horizontal] .bubble-filters{grid-row:2}

/* Les filtres restent disponibles sans occuper une ligne lorsqu’ils sont repliés. */
#photoFilmstrip .bubble-filters[hidden]{display:none!important}
#photoFilmstrip[data-bubble-layout=horizontal]{grid-template-columns:minmax(100px,155px) minmax(0,1fr) 34px 34px 34px}
#photoFilmstrip .bubble-filters-toggle{position:relative;width:32px;height:34px;padding:0;font-size:20px;color:#dcf1bc;border:1px solid #95ac6e;background:#152011aa;grid-column:5;grid-row:1}
#photoFilmstrip .bubble-filters-toggle.has-active-filters:after{content:'';position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:#caf46c}
#photoFilmstrip[data-bubble-layout=vertical],#photoFilmstrip[data-bubble-layout=grid]{grid-template-columns:minmax(0,1fr) 34px 34px 34px}
#photoFilmstrip[data-bubble-layout=vertical] .bubble-filters-toggle,#photoFilmstrip[data-bubble-layout=grid] .bubble-filters-toggle{grid-column:4;grid-row:1}
#photoFilmstrip.is-collapsed .bubble-filters-toggle{display:none!important}
#photoFilmstrip.is-collapsed{grid-template-columns:1fr}

/* Surbrillance liée, distincte de la photo ouverte. Ne change pas le transform 3D. */
.marker.is-bubble-linked{outline:3px solid #edff97;outline-offset:5px;box-shadow:0 0 0 8px #caff6340,0 0 25px 8px #dfff8599!important;z-index:30!important;filter:brightness(1.35)}
#photoFilmstrip .photo-filmstrip-item.is-marker-linked img{outline:3px solid #edff97;outline-offset:3px;box-shadow:0 0 16px #dbff8ccc}
#photoFilmstrip .photo-filmstrip-item.is-marker-linked span{color:#edff97}

/* Badges au-dessus des vignettes, comme dans le visuel du menu Bulles. */
#photoFilmstrip .photo-filmstrip-item{padding-top:22px}
#photoFilmstrip .bubble-top-badges{position:absolute;top:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;pointer-events:none}
#photoFilmstrip .bubble-top-badge{display:block;background:#102c31;color:#78f4ff;border:1px solid #33d9e9;border-radius:10px;padding:1px 5px;font:600 10px/1.3 system-ui;box-shadow:0 0 5px #19d8e93d}
#photoFilmstrip .bubble-cell:has(.has-double-badge){min-width:max(var(--bubble-cell),100px)}
#photoFilmstrip .bubble-cell .has-double-badge{width:max(var(--bubble-cell),100px)}
#photoFilmstrip .bubble-favorite-toggle{top:24px}
#photoFilmstrip .is-bubble-favorite:after{top:24px}
#photoFilmstrip[data-bubble-layout=grid] #photoFilmstripItems{grid-template-columns:repeat(auto-fill,minmax(max(var(--bubble-cell),100px),1fr))}
