/* L1718: COMPACT UNDER-RAIL NAVIGATION. WCAG 2.2 AA 2.5.8:
   every dot is a full 24x24 CSS px target, arrow targets 32x32px.
   The tiny center circles are decorative only; keyboard focus remains visible. */
body.ama-site .ama-carousel-bottom-nav,
body.ama-site .ama-home-hero__controls.ama-carousel-bottom-nav,
body.ama-site .ama-brand-home-carousel>.ama-brand-home-controls.ama-carousel-bottom-nav,
body.ama-site .ama-history-balanced .ama-mortari-archive-controls.ama-carousel-bottom-nav,
body.ama-site .ama-photo-carousel-controls.ama-carousel-bottom-nav{
 display:flex!important;
 position:relative!important;
 inset:auto!important;
 left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
 transform:none!important;
 z-index:5!important;
 box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;
 height:34px!important;min-height:34px!important;
 margin:2px auto 0!important;padding:0!important;
 align-items:center!important;justify-content:center!important;
 gap:2px!important;
 background:transparent!important;
 border:0!important;
 border-radius:0!important;box-shadow:none!important;
 pointer-events:auto!important;overflow:visible!important;
}
body.ama-site .ama-carousel-bottom-nav>button,
body.ama-site .ama-home-hero__controls.ama-carousel-bottom-nav>button,
body.ama-site .ama-brand-home-carousel>.ama-brand-home-controls.ama-carousel-bottom-nav>button,
body.ama-site .ama-history-balanced .ama-mortari-archive-controls.ama-carousel-bottom-nav>.ama-mortari-carousel-arrow,
body.ama-site .ama-photo-carousel-controls.ama-carousel-bottom-nav>button,
body.ama-site .ama-carousel-quick-nav>.ama-home-card-nav{
 display:grid!important;place-items:center!important;
 position:relative!important;inset:auto!important;
 top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 transform:none!important;
 flex:0 0 32px!important;
 width:32px!important;min-width:32px!important;max-width:32px!important;
 height:32px!important;min-height:32px!important;max-height:32px!important;
 box-sizing:border-box!important;
 margin:0!important;padding:0!important;
 border:1px solid #294638!important;border-radius:7px!important;
 background:#294638!important;color:#fff!important;
 box-shadow:none!important;
 font:700 17px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
 cursor:pointer!important;touch-action:manipulation!important;
 pointer-events:auto!important;opacity:1!important;
}
body.ama-site .ama-carousel-bottom-nav>button:hover,
body.ama-site .ama-home-hero__controls.ama-carousel-bottom-nav>button:hover,
body.ama-site .ama-brand-home-carousel>.ama-brand-home-controls.ama-carousel-bottom-nav>button:hover,
body.ama-site .ama-history-balanced .ama-mortari-archive-controls.ama-carousel-bottom-nav>button:hover{
 background:#e5f0e9!important;color:#294638!important;
}
body.ama-site .ama-carousel-bottom-nav>button:focus-visible,
body.ama-site .ama-carousel-bottom-dots>button:focus-visible,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button:focus-visible{
 outline:3px solid #9a691f!important;outline-offset:2px!important;
}
body.ama-site .ama-carousel-bottom-nav>button:disabled{
 opacity:.38!important;cursor:default!important;
}
body.ama-site .ama-carousel-bottom-dots,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots{
 position:static!important;inset:auto!important;transform:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 1 auto!important;width:auto!important;max-width:calc(100% - 70px)!important;
 height:32px!important;min-height:32px!important;
 box-sizing:border-box!important;gap:0!important;
 margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;
 box-shadow:none!important;overflow:visible!important;
 pointer-events:auto!important;
}
body.ama-site .ama-carousel-bottom-dots>button,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button[aria-current="true"]{
 display:grid!important;place-items:center!important;
 position:relative!important;inset:auto!important;transform:none!important;
 flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;
 height:24px!important;min-height:24px!important;max-height:24px!important;
 box-sizing:border-box!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:50%!important;background:transparent!important;
 box-shadow:none!important;cursor:pointer!important;
}
body.ama-site .ama-carousel-bottom-dots>button[hidden],
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button[hidden]{display:none!important}
body.ama-site .ama-carousel-bottom-dots>button::before,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button::before{
 content:""!important;display:block!important;
 width:7px!important;height:7px!important;
 border-radius:50%!important;
 background:#788b7e!important;transform:none!important;
 box-shadow:0 0 0 1px rgba(33,73,52,.16)!important;
}
body.ama-site .ama-carousel-bottom-dots>button[aria-current="true"]::before,
body.ama-site .ama-home-hero__dots.ama-carousel-bottom-dots>button[aria-current="true"]::before{
 width:10px!important;height:10px!important;
 background:#23523b!important;box-shadow:0 0 0 1px #23523b!important;
}
/* Return any former overlay to its NORMAL block flow. Parent is no longer
   the photo viewport; no arrow can cover a photo or its zoom hot spot. */
