/* CMS-driven room gallery, styled to match the exported Framer room template. */
.cms-room-gallery { width:100%; display:flex; flex-direction:column; gap:20px; font-family:"Manrope","Manrope Placeholder",sans-serif; color:#f4f3ef; }
.cms-room-gallery__toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:0 0 14px; border-bottom:1px solid rgba(230,224,211,.2); color:#a1a39d; font-size:11px; letter-spacing:.12em; text-transform:uppercase; }
.cms-room-gallery__featured { width:100%; position:relative; padding:0; border:1px solid rgba(230,224,211,.18); background:#141512; cursor:zoom-in; overflow:hidden; text-align:left; }
.cms-room-gallery__featured img { display:block; width:100%; height:auto; max-height:72vh; min-height:240px; object-fit:contain; background:#101110; }
.cms-room-gallery__featured-label { position:absolute; left:18px; bottom:18px; padding:9px 12px; background:rgba(16,17,16,.82); color:#f4f3ef; font:500 10px/1.4 "Manrope","Manrope Placeholder",sans-serif; letter-spacing:.11em; text-transform:uppercase; }
.cms-room-gallery__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cms-room-gallery__item { position:relative; padding:0; border:1px solid rgba(230,224,211,.17); background:#171815; overflow:hidden; cursor:zoom-in; min-width:0; text-align:left; }
.cms-room-gallery__item img { display:block; width:100%; height:100%; aspect-ratio:1.42/1; object-fit:cover; transition:transform .35s ease; }
.cms-room-gallery__item:hover img { transform:scale(1.025); }
.cms-room-gallery__item span { position:absolute; right:8px; bottom:8px; padding:5px 7px; background:rgba(16,17,16,.8); color:#f4f3ef; font:500 10px/1.2 "Manrope","Manrope Placeholder",sans-serif; letter-spacing:.06em; }
.cms-room-gallery__section-title { display:flex; align-items:center; gap:14px; margin:28px 0 -4px; color:#f4f3ef; font:500 18px/1.3 "Manrope","Manrope Placeholder",sans-serif; letter-spacing:-.02em; }
.cms-room-gallery__section-title span { color:#a1a39d; font:500 10px/1.4 "Manrope","Manrope Placeholder",sans-serif; letter-spacing:.14em; }
.cms-room-gallery__empty { border:1px dashed rgba(230,224,211,.24); color:#a1a39d; font:400 13px/1.7 "Manrope","Manrope Placeholder",sans-serif; padding:22px; }
.cms-room-lightbox { position:fixed; z-index:2147483000; inset:0; padding:50px 72px; display:none; align-items:center; justify-content:center; background:rgba(6,7,6,.97); }
.cms-room-lightbox.is-open { display:flex; }
.cms-room-lightbox__image { max-width:100%; max-height:calc(100vh - 100px); object-fit:contain; display:block; }
.cms-room-lightbox__btn { position:absolute; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(18,19,18,.8); color:#fff; cursor:pointer; width:44px; height:44px; font:300 30px/1 "Manrope",sans-serif; }
.cms-room-lightbox__close { top:20px; right:22px; font-size:28px; }
.cms-room-lightbox__prev { left:18px; top:50%; transform:translateY(-50%); }
.cms-room-lightbox__next { right:18px; top:50%; transform:translateY(-50%); }
.cms-room-lightbox__counter { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); color:#c9c5bb; font:500 11px/1.4 "Manrope",sans-serif; letter-spacing:.1em; }
.cms-room-error { padding:24px; border:1px solid rgba(255,255,255,.2); color:#eee; font:400 14px/1.7 "Manrope",sans-serif; }
@media (max-width:809px) { .cms-room-gallery__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .cms-room-gallery__featured img { min-height:200px; } .cms-room-lightbox { padding:52px 14px; } .cms-room-lightbox__prev { left:8px; } .cms-room-lightbox__next { right:8px; } }
@media (max-width:480px) { .cms-room-gallery__grid { grid-template-columns:1fr; } .cms-room-gallery__item img { aspect-ratio:1.5/1; } }


/* Homepage gallery of the whole property, placed below the four room cards in the final floor section. */
.cms-home-property-gallery{margin:54px 0 0;padding:28px 0 0;border-top:1px solid rgba(230,224,211,.2)}
.cms-home-property-gallery__title{margin:0 0 20px;color:#f4f3ef;font:400 clamp(22px,2vw,28px)/1.25 "Manrope","Manrope Placeholder",sans-serif;letter-spacing:-.025em}
.cms-home-property-gallery .cms-room-gallery__toolbar{margin-bottom:0}
@media(max-width:809px){.cms-home-property-gallery{margin-top:38px;padding-top:22px}}


/* Homepage: a single clickable cover card; the full gallery opens on its detail page. */
.cms-home-property-gallery{margin:54px 0 0;padding:28px 0 0;border-top:1px solid rgba(230,224,211,.2)}
.cms-home-property-gallery__title{margin:0 0 20px;color:#f4f3ef;font:400 clamp(22px,2vw,28px)/1.25 "Manrope","Manrope Placeholder",sans-serif;letter-spacing:-.025em}
.cms-home-property-gallery__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%}
.cms-home-property-gallery__cards .framer-g64o0s-container{min-width:0}
.cms-home-property-gallery__cards .framer-2m9q60{position:relative;overflow:hidden;aspect-ratio:1.56/1;background:#252525}
.cms-home-property-gallery__cards .framer-2m9q60 img{transition:transform .5s ease}
.cms-home-property-gallery__cards a:hover .framer-2m9q60 img{transform:scale(1.025)}
@media(max-width:809px){.cms-home-property-gallery{margin-top:38px;padding-top:22px}.cms-home-property-gallery__cards{grid-template-columns:1fr;gap:16px}}


/* Keep the homepage property-gallery tile caption horizontal at every breakpoint. */
.cms-home-property-gallery__cards .framer-g64o0s-container{display:block!important;width:100%!important;min-width:0!important}
.cms-home-property-gallery__cards a.framer-TpXiW{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.cms-home-property-gallery__cards .framer-i9qj0.cms-home-property-gallery__caption{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;justify-content:initial!important;gap:4px 14px!important;width:100%!important;min-width:0!important;height:auto!important;box-sizing:border-box!important;padding:16px!important;overflow:visible!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__name{grid-column:1!important;grid-row:1!important;display:block!important;flex:none!important;width:auto!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:visible!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__name p{display:block!important;width:auto!important;max-width:100%!important;margin:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__count{grid-column:1!important;grid-row:2!important;display:block!important;width:auto!important;min-width:0!important;white-space:nowrap!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__count p{margin:0!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__arrow{grid-column:2!important;grid-row:1 / span 2!important;align-self:center!important;width:24px!important;height:24px!important;flex:none!important}


/* Dedicated, stable caption layout for the homepage house-gallery card. */
.cms-home-property-gallery__cards .framer-g64o0s-container{display:block!important;width:100%!important;min-width:0!important}
.cms-home-property-gallery__cards a.framer-TpXiW{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__caption{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;width:100%!important;min-width:0!important;height:auto!important;padding:16px!important;box-sizing:border-box!important;writing-mode:horizontal-tb!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__name-wrap{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;width:auto!important;min-width:0!important;max-width:100%!important;position:relative!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__name{display:block!important;flex:none!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;color:#f3f0e8!important;font:400 18px/1.3 "Manrope","Manrope Placeholder",sans-serif!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__count-wrap{display:block!important;flex:none!important;width:auto!important;min-width:0!important;max-width:100%!important;position:relative!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__count{display:block!important;width:auto!important;margin:0!important;color:#aaa69d!important;font:400 11px/1.4 "Manrope","Manrope Placeholder",sans-serif!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;writing-mode:horizontal-tb!important}
.cms-home-property-gallery__cards .cms-home-property-gallery__arrow{display:block!important;flex:0 0 24px!important;width:24px!important;height:24px!important;margin-left:auto!important;color:#e0d8c8!important;overflow:visible!important}


/* Stable image slots: reserve gallery space before the image is decoded. */
.cms-room-gallery__featured{
  display:block;
  aspect-ratio:16 / 9;
  min-height:240px;
  max-height:72vh;
  box-sizing:border-box;
}
.cms-room-gallery__featured img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:contain;
}
.cms-room-gallery__item{
  aspect-ratio:1.42 / 1;
}
.cms-room-gallery__item img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
}
@media(max-width:809px){
  .cms-room-gallery__featured{min-height:200px}
}
@media(max-width:480px){
  .cms-room-gallery__item{aspect-ratio:1.5 / 1}
}
