/*
 * Theme Name: ALONSO-Art
 * Theme URI: https://alonso-art.com/
 * Author: DESiGNiA Web
 * Author URI: https://designiawebspain.com/
 * Description: A modern Full Site Editing theme designed for Vicente Alonso — Fine Artist. Entirely Developed and Designed by DESiGNiA Web.
 * Version: 1.0.4
 * Requires at least: 6.4
 * Tested up to: 6.9
 * Requires PHP: 8.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: alonso-art
 * Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, block-styles
 */

/* ==========================================================================
   CSS Custom Properties — Dark/Light Mode System
   ========================================================================== */

:root,
[data-theme="dark"] {
    --aa-bg-primary: #0a0a0a;
    --aa-bg-secondary: #141414;
    --aa-bg-tertiary: #1e1e1e;
    --aa-bg-card: #181818;
    --aa-bg-overlay: rgba(0, 0, 0, 0.85);
    --aa-text-primary: #f0ede8;
    --aa-text-secondary: #a8a49e;
    --aa-text-muted: #6b6660;
    --aa-accent: #c9a96e;
    --aa-accent-hover: #dbbe82;
    --aa-accent-muted: rgba(201, 169, 110, 0.15);
    --aa-border: rgba(255, 255, 255, 0.21);
    --aa-border-hover: rgba(255, 255, 255, 0.32);
    --aa-details-border: rgba(255, 255, 255, 0.21);
    --aa-caption-text: #9a9690;
    --aa-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --aa-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --aa-header-bg: rgba(10, 10, 10, 0.92);
    --aa-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --aa-radius: 0;
    --aa-radius-lg: 6px;
    --aa-scrollbar-thumb: #333;
    --aa-scrollbar-track: #0a0a0a;
    --aa-toggle-bg: #2a2a2a;
    --aa-toggle-knob: #f0ede8;
    --aa-toggle-icon-color: #1a1815;
    --aa-toggle-icon-sun: 0;
    --aa-toggle-icon-moon: 1;
    --aa-dot-bg: rgba(80, 78, 76, 0.85);
    --aa-social-tooltip-color: rgba(32, 31, 29, 0.64);
    --aa-progress-bar-microdot: rgba(154, 149, 144, 0.95);
    color-scheme: dark;
    /* WP preset overrides — keep in sync with dark palette */
    --wp--preset--color--primary: #0a0a0a;
    --wp--preset--color--secondary: #141414;
    --wp--preset--color--tertiary: #1e1e1e;
    --wp--preset--color--text-primary: #f0ede8;
    --wp--preset--color--text-secondary: #a8a49e;
    --wp--preset--color--text-muted: #6b6660;
    --wp--preset--color--border-subtle: rgba(255, 255, 255, 0.08);
    --wp--preset--color--accent: #c9a96e;
    --wp--preset--color--accent-muted: rgba(201, 169, 110, 0.15);
}

[data-theme="light"] {
    --aa-bg-primary: #faf9f7;
    --aa-bg-secondary: #f0eeeb;
    --aa-bg-tertiary: #e8e5e0;
    --aa-bg-card: #ffffff;
    --aa-bg-overlay: rgba(255, 255, 255, 0.92);
    --aa-text-primary: #1a1815;
    --aa-text-secondary: #5c5850;
    --aa-text-muted: #9a9590;
    --aa-accent: #a07d3f;
    --aa-accent-hover: #b8923f;
    --aa-accent-muted: rgba(160, 125, 63, 0.1);
    --aa-border: rgba(0, 0, 0, 0.24);
    --aa-border-hover: rgba(0, 0, 0, 0.36);
    --aa-details-border: rgba(0, 0, 0, 0.24);
    --aa-caption-text: #a9a6a2;
    --aa-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --aa-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --aa-header-bg: rgba(250, 249, 247, 0.92);
    --aa-scrollbar-thumb: #ccc;
    --aa-scrollbar-track: #faf9f7;
    --aa-toggle-bg: #e0ddd8;
    --aa-toggle-knob: #1a1815;
    --aa-toggle-icon-color: #f0ede8;
    --aa-toggle-icon-sun: 1;
    --aa-toggle-icon-moon: 0;
    --aa-dot-bg: rgba(98, 90, 82, 0.95);
    --aa-social-tooltip-color: rgba(32, 31, 29, 0.64);
    --aa-progress-bar-microdot: rgba(154, 149, 144, 0.95);
    color-scheme: light;
    /* WP preset overrides — keep in sync with light palette */
    --wp--preset--color--primary: #faf9f7;
    --wp--preset--color--secondary: #f0eeeb;
    --wp--preset--color--tertiary: #e8e5e0;
    --wp--preset--color--text-primary: #1a1815;
    --wp--preset--color--text-secondary: #5c5850;
    --wp--preset--color--text-muted: #9a9590;
    --wp--preset--color--border-subtle: rgba(0, 0, 0, 0.08);
    --wp--preset--color--accent: #a07d3f;
    --wp--preset--color--accent-muted: rgba(160, 125, 63, 0.1);
}

/* ==========================================================================
   Page Layout — responsive padding defaults (all pages except 404)
   Desktop >992 px : 70px 50px
   Tablet  <=992 px: 50px 30px
   Mobile  <=778 px: 50px 20px
   ========================================================================== */

main.wp-block-group:not(.aa-404) {
    padding-top: 70px;
    padding-right: 50px;
    padding-bottom: 70px;
    padding-left: 50px;
}

@media (max-width: 992px) {
    main.wp-block-group:not(.aa-404) {
        padding-top: 50px;
        padding-right: 30px;
        padding-bottom: 50px;
        padding-left: 30px;
    }
}

@media (max-width: 778px) {
    main.wp-block-group:not(.aa-404) {
        padding-top: 50px;
        padding-right: 20px;
        padding-bottom: 50px;
        padding-left: 20px;
    }
}

/* About page — Quote full-bleed: break out of main padding on desktop */
@media (min-width: 1025px) {
    .aa-about-hero .alignfull.has-accent-muted-background-color {
        width: 100vw;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}

/* About page — Quote full-bleed section: widen on tablets/mobile
   The parent group uses contentSize:40% which is too narrow below 1024px. */
@media (max-width: 1024px) {
    .alignfull.has-accent-muted-background-color > .wp-block-columns {
        max-width: 80% !important;
    }
}
@media (max-width: 778px) {
    .alignfull.has-accent-muted-background-color > .wp-block-columns {
        max-width: 92% !important;
    }
}

/* ==========================================================================
   Base Reset & Global
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body,
.wp-site-blocks {
    background-color: var(--aa-bg-primary) !important;
    color: var(--aa-text-primary) !important;
    transition: background-color var(--aa-transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    /* Override WP preset vars at body level — WP global-styles declares them
       on body too, so :root/[data-theme] alone loses the cascade battle. */
    --wp--preset--color--primary: var(--aa-bg-primary) !important;
    --wp--preset--color--secondary: var(--aa-bg-secondary) !important;
    --wp--preset--color--tertiary: var(--aa-bg-tertiary) !important;
    --wp--preset--color--text-primary: var(--aa-text-primary) !important;
    --wp--preset--color--text-secondary: var(--aa-text-secondary) !important;
    --wp--preset--color--text-muted: var(--aa-text-muted) !important;
    --wp--preset--color--border-subtle: var(--aa-border) !important;
    --wp--preset--color--accent: var(--aa-accent) !important;
    --wp--preset--color--accent-muted: var(--aa-accent-muted) !important;
}

::selection {
    background-color: var(--aa-accent);
    color: var(--aa-bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--aa-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--aa-scrollbar-thumb);
    border-radius: 4px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--aa-text-primary);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.1rem;
}

h3 {
    font-family: var(--wp--preset--font-family--playfair);
    font-size: 1rem;
    line-height: 1.125rem;
    font-weight: 300;
}

blockquote,
.wp-block-quote,
.wp-block-pullquote,
blockquote p,
.wp-block-quote p,
.wp-block-pullquote p {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0.45px;
}

p {
    font-family: var(--wp--preset--font-family--body);
    color: var(--aa-text-secondary);
    line-height: 1.75;
}

a {
    color: var(--aa-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--aa-accent-hover);
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.aa-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--aa-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--aa-border);
    transition: background var(--aa-transition), border-color var(--aa-transition), transform 0.4s ease;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.aa-header--hidden {
    transform: translateY(-100%);
}

.aa-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    height: 72px;
}

.aa-header__logo-wrap,
.aa-header__actions {
    position: relative;
    z-index: 1000;
}

.aa-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--aa-text-primary);
    transition: color var(--aa-transition);
}

.aa-header__logo img {
    height: 36px;
    width: auto;
    transition: filter var(--aa-transition);
}

.aa-header__logo-text {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.aa-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.aa-header__nav li {
    position: relative;
    list-style: none;
}

.aa-header__nav a {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aa-text-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--aa-transition);
}

.aa-header__nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease;
}

.aa-header__nav a:hover,
.aa-header__nav a:focus-visible,
.aa-header__nav a[aria-current="page"],
.aa-header__nav .current-menu-item > a,
.aa-header__nav .current-menu-ancestor > a {
    color: var(--aa-text-primary);
}

.aa-header__nav > li > a:hover::after,
.aa-header__nav > li > a:focus-visible::after,
.aa-header__nav > li > a[aria-current="page"]::after,
.aa-header__nav > .current-menu-item > a::after,
.aa-header__nav > .current-menu-ancestor > a::after {
    width: 100%;
}

/* Dropdown submenu — desktop */
.aa-header__nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: var(--aa-bg-primary);
    border: 1px solid var(--aa-border);
    border-radius: 0;
    padding: 1.5rem 2rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.aa-header__nav li:hover > .sub-menu,
.aa-header__nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.aa-header__nav .sub-menu li {
    display: block;
    text-align: center;
}

.aa-header__nav .sub-menu a {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--aa-text-secondary);
    background: transparent;
    transition: color var(--aa-transition);
}

.aa-header__nav .sub-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease;
}

.aa-header__nav .sub-menu a:hover,
.aa-header__nav .sub-menu a[aria-current="page"],
.aa-header__nav .sub-menu .current-menu-item > a {
    color: var(--aa-text-primary);
    background: transparent;
}

.aa-header__nav .sub-menu a:hover::after,
.aa-header__nav .sub-menu a[aria-current="page"]::after,
.aa-header__nav .sub-menu .current-menu-item > a::after {
    width: 100%;
}

/* Parent-only menu label (non-clickable, e.g. Portfolio) */
.aa-menu-label > a {
    pointer-events: none;
    cursor: default;
}

.aa-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Dark/Light Mode Toggle
   ========================================================================== */

