/* Matterport feature image lightbox, self-contained */
.tour-card-media .cm-lightbox-trigger{
  display:block;width:100%;margin:0;padding:0;border:0;
  border-radius:inherit;overflow:hidden;background:transparent;
  cursor:zoom-in;text-align:inherit;line-height:0;
}
.tour-card-media .cm-lightbox-trigger img{
  display:block;width:100%;height:auto;
  transition:transform .22s ease;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .tour-card-media .cm-lightbox-trigger:hover img{transform:scale(1.035)}
}
.tour-card-media .cm-lightbox-trigger:focus-visible{outline:3px solid #139aa5;outline-offset:3px}
.cm-matterport-lightbox{
  box-sizing:border-box;width:max-content;max-width:calc(100vw - 42px);
  max-height:calc(100dvh - 42px);margin:auto;padding:0;border:0;
  border-radius:12px;background:transparent;color:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.4);overflow:visible;
}
.cm-matterport-lightbox::backdrop{background:rgba(3,15,24,.88);backdrop-filter:blur(5px)}
.cm-matterport-lightbox__image{
  display:block;max-width:calc(100vw - 42px);max-height:calc(100dvh - 42px);
  width:auto;height:auto;object-fit:contain;border-radius:10px;
  background:#091c25;
}
.cm-matterport-lightbox__close{
  position:absolute;top:-17px;right:-17px;z-index:2;
  display:grid;place-items:center;width:42px;height:42px;
  border:1px solid rgba(255,255,255,.35);border-radius:50%;
  background:#f8fbfc;color:#122b34;font:30px/1 Arial,sans-serif;
  cursor:pointer;box-shadow:0 4px 15px rgba(0,0,0,.3);
}
.cm-matterport-lightbox__close:hover{background:#e5f4f5}
.cm-matterport-lightbox__close:focus-visible{outline:3px solid #6ad6dc;outline-offset:3px}
@media(max-width:600px){
  .cm-matterport-lightbox{max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px)}
  .cm-matterport-lightbox__image{max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px)}
  .cm-matterport-lightbox__close{top:-18px;right:-8px;width:38px;height:38px}
}
