/* Atlantic Arts Artwork: the logo's navy and gold (brand palette, 2026-10-25) */
.aa-grid, .aa-app, .aa-piece {
	--aa-ink: #0B0212; --aa-muted: #54595F; --aa-navy: #032741; --aa-gold: #D4A02A;
	--aa-paper: #EDEDE9; --aa-line: #54595F; --aa-error: #9B2C2C;
}

/* grid on artist pages */
.aa-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 600px) { .aa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.aa-grid li { margin: 0; }
.aa-grid a { display: block; color: var(--aa-ink); text-decoration: none; }
.aa-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--aa-paper); }
.aa-grid .aa-t { display: block; margin-top: 8px; font-weight: 500; }
.aa-grid .aa-f { display: block; color: var(--aa-muted); font-size: .875em; }
.aa-grid a:hover .aa-t, .aa-grid a:focus-visible .aa-t { text-decoration: underline; }
.aa-grid a:focus-visible, .aa-app a:focus-visible, .aa-piece a:focus-visible,
.aa-app button:focus-visible, .aa-app input:focus-visible, .aa-app select:focus-visible { outline: 3px solid var(--aa-navy); outline-offset: 2px; }
.aa-empty { color: var(--aa-muted); }

/* single artwork page */
.aa-piece { display: grid; gap: 32px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; margin-bottom: 32px; }
@media (max-width: 760px) { .aa-piece { grid-template-columns: 1fr; gap: 20px; } }
.aa-piece .aa-img { margin: 0; background: var(--aa-paper); }
.aa-piece .aa-img img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.aa-piece dl { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.aa-piece dt { color: var(--aa-muted); }
.aa-piece dd { margin: 0; }
.aa-piece a { color: var(--aa-navy); }

/* buttons (site style: square, uppercase, bold) */
.aa-btn, .aa-app button { display: inline-block; background: var(--aa-navy); color: #fff !important; border: 0; border-radius: 0; padding: 14px 22px;
	font: inherit; font-family: "Gravesend", "Trebuchet MS", sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer; min-height: 48px; }
.aa-btn:hover, .aa-btn:focus-visible, .aa-app button:hover, .aa-app button:focus-visible { background: var(--aa-gold); color: var(--aa-navy) !important; }

/* the phone page */
.aa-app { max-width: 560px; margin: 0 auto; color: var(--aa-ink); }
.aa-app .aa-big { display: block; text-align: center; font-size: 1.15em; padding: 18px; }
.aa-msg { background: #fff; border-left: 4px solid var(--aa-navy); padding: 12px 16px; }
.aa-form label, .aa-filter label { display: block; margin: 0 0 16px; font-weight: 500; }
.aa-form input[type=text], .aa-form select, .aa-filter select, .aa-form input[type=file], .aa-form textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px; min-height: 48px;
	font: inherit; font-size: 16px; /* 16px stops iOS zooming into fields */ background: #fff; color: var(--aa-ink); border: 1px solid var(--aa-line); border-radius: 0; }
.aa-photo input[type=file] { padding: 18px 12px; background: var(--aa-paper); }
.aa-status { border: 1px solid var(--aa-line); padding: 8px 12px 0; margin: 0 0 20px; }
.aa-status label { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 10px 0; font-weight: 400; min-height: 44px; }
.aa-status input { width: 22px; height: 22px; }
.aa-cur img { max-width: 160px; height: auto; }
.aa-list { list-style: none; margin: 16px 0 0; padding: 0; }
.aa-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #d5d5cf; margin: 0; }
.aa-list li > img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.aa-list form { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aa-list button { padding: 8px 12px; min-height: 44px; font-size: .8em; }
.aa-list a { color: var(--aa-navy); padding: 10px 4px; }
.aa-list .is-hidden { opacity: .6; }
.aa-chip { font-size: .85em; color: var(--aa-muted); }

/* lightbox on the single artwork page */
.aa-zoom { display: block; position: relative; cursor: zoom-in; }
.aa-zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 2, 18, .75); color: #fff; font-size: .8em; padding: 4px 10px; }
.aa-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 2, 18, .94); color: #fff; overflow: hidden; }
.aa-lightbox::backdrop { background: rgba(11, 2, 18, .94); }
.aa-lb-stage { position: absolute; inset: 56px 0 40px; display: flex; align-items: center; justify-content: center; overflow: auto; overscroll-behavior: contain; }
.aa-lb-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; } /* small photos scale up to fill */
.aa-lb-stage.can-zoom img { cursor: zoom-in; }
.aa-lightbox:not(.can-zoom) .aa-lb-zoomtip { display: none; }
.aa-lb-stage.is-actual { display: block; cursor: grab; }
.aa-lb-stage.is-actual img { width: auto; height: auto; max-width: none; max-height: none; cursor: zoom-out; }
.aa-lb-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; font-size: 32px; line-height: 1; background: transparent; color: #fff; border: 0; cursor: pointer; }
.aa-lb-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.aa-lb-hint { position: absolute; bottom: 8px; left: 0; right: 0; margin: 0; text-align: center; font-size: .85em; color: #d5d5cf; }

/* prev / next through the artist's pieces */
.aa-step { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.aa-step a, .aa-step span[aria-hidden] { padding: 10px 0; }
.aa-step span[aria-hidden] { color: #9a9a95; }
.aa-step-n { color: var(--aa-muted); font-size: .875em; }
.aa-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 88px; font-size: 56px; line-height: 1;
	background: rgba(11, 2, 18, .5); color: #fff; border: 0; cursor: pointer; z-index: 2; }
.aa-lb-nav:hover { background: rgba(11, 2, 18, .8); }
.aa-lb-nav:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.aa-lb-prev { left: 0; }
.aa-lb-next { right: 0; }
.aa-lb-stage.is-actual ~ .aa-lb-nav { display: none; }
@media (hover: none) { .aa-lightbox .aa-lb-steptip { display: none; } } /* phones swipe; no arrow keys */

/* artist page: an empty catalog section disappears together with its template heading */
.elementor-widget-heading:has(+ .elementor-widget-text-editor .aa-hide-empty),
.elementor-widget-text-editor:has(.aa-hide-empty) { display: none; }

/* description: on the piece page and in the phone form */
.aa-piece .aa-desc { margin: 0 0 24px; }
.aa-piece .aa-desc p { margin: 0 0 .8em; }
.aa-form textarea { resize: vertical; line-height: 1.5; }
.aa-opt { font-weight: 400; color: var(--aa-muted); }

/* "Show all N pieces" under a long artist grid */
.aa-more { margin: 24px 0 8px; text-align: center; }
.aa-more .aa-btn[aria-busy=true] { opacity: .7; cursor: progress; }
