/* AstroGuilds V8.20: menu, footer and legal pages exactly share the 1054px inner grid.
   The original .container has max-width 1110px and 28px padding on both sides.
   The floating feature cards are staggered independently of the text area. */
:root{--ag-content-width:1054px;--ag-content-gutter:28px}

.site-header{
  width:min(var(--ag-content-width),calc(100% - 2*var(--ag-content-gutter)))!important;
  max-width:var(--ag-content-width)!important;
  box-sizing:border-box!important;
}
.site-header > .nav-shell{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding-inline:18px!important;display:flex!important;
  align-items:center!important;justify-content:space-between!important;gap:12px!important;
}
.site-header .desktop-nav{
  display:flex;align-items:center;gap:clamp(10px,1.4vw,22px)!important;
  margin-left:auto!important;white-space:nowrap;flex-shrink:1;
}
.site-header .desktop-nav>a{white-space:nowrap}
.site-header .nav-cta{margin-left:0!important;flex-shrink:0}
.site-header .language-control{flex-shrink:0}

.footer > .footer-inner,.legal-main > .legal-container{
  box-sizing:border-box!important;
  width:min(var(--ag-content-width),calc(100% - 2*var(--ag-content-gutter)))!important;
  max-width:var(--ag-content-width)!important;margin-inline:auto!important;
  padding-inline:0!important;
}
.footer > .footer-inner{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:clamp(8px,1vw,16px)!important;
}
.footer .ag-footer-copyright{
  font-size:clamp(10px,.85vw,12px)!important;white-space:nowrap!important;
  min-width:0;margin:0!important;
}
.footer .footer-links{
  display:flex!important;align-items:center!important;
  gap:clamp(7px,.8vw,14px)!important;margin-left:0!important;width:auto!important;
}
.footer .footer-links>*{font-size:clamp(10px,.85vw,12px)!important;white-space:nowrap!important}
.legal-main > .legal-container .legal-content{max-width:100%!important}

/* Keep the heading and features in distinct grid columns. Within the right
   column, each card gets a different X/Y position (no vertical stack). */
@media(min-width:1150px){
  .photo-opening .photo-opening-inner{
    display:grid!important;
    width:min(var(--ag-content-width),calc(100% - 2*var(--ag-content-gutter)))!important;
    max-width:var(--ag-content-width)!important;box-sizing:border-box!important;
    margin-inline:auto!important;padding-inline:0!important;
    grid-template-columns:minmax(0,1fr) 335px!important;
    column-gap:clamp(24px,3vw,45px)!important;
    align-items:center!important;min-height:485px!important;
  }
  .photo-opening .photo-opening-copy{
    position:relative!important;grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:none!important;z-index:2!important;
  }
  .photo-opening .photo-opening-copy h1{
    width:100%!important;max-width:100%!important;
    font-size:clamp(47px,4.5vw,72px)!important;
    hyphens:auto!important;overflow-wrap:break-word!important;
  }
  .photo-opening .ag-photo-features{
    grid-column:2!important;grid-row:1!important;
    position:relative!important;display:block!important;
    width:100%!important;min-width:0!important;height:440px!important;
    max-width:100%!important;margin:0!important;padding:0!important;
  }
  .photo-opening .ag-photo-features .photo-float{
    display:flex!important;position:absolute!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    transform:none!important;margin:0!important;
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
    padding:14px 15px!important;z-index:1!important;
  }
  .photo-opening .ag-photo-features .photo-float-one{
    left:93px!important;top:8px!important;width:242px!important;
  }
  .photo-opening .ag-photo-features .photo-float-three{
    left:0!important;top:168px!important;width:255px!important;
  }
  .photo-opening .ag-photo-features .photo-float-two{
    left:67px!important;top:316px!important;width:268px!important;
  }
}
/* Shorter desktops / tablets: keep all cards below text and deliberately offset,
   instead of overlapping a translated heading. */
@media(min-width:700px) and (max-width:1149px){
  .photo-opening{padding:125px 0 62px!important}
  .photo-opening .photo-opening-inner{
    width:calc(100% - 56px)!important;max-width:var(--ag-content-width)!important;
    margin-inline:auto!important;padding:0!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:27px!important;min-height:0!important;
  }
  .photo-opening .photo-opening-copy{width:100%!important;max-width:100%!important}
  .photo-opening .photo-opening-copy h1{font-size:clamp(46px,6.5vw,68px)!important;max-width:100%!important}
  .photo-opening .ag-photo-features{
    display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;
    align-items:flex-start!important;position:relative!important;
    width:100%!important;max-width:100%!important;gap:20px!important;
    min-height:150px!important;
  }
  .photo-opening .ag-photo-features .photo-float{
    position:relative!important;top:auto!important;right:auto!important;
    bottom:auto!important;left:auto!important;transform:none!important;
    width:min(30%,255px)!important;min-width:0!important;max-width:100%!important;
    padding:12px!important;margin:0!important;
  }
  .photo-opening .ag-photo-features .photo-float-one{margin-top:0!important}
  .photo-opening .ag-photo-features .photo-float-three{margin-top:48px!important}
  .photo-opening .ag-photo-features .photo-float-two{margin-top:18px!important}
  .photo-opening .ag-photo-features .photo-float strong{font-size:12px!important}
  .photo-opening .ag-photo-features .photo-float small{font-size:10px!important}
}
@media(max-width:1099px){
  .site-header .desktop-nav{display:none!important}
  .site-header .mobile-toggle{display:flex!important}
  .site-header .nav-cta{margin-left:auto!important}
  .footer > .footer-inner{flex-wrap:wrap!important;gap:14px!important}
}
@media(max-width:699px){
  :root{--ag-content-gutter:19px}
  .site-header > .nav-shell{padding-inline:12px!important;gap:6px!important}
  .site-header .brand-wordmark{font-size:15px!important}
  .site-header .nav-cta{margin-left:auto!important}
  .footer > .footer-inner{align-items:flex-start!important}
  .footer .ag-footer-copyright{white-space:normal!important}
  .footer .footer-links{flex-wrap:wrap!important;gap:12px!important}
  .photo-opening{padding:132px 0 52px!important;min-height:0!important}
  .photo-opening .photo-opening-inner{
    width:calc(100% - 38px)!important;max-width:none!important;
    box-sizing:border-box!important;padding:0!important;margin-inline:auto!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:26px!important;min-height:0!important;
  }
  .photo-opening .photo-opening-copy{width:100%!important;max-width:100%!important}
  .photo-opening .photo-opening-copy h1{font-size:clamp(40px,10vw,56px)!important;max-width:100%!important}
  .photo-opening .ag-photo-features{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:12px!important;position:relative!important;width:100%!important;
  }
  .photo-opening .ag-photo-features .photo-float{
    position:relative!important;top:auto!important;right:auto!important;
    bottom:auto!important;left:auto!important;transform:none!important;
    display:flex!important;min-width:0!important;max-width:100%!important;
    width:min(88%,290px)!important;padding:12px!important;margin:0!important;
  }
  .photo-opening .ag-photo-features .photo-float-one{align-self:flex-end!important}
  .photo-opening .ag-photo-features .photo-float-three{align-self:flex-start!important}
  .photo-opening .ag-photo-features .photo-float-two{align-self:flex-end!important;width:min(82%,270px)!important}
}
.ag-legal-divider{margin:55px 0;border:0;border-top:1px solid #ddd}
.ag-legal-subsection{scroll-margin-top:130px}
