/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    color: inherit;
}

ul, ol {
    list-style: none;
}

::selection {
    background-color: var(--accent);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: var(--text-xl);
}

.label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.caption {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page-content {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    flex-direction: column;
}

.site-logo-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    transition: color var(--transition-base);
}

.site-logo-title:hover {
    color: var(--accent);
}

.site-logo-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: var(--space-8);
}

.site-nav a {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: var(--space-2) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hamburger */

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 99;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-base), visibility var(--transition-base);
}

.mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--text);
    transition: color var(--transition-base);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--space-16) 0 var(--space-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--text);
}

.footer-col p,
.footer-col li {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col a {
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
    margin-top: var(--space-4);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--text-muted);
    color: var(--text);
    transition: all var(--transition-base);
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-whatsapp {
    background: #657856;
    border-color: #657856;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #54664A;
    border-color: #54664A;
    color: var(--white);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.link-arrow {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: color var(--transition-base);
}

.link-arrow:hover {
    color: var(--text);
}

/* ==========================================================================
   Divider
   ========================================================================== */

.divider {
    width: 3rem;
    height: 1px;
    background: rgba(139, 94, 60, 0.5);
    margin: var(--space-4) auto;
}

/* ==========================================================================
   Home Page — Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}


.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-info {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: var(--space-12) var(--space-6);
    color: #fff;
    mix-blend-mode: difference;
}

.hero-info .label {
    width: 100%;
    margin-bottom: 0;
    color: #fff;
}

.hero-info h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0;
    color: #fff;
}

.hero-info .caption {
    font-size: var(--text-lg);
    margin-bottom: 0;
    color: #fff;
}

.hero-info .btn {
    border-color: #fff;
    color: #fff;
}

.hero-info .btn:hover {
    border-color: #fff;
    color: #fff;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* ==========================================================================
   Home Page — Hero Slideshow
   ========================================================================== */

.hero-slideshow {
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 70vh;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-arrow-prev {
    left: 1rem;
}

.hero-arrow-next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.hero-dot.is-active {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

/* ==========================================================================
   Home Page — About Teaser
   ========================================================================== */

.about-teaser {
    text-align: center;
    padding: var(--space-24) var(--space-6);
    background: var(--bg-alt);
}

.about-teaser .container {
    max-width: 900px;
}

.about-teaser h2 {
    margin-bottom: var(--space-8);
}

.about-teaser-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--space-12);
}

.about-teaser-text strong {
    font-weight: 600;
    color: var(--accent);
}

.portraits-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-12);
    text-align: center;
}

.portraits-grid {
    display: inline-flex;
    gap: var(--space-8);
    opacity: 0.85;
}

.portrait-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.portrait-frame {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
    background: #f5f2eb;
}

.portrait-frame-vertical {
    width: 128px;
    height: 160px;
}

.portrait-frame-horizontal {
    width: 270px;
    height: 160px;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.portrait-item:hover .portrait-frame img {
    transform: scale(1.05);
}

.portrait-item .label {
    font-size: var(--text-2xs);
    color: var(--text-muted);
}

/* Mobile: 2x2 grid (Gerrit & Jurriën top row, Henk & Eugène bottom full width) */
@media (max-width: 767px) {
    .portraits-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        max-width: 320px;
        margin: 0 auto;
    }

    .portrait-item-horizontal {
        grid-column: 1 / -1;
    }

    .portrait-frame-horizontal {
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   Home Page — Collection Grid
   ========================================================================== */

.collection-grid {
    padding: var(--space-24) var(--space-6);
}

.collection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-8);
}

.collection-card {
    display: block;
}

.collection-card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
    margin-bottom: var(--space-4);
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    opacity: 0.9;
}

.collection-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    transition: background var(--transition-base);
}

.collection-card:hover .collection-card-image img {
    transform: scale(1.04);
    opacity: 1;
}

.collection-card:hover .collection-card-image::after {
    background: transparent;
}

.collection-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    transition: color var(--transition-base);
}

.collection-card:hover h3 {
    color: var(--accent);
}

.collection-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ==========================================================================
   Home Page — Newsletter
   ========================================================================== */

.newsletter {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.newsletter-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-2xl);
    color: var(--accent);
    font-weight: 400;
    margin-bottom: var(--space-3);
}

.newsletter-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    color: var(--text);
    max-width: 500px;
    margin: 0 auto var(--space-8);
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-base);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--accent);
}