.aa-theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border: none;
    border-radius: 14px;
    background: var(--aa-toggle-bg);
    cursor: pointer;
    transition: background var(--aa-transition);
    padding: 0;
    outline: none;
}

.aa-theme-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--aa-accent);
}

.aa-theme-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--aa-toggle-knob);
    color: var(--aa-toggle-icon-color);
    transition: transform var(--aa-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .aa-theme-toggle__knob {
    transform: translateX(24px);
}

.aa-theme-toggle__icon {
    width: 14px;
    height: 14px;
    transition: none;
}

.aa-theme-toggle__icon--moon {
    opacity: var(--aa-toggle-icon-moon);
    position: absolute;
}

.aa-theme-toggle__icon--sun {
    opacity: var(--aa-toggle-icon-sun);
    position: absolute;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.aa-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--aa-text-primary);
    transition: color var(--aa-transition);
}

.aa-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Hide site title text on tablets and below */
@media (max-width: 1024px) {
    .aa-header__logo-text {
        display: none;
    }
}

/* Suppress WordPress core navigation overlay (theme uses custom aa-menu-toggle).
   Force the responsive container to always show links inline,
   hide all WP core open/close toggle buttons. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    display: none !important;
}
.wp-block-navigation__responsive-container,
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.has-modal-open {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    background: none !important;
    color: inherit !important;
    z-index: auto !important;
    display: flex !important;
}
.wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container-content {
    position: static !important;
    display: flex !important;
    gap: inherit !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* --- Hide mobile nav footer on desktop --- */
.aa-nav-mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .aa-menu-toggle {
        display: flex;
    }

    .aa-header__nav {
        position: fixed;
        top: var(--aa-header-h, 72px);
        left: 0;
        width: 100%;
        height: calc(100dvh - var(--aa-header-h, 72px));
        background: var(--aa-bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        overscroll-behavior: contain;
    }

    .aa-header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .aa-header__nav a {
        font-size: 1.125rem;
        letter-spacing: 0.2em;
    }

    .aa-header__nav .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        padding: 0.5rem 0 0;
        min-width: 0;
        align-items: center;
        gap: 0.5rem;
    }

    .aa-header__nav .sub-menu a {
        font-size: 0.875rem;
        padding: 0.2rem 0;
        color: var(--aa-text-muted);
    }

    .aa-header__nav .sub-menu a:hover {
        background: transparent;
    }

    .aa-nav-mobile-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 2.5rem;
    }

    .aa-nav-mobile-footer__copy {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        color: var(--aa-text-muted);
    }

    .aa-nav-mobile-footer__social {
        display: flex;
        gap: 1rem;
    }

    .aa-nav-mobile-footer__social a {
        color: var(--aa-text-muted);
        transition: color var(--aa-transition);
    }

    .aa-nav-mobile-footer__social a:hover {
        color: var(--aa-accent);
    }

    .aa-nav-mobile-footer__social svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.aa-footer {
    transition: background var(--aa-transition), border-color var(--aa-transition);
}

/* --- Footer Top: contact info + social links --- */

.aa-footer-top {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    border-top: 1px solid var(--aa-border);
    background: var(--aa-bg-secondary);
}

.aa-footer-top__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--aa-footer-top-cols, 3), 1fr);
    align-items: start;
    gap: 2rem;
}

.aa-footer-top__col {
    min-width: 0;
}

.aa-footer-top__col--end {
    grid-column: -2 / -1;
}

.aa-footer-top__title {
    margin: 0 0 1.5rem;
}

.aa-footer-top__text {
    font-size: 0.8125rem;
    color: var(--aa-text-muted);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.aa-footer-top__text a {
    color: var(--aa-accent);
    text-decoration: none;
    transition: opacity var(--aa-transition);
}

.aa-footer-top__text a:hover {
    opacity: 0.7;
}

.aa-footer-top__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aa-footer-top__menu li {
    margin-bottom: 0.5rem;
}

.aa-footer-top__menu a {
    display: block;
    color: var(--aa-text-muted);
    text-decoration: none;
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: 0.03em;
    line-height: 1.75;
    transition: color var(--aa-transition);
}

.aa-footer-top__menu a:hover {
    color: var(--aa-accent);
}

/* Footer sub-menu styling */
.aa-footer-top__menu .sub-menu {
    list-style: none;
    padding: 0 0 0 0.85rem;
    margin: 0;
}

.aa-footer-top__menu .sub-menu li {
    margin-bottom: 0.5rem;
    position: relative;
}

.aa-footer-top__menu .sub-menu li::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 0.6rem;
    width: 4px;
    height: 4px;
    background: var(--aa-accent);
    border-radius: 50%;
    opacity: 0.6;
}

.aa-footer-top__menu .sub-menu a {
    color: var(--aa-text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

/* Move spacing from parent li (which puts it after submenu) to its direct link (before submenu) */
.aa-footer-top__menu li.menu-item-has-children {
    margin-bottom: 0;
}

.aa-footer-top__menu li.menu-item-has-children > a {
    margin-bottom: 0.5rem;
}

.aa-footer-top__menu li.menu-item-has-children > a::after {
    content: '\25BC';
    display: inline-block;
    margin-left: 0.85em;
    font-size: 0.6em;
    color: var(--aa-accent);
    opacity: 0.6;
    vertical-align: middle;
}

.aa-footer-top__menu .sub-menu a:hover {
    color: var(--aa-accent);
}

/* Light mode: all Footer Top text uses --aa-text-secondary */
[data-theme="light"] .aa-footer-top__title,
[data-theme="light"] .aa-footer-top__text,
[data-theme="light"] .aa-footer-top__quote,
[data-theme="light"] .aa-footer-top__quote p,
[data-theme="light"] .aa-footer-top__quote cite,
[data-theme="light"] .aa-footer-top__menu a,
[data-theme="light"] .aa-footer-top__menu .sub-menu a,
[data-theme="light"] .aa-footer-top__artworks a,
[data-theme="light"] .aa-footer__contact-name,
[data-theme="light"] .aa-footer__contact-item,
[data-theme="light"] .aa-footer__social a {
    color: var(--aa-text-secondary);
}

.aa-footer-top__quote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.875rem;
    color: var(--aa-text-primary);
    line-height: 1.8;
    letter-spacing: 0.015em;
}

.aa-footer-top__quote p {
    margin: 0 0 0.75rem;
    font-style: normal;
    max-width: 32ch;
}

.aa-footer-top__quote cite {
    display: block;
    font-style: italic;
    font-size: var(--wp--preset--font-size--medium);
    opacity: 0.8;
}

/* --- Footer Top: Artworks list (scrollable) --- */

.aa-footer-top__artworks {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--aa-accent) transparent;
    position: relative;
}

/* Scroll gradient overlays — positioned on wrapper, not scrollable list */
.aa-footer-top__artworks-wrapper {
    position: relative;
    max-height: 210px;
    overflow: hidden;
}

.aa-footer-top__artworks-fade {
    position: absolute;
    left: 0;
    right: 8px;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.aa-footer-top__artworks-fade--top {
    top: 0;
    background: linear-gradient(to bottom, var(--aa-bg-secondary), transparent);
}

.aa-footer-top__artworks-fade--bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--aa-bg-secondary), transparent);
}

.aa-footer-top__artworks-fade.is-visible {
    opacity: 1;
}

/* Scroll indicator icon next to artworks title */
.aa-footer-top__title--with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aa-footer-top__scroll-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.7;
}

.aa-footer-top__artworks::-webkit-scrollbar {
    width: 3px;
}

.aa-footer-top__artworks::-webkit-scrollbar-track {
    background: transparent;
}

.aa-footer-top__artworks::-webkit-scrollbar-thumb {
    background: var(--aa-accent);
    border-radius: 3px;
}

.aa-footer-top__artworks li {
    margin-bottom: 0.5rem;
}

.aa-footer-top__artworks a {
    display: block;
    color: var(--aa-text-muted);
    text-decoration: none;
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: 0.03em;
    line-height: 1.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--aa-transition);
    padding-right: 20px;
}

.aa-footer-top__artworks a:hover {
    color: var(--aa-accent);
}

.aa-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.3rem;
}

.aa-footer__contact-name {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    color: var(--aa-text-muted);
    letter-spacing: 0.03em;
    line-height: 1.75;
}

.aa-footer__contact:empty {
    display: none;
}

.aa-footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--aa-text-muted);
    text-decoration: none;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.75;
    letter-spacing: 0.03em;
    transition: color var(--aa-transition);
}

.aa-footer__contact-item:hover {
    color: var(--aa-accent);
}

.aa-footer__contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.aa-footer__social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.aa-footer__social a {
    color: var(--aa-text-muted);
    transition: color var(--aa-transition);
}

.aa-footer__social a:hover {
    color: var(--aa-accent);
}

.aa-footer__social svg {
    width: 20px;
    height: 20px;
}

/* --- Footer Bottom: brand + copyright --- */

.aa-footer-bottom {
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    background: var(--aa-bg-primary);
    border-top: 1px solid var(--aa-border);
}

.aa-footer-bottom__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.aa-footer__brand {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--aa-text-muted);
    margin: 0;
}

.aa-footer__copy {
    font-size: 0.6875rem;
    color: var(--aa-text-muted);
    letter-spacing: 0.05em;
    margin: 0;
}

.aa-footer__copy-owner,
.aa-footer__copy-rights,
.aa-footer__copy-credit {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
}

.aa-footer__copy-rights {
    margin-left: 0.2em;
}

.aa-footer__copy-credit {
    margin-left: 0.2em;
}

.aa-footer__copy a {
    display: inline-block;
    border: var(--aa-footer-link-bw, 1px) solid var(--aa-accent);
    color: var(--aa-accent);
    padding: 0.15em 0.5em;
    border-radius: var(--aa-footer-link-br, 1px);
    text-decoration: none;
}

/* Light mode: Footer Bottom text uses --aa-text-secondary (badge excluded) */
[data-theme="light"] .aa-footer__brand,
[data-theme="light"] .aa-footer__copy,
[data-theme="light"] .aa-footer__copy-owner,
[data-theme="light"] .aa-footer__copy-rights,
[data-theme="light"] .aa-footer__copy-credit {
    color: var(--aa-text-secondary);
}

/* --- Footer responsive --- */

