/* NORZAR Real Estate gallery v211
   Stable single-file photo delivery + compact editorial galleries.
   Loaded last on the two property detail pages. */

/* Hero image: predictable dimensions and no giant blank state. */
.estate-detail .property-gallery{
  overflow:hidden!important;
  background:#e8ebe4!important;
  border-radius:2px!important;
}
.estate-detail .property-gallery img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}

/* Cascais presentation: two restrained architectural cards, not poster-sized. */
body[data-page="cascais-development-plot.html"] .concept-inner{
  max-width:1120px!important;
}
body[data-page="cascais-development-plot.html"] .concept-gallery{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
body[data-page="cascais-development-plot.html"] .concept-figure{
  margin:0!important;
  min-width:0!important;
  overflow:hidden!important;
  border-radius:2px!important;
  background:#fff!important;
}
body[data-page="cascais-development-plot.html"] .concept-image-link{
  display:block!important;
  position:relative!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  min-height:0!important;
  overflow:hidden!important;
  background:#e8ebe4!important;
}
body[data-page="cascais-development-plot.html"] .concept-image-link img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
body[data-page="cascais-development-plot.html"] .concept-figure figcaption{
  padding:14px 16px 16px!important;
  min-height:92px!important;
}
body[data-page="cascais-development-plot.html"] .concept-figure figcaption strong{
  margin-bottom:4px!important;
}

/* Restaurant gallery: intentionally smaller and uniform. Portrait images are
   cropped only in the thumbnail; clicking still opens the complete photograph. */
body[data-page="setubal-restaurant-transfer.html"] .concept-inner{
  max-width:1240px!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery .restaurant-photo{
  margin:0!important;
  min-width:0!important;
  aspect-ratio:4/3!important;
  overflow:hidden!important;
  border:1px solid #d8ddd3!important;
  border-radius:2px!important;
  background:#e8ebe4!important;
  box-shadow:0 8px 22px rgba(23,59,52,.055)!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery .concept-image-link{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#e8ebe4!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  transition:transform .25s ease!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery .concept-image-link:hover img{
  transform:scale(1.025)!important;
}
body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery .concept-view{
  right:9px!important;
  bottom:9px!important;
  padding:6px 9px!important;
  font-size:.68rem!important;
  line-height:1!important;
  border-radius:999px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.12)!important;
}

@media (max-width:1100px){
  body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:820px){
  body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body[data-page="cascais-development-plot.html"] .concept-gallery{
    grid-template-columns:1fr!important;
  }
  body[data-page="cascais-development-plot.html"] .concept-figure figcaption{
    min-height:0!important;
  }
}
@media (max-width:520px){
  body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery{
    grid-template-columns:1fr!important;
  }
  body[data-page="setubal-restaurant-transfer.html"] .restaurant-full-gallery .restaurant-photo{
    aspect-ratio:4/3!important;
  }
}