/* ==========================================================================
   Collection Overview
   ========================================================================== */

.collection-overview {
    padding: var(--space-12) 0 var(--space-24);
}

.collection-header {
    text-align: center;
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-12);
    border-bottom: 1px solid var(--border);
}

.collection-header .label {
    display: block;
    margin-bottom: var(--space-2);
}

.collection-header h1 {
    margin-bottom: 0;
}

/* Collection grid (scoped to collection pages, not home page) */
.collection-overview .collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.collection-item {
    /* fade-in handled by .fade-in class */
}

.collection-item a {
    display: block;
}

.collection-item-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: var(--space-3);
}

/* Diagonal ribbon – small (collection grid) */
.sold-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.sold-banner > span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 170px;
    height: 30px;
    top: 22px;
    left: -42px;
    transform: rotate(-45deg);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(to right, #7a5233 0%, #a8795a 51%, #6b4829 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Diagonal ribbon – large (detail page) */
.sold-banner--lg {
    width: 200px;
    height: 200px;
}

.sold-banner--lg > span {
    width: 280px;
    height: 40px;
    top: 38px;
    left: -70px;
    font-size: 13px;
}

.collection-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.collection-item a:hover .collection-item-image img {
    transform: scale(1.04);
}

.collection-item-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    text-align: center;
    transition: color var(--transition-base);
}

.collection-item a:hover .collection-item-title {
    color: var(--accent);
}

/* Collection loading state */
.collection-grid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    color: var(--text-muted);
    font-size: var(--text-sm);
    grid-column: 1 / -1;
}

.collection-grid-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: var(--space-3);
}

.collection-grid-loading.is-error::after {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll sentinel (triggers infinite scroll) */
.collection-sentinel {
    grid-column: 1 / -1;
    height: 1px;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-hero {
    text-align: center;
    padding: var(--space-12) var(--space-6) var(--space-8);
}

.about-hero h1 {
    font-style: italic;
    margin-bottom: var(--space-4);
}

.about-hero .subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* About sections */
.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    align-items: start;
}

.about-section-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--space-8);
}

.about-section-text p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: var(--space-6);
}

.about-section-text p:last-child {
    margin-bottom: 0;
}

/* Drop cap */
.drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: var(--space-3);
    margin-top: 0.1em;
    color: var(--accent);
    font-weight: 400;
}

/* Polaroid photo */
.polaroid {
    background: var(--white);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.polaroid-image {
    overflow: hidden;
    position: relative;
}

.polaroid-image--portrait {
    aspect-ratio: 3 / 4;
}

.polaroid-image--portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-image--square {
    aspect-ratio: 1 / 1;
}

.polaroid-image--square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-image img {
    width: 100%;
    height: auto;
}

.polaroid-caption {
    text-align: center;
    padding: var(--space-4) 0 var(--space-2);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.polaroid.rotated {
    transform: rotate(1deg);
}

.polaroid.rotated:hover {
    transform: rotate(0);
}

/* Legacy continued section */
.about-legacy {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-12);
}

.about-legacy-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.about-legacy-header h2 {
    margin-bottom: var(--space-3);
}

.about-legacy-header p {
    color: var(--text-muted);
    font-weight: 300;
    font-size: var(--text-lg);
}

.about-legacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
}

.about-era-card {
    background: var(--white);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.about-era-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.about-era-card p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.about-era-card--spaced {
    margin-top: var(--space-8);
}

.about-quote {
    text-align: center;
    padding: var(--space-12) 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-2xl);
    color: var(--accent);
}

