/* Styles limités à la galerie ; couleurs et typographie héritées du thème. */
.ft-gallery{margin-block:12px 80px;color:var(--ink,#173b31)}
.ft-gallery__heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:32px;border-top:1px solid var(--line,#d8dfd9);padding-top:40px}
.ft-gallery__heading .eyebrow{color:var(--copper,#bf4c25);margin-bottom:16px}
.ft-gallery__heading h2{font-size:clamp(2rem,3.8vw,3.3rem);max-width:610px;margin:0}
.ft-gallery__intro{flex:0 0 200px;margin:0;font-size:.83rem;color:var(--muted,#596b62)}
.ft-gallery__intro span{display:block;margin-top:6px;line-height:1.6}
.ft-gallery__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:clamp(170px,20vw,235px);gap:18px}
.ft-gallery__item{position:relative;grid-column:span 2;min-width:0;min-height:0;margin:0;background:#e0e6df;isolation:isolate}
.ft-gallery__item:first-child{grid-column:span 4;grid-row:span 2}
.ft-gallery__grid[data-tail="1"] .ft-gallery__item:last-child,.ft-gallery__grid[data-count="1"] .ft-gallery__item{grid-column:1/-1;grid-row:span 2}
.ft-gallery__grid[data-tail="2"] .ft-gallery__item:nth-last-child(-n+2){grid-column:span 3}
.ft-gallery__grid[data-count="2"] .ft-gallery__item{grid-column:span 3;grid-row:span 2}
.ft-gallery__link{position:relative;display:block;width:100%;height:100%;overflow:hidden;text-decoration:none;color:#fff}
.ft-gallery__link::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),transparent 40%,rgba(0,0,0,.12));pointer-events:none;transition:background .35s}
.ft-gallery__image{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .7s cubic-bezier(.2,.6,.2,1);margin:0}
.ft-gallery__link:hover .ft-gallery__image,.ft-gallery__link:focus-visible .ft-gallery__image{transform:scale(1.035)}
.ft-gallery__link:focus-visible{outline:3px solid var(--copper,#bf4c25);outline-offset:4px;z-index:3}
.ft-gallery__number{position:absolute;left:18px;top:18px;z-index:1;display:grid;place-items:center;min-width:32px;height:32px;padding-inline:6px;font-size:.75rem;background:rgba(16,43,36,.8);font-variant-numeric:tabular-nums}
.ft-gallery__expand{position:absolute;right:16px;top:16px;z-index:1;display:grid;place-items:center;width:38px;height:38px;background:rgba(247,248,245,.96);color:var(--forest,#173b31);transition:background .2s,color .2s}
.ft-gallery__link:hover .ft-gallery__expand,.ft-gallery__link:focus-visible .ft-gallery__expand{background:var(--copper,#bf4c25);color:#fff}
.ft-gallery__caption{position:absolute;bottom:0;inset-inline:0;padding:42px 18px 16px;color:#fff;background:linear-gradient(transparent,rgba(9,26,21,.88));font-size:.82rem;line-height:1.45;pointer-events:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ft-gallery__item.ft-gallery--reveal{animation:ft-gallery-enter .7s cubic-bezier(.2,.6,.2,1) both}
@keyframes ft-gallery-enter{from{opacity:.25;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
html.ft-gallery-open{overflow:hidden;scrollbar-gutter:stable}
.ftg-viewer{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:clamp(14px,3vw,38px);border:0;background:rgba(8,23,19,.97);color:#fff;overscroll-behavior:contain;box-sizing:border-box}
.ftg-viewer:not([open]){display:none}
.ftg-viewer::backdrop{background:#081713}
.ftg-viewer__panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;width:100%;height:100%;max-width:1600px;margin:auto}
.ftg-viewer__toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}
.ftg-viewer__toolbar p{margin:0;font-size:.86rem;letter-spacing:.025em;color:#d6e0da}
.ftg-viewer__button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:48px;min-height:48px;padding:10px 14px;border:1px solid #708078;background:transparent;color:#fff;font:inherit;font-size:.82rem;line-height:1;cursor:pointer;border-radius:0;transition:background .2s}
.ftg-viewer__button:hover{background:#fff2}.ftg-viewer__button:focus-visible,.ftg-viewer a:focus-visible{outline:3px solid #f3b191;outline-offset:4px}
.ftg-viewer__stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom}
.ftg-viewer__image{display:block;width:100%;height:100%;object-fit:contain;user-select:none;transition:opacity .15s}
.ftg-viewer__stage[aria-busy="true"] .ftg-viewer__image{opacity:.35}
.ftg-viewer__error{position:absolute;inset:0;display:grid;place-content:center;padding:24px;text-align:center;font-size:1rem;background:#102b24;color:#fff}
.ftg-viewer__footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;min-width:0}
.ftg-viewer__caption{margin:0;max-height:18vh;overflow:auto;overflow-wrap:anywhere;font-size:.92rem;line-height:1.6;color:#e4ece6}
.ftg-viewer__navigation{grid-column:2;display:flex;align-items:center;gap:12px}
.ftg-viewer__counter{min-width:60px;text-align:center;font-size:.86rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.ftg-viewer [hidden]{display:none!important}
@media(max-width:700px){.ft-gallery__heading{display:block}.ft-gallery__intro{margin-top:18px}.ft-gallery__grid{gap:12px;grid-auto-rows:160px}.ft-gallery__number{top:12px;left:12px}.ft-gallery__expand{top:10px;right:10px}.ftg-viewer__footer{grid-template-columns:1fr}.ftg-viewer__navigation{grid-column:1;justify-content:center}.ftg-viewer__caption{text-align:center;max-height:14vh}.ftg-viewer__panel{gap:12px}.ft-gallery{margin-bottom:50px}}
@media(max-width:480px){.ft-gallery__grid{grid-template-columns:1fr;grid-auto-rows:auto}.ft-gallery__grid .ft-gallery__item{grid-column:auto!important;grid-row:auto!important}.ft-gallery__link{aspect-ratio:4/3;height:auto}.ft-gallery__heading h2{font-size:2.1rem}.ftg-viewer__toolbar p{font-size:.75rem}.ftg-viewer__close-label{display:none}.ftg-viewer{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.ft-gallery__item.ft-gallery--reveal{animation:none}.ft-gallery__image,.ft-gallery__expand,.ftg-viewer__image{transition:none}.ft-gallery__link:hover .ft-gallery__image,.ft-gallery__link:focus-visible .ft-gallery__image{transform:none}}
@media print{.ftg-viewer,.ft-gallery__expand{display:none!important}.ft-gallery__grid{display:block}.ft-gallery__item{break-inside:avoid;margin-bottom:18px}.ft-gallery__link{height:auto;aspect-ratio:auto}.ft-gallery__image{height:auto}.ft-gallery__caption{position:static;color:#000;background:none;padding:8px 0}.ft-gallery__item.ft-gallery--reveal{animation:none}}