@media (max-width: 992px) {
    .aa-footer-top__inner {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .aa-footer__contact {
        align-items: center;
    }

    .aa-footer-top__col--end {
        grid-column: auto;
    }

    .aa-footer__social {
        justify-content: center;
    }

    .aa-footer-top__quote p {
        margin-inline: auto;
    }

    .aa-footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Center sub-menu items and keep bullets close to text */
    .aa-footer-top__menu .sub-menu {
        display: inline-block;
        margin: 0;
        padding: 0 0 0 1rem;
        text-align: left;
    }

    .aa-footer-top__menu .sub-menu li {
        padding-left: 1rem;
    }

    .aa-footer-top__menu .sub-menu li::before {
        left: 0.15rem;
    }

    /* Constrain artworks list width so scrollbar stays beside the menu */
    .aa-footer-top__artworks,
    .aa-footer-top__artworks-wrapper {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .aa-footer-top__title--with-icon {
        justify-content: center;
    }
}

/* Footer bottom: centre contents when they wrap on medium-width screens */
@media (max-width: 1200px) {
    .aa-footer-bottom__inner {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aa-footer-top__col {
        padding-bottom: 20px;
    }
}

/* ==========================================================================
   Title Area
   ========================================================================== */

.aa-title-area {
    display: flex;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    border-bottom: 1px solid var(--aa-border, rgba(255,255,255,0.08));
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.aa-title-area__inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--wp--style--global--content-size, 1440px);
    margin: 0 auto;
    gap: 1rem;
}

.aa-title-area__title {
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0;
    white-space: nowrap;
}

/* --- Vertical alignment --- */
.aa-title-area--align-header-bottom {
    align-items: flex-end;
    padding-bottom: 0.75rem;
}
.aa-title-area--align-center {
    align-items: center;
}
.aa-title-area--align-top {
    align-items: flex-start;
    padding-top: 0.75rem;
}

/* --- Type: Left With Breadcrumbs --- */
.aa-title-area--left-breadcrumbs .aa-title-area__inner {
    justify-content: space-between;
}

/* --- Type: Centered With Breadcrumbs --- */
.aa-title-area--centered-breadcrumbs .aa-title-area__inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

/* --- Type: Right With Breadcrumbs --- */
.aa-title-area--right-breadcrumbs .aa-title-area__inner {
    justify-content: space-between;
    flex-direction: row-reverse;
}

/* --- Type: Centered --- */
.aa-title-area--centered .aa-title-area__inner {
    justify-content: center;
    text-align: center;
}
.aa-title-area--centered .aa-title-area__breadcrumbs {
    display: none;
}

/* --- Type: Right --- */
.aa-title-area--right .aa-title-area__inner {
    justify-content: flex-end;
}
.aa-title-area--right .aa-title-area__breadcrumbs {
    display: none;
}

/* --- Type: Left --- */
.aa-title-area--left .aa-title-area__inner {
    justify-content: flex-start;
}
.aa-title-area--left .aa-title-area__breadcrumbs {
    display: none;
}

/* --- Type: Breadcrumbs Only --- */
.aa-title-area--breadcrumbs-only .aa-title-area__inner {
    justify-content: flex-end;
}
.aa-title-area--breadcrumbs-only .aa-title-area__title {
    display: none;
}

/* --- Breadcrumbs --- */
.aa-title-area__breadcrumbs {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aa-title-area__breadcrumbs a {
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s;
}
.aa-title-area__breadcrumbs a:hover {
    opacity: 1;
}

.aa-breadcrumb__sep {
    opacity: 0.35;
    font-size: 0.75rem;
}

.aa-breadcrumb__current {
    opacity: 0.9;
}

/* --- Blog Single: post header (title + date) --- */
.aa-post-header {
    max-width: var(--wp--style--global--content-size, 1100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.aa-post-header__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    font-style: normal;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: var(--aa-text-primary);
}

.aa-post-header__date {
    display: inline-block;
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
    padding: 0.75rem 0 1.5rem;
    font-size: 0.8125rem;
    color: var(--aa-text-muted);
}

.aa-post-header__thumbnail {
    display: block;
    max-width: 720px;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 0;
    border-radius: var(--aa-radius-lg, 4px);
}

.aa-post-header__thumbnail img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: var(--aa-radius-lg, 4px);
}

.aa-post-header__caption {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--aa-text-muted);
    font-style: italic;
    text-align: center;
}

/* --- Blog Single: paragraph spacing --- */
.single-post .entry-content p,
.single-post .wp-block-post-content p {
    margin-bottom: 1.25em;
}

/* --- Blog Single: content heading spacing --- */
.single-post .entry-content h2,
.single-post .wp-block-post-content h2 {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.single-post .entry-content h3,
.single-post .wp-block-post-content h3 {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.875rem;
}

.aa-blog-single__sidebar h3 {
    margin-top: 0 !important;
}

.single-post .entry-content h4,
.single-post .wp-block-post-content h4 {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

@media (max-width: 680px) {
    .aa-title-area__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .aa-title-area__title {
        white-space: normal;
    }
}

/* --- Blog Single: widen constrained layout when sidebar is active --- */
.has-blog-sidebar .wp-block-post-content,
.has-blog-sidebar .wp-block-post-content > .aa-blog-single {
    max-width: var(--wp--style--global--content-size, 1100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- Blog Single: sidebar layout --- */
.aa-blog-single {
    display: grid;
    gap: 0;
    max-width: var(--wp--style--global--content-size, 1440px);
    margin: 0 auto;
}

.aa-blog-single__content,
.aa-blog-single__sidebar {
    grid-row: 2;
}

.aa-blog-single__content {
    min-width: 0;
}

/* Sidebar Right */
.aa-blog-single--sidebar-right {
    grid-template-columns: 1fr 300px;
}

.aa-blog-single--sidebar-right > .aa-post-header__date {
    grid-column: 1;
    grid-row: 1;
}

.aa-blog-single--sidebar-right > .aa-blog-single__content {
    grid-column: 1;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.aa-blog-single--sidebar-right > .aa-blog-single__sidebar {
    grid-column: 2;
}

/* Sidebar Left */
.aa-blog-single--sidebar-left {
    grid-template-columns: 300px 1fr;
}

.aa-blog-single--sidebar-left > .aa-post-header__date {
    grid-column: 2;
    grid-row: 1;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.aa-blog-single--sidebar-left > .aa-blog-single__content {
    grid-column: 2;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.aa-blog-single--sidebar-left > .aa-blog-single__sidebar {
    grid-column: 1;
    border-right: 1px solid var(--aa-border);
    border-left: none;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
    padding-left: 0;
}

.aa-blog-single__sidebar {
    border-left: 1px solid var(--aa-border);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    font-size: 0.875rem;
    color: var(--aa-text-secondary);
}

.aa-sidebar__widget {
    margin-bottom: 2rem;
}

.aa-sidebar__widget:last-child {
    margin-bottom: 0;
}

.aa-sidebar__widget-title {
    color: var(--aa-text-primary);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--aa-border);
}

.aa-sidebar__widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-sidebar__widget li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--aa-border);
}

.aa-sidebar__widget li:last-child {
    border-bottom: none;
}

.aa-sidebar__widget a {
    color: var(--aa-text-secondary);
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-sidebar__widget a:hover {
    color: var(--aa-accent);
}

@media (max-width: 768px) {
    .has-blog-sidebar main.wp-block-group,
    .has-blog-sidebar .wp-block-post-content,
    .has-blog-sidebar .wp-block-post-content > .aa-blog-single,
    .aa-post-header,
    .aa-post-header__date,
    .aa-post-header__thumbnail {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aa-blog-single--sidebar-right,
    .aa-blog-single--sidebar-left {
        grid-template-columns: 1fr;
    }

    .aa-blog-single--sidebar-right .aa-blog-single__content {
        padding-right: 0;
    }

    .aa-blog-single--sidebar-left .aa-blog-single__content {
        padding-left: 0;
    }

    .aa-blog-single--sidebar-left .aa-blog-single__sidebar {
        order: 0;
        border-right: none;
        padding-right: 0;
    }

    .aa-blog-single__sidebar {
        display: none;
    }

    .aa-blog-single--sidebar-right > .aa-post-header__date,
    .aa-blog-single--sidebar-left > .aa-post-header__date {
        display: block;
        grid-row: auto;
        grid-column: auto;
        padding-left: 0;
        text-align: left;
    }

    .aa-blog-single--sidebar-right > .aa-blog-single__content,
    .aa-blog-single--sidebar-left > .aa-blog-single__content {
        grid-row: auto;
        grid-column: auto;
    }
}

/* ==========================================================================
   Blog Single — Post Navigation
   ========================================================================== */

.aa-post-nav {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--aa-border);
}

.aa-post-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
}

.aa-post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-post-nav__link--prev {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
}

.aa-post-nav__link--next {
    grid-column: 3;
    align-items: flex-end;
    text-align: right;
}

.aa-post-nav__link--empty {
    visibility: hidden;
}

.aa-post-nav__blog {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--aa-text-muted);
    text-decoration: none;
    transition: background var(--aa-transition), color var(--aa-transition);
}

.aa-post-nav__blog:hover {
    background: var(--aa-accent-muted);
    color: var(--aa-accent);
}

.aa-post-nav__blog svg {
    width: 20px;
    height: 20px;
}

.aa-post-nav__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aa-text-muted);
    transition: color var(--aa-transition);
}

.aa-post-nav__label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.aa-post-nav__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    font-weight: 400;
    color: var(--aa-text-primary);
    line-height: 1.35;
    transition: color var(--aa-transition);
}

.aa-post-nav__link:hover .aa-post-nav__label,
.aa-post-nav__link:hover .aa-post-nav__title {
    color: var(--aa-accent);
}

@media (max-width: 480px) {
    .aa-post-nav__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .aa-post-nav__link--prev {
        grid-column: 1;
    }
    .aa-post-nav__blog {
        grid-column: 1;
        justify-self: center;
    }
    .aa-post-nav__link--next {
        grid-column: 1;
        align-items: flex-end;
        text-align: right;
    }
    .aa-share-buttons {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   Blog Single — Author Info Box
   ========================================================================== */

.aa-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: clamp(2rem, 4vw, 3rem) 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--aa-border);
}

.aa-author-box__left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aa-author-box__written-by {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--aa-text-muted);
    margin-bottom: 0.5rem;
}

.aa-author-box__avatar-link {
    display: block;
}

.aa-author-box__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.aa-author-box__content {
    flex: 1;
    min-width: 0;
    padding-top: calc(0.75rem * 1.4 + 0.5rem);
}

.aa-author-box__name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--aa-text-primary);
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: color var(--aa-transition);
}

.aa-author-box__name:hover {
    color: var(--aa-accent);
}

.aa-author-box__bio {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--aa-text-secondary);
    margin: 0 0 0.75rem;
}

.aa-author-box__icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.aa-author-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aa-text-primary);
    transition: color var(--aa-transition);
}

.aa-author-box__icon:hover {
    color: var(--aa-accent);
}

.aa-author-box__icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Blog Single — Related Posts
   ========================================================================== */