body.ama-site .ama-home-hero>.ama-shell>.ama-home-hero__controls.ama-carousel-bottom-nav{
 transform:none!important;
}
body.ama-site .ama-brand-home-carousel>.ama-brand-home-controls.ama-carousel-bottom-nav{
 padding:0!important;
}
body.ama-site .ama-history-balanced .ama-mortari-archive-carousel{
 isolation:auto!important;
}
body.ama-site .ama-photo-rail-frame>.ama-photo-carousel-controls{
 pointer-events:none!important;
}
body.ama-site .ama-home-card-strip .ama-home-card-viewport{
 min-height:0;
}
body.ama-site .ama-home-card-strip .ama-carousel-quick-nav{
 width:100%!important;
}
/* L1814: keep compact quick-card bottom arrows stationary while pressed;
   overrides the obsolete floating-arrow centering feedback on the same element.
   Does not change button geometry at rest, focus, hover, autoplay or carousel logic. */
body.ama-site main#top.ama-main .ama-home-card-strip .ama-carousel-quick-nav>.ama-home-card-nav.is-ama-pressed{
 transform:none!important;
}
@media(min-width:1181px){
 body.ama-site .ama-home-card-strip .ama-carousel-quick-nav{
  display:none!important;
 }
}
/* Full-screen modal: keep the approved original image and zoom behaviour.
   Only the footer is a 36px nav bar BELOW the frame; close X remains on photo. */
body.ama-site dialog.ama-gallery-dialog[open]{
 display:flex!important;flex-direction:column!important;
 justify-content:flex-start!important;align-items:stretch!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-gallery-dialog-photo{
 flex:1 1 auto!important;
 width:100%!important;min-height:0!important;
 height:calc(100dvh - 36px)!important;max-height:calc(100dvh - 36px)!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav{
 flex:0 0 36px!important;height:36px!important;min-height:36px!important;
 margin:0!important;z-index:7!important;background:#0e1712!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav>.ama-gallery-dialog-arrow{
 display:grid!important;place-items:center!important;
 position:relative!important;inset:auto!important;transform:none!important;
 flex:0 0 32px!important;
 width:32px!important;min-width:32px!important;
 height:32px!important;min-height:32px!important;
 padding:0!important;border:1px solid #e4efe6!important;border-radius:7px!important;
 color:#fff!important;background:#294638!important;
 box-shadow:none!important;pointer-events:auto!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav>.ama-gallery-dialog-arrow:hover{
 background:#dcece2!important;color:#294638!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav .ama-carousel-bottom-dot::before{
 background:#9aaca0!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav .ama-carousel-bottom-dot[aria-current="true"]::before{
 background:#f4fff6!important;box-shadow:0 0 0 1px #f4fff6!important;
}
body.ama-site dialog.ama-gallery-dialog .ama-carousel-dialog-nav :is(button):focus-visible{
 outline:3px solid #f0d57a!important;outline-offset:2px!important;
}
