/* Address Quickly Customer Experience Centers v0.3.8
 * Owner-directed Home + Location gallery alignment correction.
 * Dedicated filename intentionally bypasses stale shared-style caching.
 */

.aqc-location-media{min-width:0;}
.aqc-location-photo-board{width:100%;margin:0;}
.aqc-location-photo{margin:0;position:relative;overflow:hidden;border-radius:16px;border:1px solid rgba(11,31,58,.10);background:#dfe8ea;box-shadow:0 10px 24px rgba(11,31,58,.08);min-width:0;}
.aqc-location-photo img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;display:block!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
.aqc-location-photo-main img{object-position:center center!important;}
.aqc-location-photo-door img{object-position:center top!important;}
.aqc-location-photo-interior img{object-position:center center!important;}
.aqc-location-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,31,58,0) 48%,rgba(11,31,58,.82) 100%);pointer-events:none;}
.aqc-location-photo figcaption{position:absolute!important;z-index:2;left:14px;right:14px;bottom:13px;margin:0!important;color:#fff!important;display:flex!important;flex-direction:column;gap:2px;text-shadow:0 1px 2px rgba(0,0,0,.30);}
.aqc-location-photo figcaption span{font:800 8px/1.2 Inter,system-ui,sans-serif!important;letter-spacing:.09em;text-transform:uppercase;color:#EAF7F5!important;}
.aqc-location-photo figcaption b{font:800 15px/1.18 Manrope,Inter,sans-serif!important;color:#fff!important;}

/*
 * HOME DESKTOP
 * Owner target: the gallery begins level with the H2 "A real place behind the
 * portal" and ends level with the bottom of the "Mail handled locally" card.
 * The approved mosaic relationship stays unchanged: parking/exterior large,
 * entrance and interior stacked at right.
 */
@media (min-width:981px){
  .aqc-home .location-grid.has-location-media{align-items:start;}
  .aqc-home .aqc-location-media--home{align-self:start;margin-top:47px;}
  .aqc-home .aqc-location-media--home .aqc-location-photo-board{
    display:grid;
    grid-template-columns:1.28fr .72fr;
    grid-template-rows:210px 210px;
    gap:10px;
    height:430px;
    min-height:430px;
  }
  .aqc-home .aqc-location-media--home .aqc-location-photo-main{grid-row:1/3;}
}

/*
 * LOCATION DESKTOP
 * Match the three photo cards to the three-column information grid directly
 * above: same available width, same 18px gutters, and card-like height.
 */
@media (min-width:851px){
  /* Match the three remaining Location information cards to the 204px photo cards below. */
  .aqc-center[data-aq-center="location"] .aqc-section .aqc-grid>.aqc-card{height:204px;min-height:204px;}

  .aqc-center[data-aq-center="location"] .aqc-location-media--page{
    width:100%;
    max-width:none;
    margin:18px 0 0;
  }
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo-board{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
  }
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo{
    height:204px;
  }
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo-main{grid-row:auto;}
}

/* Home tablet: once copy and photos stack, remove desktop alignment offset. */
@media (min-width:681px) and (max-width:980px){
  .aqc-home .aqc-location-media--home{max-width:760px;margin:24px auto 0;}
  .aqc-home .aqc-location-media--home .aqc-location-photo-board{
    display:grid;
    grid-template-columns:1.25fr .75fr;
    grid-template-rows:180px 180px;
    gap:10px;
    height:370px;
    min-height:370px;
  }
  .aqc-home .aqc-location-media--home .aqc-location-photo-main{grid-row:1/3;}
}

/* Location tablet follows the parent card grid's two-column breakpoint. */
@media (min-width:601px) and (max-width:850px){
  .aqc-center[data-aq-center="location"] .aqc-location-media--page{width:100%;max-width:none;margin:18px 0 0;}
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo-board{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo{height:205px;}
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo:last-child{grid-column:1/-1;width:calc((100% - 18px)/2);justify-self:center;}
}

@media (max-width:680px){
  .aqc-home .aqc-location-media--home{margin:22px 0 0;}
  .aqc-home .aqc-location-media--home .aqc-location-photo-board,
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo-board{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:none;
    gap:10px;
    height:auto;
    min-height:0;
  }
  .aqc-home .aqc-location-media--home .aqc-location-photo,
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo{
    height:180px;
    grid-row:auto;
    grid-column:auto;
    width:100%;
  }
  .aqc-home .aqc-location-media--home .aqc-location-photo-door,
  .aqc-center[data-aq-center="location"] .aqc-location-media--page .aqc-location-photo-door{height:210px;}
  .aqc-center[data-aq-center="location"] .aqc-location-media--page{margin-top:18px;}
  .aqc-location-photo figcaption b{font-size:14px!important;}
}
