/* Local fixes for the static copy */
/* Hero: fill the section instead of letterboxing */
.elementor-1776 .elementor-element.elementor-element-egmx6iw:not(.elementor-motion-effects-element-type-background){background-size:cover;}
/* Prevent sideways scroll on small screens */
html,body{overflow-x:hidden;}
.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.gallery .gallery-item{width:auto!important;max-width:100%;margin:0!important;}
.gallery .gallery-item img{width:100%;height:auto;display:block;}
@media (max-width:544px){
  .elementor-1776 .elementor-element.elementor-element-0xbvilq{padding-left:0;padding-right:0;}
  .elementor-widget-text-editor,.elementor-heading-title{overflow-wrap:anywhere;}
}
/* Visible keyboard focus */
a:focus-visible,button:focus-visible{outline:2px solid #b8975a;outline-offset:2px;}

/* Lightbox */
.gallery a{display:block;}
.lb{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff;overflow:hidden;}
.lb::backdrop{background:rgba(0,0,0,.92);}
.lb-fig{margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:56px 56px 24px;box-sizing:border-box;}
.lb-img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;}
.lb-cap{font-size:14px;opacity:.85;}
.lb-btn{position:absolute;background:rgba(0,0,0,.45);color:#fff;border:0;font-size:36px;line-height:1;width:48px;height:48px;border-radius:50%;cursor:pointer;z-index:1;}
.lb-btn:hover{background:rgba(255,255,255,.2);}
.lb-close{top:12px;right:12px;}
.lb-prev,.lb-next{top:50%;transform:translateY(-50%);}
.lb-prev{left:8px;} .lb-next{right:8px;}
@media (max-width:544px){.lb-fig{padding:56px 8px 16px;}.lb-prev,.lb-next{top:auto;bottom:12px;transform:none;}}
/* Full-width sections without Elementor's stretch script */
.elementor-section-stretched{width:100%;left:0;}

/* Bigger gallery thumbnails */
.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.gallery .gallery-item img{aspect-ratio:3/2;object-fit:cover;border-radius:2px;transition:opacity .2s;}
.gallery a:hover img{opacity:.85;}
@media (max-width:544px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr));}}
.gallery .gallery-item{max-width:none!important;padding:0!important;border-radius:0;}
.gallery .gallery-icon{border:0;border-radius:2px;}
.gallery .gallery-item:last-child{margin-bottom:0!important;}

/* Thumbnail size: 4 per row on all sizes */
.gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px;}
@media (max-width:544px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px;}}

/* --- Review fixes --- */
.gallery{margin-right:0!important;margin-left:0!important;}
/* Contact map replaces the empty dark box */
.elementor-1776 .elementor-element.elementor-element-zlnhp48:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap{background:none;padding:0!important;}
.k22-map{display:block;width:100%;height:340px;border:0;border-radius:2px;background:#e8e8e8;}
@media (max-width:767px){
  .k22-map{height:260px;}
  /* tame the large Elementor spacers on phones */
  .elementor-spacer-inner{max-height:36px;}
  .elementor-widget-spacer .elementor-spacer-inner{min-height:0;}
}
/* Easier tap targets */
.elementor-widget-heading a{display:inline-block;padding:8px 0;}
.elementor-1776 .elementor-widget-text-editor p a[href^="mailto"]{display:inline-block;padding:6px 0;}
.ast-footer-copyright a,.site-footer a{display:inline-block;padding:6px 0;}

/* Tarieven tables on phones: compact + horizontal scroll instead of broken word wraps */
.entry-content table{width:100%;border-collapse:collapse;}
.entry-content table td,.entry-content table th{padding:8px 10px;}
@media (max-width:767px){
  .table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .entry-content table{font-size:14px;}
  .wide table{width:max-content;min-width:100%;}
  .entry-content table td,.entry-content table th{padding:8px 8px;}
  .wide td,.wide th{white-space:nowrap;}
  .entry-content table td:first-child{white-space:normal;min-width:110px;}
  .ast-footer-copyright{padding:0 12px;}
  .ast-footer-copyright p{overflow-wrap:anywhere;}
}
