/* Galerie Photos 2.5.2 - styles isoles */
.cl-pg-gallery-section { overflow: clip; }
.cl-pg-gallery-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.cl-pg-gallery-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.cl-pg-gallery-head span { color: color-mix(in srgb, currentColor 62%, transparent); font-size: .92rem; }
.cl-pg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.cl-pg-gallery__item { position: relative; display: block; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #dedbd5; cursor: zoom-in; }
.cl-pg-gallery__item[hidden] { display: none !important; }
.cl-pg-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.cl-pg-gallery__item:hover img { transform: scale(1.018); }
.cl-pg-gallery__item.is-more { cursor: pointer; }
.cl-pg-gallery__item.is-more::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .52); }
.cl-pg-gallery__more-count { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; font-family: var(--sans); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; text-shadow: 0 1px 12px rgba(0,0,0,.3); pointer-events: none; }
.cl-pg-gallery__item:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

.cl-pg-lightbox { position: fixed; left: 0; top: var(--cl-pg-vvtop, 0px); z-index: 2147483646; display: none; width: 100vw; height: var(--cl-pg-vvh, 100dvh); background: #151515; color: #fff; }
.cl-pg-lightbox.is-open { display: flex; }
.cl-pg-lightbox__frame { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-width: 0; height: 100%; min-height: 0; overflow: hidden; background: #151515; }
.cl-pg-lightbox__top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: max(8px, env(safe-area-inset-top)) 16px 4px; }
.cl-pg-control { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; touch-action: manipulation; }
.cl-pg-control:hover { background: rgba(255,255,255,.18); }
.cl-pg-control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cl-pg-control svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-pg-control--close { font-size: 20px; }
.cl-pg-control--nav { font-size: 29px; line-height: 1; padding-bottom: 3px; }
.cl-pg-lightbox__info { flex: 0 0 auto; width: 100%; box-sizing: border-box; padding: 0 16px 8px; text-align: center; }
.cl-pg-lightbox__info[hidden] { display: none !important; }
.cl-pg-lightbox__info-inner { max-width: 820px; margin: 0 auto; font-size: 14px; line-height: 1.42; color: rgba(255,255,255,.92); }
.cl-pg-lightbox__info p { margin: 0; }
.cl-pg-info-more { display: inline; margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cl-pg-info-more[hidden] { display: none !important; }
.cl-pg-lightbox__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.cl-pg-lightbox__meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cl-pg-lightbox__muted { color: rgba(255,255,255,.58); }
.cl-pg-lightbox__media { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px 14px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.cl-pg-lightbox__media.is-dragging { cursor: grabbing; }
.cl-pg-lightbox__media img { display: block; width: auto; height: auto; max-width: calc(100vw - 44px); max-height: calc(100% - 24px); box-sizing: border-box; border: 9px solid #fff; border-radius: 2px; background: #fff; box-shadow: 0 10px 36px rgba(0,0,0,.58); object-fit: contain; pointer-events: none; transform-origin: center center; will-change: transform; }
.cl-pg-lightbox__bottom { flex: 0 0 auto; display: grid; grid-template-columns: 40px minmax(100px, auto) 40px; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 10px 16px max(18px, env(safe-area-inset-bottom)); }
.cl-pg-lightbox__pager { min-width: 94px; text-align: center; }
.cl-pg-lightbox__count { margin-bottom: 7px; color: rgba(255,255,255,.8); font-size: 12px; line-height: 1; }
.cl-pg-lightbox__dots { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 10px; }
.cl-pg-lightbox__dot { flex: 0 0 auto; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.38); cursor: pointer; }
.cl-pg-lightbox__dot.is-active { background: #fff; transform: scale(1.22); }
.cl-pg-lightbox__ellipsis { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1; letter-spacing: 1px; }
.cl-pg-lightbox__photo-exit { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); z-index: 30; display: none; background: rgba(20,20,20,.64); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.cl-pg-gallery-open { overflow: hidden; }

.cl-pg-lightbox.is-photo-only, .cl-pg-lightbox.is-photo-only .cl-pg-lightbox__frame { background: #000; }
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__top,
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__info,
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__bottom { display: none !important; }
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__photo-exit { display: grid; }
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__media { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: #000; }
.cl-pg-lightbox.is-photo-only .cl-pg-lightbox__media img { max-width: 100vw; max-height: var(--cl-pg-vvh, 100dvh); border: 0; border-radius: 0; background: transparent; box-shadow: none; }

@media (min-width: 900px) {
  .cl-pg-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-left: 0; margin-right: 0; }
  .cl-pg-lightbox__frame { padding: 10px 24px 14px; }
  .cl-pg-lightbox__top { width: min(900px, calc(100vw - 120px)); margin: 0 auto 6px; min-height: 42px; padding: 0; }
  .cl-pg-lightbox__media { padding: 14px 18px; }
  .cl-pg-lightbox__media img { max-width: min(1080px, calc(100vw - 132px)); max-height: calc(100% - 28px); border-width: 14px; }
  .cl-pg-lightbox__bottom { min-height: 50px; padding: 6px 16px 4px; }
}

/* Shared rules for the public and the read-only admin preview. */
.cl-pg-root, .cl-pg-root *, .cl-pg-lightbox, .cl-pg-lightbox * { box-sizing: border-box; }
.cl-pg-root [hidden], .cl-pg-lightbox [hidden] { display: none !important; }
.cl-pg-section { padding-top: clamp(24px, 4vw, 60px); }
.cl-pg-gallery-head h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.cl-pg-gallery__item { text-decoration: none; }
.cl-pg-order { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.75); color: #fff; font: 700 13px/1 system-ui,sans-serif; pointer-events: none; }
.cl-pg-root--admin .cl-pg-gallery { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cl-pg-root--admin .cl-pg-gallery-head h2 { font-family: inherit; font-size: 20px; font-weight: 650; }
.cl-pg-lightbox button { min-width: 0; min-height: 0; box-shadow: none; }
.cl-pg-lightbox__frame { font-family: system-ui, sans-serif; font-size: 16px; }
.cl-pg-lightbox__info { max-height: 30%; overflow-y: auto; }
.cl-pg-lightbox__meta a { font-size: 12.5px; }
.cl-pg-lightbox .cl-pg-info-more { width: auto; }
.cl-pg-lightbox__caption { white-space: pre-line; }
.cl-pg-image-error { margin: 0; padding: 8px 16px; color: #fff; text-align: center; }
.cl-pg-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.cl-pg-filters button { padding: 10px 16px; border-radius: 24px; border: 1px solid #cbc5bc; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cl-pg-filters button.is-active { background: #111; border-color: #111; color: #fff; }
.cl-pg-local-editor > summary { cursor: pointer; padding: 6px 0; }
.cl-pg-local-editor > summary > span { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 400; }
.cl-pg-local-editor[open] > summary { margin-bottom: 24px; }
.cl-pg-admin-note { padding: 12px; background: #f1ece4; border-radius: 8px; }
.cl-pg-admin-check [data-cl-pg-check-result] { margin-bottom: 0; overflow-wrap: anywhere; }
@media (min-width: 1400px) { .cl-pg-root--admin .cl-pg-gallery { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 640px) { .cl-pg-root--admin .cl-pg-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .cl-pg-gallery__item img { transition: none; } }

@media (max-width: 600px) {
  .cl-pg-page .inner-hero__content h1 { font-size: clamp(32px, 10vw, 60px) !important; line-height: 1.08; max-width: 100%; overflow-wrap: anywhere; }
}