.aa-related-blog {
    position: relative;
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.aa-related-blog::before {
    content: '';
    display: block;
    max-width: var(--wp--style--global--content-size, 720px);
    margin: 0 auto;
    border-top: 1px solid var(--aa-border);
}

.aa-related-blog__title {
    margin: 0;
}

/* ── Grid mode (≤ 4 cards, centered) ── */
.aa-related-blog__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
}

.aa-related-blog__grid .aa-related-blog__card {
    flex: 0 1 280px;
    max-width: 280px;
}

/* ── Carousel mode (> 4 cards) ── */
.aa-related-blog__carousel {
    position: relative;
    margin-top: 2rem;
}

.aa-related-blog__track {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.aa-related-blog__track::-webkit-scrollbar { display: none; }

.aa-related-blog__track .aa-related-blog__card {
    flex: 0 0 calc(25% - 0.9375rem);
    min-width: calc(25% - 0.9375rem);
}

.aa-related-blog__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--aa-bg-overlay, rgba(0, 0, 0, 0.55));
    border: 1px solid var(--aa-border);
    color: var(--aa-text-primary);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    backdrop-filter: blur(4px);
}

.aa-related-blog__carousel:hover .aa-related-blog__arrow { opacity: 1; }
.aa-related-blog__arrow:hover { background: var(--aa-accent); color: var(--aa-bg-primary); }
.aa-related-blog__arrow--prev { left: 0.75rem; }
.aa-related-blog__arrow--next { right: 0.75rem; }

.aa-related-blog__arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* ── Shared card styles ── */
.aa-related-blog__card {
    overflow: hidden;
    /* border-radius: var(--aa-radius-lg, 0); */
    border: 1px solid var(--aa-border);
    background: var(--aa-bg-secondary);
    transition: border-color var(--aa-transition);
}

.aa-related-blog__card:hover {
    border-color: var(--aa-border-hover);
}

.aa-related-blog__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.aa-related-blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.aa-related-blog__card:hover .aa-related-blog__thumb img {
    transform: scale(1.04);
}

.aa-related-blog__body {
    padding: 0.85rem 1rem 1rem;
}

.aa-related-blog__date {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aa-text-muted);
    margin-bottom: 0.65rem;
}

.aa-related-blog__link {
    display: block;
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--aa-text-primary);
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-related-blog__link:hover {
    color: var(--aa-accent);
}

@media (max-width: 680px) {
    .aa-related-blog__grid .aa-related-blog__card {
        flex: 0 1 100%;
        max-width: 320px;
    }

    .aa-related-blog__track .aa-related-blog__card {
        flex: 0 0 calc(50% - 0.625rem);
        min-width: calc(50% - 0.625rem);
    }

    .aa-related-blog__arrow { opacity: 1; }
}

/* ==========================================================================
   Blog Single — Comments
   ========================================================================== */

.aa-blog-comments {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--aa-border);
}

/* ── Title ── */

.aa-blog-comments .comments-title {
    margin: 0 0 2rem;
}

.aa-blog-comments #reply-title {
    margin: 2.5rem 0 1.5rem;
}

.aa-blog-comments #reply-title #cancel-comment-reply-link {
    margin-left: 2rem;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--aa-text-muted);
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-blog-comments #reply-title #cancel-comment-reply-link:hover {
    color: var(--aa-accent);
}

/* ── Comment list ── */

.aa-blog-comments .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.aa-blog-comments .comment-list .children {
    list-style: none;
    padding-left: 3.5rem;
}

.aa-blog-comments .comment {
    padding: 1.5rem 0;
}

.aa-blog-comments .comment:last-child {
    padding-bottom: 0;
}

/* ── Single comment: avatar + main ── */

.aa-blog-comments .comment-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.aa-blog-comments .comment-avatar {
    flex-shrink: 0;
}

.aa-blog-comments .comment-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.aa-blog-comments .comment-main {
    flex: 1;
    min-width: 0;
}

/* ── Header: author name + REPLY link ── */

.aa-blog-comments .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.aa-blog-comments .comment-header .fn {
    font-weight: 600;
    color: var(--aa-text-primary);
}

.aa-blog-comments .comment-header .fn a {
    color: inherit;
    text-decoration: none;
}

.aa-blog-comments .comment-reply-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--aa-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color var(--aa-transition);
}

.aa-blog-comments .comment-reply-link:hover {
    color: var(--aa-accent);
}

/* ── Comment text ── */

.aa-blog-comments .comment-content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--aa-text-secondary);
    margin-bottom: 0.5rem;
}

.aa-blog-comments .comment-content p {
    margin: 0 0 0.5rem;
}

.aa-blog-comments .comment-content p:last-child {
    margin-bottom: 0;
}

/* ── Date ── */

.aa-blog-comments .comment-metadata {
    margin-top: 0.4rem;
}

.aa-blog-comments .comment-metadata a {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--aa-text-muted);
    text-decoration: none;
}

.aa-blog-comments .comment-metadata a:hover {
    color: var(--aa-accent);
}

/* ── Respond wrapper ── */

.aa-blog-comments .comment-respond {
    margin-top: 2.5rem;
}

/* ── Form: labels hidden, placeholder-only inputs, bottom-border style ── */

.aa-blog-comments .comment-form label {
    display: none;
}

.aa-blog-comments .comment-form .aa-form-gdpr__label {
    display: flex;
}

.aa-blog-comments .comment-form input[type="text"],
.aa-blog-comments .comment-form input[type="email"],
.aa-blog-comments .comment-form input[type="url"],
.aa-blog-comments .comment-form textarea {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--aa-border);
    border-radius: 0;
    color: var(--aa-text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color var(--aa-transition);
}

.aa-blog-comments .comment-form input::placeholder,
.aa-blog-comments .comment-form textarea::placeholder {
    color: var(--aa-text-muted);
    opacity: 1;
}

.aa-blog-comments .comment-form input:focus,
.aa-blog-comments .comment-form textarea:focus {
    outline: none;
    border-bottom-color: var(--aa-text-primary);
}

.aa-blog-comments .comment-form textarea {
    min-height: 50px;
    resize: vertical;
}

.aa-blog-comments .comment-form p {
    margin-bottom: 1rem;
}

.aa-blog-comments .comment-form .form-submit {
    margin-top: 0.5rem;
    text-align: center;
}

.aa-blog-comments .comment-form .submit {
    display: inline-block;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    background: transparent;
    border: 1px solid var(--aa-border);
    border-radius: 0;
    color: var(--aa-text-primary);
    cursor: pointer;
    transition: all var(--aa-transition);
}

.aa-blog-comments .comment-form .submit:hover {
    border-color: var(--aa-accent);
    color: var(--aa-accent);
}

.aa-blog-comments .comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--aa-text-secondary);
}

.aa-blog-comments .comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
}

/* ==========================================================================
   About Me / Hero Section
   ========================================================================== */

.aa-about-hero {
    overflow: hidden;
}

/* Full-width header: title + quote */
.aa-about-hero__header {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Bio wrap: image on the left half, text on the right half.
   User applies this class to a Group block in the FSE editor
   containing Biography + Techniques content. */
.aa-about-hero__bio-wrap {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem) 55%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Background portrait — left half */
.aa-about-hero__bio-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background:
        url('/wp-content/uploads/2026/04/Adler-Photographie000162-scaled.jpg')
        right center / cover no-repeat;
    z-index: 0;
}

/* Ensure text content sits above the image */
.aa-about-hero__bio-wrap > * {
    position: relative;
    z-index: 2;
}

/* H2 quote — Cormorant Garamond */
.aa-about-hero__quote {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.35;
    margin-bottom: clamp(2rem, 3vw, 3rem);
    color: var(--aa-text-primary);
}

/* H3 section titles — inherits from theme.json */
.aa-about-hero__subtitle {
    margin-top: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.25rem;
    color: var(--aa-text-primary);
}

.aa-about-hero__subtitle:first-of-type {
    margin-top: 0;
}

.aa-about-hero__block {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.aa-about-hero__block .aa-about-hero__subtitle {
    margin-top: 0;
}

.aa-about-hero__bio {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--aa-text-secondary);
    margin-bottom: 1.5rem;
}

.aa-about-hero__signature {
    width: 120px;
    height: auto;
    opacity: 0.7;
    margin-top: 2rem;
    filter: brightness(0) invert(1);
    transition: filter var(--aa-transition);
}

[data-theme="light"] .aa-about-hero__signature {
    filter: brightness(0);
}

.aa-about-hero__contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--aa-border);
}

.aa-about-hero__contact h3 {
    margin-bottom: 1rem;
}

.aa-about-hero__social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.aa-about-hero__social a {
    color: var(--aa-text-muted);
    transition: color var(--aa-transition);
}

.aa-about-hero__social a:hover {
    color: var(--aa-accent);
}

/* Artist Contact shortcode [aa_artist_contact] */
.aa-artist-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2rem;
    align-items: end;
    font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.aa-artist-contact__col--info {
    min-width: 0;
}

