
/* Gallery — pale limestone surface and refined photo framing */
#gallery.gallery.section{
 position:relative;isolation:isolate;overflow:hidden;
 background:
  linear-gradient(180deg,rgba(239,228,214,.94),rgba(245,237,226,.96)),
  url("https://images.unsplash.com/photo-1574681332110-c45ff35a5e09?auto=format&fit=crop&w=1800&q=80") center 48%/cover no-repeat !important;
}
#gallery .section-head{margin-bottom:35px}
#gallery .section-head h2{position:relative;display:inline-block;padding:0 24px 14px}
#gallery .section-head h2:before,#gallery .section-head h2:after{
 content:"";position:absolute;top:50%;width:42px;height:1px;background:#b78343
}
#gallery .section-head h2:before{right:100%}
#gallery .section-head h2:after{left:100%}
#gallery .gallery-grid{gap:16px !important}
#gallery .gallery-grid>img{
 border:1px solid rgba(163,115,61,.22);
 box-shadow:0 13px 28px rgba(56,37,20,.12);
 transition:transform .45s ease,box-shadow .45s ease;
}
#gallery .gallery-grid>img:hover{transform:translateY(-5px);box-shadow:0 18px 34px rgba(56,37,20,.18)}
#gallery .gallery-message{
 position:relative;overflow:hidden;
 background:linear-gradient(145deg,rgba(39,28,21,.97),rgba(71,49,32,.96)) !important;
 box-shadow:0 13px 28px rgba(56,37,20,.15);
}
#gallery .gallery-message:after{
 content:"";position:absolute;width:190px;height:190px;right:-85px;bottom:-105px;
 border:1px solid rgba(215,174,116,.35);border-radius:50%;
 box-shadow:0 0 0 14px rgba(215,174,116,.045),0 0 0 31px rgba(215,174,116,.03);
}
#gallery .gallery-message strong{position:relative;z-index:1}
@media(max-width:760px){
 #gallery.gallery.section{padding:58px 0 !important}
 #gallery .gallery-grid{grid-template-columns:1fr 1fr !important;gap:10px !important}
 #gallery .gallery-grid>img{height:175px !important}
 #gallery .gallery-message{min-height:175px;padding:18px}
 #gallery .gallery-message strong{font-size:20px}
 #gallery .section-head h2:before,#gallery .section-head h2:after{width:20px}
}


/* Gallery carousel: one clean horizontal row, responsive thumbnail sizing */
#gallery.gallery.section{overflow:hidden}
#gallery .gallery-carousel{position:relative;display:flex;align-items:center;gap:14px;width:100%;direction:ltr}
#gallery .gallery-viewport{width:100%;overflow:hidden;padding:8px 2px 18px;scroll-behavior:smooth}
#gallery .gallery-track{display:flex;align-items:stretch;gap:18px;width:max-content;transition:transform .65s cubic-bezier(.22,.7,.25,1);will-change:transform}
#gallery .gallery-slide{flex:0 0 clamp(210px,24vw,270px);width:clamp(210px,24vw,270px);height:190px;margin:0;overflow:hidden;border:1px solid rgba(163,115,61,.25);background:#e7dac9;box-shadow:0 9px 22px rgba(56,37,20,.12)}
#gallery .gallery-slide img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
#gallery .gallery-slide:hover img{transform:scale(1.045)}
#gallery .gallery-arrow{flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(160,111,56,.5);border-radius:50%;background:#fffaf3;color:#815629;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 16px rgba(45,30,18,.1);z-index:2}
#gallery .gallery-arrow span{font:32px/1 Georgia,serif;margin-top:-4px}
#gallery .gallery-arrow:hover{background:#815629;color:#fff;border-color:#815629}
#gallery .gallery-carousel-status{height:3px;width:100%;max-width:180px;margin:8px auto 0;background:rgba(139,99,55,.16);overflow:hidden;border-radius:8px}
#gallery .gallery-carousel-status span{display:block;width:35%;height:100%;background:#b78343;transform:translateX(0);transition:transform .35s ease}
@media(max-width:760px){
 #gallery.gallery.section{padding:58px 0!important}
 #gallery .gallery-carousel{gap:8px}
 #gallery .gallery-slide{flex-basis:72vw;width:72vw;height:165px}
 #gallery .gallery-track{gap:12px}
 #gallery .gallery-arrow{flex-basis:34px;width:34px;height:34px}
 #gallery .gallery-arrow span{font-size:27px}
}
@media(prefers-reduced-motion:reduce){#gallery .gallery-track,#gallery .gallery-slide img{transition:none}}


/* Premium image preview overlay */
#gallery .gallery-slide{cursor:zoom-in}
#gallery .gallery-slide img{cursor:zoom-in}
.gallery-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:5vh 7vw;background:rgba(20,15,11,.94);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s ease}
.gallery-lightbox.is-open{opacity:1;visibility:visible;pointer-events:auto}
.gallery-lightbox-figure{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:min(1100px,84vw);max-height:88vh;margin:0;transform:scale(.96);transition:transform .32s cubic-bezier(.2,.75,.25,1)}
.gallery-lightbox.is-open .gallery-lightbox-figure{transform:scale(1)}
.gallery-lightbox-image{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;object-fit:contain;border:1px solid rgba(220,183,128,.55);box-shadow:0 24px 80px rgba(0,0,0,.5);background:#21180f}
.gallery-lightbox-caption{min-height:1.3em;margin:15px 0 0;color:#f4e6d1;font:14px/1.5 Georgia,serif;text-align:center;letter-spacing:.025em}
.gallery-lightbox-close,.gallery-lightbox-prev,.gallery-lightbox-next{position:absolute;display:grid;place-items:center;border:1px solid rgba(222,184,132,.55);border-radius:50%;color:#f8ead6;background:rgba(55,39,26,.78);cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.gallery-lightbox-close:hover,.gallery-lightbox-prev:hover,.gallery-lightbox-next:hover{background:#a87943;border-color:#d8b27b;transform:scale(1.06)}
.gallery-lightbox-close{top:24px;right:28px;width:48px;height:48px;font:34px/1 Arial,sans-serif}
.gallery-lightbox-close span{margin-top:-3px}
.gallery-lightbox-prev,.gallery-lightbox-next{top:50%;width:48px;height:48px;font:36px/1 Georgia,serif;transform:translateY(-50%)}
.gallery-lightbox-prev:hover,.gallery-lightbox-next:hover{transform:translateY(-50%) scale(1.06)}
.gallery-lightbox-prev{left:25px}.gallery-lightbox-next{right:25px}
body.gallery-lightbox-open{overflow:hidden}
@media(max-width:760px){
 .gallery-lightbox{padding:70px 14px 55px}
 .gallery-lightbox-figure{max-width:100%;max-height:82vh}
 .gallery-lightbox-image{max-width:100%;max-height:70vh}
 .gallery-lightbox-close{top:14px;right:14px;width:42px;height:42px}
 .gallery-lightbox-prev,.gallery-lightbox-next{top:auto;bottom:12px;width:42px;height:42px;transform:none}
 .gallery-lightbox-prev:hover,.gallery-lightbox-next:hover{transform:scale(1.06)}
 .gallery-lightbox-prev{left:calc(50% - 52px)}.gallery-lightbox-next{right:calc(50% - 52px)}
 .gallery-lightbox-caption{font-size:12px;margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.gallery-lightbox,.gallery-lightbox-figure{transition:none}}
