#cms-header{background:#262626;color:#fff;}
/*.bread-overlay{background: linear-gradient(0deg, rgba(38, 38, 38, 0.80) 0%, rgba(38, 38, 38, 0.80) 100%);inset: 0;}*/
/*.bread-photo-container picture{padding-bottom:28.125%;}*/
.gallery-intro{max-width:800px;font:400 15px/1.5 var(--fontFamily);}
.gallery-intro a{color:inherit;}
.gallery-sections{padding:40px 40px 100px;}
.gallery-category + .gallery-category{margin-top:60px;}
.gallery-category-title{display:flex;align-items:center;gap:48px;margin:0 0 50px;color:#262626;font:600 36px/1.4 var(--fontFamily-NotoSerif);text-align:center;}
.gallery-category-title:before,.gallery-category-title:after{content:'';height:1px;background:#e0e0e0;flex:1;transform:scaleX(var(--gallery-title-line-scale,1));}
.gallery-category-title:before{transform-origin:right;}
.gallery-category-title:after{transform-origin:left;}
/* Previous layout: replace the three active layout rules below with these rules.
   Also restore the tablet rule inside the 765px–1199px media query.*/

   /*Four equal photos per row:*/
.gallery-photo-grid{display:flex;flex-wrap:wrap;align-items:center;gap:60px 3%;}
.gallery-photo{overflow:hidden;min-width:0;flex:0 0 calc((100% - 9%) / 4);aspect-ratio:400/260;}

   /*Tablet rule (keep the grid gap at 24px):*/
/*.gallery-photo-grid .gallery-photo:nth-child(n){flex-basis:calc((100% - 72px) / 4);margin-right:0;aspect-ratio:4/3;}*/


/* Active layout: four alternating small/large photos per row. */
/*.gallery-photo-grid{--gallery-row-gaps:9%;display:flex;flex-wrap:wrap;align-items:center;gap:60px 3%;}
.gallery-photo{overflow:hidden;min-width:0;flex:0 0 calc((100% - var(--gallery-row-gaps)) * .205);aspect-ratio:400/260;}
.gallery-photo:nth-child(8n+2),.gallery-photo:nth-child(8n+4),.gallery-photo:nth-child(8n+5),.gallery-photo:nth-child(8n+7){flex-basis:calc((100% - var(--gallery-row-gaps)) * .295);}*/
.gallery-photo picture{padding-bottom:65%}
.gallery-photo img{transition:transform .4s;}
.gallery-photo:hover img{transform:scale(1.035);}
.gallery-intro{margin-top: 15px;}
.bread-overlay{position:absolute;inset:88% 0 0;background:linear-gradient(0deg,#333,transparent);pointer-events:none;}

@media(min-width:765px) and (max-width:1199px){
    #cms-container{max-width: 100%;}
    /*.bread-photo-container picture{padding-bottom:48%}*/
    .gallery-intro{margin-top: 5px;}
.gallery-category-title{font-size:30px;gap:25px;}
.gallery-photo-grid{--gallery-row-gaps:72px;gap:24px;}
}
@media(max-width:764px){
/*.bread-photo-container picture{padding-bottom:162.5%;}*/
.photo-gallery #cms-header{min-height:460px;}
.photo-gallery #cms-h1{font-size:40px;line-height:1.2;margin:0 0 20px;}
.gallery-intro{font-size:17px;line-height:1.7;margin-top:7px;}
.gallery-sections{padding:32px 20px 50px;}
.gallery-category + .gallery-category{margin-top:36px;}
.gallery-category-title{font-size:26px;gap:16px;margin-bottom:28px;}
.gallery-photo-grid{gap:20px;}
.gallery-photo-grid .gallery-photo:nth-child(n){flex-basis:calc((100% - 20px) / 2);margin-right:0;aspect-ratio:4/3;}
}
@media(prefers-reduced-motion:reduce){.gallery-photo img{transition:none;}}
.gallery-category{scroll-margin-top:100px;}

/* Initial animation states, before animations.js runs. */
@media (prefers-reduced-motion:no-preference){
    #cms-wrapper.photo-gallery :is(.gallery-intro,.gallery-category-title,.gallery-photo picture){opacity:0;visibility:hidden;}
}
@media (min-width:1200px) and (prefers-reduced-motion:no-preference){
    #cms-wrapper.photo-gallery .gallery-category-title{--gallery-title-line-scale:0;}
    #cms-wrapper.photo-gallery :is(.gallery-intro,.gallery-category-title){transform:translateY(25px);}
    #cms-wrapper.photo-gallery .gallery-photo picture{clip-path:inset(0 0 100% 0);}
}