.aa-artist-contact__col--sig {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.aa-artist-contact p {
    margin: 0 0 0.25rem;
    line-height: 1.6;
}

.aa-artist-contact a {
    color: var(--aa-accent);
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-artist-contact a:hover {
    color: var(--aa-text-primary);
}

.aa-artist-contact__name {
    font-weight: 400;
    margin-bottom: 0.5rem !important;
}

.aa-artist-contact__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.aa-artist-contact__social a {
    color: var(--aa-accent);
    transition: color var(--aa-transition);
}

.aa-artist-contact__social a:hover {
    color: var(--aa-text-primary);
}

.aa-artist-contact__social svg {
    width: 28px;
    height: 28px;
}

.aa-artist-contact__signature {
    width: 160px;
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: filter var(--aa-transition);
}

[data-theme="light"] .aa-artist-contact__signature {
    filter: brightness(0);
}

@media (max-width: 470px) {
    .aa-artist-contact {
        grid-template-columns: 1fr;
    }

    .aa-artist-contact__col--sig {
        justify-content: center;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .aa-about-hero__bio-wrap {
        padding-left: 48%;
    }

    .aa-about-hero__bio-wrap::before {
        width: 42%;
    }
}

@media (max-width: 1024px) {
    .aa-about-hero {
        min-height: auto;
    }

    .aa-about-hero__image {
        position: relative;
        width: 100%;
        height: 50vh;
        min-height: 350px;
    }

    .aa-about-hero__image::after {
        background:
            linear-gradient(to top, var(--aa-bg-primary) 0%, transparent 60%),
            linear-gradient(to bottom, var(--aa-bg-primary) 0%, transparent 20%);
    }

    .aa-about-hero__content {
        max-width: 100%;
        min-height: auto;
    }

    .aa-about-hero__bio-wrap {
        padding-left: clamp(2rem, 5vw, 5rem);
    }

    .aa-about-hero__bio-wrap::before {
        position: relative;
        width: 100%;
        height: 50vw;
        min-height: 300px;
        max-height: 500px;
        margin-bottom: clamp(2rem, 4vw, 3rem);
        display: block;
    }

    .aa-about-hero .wp-block-columns {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .aa-about-hero .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* Right column: children become independent full-width rows */
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child {
        display: contents;
    }

    /* Hide decorative spacers between sections when stacked */
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .wp-block-spacer {
        display: none;
    }

    /* Override parent column constrained-layout auto margins when stacked */
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .wp-block-group,
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .aa-artist-contact {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    /* 50px vertical separation between each stacked block */
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .wp-block-group,
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .wp-block-social-links,
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .aa-artist-contact {
        margin-top: 50px;
    }

    /* Contact shortcode sits right below its heading group — no extra gap */
    .aa-about-hero .wp-block-columns > .wp-block-column:last-child > .aa-about-contact + .aa-artist-contact {
        margin-top: 0;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.aa-contact-form {
    margin-top: 3rem;
}

.aa-contact-form h3 {
    margin-bottom: 1.5rem;
}

.aa-contact-form input,
.aa-contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--aa-border);
    color: var(--aa-text-primary);
    font-family: var(--wp--preset--font-family--body);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    padding: 0.75rem 0;
    margin-bottom: 1.25rem;
    transition: border-color var(--aa-transition), color var(--aa-transition);
    outline: none;
}

.aa-contact-form input:focus,
.aa-contact-form textarea:focus {
    border-color: var(--aa-accent);
}

.aa-contact-form input::placeholder,
.aa-contact-form textarea::placeholder {
    color: var(--aa-text-muted);
}

.aa-contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.aa-contact-form button[type="submit"] {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    background: transparent;
    border: 1px solid var(--aa-border);
    color: var(--aa-text-primary);
    cursor: pointer;
    transition: all var(--aa-transition);
    margin-top: 0.5rem;
}

.aa-contact-form button[type="submit"]:hover {
    border-color: var(--aa-accent);
    color: var(--aa-accent);
}

.aa-form-gdpr {
    margin: 1.5rem 0;
}

.aa-form-gdpr__label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.aa-form-gdpr__label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.1rem;
    width: 18px;
    height: 18px;
    accent-color: var(--aa-accent);
}

.aa-form-gdpr__text {
    color: var(--aa-text-muted);
    font-weight: 300;
    line-height: 1.6;
}

.aa-form-gdpr__text a {
    color: var(--aa-accent);
    font-weight: 400;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--aa-transition);
}

.aa-form-gdpr__text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease;
}

.aa-form-gdpr__text a:hover::after {
    width: 100%;
}

/* Menu Underline Effect for Privacy Policy links */
[data-nav-effect="right-left"] .aa-form-gdpr__text a::after {
    left: auto;
    right: 0;
}

[data-nav-effect="center-out"] .aa-form-gdpr__text a::after {
    left: 50%;
    transform: translateX(-50%);
}

[data-nav-effect="bottom-up"] .aa-form-gdpr__text a::after {
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 0;
    transition: height 0.3s ease;
}

[data-nav-effect="bottom-up"] .aa-form-gdpr__text a:hover::after {
    height: 1px;
    width: 100%;
}

[data-nav-effect="fade-in"] .aa-form-gdpr__text a::after {
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

[data-nav-effect="fade-in"] .aa-form-gdpr__text a:hover::after {
    opacity: 1;
    width: 100%;
}

[data-nav-effect="elastic"] .aa-form-gdpr__text a::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-nav-effect="elastic"] .aa-form-gdpr__text a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

[data-nav-effect="double-line"] .aa-form-gdpr__text a::after {
    height: 1px;
    transition: width 0.3s ease;
}

[data-nav-effect="double-line"] .aa-form-gdpr__text a::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease;
}

[data-nav-effect="double-line"] .aa-form-gdpr__text a:hover::after,
[data-nav-effect="double-line"] .aa-form-gdpr__text a:hover::before {
    width: 100%;
}

[data-nav-effect="glow"] .aa-form-gdpr__text a::after {
    width: 100%;
    height: 1px;
    opacity: 0;
    box-shadow: 0 0 6px var(--aa-accent), 0 0 12px var(--aa-accent);
    transition: opacity 0.35s ease;
}

[data-nav-effect="glow"] .aa-form-gdpr__text a:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Contact Info Cards
   ========================================================================== */

.aa-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

.aa-contact-cards__item {
    padding: 2rem 1.5rem;
}

.aa-contact-cards__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--aa-accent);
}

.aa-contact-cards__icon svg {
    width: 100%;
    height: 100%;
}

.aa-contact-cards__title {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.aa-contact-cards__text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--aa-text-secondary);
    margin: 0 0 0.15rem;
}

.aa-contact-cards__text a {
    color: var(--aa-text-secondary);
    text-decoration: none;
    transition: color var(--aa-transition);
}

.aa-contact-cards__text a:hover {
    color: var(--aa-accent);
}

@media (max-width: 768px) {
    .aa-contact-cards {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.aa-testimonials {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.aa-testimonials__heading {
    margin-bottom: 4rem;
}

/* --- Static grid (≤3 cards) --- */
.aa-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: 0;
    text-align: center;
    position: relative;
}

.aa-testimonials__grid .aa-testimonials__separator {
    position: absolute;
    background-color: var(--aa-border);
    pointer-events: none;
}

.aa-testimonials__grid .aa-testimonials__separator--horizontal {
    width: 100%;
    height: 1px;
    left: 0;
}

.aa-testimonials__grid .aa-testimonials__separator--vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

/* --- Card --- */
.aa-testimonials__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.aa-testimonials--carousel .aa-testimonials__card {
    border-top: none;
}

.aa-testimonials__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aa-testimonials__meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aa-testimonials__quote-icon {
    position: absolute;
    align-self: flex-start;
    top: 8px;
    left: 4px;
    color: var(--aa-accent);
    opacity: 0.4;
    /* margin-bottom: 0.5rem; */
}

.aa-testimonials__text {
    font-family: var(--wp--preset--font-family--heading) !important;
    font-style: italic !important;
    font-size: 1.6rem !important;
    font-weight: 300 !important;
    line-height: 1.3;
    color: var(--aa-text-secondary);
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
    max-width: 32ch;
}

.aa-testimonials__text p {
    margin: 0;
}

.aa-testimonials__stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.aa-testimonials__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    align-self: center;
}

.aa-testimonials__author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 58px;
    justify-content: center;
}

.aa-testimonials__avatar,
.aa-testimonials__avatar--placeholder {
    flex-shrink: 0;
}

.aa-testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.aa-testimonials__author picture {
    display: flex;
    align-items: center;
    height: 48px;
}

.aa-testimonials__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--aa-bg-secondary);
    color: var(--aa-text-muted);
}

.aa-testimonials__name {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aa-text-primary);
}

.aa-testimonials__author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aa-testimonials__date {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aa-text-muted);
}

/* --- Carousel (>3 cards) --- */
.aa-testimonials--carousel {
    max-width: var(--wp--style--global--content-size, 1440px);
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.aa-testimonials__track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: aaTestimonialScroll var(--aa-carousel-duration, 30s) linear infinite;
}

.aa-testimonials--carousel .aa-testimonials__card {
    flex: 0 0 340px;
    border-top: none;
}

.aa-testimonials__track:hover {
    animation-play-state: paused;
}

@keyframes aaTestimonialScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .aa-testimonials__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aa-testimonials__text {
        max-width: none;
    }

    .aa-testimonials--carousel .aa-testimonials__card {
        flex: 0 0 280px;
    }
}

/* Testimonials Entry Animations */
.aa-testimonials--anim-fade {
    animation: aa-fade-in 0.6s ease-out backwards;
}

.aa-testimonials--anim-slide-up {
    animation: aa-slide-up 0.6s ease-out backwards;
}

.aa-testimonials--anim-bounce {
    animation: aa-bounce 0.8s ease-out backwards;
}

@keyframes aa-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes aa-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aa-bounce {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.aa-faq {
    max-width: 760px;
    margin: 0 auto;
}

.aa-faq__heading {
    text-align: center;
    margin-bottom: 3rem;
}

.aa-faq__list {
    border-top: 1px solid var(--aa-border);
}

.aa-faq__item {
    border-bottom: 1px solid var(--aa-border);
}

.aa-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color var(--aa-transition);
}

.aa-faq__question::-webkit-details-marker,
.aa-faq__question::marker {
    display: none;
    content: '';
}

.aa-faq__question:hover {
    color: var(--aa-accent);
}

.aa-faq__question-text {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--x-large);
    font-weight: 400;
    line-height: 1.5;
    color: var(--aa-text-secondary);
    transition: color var(--aa-transition);
}

.aa-faq__question:hover .aa-faq__question-text {
    color: var(--aa-accent);
}

.aa-faq__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--aa-accent);
}

.aa-faq__icon-minus {
    display: none;
}

.aa-faq__item[open] .aa-faq__icon-plus {
    display: none;
}

.aa-faq__item[open] .aa-faq__icon-minus {
    display: block;
}

.aa-faq__answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    padding: 0 0 0 0;
}

.aa-faq__item[open] .aa-faq__answer {
    max-height: 600px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

.aa-faq__answer p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--aa-text-secondary);
    margin: 0 0 0.75rem;
}

.aa-faq__answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Portfolio Grid
   ========================================================================== */

.aa-portfolio {
    margin-top: 72px;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.aa-portfolio__header {
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.aa-portfolio__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.aa-portfolio__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.aa-portfolio__filter button {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--aa-border);
    color: var(--aa-text-muted);
    cursor: pointer;
    border-radius: var(--aa-radius);
    transition: all var(--aa-transition);
}

.aa-portfolio__filter button:hover,
.aa-portfolio__filter button.is-active {
    border-color: var(--aa-accent);
    color: var(--aa-accent);
    background: var(--aa-accent-muted);
}

.aa-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.aa-portfolio__item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4 / 5;
    cursor: pointer;
    background: var(--aa-bg-tertiary);
}

.aa-portfolio__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    display: block;
}

.aa-portfolio__item:hover img:not(.scp-watermark-img) {
    transform: scale(1.05);
}

.aa-portfolio__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
}

.aa-portfolio__item:hover .aa-portfolio__item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.aa-portfolio__item-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.25rem;
}

