/* The Water Atlas art, framed and given its own room: under the map on the Atlas page, and on the home page */
.atlas-gallery{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(2rem,6vw,6rem);align-items:center;padding:clamp(3.5rem,8vw,7rem) 7vw;background:radial-gradient(circle at 22% 30%,#1f5a58 0,transparent 55%),linear-gradient(150deg,#0e3b3e,#062a31 60%,#051f27);color:#f4ead9;overflow:hidden}
.atlas-gallery:before{content:"";position:absolute;inset:14px;border:1px solid #e9b48a33;pointer-events:none}
.ag-frame,.home-atlas-art{position:relative;margin:0;justify-self:center;width:min(100%,560px);padding:clamp(14px,2.2vw,26px);background:#f7efdf;border:1px solid #c9a27a;box-shadow:0 0 0 6px #0b2f33,0 0 0 7px #e9b48a66,0 40px 80px #00131799}
.ag-frame:after,.home-atlas-art:after{content:"";position:absolute;inset:clamp(8px,1.2vw,14px);border:1px solid #b5703f55;pointer-events:none}
.ag-zoom,.home-atlas-art a{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;line-height:0}
.ag-zoom img,.home-atlas-art img{display:block;width:100%;height:auto;aspect-ratio:1300/1625}
.ag-zoom:focus-visible{outline:3px solid #e9b48a;outline-offset:4px}
.ag-copy{max-width:34rem}
.ag-copy .eyebrow{color:#e9b48a}
.ag-copy h2{font:400 clamp(2.8rem,5vw,5rem)/.95 var(--display-font,'Cormorant Garamond',Georgia,serif);margin:.8rem 0 1.2rem;color:#fff4e4}
.ag-copy h2 em{color:#e9b48a}
.ag-copy p{font-size:1.02rem;line-height:1.75;color:#dfe6df}
.ag-copy .ag-lede{font:italic 400 clamp(1.4rem,2.2vw,1.9rem)/1.3 var(--display-font,'Cormorant Garamond',Georgia,serif);color:#fff4e4;margin:0 0 .6rem}
.ag-zoom-button{margin:1rem 0 1.6rem;min-height:48px}
.atlas-gallery .atlas-take-home{margin:0;max-width:none;padding:1.4rem 0 0;border-top:1px solid #e9b48a33}
.atlas-gallery .atlas-take-home p{margin:0 0 .9rem;color:#fff4e4}
.atlas-gallery .atlas-take-home .ath-buttons{display:flex;flex-wrap:wrap;gap:.7rem}
.atlas-gallery .ath-buttons .button{min-height:48px}
.atlas-gallery .atlas-take-home small{display:block;margin-top:.8rem;color:#c9d4cc;font-size:.8rem;line-height:1.5}
/* The viewer */
.ag-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#051f27f2;color:#f4ead9}
.ag-viewer::backdrop{background:#000a}
.ag-scroll{position:absolute;inset:0;overflow:auto;display:grid;place-items:center;overscroll-behavior:contain}
.ag-scroll img{display:block;width:auto;max-width:94vw;max-height:88dvh;height:auto;cursor:zoom-in}
.ag-viewer.is-zoomed .ag-scroll{place-items:start}
.ag-viewer.is-zoomed .ag-scroll img{max-width:none;max-height:none;width:min(2600px,260vw);cursor:zoom-out}
.ag-close{position:fixed;top:14px;right:16px;z-index:3;width:48px;height:48px;border-radius:50%;border:1px solid #e9b48a88;background:#0e3b3ee6;color:#fff4e4;font-size:1.8rem;line-height:1;cursor:pointer}
.ag-hint{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:3;margin:0;padding:.45rem .9rem;border-radius:999px;background:#0e3b3ee6;font-size:.8rem;color:#dfe6df;white-space:nowrap}
/* The about section no longer holds the art, so it reads as one column */
.coastal.atlas-page .atlas-about.atlas-grand-heading.atlas-invitation{grid-template-columns:1fr}
.coastal.atlas-page .atlas-about .atlas-title-frame{max-width:860px}
/* Home page: the art takes the place of the little pin map */
.home-atlas-art{width:min(100%,460px)}
.home-atlas-art figcaption{position:relative;z-index:2;margin:.9rem .3rem 0;font-size:.85rem;line-height:1.5;color:#264d43;text-align:center}
.home-atlas-art figcaption a{display:inline;width:auto;line-height:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:900px){
 .atlas-gallery{grid-template-columns:1fr;padding:3.5rem 1.3rem 4rem;text-align:left}
 .ag-frame{width:min(100%,460px)}
}
@media(max-width:600px){.ag-hint{white-space:normal;width:max-content;max-width:86vw;text-align:center}}
.coastal .home-atlas .home-atlas-layout{align-items:center;padding-block:clamp(1.8rem,3.5vw,3rem)}
.coastal .home-atlas .home-atlas-art{align-self:center;justify-self:center}
@media(max-width:900px){.coastal .home-atlas .home-atlas-art{width:calc(100% - 3rem);max-width:440px;margin:0 auto}}
