/* Duda scroll-reveal animations (data-anim-*) never fire in a static export,
   so animated content (e.g. the Gold Building leasing agent) stays stuck at
   visibility:hidden. Force every animated element to its revealed state. */
[data-anim-desktop],[data-anim-mobile],[data-anim-tablet],[data-anim],[class*="dmAnim"]{visibility:visible !important;opacity:1 !important;animation:none !important;transform:none !important;}

/* ==========================================================================
   Custom mobile responsiveness for the C.A. White Duda export.
   The Duda export ships only a DESKTOP layout (min-width ~768px) with a
   flex/nowrap photo gallery and its own (non-working) mobile menu. This file
   forces the layout to reflow, stacks the gallery + team cards, and provides
   a working hamburger menu.
   ========================================================================== */
@media (max-width:900px){
  html,body{overflow-x:hidden !important;max-width:100% !important;}
  .dmInner,.dmBody,.dmRespColsWrapper,.dmRespRow,[class*="dmRespRowWrapper"],[class*="u_0"]{width:100% !important;min-width:0 !important;max-width:100vw !important;left:0 !important;margin-left:0 !important;margin-right:0 !important;}
  .dmRespCol,[class*="dmRespCol"]{width:100% !important;max-width:100% !important;float:none !important;display:block !important;left:0 !important;margin-left:0 !important;margin-right:0 !important;}
  img{max-width:100% !important;height:auto !important;}
  /* Keep Duda's mobile logo visible; hide ONLY its broken toggle + drawer */
  .hamburger-header,.hamburger-header-container,.showOnMedium.hamburger-header-container{display:block !important;}
  .hamburger-header img{max-width:150px !important;height:auto !important;}
  .hamburger-drawer,[class*="layout-drawer-hamburger"]{display:none !important;}

  /* --- Property photo gallery: stack the cards (it is flex/nowrap by default) --- */
  .photogallery-row,[class*="photogallery-row"],.layout-container.square{display:block !important;}
  .photogallery-column,[class*="photogallery-column"]{width:100% !important;max-width:100% !important;display:block !important;float:none !important;margin:0 0 26px !important;left:0 !important;}
  .photogallery-column .image-container,.photogallery-column [class*="image-container"]{position:relative !important;width:100% !important;height:0 !important;min-height:0 !important;padding-bottom:62% !important;background-size:cover !important;background-position:center !important;overflow:hidden !important;}
  .photogallery-column .image-container a,.photogallery-column [class*="image-container"] a{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;background-size:cover !important;background-position:center !important;}
  .photogallery-column .image-container img{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;}
  [class*="caption-button"],.dmButtonLinkId{white-space:normal !important;max-width:100% !important;}
}
/* --- Custom hamburger menu (replaces Duda's broken one) ------------------- */
#caw-mbtn{display:none;}
@media (max-width:900px){#caw-mbtn{display:flex !important;}}
#caw-mbtn{position:fixed;top:14px;right:14px;z-index:99998;width:46px;height:46px;background:#5197ca;border:0;border-radius:4px;cursor:pointer;flex-direction:column;gap:5px;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.2);}
#caw-mbtn span{width:22px;height:2px;background:#fff;display:block;}
#caw-mnav{position:fixed;inset:0;z-index:99999;background:rgba(15,20,25,.97);display:none;flex-direction:column;padding:80px 28px 40px;gap:2px;overflow-y:auto;}
#caw-mnav.open{display:flex;}
#caw-mnav a{color:#fff;font-family:Manrope,'Helvetica Neue',Arial,sans-serif;font-size:20px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12);text-decoration:none;}
#caw-mnav a:active{color:#8cc2e8;}
#caw-mnav .sub{font-size:16px;padding-left:16px;color:#cfe0ee;}
#caw-mclose{position:absolute;top:18px;right:20px;color:#fff;font-size:34px;background:none;border:0;cursor:pointer;line-height:1;}

/* --- Newer Duda "flex-element" layout (used by the footer + some sections):
       constrain to the viewport so it reflows on phones --------------------- */
@media (max-width:900px){
  .flex-element.section,.flex-element.grid,.flex-element.group,.flex-element{width:100% !important;max-width:100vw !important;min-width:0 !important;}

  /* Footer logo: cap size (global img:100% rule was blowing it up) */
  .dmFooterResp .imageWidget img{max-width:170px !important;height:auto !important;width:auto !important;}
  /* Footer accreditation badges: keep them a small centered wrapping row */
  .dmFooterResp .dmPhotoGallery,.dmFooterResp .layout-container.vertical,.dmFooterResp .photogallery-row{width:100% !important;max-width:100vw !important;min-width:0 !important;left:0 !important;}
  .dmFooterResp .photogallery-row,.dmFooterResp .layout-container.vertical{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;align-items:center !important;gap:14px !important;}
  .dmFooterResp .photogallery-column{width:auto !important;max-width:64px !important;flex:0 0 auto !important;margin:0 !important;}
  .dmFooterResp .photogallery-column .image-container,.dmFooterResp .photogallery-column [class*="image-container"]{width:58px !important;height:58px !important;max-width:58px !important;max-height:58px !important;padding-bottom:0 !important;min-height:0 !important;}
  .dmFooterResp .photogallery-column img{max-width:58px !important;max-height:58px !important;width:auto !important;height:auto !important;object-fit:contain !important;}
}