.aa-portfolio__item-meta {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Seamless grid: eliminate sub-pixel gaps when spacing is none */
.aa-portfolio--seamless .aa-portfolio__item {
    margin: -0.5px;
}

.aa-portfolio--seamless .aa-portfolio__item img {
    transform: scale(1.005);
}

@media (max-width: 768px) {
    .aa-portfolio__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .aa-portfolio__item-overlay {
        transform: none;
        opacity: 1;
    }
}

/* ==========================================================================
   Single Artwork
   ========================================================================== */

/* Artwork page hero — mirrors the title structure of Portfolio / Contact pages */

.aa-artwork {
    margin-top: clamp(2rem, 4vw, 3rem) !important;
    max-width: var(--wp--style--global--content-size, 720px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.aa-artwork__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.aa-artwork__main {
    min-width: 0;
}

/* Slideshow */
.aa-slideshow {
    position: relative;
    overflow: hidden;
    overflow: clip;
    border-radius: var(--aa-radius-lg);
    margin-bottom: 0;
    outline: none;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aa-slideshow__track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.aa-slideshow__slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    max-height: 70vh;
    overflow: hidden;
    outline: none;
}

.aa-slideshow__slide img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 1px solid var(--aa-border);
    border-radius: var(--aa-radius-lg);
}

.aa-slideshow__slide img.scp-watermark-img {
    border: none;
    border-radius: 0;
    max-height: none;
    margin: 0;
    transition: none !important;
}

.aa-slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--aa-bg-overlay);
    border: 1px solid var(--aa-border);
    color: var(--aa-text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--aa-transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.aa-slideshow__nav:hover {
    background: var(--aa-accent);
    border-color: var(--aa-accent);
    color: var(--aa-bg-primary);
}

.aa-slideshow__nav--prev {
    left: 1rem;
}

.aa-slideshow__nav--next {
    right: 1rem;
}

.aa-slideshow__nav svg {
    width: 18px;
    height: 18px;
}

/* Slideshow Caption — frosted-glass bar, per-slide */
.aa-slideshow__slide {
    position: relative;
}

.aa-slideshow__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(8, 8, 8, 0.66);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    border-radius: 0 0 calc(var(--aa-radius-lg, 8px) - 1px) calc(var(--aa-radius-lg, 8px) - 1px);
    color: var(--aa-caption-text) !important;
    font-size: 13px !important;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    letter-spacing: 0.015em;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(3 * 1.4em + 1rem);
    z-index: 5;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    pointer-events: none;
}

.aa-slideshow__slide.is-active .aa-slideshow__caption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .aa-slideshow__caption {
        font-size: 12px !important;
        padding: 0.4rem 0.75rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: calc(3 * 1.4em + 0.8rem);
    }
}

@media (max-width: 480px) {
    .aa-slideshow__caption {
        font-size: 11px !important;
        padding: 0.3rem 0.6rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: calc(2 * 1.4em + 0.6rem);
    }
}

.aa-slideshow__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 18px 0;
}

.aa-slideshow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--aa-dot-bg);
    background: var(--aa-dot-bg);
    cursor: pointer;
    transition: all var(--aa-transition);
    padding: 0;
}

.aa-slideshow__dot.is-active {
    background: var(--aa-accent);
    border-color: var(--aa-accent);
}

/* Slideshow Progress Bar (>5 images) */
.aa-slideshow__progress {
    display: flex;
    justify-content: center;
    padding: 18px 0;
}

.aa-slideshow__progress-track {
    position: relative;
    width: 120px;
    height: 10px;
    background: var(--aa-bg-primary);
    border: 0.5px solid var(--aa-details-border);
    border-radius: 5px;
    cursor: pointer;
}

.aa-slideshow__microdot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--aa-progress-bar-microdot);
    pointer-events: none;
    z-index: 1;
}

.aa-slideshow__progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aa-accent);
    border: none;
    cursor: grab;
    transition: left 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    z-index: 2;
}

.aa-slideshow__progress-thumb:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 0 3px rgba(160, 125, 63, 0.25);
}

/* Slideshow Instagram-style Dots (sliding window) */
.aa-slideshow__igdots {
    display: flex;
    justify-content: center;
    padding: 18px 0;
}

.aa-slideshow__igdots-window {
    overflow: hidden;
    display: flex;
    align-items: center;
}

.aa-slideshow__igdots-track {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aa-slideshow__igdot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--aa-dot-bg);
    border: 1px solid var(--aa-dot-bg);
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                opacity 0.3s ease;
}

.aa-slideshow__igdot.is-active {
    background: var(--aa-accent);
    border-color: var(--aa-accent);
}

.aa-slideshow__igdot[data-distance="1"] {
    transform: scale(0.75);
}

.aa-slideshow__igdot[data-distance="2"] {
    transform: scale(0.5);
    opacity: 0.7;
}

.aa-slideshow__igdot[data-distance="3"] {
    transform: scale(0.375);
    opacity: 0.5;
}

/* Spacer when slideshow nav is hidden (single image or nav disabled) */
.aa-slideshow__nav-spacer {
    height: 10px;
    padding: 18px 0;
}

/* Artwork Content */
.aa-artwork__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.aa-artwork__description {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--aa-text-secondary);
    margin-top: clamp(1.5rem, 4vw, 3.125rem);
}

/* Sidebar — sticky/static controlled by aa_sticky_side_text option */
.aa-artwork__sidebar {
    position: static;
}

.aa-artwork__sidebar.is-sticky {
    position: sticky;
    top: 96px;
    align-self: start;
}

.aa-artwork__details,
.aa-artwork__metadata {
    background: var(--aa-bg-card);
    border: 1px solid var(--aa-details-border);
    border-radius: var(--aa-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: background var(--aa-transition), border-color var(--aa-transition);
}

.aa-artwork__details-title,
.aa-artwork__metadata-title {
    color: var(--aa-text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--aa-border);
}

.aa-artwork__detail-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--aa-border);
}

.aa-artwork__detail-row:last-of-type {
    border-bottom: none;
}

.aa-artwork__detail-label {
    color: var(--aa-text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.aa-artwork__detail-value {
    color: var(--aa-text-primary);
    font-weight: 400;
    text-align: right;
    min-width: 0;
}

.aa-artwork__detail-row--status {
    align-items: center;
}

.aa-artwork__detail-row--status .aa-artwork__detail-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.aa-artwork__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.aa-artwork__tag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.75rem;
    background: var(--aa-accent-muted);
    color: var(--aa-accent);
    border-radius: 2px;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background var(--aa-transition);
}

.aa-artwork__tag:hover {
    background: var(--aa-accent);
    color: var(--aa-bg-primary);
}

.aa-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(1.5rem, 3vw, 2rem) 0 0;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

.aa-share-buttons__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--aa-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aa-share-buttons a,
.aa-share-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    color: var(--aa-text-secondary);
    transition: color var(--aa-transition), background var(--aa-transition);
}

.aa-share-buttons a:hover,
.aa-share-buttons button:hover {
    color: var(--aa-accent);
}

.aa-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aa-share-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.6875rem;
    line-height: 1.4;
    padding: 4px 10px;
    background: #fff;
    color: var(--aa-social-tooltip-color);
    border: 1px solid var(--aa-social-tooltip-color);
    border-radius: 1px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.aa-share-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--aa-social-tooltip-color);
}

