/* Galerie : paper, air and photographs. The native ratio remains the frame ratio. */
.gallery-page{--gallery-ink:#38352f;--gallery-wine:#542837;--gallery-paper:#f8f5ef;--gallery-rule:#d9cfc1;background:var(--gallery-paper);}
.gallery-page main{max-width:1680px;margin:auto;padding:0 4%;}
.gallery-page .gallery-heading{text-align:center;padding:70px 15% 62px;}
.gallery-page .gallery-heading h1{font:400 clamp(56px,7.3vw,100px)/1.1 var(--display);color:var(--gallery-ink);letter-spacing:-.025em;margin:0;}
.gallery-heading>p{font:400 clamp(19px,2.2vw,27px)/1.5 var(--display);color:#7a5e58;margin:22px 0 0;}
.gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 130px;column-gap:36px;align-items:start;}
.gallery-collection{grid-row:1;grid-column:1;min-width:0;}
.gallery-filters{grid-column:2;grid-row:1;position:sticky;top:190px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 0 20px 15px;border-left:1px solid var(--gallery-rule);}
.gallery-filters button{display:block;position:relative;font:400 18px/1.4 var(--display);color:#81756a;background:none;border:0;padding:10px 0;min-height:44px;cursor:pointer;text-align:left;transition:color .3s,transform .5s;}
.gallery-filters button::before{content:'';position:absolute;left:-16px;top:12px;bottom:12px;width:1px;background:var(--gallery-wine);transform:scaleY(0);transition:transform .5s;}
.gallery-filters button[aria-pressed=true]{color:var(--gallery-wine);}
.gallery-filters button[aria-pressed=true]::before{transform:scaleY(1);}
.gallery-filters button:hover{transform:translateX(4px);color:var(--gallery-wine);}
.gallery-grid{--gallery-columns:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start;}
.gallery-grid.is-laid-out{grid-auto-rows:4px;row-gap:0;}
.gallery-tile{display:block;position:relative;min-width:0;outline-offset:6px;text-decoration:none!important;}
.gallery-tile[data-wide=true]{grid-column:span 2;}
.gallery-frame{display:block;position:relative;overflow:hidden;background:#e7ddd1;transform:translate3d(0,var(--gallery-frame-y,0px),0) scale(var(--gallery-frame-scale,1));transform-origin:center;}
.gallery-frame picture{display:block;position:absolute;inset:0;transform:translate3d(0,var(--gallery-image-y,0px),0) scale(var(--gallery-image-scale,1));}
.gallery-tile img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:filter .7s;}
.gallery-tile:hover img{filter:brightness(1.06);}
.gallery-caption{display:block;position:absolute;left:0;right:0;bottom:0;padding:40px 15px 13px;background:linear-gradient(transparent,#1d1019b8);color:#fff7ed;font:400 14px/1.5 var(--text);opacity:0;transition:opacity .4s;pointer-events:none;}
.gallery-tile:hover .gallery-caption,.gallery-tile:focus-visible .gallery-caption{opacity:1;}
.gallery-tile:focus-visible,.gallery-filters button:focus-visible{outline:2px solid #815365;outline-offset:5px;}
.gallery-tile[hidden],.gallery-chapter[hidden],.gallery-daybreak[hidden]{display:none!important;}
.gallery-page .gallery-daybreak{padding:90px 15% 75px;text-align:center;}
.gallery-daybreak>p{font:400 19px/1.5 var(--display);color:#7a5e58;margin:0 0 15px;}
.gallery-page .gallery-daybreak h2{font:400 clamp(42px,5vw,66px)/1.1 var(--display);letter-spacing:-.02em;color:var(--gallery-ink);margin:0;}
.gallery-end{padding:90px 0 100px;text-align:center;}
.gallery-end>p{font:400 38px/1.3 var(--display);color:var(--gallery-ink);margin:0 0 28px;}
.gallery-end>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:999px;padding:13px 30px;background:var(--gallery-wine);color:#fff8ee;font:400 15px/1.4 var(--text);}
.gallery-announcement.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.photo-viewer{position:fixed;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#24181ef7;color:#fff7ee;}
.photo-viewer::backdrop{background:#24181e;}
.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) 42px;}
.photo-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:20px;}
.photo-toolbar h2{font:400 22px/1.35 var(--display);margin:0;color:inherit;max-width:850px;}
.photo-close{flex-shrink:0;width:44px;height:44px;border:1px solid #fff6;border-radius:50%;background:none;color:inherit;font:300 25px/1 var(--text);cursor:pointer;}
.photo-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:0;padding:0 75px;touch-action:pan-y pinch-zoom;}
.photo-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
.photo-prev,.photo-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid #fff6;border-radius:50%;background:#24181e55;color:inherit;font:400 25px/1 var(--text);cursor:pointer;}
.photo-prev{left:20px;}.photo-next{right:20px;}
.photo-status{text-align:center;display:flex;justify-content:center;align-items:center;font:400 13px/1.5 var(--text);letter-spacing:.06em;margin:0;}
.photo-error{position:absolute;inset:30%;text-align:center;font:400 16px/1.7 var(--text);}.photo-error a{color:inherit;text-decoration:underline;}.photo-error[hidden]{display:none;}
body:has(.photo-viewer[open]){overflow:hidden;}
@media(max-width:1000px){.gallery-layout{grid-template-columns:minmax(0,1fr) 115px;column-gap:22px;}.gallery-grid{--gallery-columns:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}.gallery-filters{padding-left:12px;}.gallery-filters button::before{left:-13px;}.gallery-filters button{font-size:17px;}}
@media(max-width:640px){
 .gallery-page main{padding:0 5%;}.gallery-page .gallery-heading{padding:40px 0 30px;}.gallery-page .gallery-heading h1{font-size:60px;}.gallery-heading>p{font-size:20px;margin-top:16px;}
 .gallery-layout{display:flex;flex-direction:column;gap:0;}.gallery-filters{width:100%;position:sticky;top:110px;z-index:5;background:#f8f5eff5;backdrop-filter:blur(8px);border-left:0;border-bottom:1px solid var(--gallery-rule);display:flex;flex-direction:row;overflow-x:auto;flex-wrap:nowrap;gap:22px;padding:8px 0;margin:0 0 25px;scrollbar-width:none;}.gallery-filters::-webkit-scrollbar{display:none;}.gallery-filters button{flex-shrink:0;font-size:17px;padding:10px 0;white-space:nowrap;}.gallery-filters button::before{left:0;right:0;top:auto;bottom:4px;width:auto;height:1px;transform:scaleX(0);}.gallery-filters button[aria-pressed=true]::before{transform:scaleX(1);}.gallery-filters button:hover{transform:none;}
 .gallery-collection{width:100%;}.gallery-grid{--gallery-columns:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.gallery-caption{display:none;}.gallery-page .gallery-daybreak{padding:60px 0 45px;}.gallery-daybreak>p{font-size:18px;}.gallery-end{padding:60px 0 70px;}
 .photo-toolbar{padding:12px 15px;align-items:flex-start;}.photo-toolbar h2{font-size:18px;}.photo-stage{padding:0 8px;}.photo-prev,.photo-next{top:auto;bottom:4px;transform:none;background:#24181e9c;}.photo-prev{left:12px;}.photo-next{right:12px;}
}
@media(prefers-reduced-motion:reduce){.gallery-frame,.gallery-frame picture{transform:none!important;}.gallery-tile img,.gallery-caption,.gallery-filters button{transition:none;}}

.gallery-filters button::after{content:none!important;}
