.cre-gallery{margin:0 0 36px}.cre-gallery-stage{position:relative;min-height:430px;border-radius:10px;overflow:hidden;background:#10261e;touch-action:pan-y pinch-zoom}.cre-gallery-slide{position:absolute;inset:0;margin:0;opacity:0;pointer-events:none;transition:opacity .3s}.cre-gallery-slide.is-active{opacity:1;pointer-events:auto}.cre-gallery-slide>img,.cre-gallery-slide>video,.cre-gallery-slide>iframe,.cre-gallery-slide .wp-video{width:100%;height:100%;object-fit:cover;border:0}.cre-gallery-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:45px 22px 18px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;display:flex;justify-content:space-between}.cre-gallery-slide figcaption span{font-weight:800}.cre-gallery-stage>button{position:absolute;z-index:5;border:0;background:rgba(255,255,255,.92);color:#173d2f;width:42px;height:42px;border-radius:50%;padding:0;font-size:27px;top:50%;transform:translateY(-50%);box-shadow:0 5px 17px rgba(0,0,0,.2)}.cre-gallery-prev{left:15px}.cre-gallery-next{right:15px}.cre-gallery-stage>.cre-gallery-expand{top:15px;right:15px;transform:none;font-size:19px}.cre-gallery-thumbs{display:flex;gap:9px;overflow:auto;margin-top:10px;padding-bottom:4px}.cre-gallery-thumbs button{position:relative;flex:0 0 120px;height:78px;padding:0;overflow:hidden;background:#dfe8e4;border:3px solid transparent;border-radius:6px;color:#143c2e}.cre-gallery-thumbs button.is-active{border-color:#2b8d66}.cre-gallery-thumbs img{width:100%;height:100%;object-fit:cover}.cre-gallery-thumbs i{display:grid;place-items:center;height:100%;font-style:normal}.cre-gallery-thumbs span{position:absolute;left:0;right:0;bottom:0;padding:4px;background:rgba(0,0,0,.65);color:#fff;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cre-gallery-placeholder{height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:55px;color:#fff;background:radial-gradient(circle at 75% 20%,rgba(94,175,139,.65),transparent 25%),linear-gradient(145deg,#1e5e47,#0d261d)}.cre-gallery-placeholder.variant-2{background:linear-gradient(30deg,transparent 49%,rgba(255,255,255,.08) 50%,transparent 51%),linear-gradient(145deg,#455d54,#142b22)}.cre-gallery-placeholder.variant-3{background:repeating-linear-gradient(90deg,transparent 0 70px,rgba(255,255,255,.06) 71px 72px),linear-gradient(145deg,#7a6e5f,#24352e)}.cre-gallery-placeholder.variant-4{background:radial-gradient(circle at 30% 45%,#6eae91 0 4px,transparent 5px),linear-gradient(25deg,transparent 48%,rgba(255,255,255,.1) 49% 51%,transparent 52%),linear-gradient(145deg,#315d4b,#101f1a)}.cre-gallery-placeholder i{width:90px;height:90px;border:1px solid rgba(255,255,255,.35);border-radius:50%;margin-bottom:auto}.cre-gallery-placeholder span{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em}.cre-gallery-placeholder strong{font-size:2rem;margin:5px 0}.cre-gallery-placeholder small{color:#c3d5ce}.cre-gallery-video-link{height:100%;display:grid;place-items:center;color:#fff;font-size:1.4rem}.cre-gallery.is-expanded .cre-gallery-slide>img,.cre-gallery.is-expanded .cre-gallery-slide>video{object-fit:contain;background:#050c09}.cre-gallery.is-expanded .cre-gallery-slide>iframe,.cre-gallery.is-expanded .cre-gallery-slide .wp-video{background:#050c09}.cre-gallery.is-expanded .cre-gallery-stage{touch-action:pan-y pinch-zoom}
.cre-gallery.is-expanded{position:fixed;z-index:100000;inset:0;background:rgba(5,12,9,.96);padding:30px}.cre-gallery.is-expanded .cre-gallery-stage{height:calc(100vh - 135px)}.cre-gallery.is-expanded .cre-gallery-thumbs{justify-content:center}.cre-gallery-open{overflow:hidden}@media(max-width:700px){.cre-gallery-stage{min-height:300px}.cre-gallery-placeholder{padding:30px}.cre-gallery-placeholder strong{font-size:1.5rem}.cre-gallery.is-expanded{padding:8px}.cre-gallery.is-expanded .cre-gallery-stage{height:calc(100vh - 100px)}}
.cre-gallery-placeholder{position:relative;display:block;height:100%;padding:0;overflow:hidden;background:#eeeae1;color:#173d2f}.cre-gallery-placeholder>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.cre-gallery-placeholder:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,35,27,.08),transparent 45%),linear-gradient(0deg,rgba(8,25,19,.16),transparent 45%);pointer-events:none}.cre-gallery-placeholder-copy{position:absolute;z-index:2;left:clamp(18px,4vw,48px);top:clamp(18px,4vw,42px);display:flex;flex-direction:column;max-width:330px;padding:18px 22px;border:1px solid rgba(255,255,255,.72);border-radius:8px;background:rgba(248,246,240,.88);box-shadow:0 18px 44px rgba(17,43,34,.15);backdrop-filter:blur(10px)}.cre-gallery-placeholder-copy span{font-size:.66rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#2b7256}.cre-gallery-placeholder-copy strong{margin:5px 0 3px;font-family:Georgia,serif;font-size:clamp(1.25rem,2.3vw,2rem);line-height:1.05;letter-spacing:-.03em}.cre-gallery-placeholder-copy small{color:#5e6c66}.cre-gallery[data-count="1"] .cre-gallery-prev,.cre-gallery[data-count="1"] .cre-gallery-next,.cre-gallery[data-count="1"] .cre-gallery-thumbs{display:none}@media(max-width:700px){.cre-gallery-placeholder{padding:0}.cre-gallery-placeholder-copy{right:18px;max-width:none;padding:13px 16px}.cre-gallery-placeholder-copy strong{font-size:1.2rem}}

/* Responsive containment: gallery media may scroll internally but must never widen the document. */
.cre-listing-media-section,.cre-listing-media-section>header,.cre-listing-media-combined,.cre-gallery,.cre-gallery-stage,.cre-gallery-slide,.cre-gallery-thumbs{box-sizing:border-box;min-width:0;max-width:100%}
.cre-listing-media-section>header>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.cre-gallery{width:100%}
.cre-gallery-stage{width:100%}
.cre-gallery-slide>img,.cre-gallery-slide>video,.cre-gallery-slide>iframe,.cre-gallery-slide .wp-video,.cre-gallery-slide .wp-video-shortcode,.cre-gallery-slide .mejs-container{display:block;width:100%!important;max-width:100%!important;height:100%!important}
.cre-gallery-slide figcaption{min-width:0;max-width:100%;gap:12px}
.cre-gallery-slide figcaption span{min-width:0;overflow-wrap:anywhere}
.cre-gallery-slide figcaption b{flex:none}
.cre-gallery-thumbs{width:100%;justify-content:flex-start;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.cre-gallery-thumbs>*{min-width:0}
.cre-gallery-placeholder-copy{box-sizing:border-box;max-width:min(330px,calc(100% - 36px))}
@media(max-width:700px){
  .cre-listing-media-section{width:100%;max-width:100%;margin-bottom:38px}
  .cre-gallery-stage{height:clamp(240px,62vw,340px);min-height:0}
  .cre-gallery-stage>button{width:38px;height:38px;font-size:23px}
  .cre-gallery-prev{left:8px}.cre-gallery-next{right:8px}
  .cre-gallery-stage>.cre-gallery-expand{top:8px;right:8px}
  .cre-gallery-slide figcaption{padding:42px 14px 12px;font-size:.82rem}
  .cre-gallery-thumbs{gap:7px;padding:0 0 5px}
  .cre-gallery-thumbs button{flex-basis:92px;height:62px}
  .cre-listing-media-combined .cre-gallery-thumbs button[data-media-group="building"]:first-of-type{margin-left:8px}
  .cre-gallery-placeholder-copy{left:12px;right:12px;top:12px;max-width:calc(100% - 24px)}
  .cre-gallery.is-expanded{box-sizing:border-box;width:100%;max-width:none;height:100dvh;min-height:100dvh;padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}
  .cre-gallery.is-expanded .cre-gallery-stage{width:100%;height:calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0}
  .cre-gallery.is-expanded .cre-gallery-thumbs{width:100%;justify-content:flex-start}
}
@media(max-width:900px) and (orientation:landscape){
  .cre-gallery.is-expanded{padding:calc(6px + env(safe-area-inset-top)) calc(6px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left))}
  .cre-gallery.is-expanded .cre-gallery-stage{height:calc(100dvh - 82px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .cre-gallery.is-expanded .cre-gallery-thumbs button{height:54px}
}
/* iOS Safari: prevent double-tap zoom on gallery controls while preserving page pinch zoom. */
.cre-gallery-stage>button,.cre-gallery-thumbs button{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