.aa-share-tooltip::after {
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.aa-share-btn:hover .aa-share-tooltip,
.aa-share-btn:focus-visible .aa-share-tooltip {
    opacity: 1;
}

button.aa-share-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

button.aa-share-btn:hover {
    color: var(--aa-accent);
}

.aa-share-btn--copied {
    color: var(--aa-accent);
}

.aa-share-btn--copied svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.aa-share-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 1rem);
    z-index: 9999;
    padding: 0.875rem 1.5rem;
    background: var(--aa-accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.aa-share-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.aa-share-toast--error {
    background: #c0392b;
}

@media (prefers-reduced-motion: reduce) {
    .aa-share-toast,
    .aa-share-btn--copied {
        transition: none;
    }
}

@media (max-width: 992px) {
    .aa-artwork__layout {
        grid-template-columns: 1fr;
    }

    .aa-artwork__sidebar,
    .aa-artwork__sidebar.is-sticky {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-self: auto;
    }

    .aa-artwork__details,
    .aa-artwork__metadata {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .aa-artwork__sidebar,
    .aa-artwork__sidebar.is-sticky {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.aa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aa-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.aa-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.aa-lightbox__close:hover {
    opacity: 1;
}

.aa-lightbox__close svg {
    width: 28px;
    height: 28px;
}

.aa-lightbox__content {
    position: relative;
    max-width: 96vw;
    max-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-lightbox__image {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.aa-lightbox__caption {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--aa-caption-text);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 300;
    text-align: center;
    white-space: nowrap;
    max-width: 50vw;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 5;
}

/* Neutralise any plugin overlay (e.g. SCP watermark) inside the lightbox
   so it does not block zoom clicks, panning or the cursor */
.aa-lightbox__content > *:not(.aa-lightbox__image):not(.aa-lightbox__caption) {
    pointer-events: none !important;
}

.aa-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    width: 44px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    padding: 0;
}

.aa-lightbox__nav svg {
    width: 48px;
    height: 48px;
}

.aa-lightbox__nav:hover {
    color: #fff;
}

.aa-lightbox__nav--prev {
    left: 1.25rem;
}

.aa-lightbox__nav--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.aa-lightbox__nav--next {
    right: 1.25rem;
}

.aa-lightbox__nav--next:hover {
    transform: translateY(-50%) translateX(3px);
}

.aa-lightbox__counter {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--wp--preset--font-size--medium);
    font-variant-numeric: tabular-nums;
    -webkit-text-stroke-width: 1.3px;
    -webkit-text-stroke-color: #1a1815;
    paint-order: stroke fill;
    z-index: 10;
}

/* Lightbox — Zoomed state */
.aa-lightbox.is-zoomed .aa-lightbox__content {
    align-items: flex-start;
    justify-content: flex-start;
}

.aa-lightbox.is-zoomed .aa-lightbox__image {
    max-width: none;
    max-height: none;
    object-fit: fill;
    will-change: transform;
}

.aa-lightbox.is-zoomed .aa-lightbox__caption {
    display: none !important;
}

/* ==========================================================================
   WordPress Block Overrides
   ========================================================================== */

.wp-block-post-content {
    color: var(--aa-text-secondary);
}

/* Allow sticky sidebar on single-artwork pages.
   WP core sets overflow:hidden on .is-layout-constrained containers;
   that breaks position:sticky on any descendant. */
body.single-artwork .wp-site-blocks,
body.single-artwork .wp-site-blocks > main,
body.single-artwork .wp-block-post-content,
body.single-artwork .is-layout-constrained,
body.single-artwork .is-layout-flow {
    overflow: visible !important;
}

.wp-site-blocks {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--aa-bg-primary);
    color: var(--aa-text-primary);
}

.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:not(.aa-header):not(.aa-footer) {
    flex: 1;
}

/* Ensure block content inherits dark/light aware colors */
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6,
.wp-block-post-content .wp-block-heading {
    color: var(--aa-text-primary);
}

.wp-block-post-content p,
.wp-block-post-content .wp-block-paragraph {
    color: var(--aa-text-secondary);
}

/* Light mode: darken paragraph text for stronger contrast */
[data-theme="light"] .wp-block-post-content p,
[data-theme="light"] .wp-block-post-content .wp-block-paragraph {
    color: var(--aa-text-primary);
}

/* Reset block gaps within page content to prevent excessive row heights */
.wp-block-post-content .wp-block-group > * + *,
.wp-block-post-content .wp-block-column > * + * {
    margin-block-start: 0;
}

.wp-block-post-content .wp-block-columns {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Quote block */
.wp-block-post-content .wp-block-quote,
.wp-block-post-content .wp-block-quote p {
    color: var(--aa-text-secondary);
}

.wp-block-separator {
    border-color: var(--aa-border) !important;
    opacity: 1;
}

.wp-block-image img {
    border-radius: var(--aa-radius);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Full-bleed: background stretches to viewport edges,
   inner content stays constrained to content-size (720px).
   Apply via "Additional CSS class(es)" in the block editor. */
.aa-full-bleed {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.aa-full-bleed > *,
.aa-full-bleed .wp-block-quote,
.aa-full-bleed .wp-block-pullquote,
.aa-full-bleed .wp-block-heading {
    max-width: var(--wp--style--global--content-size, 720px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Width utilities — apply via "Additional CSS class(es)" in the block editor.
   Element is centred by default. Combine with aa-align-left or aa-align-right
   to pin it to one side instead. */
.aa-w-100  { max-width: 100px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-150  { max-width: 150px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-200  { max-width: 200px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-250  { max-width: 250px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-300  { max-width: 300px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-350  { max-width: 350px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-400  { max-width: 400px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-450  { max-width: 450px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-500  { max-width: 500px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-600  { max-width: 600px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-700  { max-width: 700px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-800  { max-width: 800px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-900  { max-width: 900px  !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-1000 { max-width: 1000px !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-1100 { max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; }
.aa-w-1200 { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }

.aa-align-left  { margin-left: 0 !important; margin-right: auto !important; }
.aa-align-right { margin-left: auto !important; margin-right: 0 !important; }

.aa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aa-fade-in {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aa-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.aa-404 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.aa-404__bg {
    position: absolute;
    inset: 0;
    background-color: var(--aa-bg-primary);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.aa-404__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #0a0a0a;
}

.aa-404__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

.aa-404__ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.aa-404__ornament span {
    display: block;
    background: var(--aa-accent);
    border-radius: 1px;
}

.aa-404__ornament span:nth-child(1),
.aa-404__ornament span:nth-child(3) {
    width: 40px;
    height: 1px;
    opacity: 0.5;
}

.aa-404__ornament span:nth-child(2) {
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    opacity: 0.8;
}

h1.aa-404__number {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(7rem, 18vw, 14rem) !important;
    letter-spacing: -0.02em !important;
    font-weight: 300;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0 0 0.5rem;
    user-select: none;
}

.aa-404__subtitle {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--aa-accent);
    margin: 0 0 1.5rem;
}

.aa-404__title {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--aa-text-secondary);
    margin: 0 0 2.5rem;
    max-width: 30rem;
    line-height: 1.6;
}

.aa-404__actions {
    display: flex;
    justify-content: center;
}

.aa-404__link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    border: 1px solid var(--aa-accent);
    border-radius: var(--aa-radius);
    color: var(--aa-accent);
    text-decoration: none;
    transition: all var(--aa-transition);
}

.aa-404__link:hover {
    background: var(--aa-accent);
    color: var(--aa-bg-primary);
}

/* 404 — Light mode overrides */
[data-theme="light"] .aa-404__bg {
    background-color: #f5f3ef;
}

[data-theme="light"] .aa-404__bg::after {
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.6) 0%, rgba(232,229,224,0.5) 100%);
}

[data-theme="light"] .aa-404__number {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.03) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .aa-404__ornament span {
    background: var(--aa-text-primary);
}

[data-theme="light"] .aa-404__subtitle {
    color: var(--aa-accent);
}

[data-theme="light"] .aa-404__title {
    color: var(--aa-text-secondary);
}

[data-theme="light"] .aa-404__link {
    border-color: var(--aa-text-primary);
    color: var(--aa-text-primary);
}

[data-theme="light"] .aa-404__link:hover {
    background: var(--aa-text-primary);
    color: var(--aa-bg-primary);
}

[data-theme="light"] .error404 .aa-footer {
    background: var(--aa-bg-primary);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .aa-header,
    .aa-footer,
    .aa-theme-toggle,
    .aa-lightbox,
    .aa-slideshow__nav,
    .aa-slideshow__dots,
    .aa-slideshow__igdots,
    .aa-slideshow__progress {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .aa-artwork__layout {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Related Works
   ========================================================================== */

.aa-related-works {
    position: relative;
}

.aa-related-works::before {
    content: '';
    display: block;
    max-width: var(--wp--style--global--content-size, 720px);
    margin: 0 auto;
    border-top: 1px solid var(--aa-border);
}

/* ── Simple centered grid (≤ 4 items) ── */
.aa-related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.aa-related-grid a {
    flex: 0 0 calc(25% - 0.9375rem);
    max-width: calc(25% - 0.9375rem);
}

/* ── Carousel (> 4 items) ── */
.aa-related-carousel {
    position: relative;
    margin-top: 2rem;
}

.aa-related-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.aa-related-track::-webkit-scrollbar { display: none; }

.aa-related-track a {
    flex: 0 0 calc(25% - 0.9375rem);
    min-width: calc(25% - 0.9375rem);
}

.aa-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--aa-bg-overlay, rgba(0, 0, 0, 0.55));
    border: 1px solid var(--aa-border);
    color: var(--aa-text-primary);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    backdrop-filter: blur(4px);
}

.aa-related-carousel:hover .aa-related-arrow { opacity: 1; }
.aa-related-arrow:hover { background: var(--aa-accent); color: var(--aa-bg-primary); }
.aa-related-arrow--prev { left: 0.75rem; }
.aa-related-arrow--next { right: 0.75rem; }

.aa-related-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* ── Shared card styles ── */
.aa-related-grid a,
.aa-related-track a {
    display: block;
    overflow: hidden;
    border-radius: var(--aa-radius);
    aspect-ratio: 4 / 5;
    position: relative;
    text-decoration: none;
}

.aa-related-grid a img,
.aa-related-track a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aa-related-grid a:hover img,
.aa-related-track a:hover img {
    transform: scale(1.05);
}

.aa-related-grid a .aa-related-title,
.aa-related-track a .aa-related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.45rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.aa-related-grid a:hover .aa-related-title,
.aa-related-track a:hover .aa-related-title {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .aa-related-grid a {
        flex: 0 0 calc(50% - 0.625rem);
        max-width: calc(50% - 0.625rem);
    }

    .aa-related-track a {
        flex: 0 0 calc(50% - 0.625rem);
        min-width: calc(50% - 0.625rem);
    }

    .aa-related-grid a .aa-related-title,
    .aa-related-track a .aa-related-title {
        opacity: 1;
        transform: translateY(0);
    }

    .aa-related-arrow { opacity: 1; }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.aa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid var(--aa-border);
}

.aa-pagination a,
.aa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--aa-text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--aa-radius);
    transition: all var(--aa-transition);
}

.aa-pagination a:hover {
    color: var(--aa-accent);
    border-color: var(--aa-accent);
}

.aa-pagination .current {
    color: var(--aa-accent);
    border-color: var(--aa-accent);
    background: var(--aa-accent-muted);
}

.aa-pagination .dots {
    border: none;
    color: var(--aa-text-muted);
}

/* ==========================================================================
   Availability Badge
   ========================================================================== */

.aa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
}

.aa-badge--available {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
}

.aa-badge--sold {
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
}

.aa-badge--reserved {
    background: rgba(255, 152, 0, 0.12);
    color: #ff9800;
}

.aa-badge--not-for-sale {
    background: rgba(158, 158, 158, 0.12);
    color: #9e9e9e;
}

.aa-badge--on-loan {
    background: rgba(33, 150, 243, 0.12);
    color: #2196f3;
}

.aa-badge--in-exhibition {
    background: rgba(156, 39, 176, 0.12);
    color: #9c27b0;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.aa-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--aa-bg-primary);
    color: var(--aa-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.aa-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   Theme Transition Class — prevents FOUC during mode switch
   ========================================================================== */

.aa-theme-transitioning *,
.aa-theme-transitioning *::before,
.aa-theme-transitioning *::after {
    transition: background-color 0.35s ease, background 0.35s ease,
               border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* ==========================================================================
   WordPress Core Block Refinements
   ========================================================================== */

.wp-block-navigation a {
    color: var(--aa-text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--aa-transition);
    position: relative;
    padding: 0.25rem 0;
}

.wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation a[aria-current="page"] {
    color: var(--aa-text-primary) !important;
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a[aria-current="page"]::after {
    width: 100%;
}

/* Remove WP navigation block default underlines and focus outlines on links */
.wp-block-navigation .wp-block-navigation-item__content {
    text-decoration: none !important;
}

/* WP default text-decoration removed via text-decoration:none above;
   keep ::after pseudo-element alive for our custom underline effect */

/* --------------------------------------------------------
   Custom pagination navigator (adapted from hhrr-intersect)
   JS indicator: functions.php → aa_pagination_sliding_js()
   -------------------------------------------------------- */
.aa-pagination {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    padding: 2.5rem 0 0;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    position: relative;
}
.aa-pagination a, .aa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.9125rem;
    color: var(--aa-text-secondary);
    text-decoration: none;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--aa-radius, 0);
    transition: all var(--aa-transition);
}

/* Current page */
.aa-pagination .aa-pagination__page--current {
    cursor: default;
    color: var(--aa-accent);
    border: 1px solid var(--aa-accent);
    background: var(--aa-accent-muted);
    font-weight: 600;
}

/* Hover states */
.aa-pagination a:hover {
    color: var(--aa-accent);
    border-color: var(--aa-border);
}

/* Arrows */
.aa-pagination .aa-pagination__arrow {
    font-size: 1.3em;
    line-height: 1;
    color: var(--aa-text-muted);
}

.aa-pagination .aa-pagination__arrow:hover {
    color: var(--aa-accent);
    border-color: var(--aa-accent);
}

/* Ellipsis */
.aa-pagination .aa-pagination__ellipsis {
    color: var(--aa-accent);
    cursor: default;
    border: none;
}
.aa-pagination__indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1.5px;
    width: 1.6em;
    background-color: currentColor;
    color: var(--aa-accent);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform;
    opacity: 0;
}

/* Featured image hover in archive grids */
.aa-portfolio__item-wrap .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 0 !important;
}

.aa-portfolio__item-wrap .wp-block-post-featured-image img {
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aa-portfolio__item-wrap:hover .wp-block-post-featured-image img:not(.scp-watermark-img) {
    transform: scale(1.04);
}

/* Artwork placeholder for missing featured images */
.wp-block-post-featured-image a:has(.aa-artwork-placeholder) {
    display: block;
    width: 100%;
    height: 100%;
}

.aa-artwork-placeholder {
    /* aspect-ratio set dynamically by theme options via #aa-portfolio-archive-options */
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aa-bg-tertiary);
    border: 1px solid var(--aa-border);
    position: relative;
    transition: border-color var(--aa-transition);
}

.aa-artwork-placeholder__passepartout {
    position: absolute;
    inset: 6%;
    border: 1px solid var(--aa-accent);
    opacity: 0.12;
    pointer-events: none;
    transition: opacity var(--aa-transition);
}

.aa-artwork-placeholder__icon {
    width: 75%;
    height: 85%;
    background-color: var(--aa-accent);
    -webkit-mask-image: url(assets/images/placeholder-portrait.svg);
    mask-image: url(assets/images/placeholder-portrait.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.32;
    transition: opacity var(--aa-transition);
}

.aa-portfolio__item-wrap:hover .aa-artwork-placeholder {
    border-color: var(--aa-border-hover);
}

.aa-portfolio__item-wrap:hover .aa-artwork-placeholder__icon {
    opacity: 0.45;
}

.aa-portfolio__item-wrap:hover .aa-artwork-placeholder__passepartout {
    opacity: 0.2;
}

/* Post title links */
.wp-block-post-title a {
    color: var(--aa-text-primary) !important;
    text-decoration: none !important;
    transition: color var(--aa-transition);
}

.wp-block-post-title a:hover {
    color: var(--aa-accent) !important;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1.5rem;
    background: var(--aa-accent);
    color: var(--aa-bg-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 var(--aa-radius) var(--aa-radius);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Empty Portfolio State
   ========================================================================== */

.aa-portfolio__empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--aa-text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.aa-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--aa-radius-lg);
    font-size: 0.9375rem;
    animation: aa-toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: calc(100vw - 2rem);
}

/* --- Success --- */
.aa-toast--success {
    background: #0d2818;
    border: 1px solid #2ecc71;
    color: #6fe8a4;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
}
[data-theme="light"] .aa-toast--success {
    background: #eafaf1;
    border-color: #27ae60;
    color: #1e8449;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.15);
}

/* --- Error --- */
.aa-toast--error {
    background: #2c1014;
    border: 1px solid #e74c3c;
    color: #f1948a;
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.2);
}
[data-theme="light"] .aa-toast--error {
    background: #fdedec;
    border-color: #c0392b;
    color: #922b21;
    box-shadow: 0 8px 32px rgba(192, 57, 43, 0.15);
}

/* --- Hide transition --- */
.aa-toast--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
    pointer-events: none;
}

/* --- Close button --- */
.aa-toast__close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    transition: opacity 0.2s ease;
}
.aa-toast__close:hover {
    opacity: 1;
}

@keyframes aa-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(1.5rem); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   Focus Visible — Modern keyboard focus styles
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--aa-accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--aa-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.aa-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: 1px solid var(--aa-border);
    border-radius: 50%;
    background: var(--aa-bg-secondary);
    color: var(--aa-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--aa-transition), background var(--aa-transition);
}

.aa-back-to-top:hover {
    opacity: 1;
    background: var(--aa-accent);
    border-color: var(--aa-accent);
    color: #fff;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */


/* ==========================================================================
   Menu Underline Animation Effects
   Controlled by data-nav-effect attribute on <html>, set via theme option.
   Default (left-right) needs no attribute — it's the base ::after behavior.
   ========================================================================== */

/* ── Right to Left ── */
[data-nav-effect="right-left"] .aa-header__nav a::after,
[data-nav-effect="right-left"] .wp-block-navigation a::after {
    left: auto;
    right: 0;
}

/* ── Center Outward ── */
[data-nav-effect="center-out"] .aa-header__nav a::after,
[data-nav-effect="center-out"] .wp-block-navigation a::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Bottom to Top ── */
[data-nav-effect="bottom-up"] .aa-header__nav a::after,
[data-nav-effect="bottom-up"] .wp-block-navigation a::after {
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-nav-effect="bottom-up"] .aa-header__nav a:hover::after,
[data-nav-effect="bottom-up"] .aa-header__nav a[aria-current="page"]::after,
[data-nav-effect="bottom-up"] .wp-block-navigation a:hover::after,
[data-nav-effect="bottom-up"] .wp-block-navigation a[aria-current="page"]::after {
    transform: scaleY(1);
}

/* ── Progressive Fade-in ── */
[data-nav-effect="fade-in"] .aa-header__nav a::after,
[data-nav-effect="fade-in"] .wp-block-navigation a::after {
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

[data-nav-effect="fade-in"] .aa-header__nav a:hover::after,
[data-nav-effect="fade-in"] .aa-header__nav a[aria-current="page"]::after,
[data-nav-effect="fade-in"] .wp-block-navigation a:hover::after,
[data-nav-effect="fade-in"] .wp-block-navigation a[aria-current="page"]::after {
    opacity: 1;
    width: 100%;
}

/* ── Elastic Stretch ── */
[data-nav-effect="elastic"] .aa-header__nav a::after,
[data-nav-effect="elastic"] .wp-block-navigation a::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-nav-effect="elastic"] .aa-header__nav a:hover::after,
[data-nav-effect="elastic"] .aa-header__nav a[aria-current="page"]::after,
[data-nav-effect="elastic"] .wp-block-navigation a:hover::after,
[data-nav-effect="elastic"] .wp-block-navigation a[aria-current="page"]::after {
    transform: translateX(-50%) scaleX(1);
    width: 100%;
}

/* ── Double Line Reveal ── */
[data-nav-effect="double-line"] .aa-header__nav a::after,
[data-nav-effect="double-line"] .wp-block-navigation a::after {
    height: 1px;
    transition: width 0.3s ease;
}

[data-nav-effect="double-line"] .aa-header__nav a::before,
[data-nav-effect="double-line"] .wp-block-navigation a::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--aa-accent);
    transition: width 0.3s ease 0.1s;
}

[data-nav-effect="double-line"] .aa-header__nav a:hover::after,
[data-nav-effect="double-line"] .aa-header__nav a[aria-current="page"]::after,
[data-nav-effect="double-line"] .wp-block-navigation a:hover::after,
[data-nav-effect="double-line"] .wp-block-navigation a[aria-current="page"]::after {
    width: 100%;
}

[data-nav-effect="double-line"] .aa-header__nav a:hover::before,
[data-nav-effect="double-line"] .aa-header__nav a[aria-current="page"]::before,
[data-nav-effect="double-line"] .wp-block-navigation a:hover::before,
[data-nav-effect="double-line"] .wp-block-navigation a[aria-current="page"]::before {
    width: 100%;
}

/* ── Accent Glow ── */
[data-nav-effect="glow"] .aa-header__nav a::after,
[data-nav-effect="glow"] .wp-block-navigation a::after {
    width: 100%;
    height: 1px;
    opacity: 0;
    box-shadow: 0 0 6px var(--aa-accent), 0 0 12px var(--aa-accent);
    transition: opacity 0.35s ease;
}

[data-nav-effect="glow"] .aa-header__nav a:hover::after,
[data-nav-effect="glow"] .aa-header__nav a[aria-current="page"]::after,
[data-nav-effect="glow"] .wp-block-navigation a:hover::after,
[data-nav-effect="glow"] .wp-block-navigation a[aria-current="page"]::after {
    opacity: 1;
    width: 100%;
}
/* ==========================================================================
   Parallax Hero Banner
   ========================================================================== */

.aa-parallax-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

.aa-parallax-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

/* iOS / mobile: background-attachment:fixed is unsupported — fall back to scroll */
@supports (-webkit-touch-callout: none) {
    .aa-parallax-hero {
        background-attachment: scroll;
    }
}

@media (max-width: 782px) {
    .aa-parallax-hero {
        height: 280px;
        background-attachment: scroll;
    }
}

/* Privacy Policy - Collected Data Labels */
.privacy-collected-data {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}

/* Privacy Policy - Table Styles for Dark Mode */
[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--aa-bg-tertiary);
}

[data-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: var(--aa-bg-secondary);
}

[data-theme="dark"] .wp-block-table.is-style-stripes thead {
    background-color: var(--aa-bg-tertiary);
}

[data-theme="dark"] .wp-block-table.is-style-stripes thead th {
    color: var(--aa-text-primary);
    font-weight: 600;
}

[data-theme="dark"] .wp-block-table.is-style-stripes tbody td {
    color: var(--aa-text-secondary);
}

[data-theme="dark"] .wp-block-table {
    border-color: var(--aa-border);
}

[data-theme="dark"] .wp-block-table td,
[data-theme="dark"] .wp-block-table th {
    border-color: var(--aa-border);
}

/* Form Validation - Invalid Fields */
.aa-form-field-invalid {
    border-color: #dc3545 !important;
    animation: aa-shake 0.3s ease-in-out;
}

@keyframes aa-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

[data-theme="dark"] .aa-form-field-invalid {
    border-color: #ff6b6b !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .aa-fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .aa-slideshow__track {
        transition: none !important;
    }
}

/* Fix SCP Protection wrapper fixed width breaking flex columns on resize */
.scp-image-wrapper {
    width: auto !important;
    max-width: 100% !important;
}

/* About Artist — force portrait image to full width when columns stack */
@media (max-width: 1024px) {
    .page-id-225 .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-id-225 .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image img,
    .page-id-225 .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image .scp-image-wrapper,
    .page-id-225 .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image picture {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Stabilise SCP wrapper width for correct watermark positioning */
    .page-id-225 .wp-block-columns.alignwide > .wp-block-column:first-child .scp-image-wrapper {
        width: 100% !important;
        display: block !important;
    }
}

/* About page — image credit caption */
.aa-about-hero .wp-block-image figcaption,
.aa-about-hero__image-credit {
    text-align: right;
    font-style: italic;
    font-size: 0.75rem;
    color: var(--aa-text-muted, #6b6660);
    margin-top: 0.5rem;
}