/* Services banner */
.services-banner {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.services-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.services-banner .accent-text {
    color: var(--accent);
    font-style: italic;
    display: block;
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.services-banner p {
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

.contact-page h1 {
    text-align: center;
    margin-bottom: var(--space-4);
}

.contact-page .divider {
    margin-bottom: var(--space-12);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.contact-details h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.contact-details p {
    color: var(--text-muted);
    line-height: 2;
}

.contact-details a {
    color: var(--accent);
    transition: color var(--transition-base);
}

.contact-details a:hover {
    color: var(--text);
}

.contact-links {
    margin-top: var(--space-4);
}

.contact-hours-title {
    margin-top: var(--space-8);
}

.contact-invitation {
    margin-top: var(--space-6);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
}

.contact-map {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.footer-contact-links {
    margin-top: var(--space-2);
}

.text-center {
    text-align: center;
}

.noscript-message {
    text-align: center;
    padding: var(--space-8);
}

.not-found {
    padding: var(--space-24) var(--space-6);
    text-align: center;
}

/* ==========================================================================
   Artwork Detail Page
   ========================================================================== */

.artwork-detail {
    padding: var(--space-8) 0 var(--space-16);
}

.artwork-breadcrumb {
    padding: var(--space-4) 0 var(--space-8);
}

.artwork-breadcrumb a {
    font-size: var(--text-sm);
    color: var(--accent);
    transition: color var(--transition-base);
}

.artwork-breadcrumb a:hover {
    color: var(--text);
}

.artwork-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.artwork-image-col {
    min-width: 0;
}

.artwork-zoom-hint {
    display: none;
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(0, 0, 0, 0.5);
    padding: var(--space-2) var(--space-3);
    border-radius: 4px;
    backdrop-filter: blur(2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.artwork-main-image {
    background: var(--bg-alt);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.artwork-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: 0 0;
    transition: transform 0.3s ease;
}

.artwork-main-image.is-zoomed {
    cursor: grab;
}

.artwork-main-image.is-zoomed.is-dragging {
    cursor: grabbing;
}

.artwork-main-image.is-zoomed .artwork-zoom-hint {
    display: none !important;
}

.artwork-main-image.is-panning img {
    transition: none;
}

.artwork-thumbnails {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.artwork-thumbnails .artwork-thumb {
    flex-shrink: 0;
}

.artwork-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    z-index: 2;
    padding: 0;
}

.artwork-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.artwork-nav-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.artwork-nav-prev {
    left: var(--space-3);
}

.artwork-nav-prev::before {
    transform: rotate(-135deg) translate(2px, -2px);
}

.artwork-nav-next {
    right: var(--space-3);
}

.artwork-nav-next::before {
    transform: rotate(45deg) translate(-2px, 2px);
}

.artwork-thumb {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.artwork-thumb.active {
    border-color: var(--accent);
}

.artwork-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-info-col .label {
    display: block;
    margin-bottom: var(--space-3);
}

.artwork-info-col h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.artwork-artist {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.artwork-details {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    margin-bottom: var(--space-8);
}

.artwork-details-row {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: var(--space-4);
    padding: var(--space-4) 0;
}

.artwork-details-row dt {
    font-size: var(--text-base);
    color: var(--text-muted);
    font-weight: 400;
}

.artwork-details-row dd {
    font-size: var(--text-base);
    color: var(--text);
}

/* Price variants */
.artwork-price-offer .artwork-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: var(--space-2);
}

.artwork-price-offer .artwork-price-new {
    font-weight: 500;
}

/* Rich-text rows inside artwork-details */
.artwork-details-row--rich {
    align-items: start;
}

.artwork-details-row--rich dt {
    padding-top: 2px;
}

.artwork-details-row--rich dd {
    font-size: var(--text-base);
    line-height: 1.7;
}

.artwork-details-row--rich dd p { margin-bottom: var(--space-2); }
.artwork-details-row--rich dd p:last-child { margin-bottom: 0; }

/* Thumbnail cursor */
.artwork-thumb {
    cursor: pointer;
}

.artwork-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.artwork-actions .btn {
    text-align: center;
}

/* Related Artworks */

.artwork-related {
    border-top: 1px solid var(--border);
    padding: var(--space-16) 0 var(--space-24);
}

.artwork-related h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

.artwork-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .about-section {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-16);
    }

    .about-section.reversed {
        grid-template-columns: 7fr 5fr;
    }

    .about-section.reversed .about-section-photo {
        order: 2;
    }

    .about-section.reversed .about-section-text {
        order: 1;
    }

    .about-legacy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .collection-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-overview .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12) var(--space-8);
    }

    .artwork-actions {
        flex-direction: row;
    }

    .artwork-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Responsive — Small Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .site-nav {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .collection-overview .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-16) var(--space-8);
    }

    .collection-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .artwork-layout {
        grid-template-columns: 55fr 45fr;
        gap: var(--space-16);
    }

    .artwork-zoom-hint {
        display: block;
    }
}

/* ==========================================================================
   Responsive — Large Desktop (1440px+)
   ========================================================================== */

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-image-wrap img,
    .collection-card-image img,
    .collection-item-image img,
    .portrait-frame img,
    .polaroid-image img,
    .artwork-main-image img {
        transition: none;
    }
}
