/* =========================================================
   RAMIL TUMAMPOS — GLOBAL STYLES
   STEP 3 — CSS FOUNDATION
========================================================= */
/* =========================================================
   1. RESET
========================================================= */
/* *,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f1eb;
    color: #1c1c1a;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}

ul,
ol {
    list-style: none;
}

/* =========================================================
   2. ROOT VARIABLES
========================================================= */
:root {
    /* Colors */
    --color-bg: #f4f1eb;
    --color-bg-light: #f8f6f1;
    --color-dark: #171716;
    --color-dark-soft: #222220;
    --color-text: #242421;
    --color-text-light: #e9e5dc;
    --color-muted: #77736b;
    --color-border: #d8d3c9;
    --color-white: #ffffff;

    /* Layout */
    --container-width: 1180px;
    --page-padding: 40px;

    /* Spacing */
    --section-padding: 90px;

    /* Transition */
    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s ease;
}

/* =========================================================
   3. GLOBAL CONTAINER
========================================================= */
.section-container,
.header-container,
.footer-container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--container-width)
    );
    margin-inline: auto;
}

/* =========================================================
   4. TYPOGRAPHY FOUNDATION
========================================================= */
h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 400;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
}

p {
    font-size: 14px;
}

/* =========================================================
   5. SECTION EYEBROW
========================================================= */
.section-eyebrow,
.hero-eyebrow {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================================
   6. BUTTON FOUNDATION
========================================================= */
.hero-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 150px;
    padding: 13px 16px;
    border: 1px solid currentColor;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.hero-button:hover,
.outline-button:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.button-arrow {
    font-size: 15px;
    line-height: 1;
}

/* =========================================================
   7. SECTION HEADING
========================================================= */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: 17px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    transition: opacity var(--transition-fast);
}

.section-link:hover {
    opacity: 0.55;
}

/* =========================================================
   8. HEADER
========================================================= */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    color: var(--color-white);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    font-size: 8px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    width: 28px;
    height: 28px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
}

.menu-toggle span:nth-child(2) {
    width: 11px;
}

/* =========================================================
   9. HERO FOUNDATION
========================================================= */
.hero-section {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 120px var(--page-padding) 90px;
    background: linear-gradient(
            90deg,
            rgba(15, 15, 14, 0.78) 0%,
            rgba(15, 15, 14, 0.48) 45%,
            rgba(15, 15, 14, 0.12) 100%
        ),
        url("../images/site/hero-artwork.jpg");
    color: var(--color-white);
}

.hero-content {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.hero-eyebrow {
    margin-bottom: 15px;
}

.hero-section h1 {
    max-width: 560px;
    font-size: clamp(58px, 7vw, 94px);
    line-height: 0.86;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-description {
    max-width: 280px;
    margin-bottom: 28px;
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.hero-scroll {
    position: absolute;
    right: 7%;
    bottom: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 13px;
}

/* =========================================================
   10. FEATURED WORKS FOUNDATION
========================================================= */
.featured-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.artwork-card {
    min-width: 0;
    border-radius: 14px;
    transition: transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(28, 28, 26, 0.14);
}

.artwork-image {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #ded9cf;
}

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

.artwork-card:hover .artwork-image img {
    transform: scale(1.025);
}

.artwork-info {
    padding-top: 12px;
}

.artwork-info h3 {
    margin-bottom: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.artwork-info p,
.artwork-info span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-muted);
}

.featured-section .section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: 0.5px;
}

/* =========================================================
   NOTABLE SERIES
   ========================================================= */
.notable-series-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.notable-series-intro {
    max-width: 540px;
    margin-bottom: 42px;
}

.notable-series-intro h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.notable-series-intro p {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-muted);
}

.notable-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* =========================================================
   11. ARTIST SECTION FOUNDATION
========================================================= */
.artist-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    background: var(--color-dark);
    color: var(--color-white);
}

.artist-image {
    min-height: 420px;
    overflow: hidden;
}

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

.artist-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
}

.artist-content .section-eyebrow {
    margin-bottom: 15px;
}

.artist-content h2 {
    margin-bottom: 22px;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 0.9;
}

.artist-content > p:not(.section-eyebrow) {
    max-width: 260px;
    margin-bottom: 28px;
    font-size: 10px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.artist-content .outline-button {
    align-self: flex-start;
}

/* =========================================================
   12. STUDIO NOTES FOUNDATION
========================================================= */
.notes-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.note-card {
    border: 1px solid var(--color-border);
}

.note-image {
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: #ded9cf;
}

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

.note-content {
    position: relative;
    min-height: 130px;
    padding: 18px;
}

.note-content h3 {
    max-width: 190px;
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.15;
}

.note-content span {
    font-size: 8px;
    color: var(--color-muted);
}

.note-content > a {
    position: absolute;
    right: 18px;
    bottom: 16px;
    font-size: 15px;
    transition: transform var(--transition-fast);
}

.note-content > a:hover {
    transform: translateX(4px);
}

/* =========================================================
   13. COMMISSION / INQUIRE
========================================================= */
.commission-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
    overflow: hidden;
}

.commission-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.commission-intro .section-eyebrow {
    margin-bottom: 26px;
}

.commission-intro h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.15;
}

.commission-subtext {
    max-width: 220px;
    font-size: 12px;
    color: var(--color-muted);
}

/* Decorative background shapes */
.commission-decor {
    position: absolute;
    left: -70px;
    bottom: -60px;
    width: 380px;
    height: 380px;
    z-index: 0;
    pointer-events: none;
}

.commission-decor span {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.commission-decor span:nth-child(1) {
    width: 260px;
    height: 260px;
    left: 60px;
    top: 10px;
    background: radial-gradient(circle at 30% 30%, #f2e9d8, #dcc296);
}

.commission-decor span:nth-child(2) {
    width: 230px;
    height: 230px;
    left: 0;
    top: 90px;
    background: radial-gradient(circle at 40% 40%, #cdb28a, #8c6a44);
}

.commission-decor span:nth-child(3) {
    width: 200px;
    height: 200px;
    left: 130px;
    top: 130px;
    background: radial-gradient(circle at 60% 60%, #f0e7d6, #b89a70);
}

.commission-decor span:nth-child(4) {
    width: 150px;
    height: 150px;
    left: 40px;
    top: 190px;
    background: radial-gradient(circle at 50% 50%, #5c4a32, #3a2f21);
    opacity: 0.55;
}

/* Form */
.commission-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 4px;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.form-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
        linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position: right 6px top 55%, right 0 top 55%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.form-field textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-dark);
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--color-border);
    font-size: 9px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-fast),
        color var(--transition-fast);
}

.file-upload-button:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.file-upload-name {
    font-size: 11px;
    color: var(--color-muted);
}

.commission-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 6px;
    padding: 16px 24px;
    border: none;
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.commission-submit:hover {
    background: var(--color-dark-soft);
}

@media (max-width: 900px) {
    .commission-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .commission-intro .section-eyebrow {
        margin-bottom: 16px;
    }

    .commission-decor {
        display: none;
    }
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* =========================================================
   14. CONTACT
========================================================= */
.contact-section {
    padding: 90px 0;
    background: var(--color-bg);
}

.contact-content {
    max-width: 520px;
}

.contact-content .section-eyebrow {
    margin-bottom: 14px;
}

.contact-content h2 {
    margin-bottom: 25px;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 0.95;
}

/* =========================================================
   15. FOOTER
========================================================= */
.site-footer {
    padding: 35px 0 20px;
    background: var(--color-dark);
    color: var(--color-white);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand .site-logo {
    font-size: 12px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 17px;
}

.footer-social a {
    font-size: 11px;
    transition: opacity var(--transition-fast);
}

.footer-social a:hover {
    opacity: 0.5;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: 17px;
}

.footer-nav a {
    font-size: 7px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: right;
}

.footer-bottom p {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   16. TABLET
========================================================= */
@media (max-width: 900px) {
    :root {
        --page-padding: 28px;
        --section-padding: 70px;
    }

    .main-nav {
        gap: 18px;
    }

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

    .notable-series-grid {
        gap: 18px;
    }

    .artist-content {
        padding: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-social {
        justify-content: flex-end;
    }

    .footer-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-bottom {
        text-align: left;
    }
}

/* =========================================================
   17. MOBILE
========================================================= */
@media (max-width: 700px) {
    :root {
        --page-padding: 20px;
        --section-padding: 55px;
    }

    /* Header */
    .header-container {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        min-height: 620px;
        padding: 100px var(--page-padding) 70px;
    }

    .hero-section h1 {
        font-size: clamp(50px, 16vw, 72px);
        letter-spacing: -1.5px;
    }

    .hero-scroll {
        right: 20px;
        bottom: 25px;
    }

    /* Section Heading */
    .section-heading {
        align-items: flex-end;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .section-link {
        font-size: 8px;
    }

    /* Featured */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
    }

    .notable-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
    }

    .notable-series-intro {
        margin-bottom: 30px;
    }

    .notable-series-intro p {
        font-size: 13px;
    }

    .artwork-info h3 {
        font-size: 13px;
    }

    .artwork-info p {
        font-size: 11px;
    }

    /* Artist */
    .artist-section {
        grid-template-columns: 1fr;
    }

    .artist-image {
        min-height: 350px;
    }

    .artist-content {
        padding: 55px var(--page-padding);
    }

    /* Notes */
    .notes-grid {
        grid-template-columns: 1fr;
    }

    /* Commission */
    .commission-section {
        min-height: 260px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-nav {
        grid-column: auto;
    }

    .footer-bottom {
        grid-column: auto;
    }
}

/* =========================================================
   ARTWORK MODAL
   ========================================================= */
.artwork-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.artwork-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.artwork-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 14, 0.72);
}

.artwork-modal-dialog {
    position: relative;
    width: min(100%, 1280px);
    max-height: min(900px, calc(100vh - 64px));
    overflow: auto;
    padding: 74px 82px 56px;
    background: var(--color-bg-light);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
    transform: translateY(18px);
    transition: transform var(--transition-medium);
}

.artwork-modal.is-open .artwork-modal-dialog {
    transform: translateY(0);
}

.modal-back-button,
.modal-close-button,
.modal-arrow {
    position: absolute;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.modal-back-button {
    top: 28px;
    left: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.modal-close-button {
    top: 21px;
    right: 28px;
    width: 38px;
    height: 38px;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.artwork-modal-content {
    display: grid;
    grid-template-columns: minmax(235px, 0.7fr) minmax(0, 1.45fr);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
}

.modal-artwork-details {
    align-self: center;
}

.modal-artwork-details h2 {
    max-width: 280px;
    margin-bottom: 20px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 0.98;
}

.modal-title-line {
    display: block;
    width: 62px;
    height: 3px;
    margin-bottom: 22px;
    background: #d6af6d;
}

.modal-artwork-year,
.modal-artwork-material,
.modal-artwork-size {
    font-size: 14px;
    line-height: 1.65;
}

.modal-artwork-year {
    margin-bottom: 3px;
    font-weight: 700;
}

.modal-artwork-year {
    display: none;
}

.modal-artwork-description {
    max-width: 270px;
    margin: 34px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-muted);
}

.modal-inquire-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-width: 220px;
    margin-top: 96px;
    padding: 15px 18px;
    background: var(--color-dark);
    color: var(--color-white);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-inquire-button:hover {
    background: #3b3a36;
    transform: translateY(-2px);
}

.modal-artwork-image {
    height: min(670px, 69vh);
    overflow: hidden;
    background: #ded9cf;
}

.modal-artwork-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.modal-arrow {
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 21px;
    transform: translateY(-50%);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-arrow:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.modal-arrow-previous {
    left: 18px;
}

.modal-arrow-next {
    right: 18px;
}

@media (max-width: 800px) {
    .artwork-modal {
        padding: 14px;
    }

    .artwork-modal-dialog {
        box-sizing: border-box;
        height: calc(100vh - 28px);
        max-height: calc(100vh - 28px);
        overflow: hidden;
        padding: 64px 28px 62px;
    }

    .artwork-modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100%;
        min-height: 0;
        gap: 18px;
    }

    .modal-artwork-details h2 {
        margin-bottom: 14px;
        font-size: 38px;
    }

    .modal-title-line {
        margin-bottom: 14px;
    }

    .modal-artwork-year,
    .modal-artwork-material,
    .modal-artwork-size {
        font-size: 13px;
        line-height: 1.45;
    }

    .modal-artwork-description {
        margin-top: 14px;
        font-size: 13px;
        line-height: 1.5;
    }

    .modal-inquire-button {
        min-width: 0;
        margin-top: 18px;
        padding: 12px 15px;
    }

    .modal-artwork-image {
        height: min(58vh, 520px);
    }

    .modal-arrow {
        top: auto;
        bottom: 16px;
        width: 34px;
        height: 34px;
        font-size: 16px;
        transform: none;
    }

    .modal-arrow-previous {
        right: auto;
        left: calc(50% - 40px);
    }

    .modal-arrow-next {
        right: calc(50% - 40px);
    }
}

/* =========================================================
   ABOUT THE ARTIST
   ========================================================= */
.about-section {
    padding: var(--section-padding) 0 60px;
    background: var(--color-bg-light);
    color: var(--color-text);
}

.about-section-heading {
    margin-bottom: 42px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 2.5vw, 34px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
    gap: clamp(44px, 7vw, 108px);
    align-items: start;
}

.about-portrait {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #d8d3c9;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) contrast(0.95);
}

.about-content h2 {
    margin-bottom: 8px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 0.98;
}

.about-role {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.about-style {
    margin-bottom: 28px;
    color: var(--color-muted);
    font-size: 13px;
}

.about-biography {
    display: grid;
    gap: 18px;
    max-width: 710px;
}

.about-biography p {
    font-size: 15px;
    line-height: 1.75;
}

.about-signature {
    display: grid;
    justify-items: start;
    gap: 14px;
    margin-top: 30px;
}

.about-signature span {
    display: block;
    width: 62px;
    height: 2px;
    background: #d6af6d;
}

.about-signature img {
    width: 172px;
    height: auto;
    object-fit: contain;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.about-value {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-value-icon {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #77736b;
}

.about-value-icon-curve {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.about-value-icon-curve::after {
    position: absolute;
    inset: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
}

.about-value-icon-transparency::before,
.about-value-icon-transparency::after {
    position: absolute;
    width: 19px;
    height: 19px;
    border: 2px solid currentColor;
    border-radius: 4px;
    content: "";
    transform: rotate(30deg);
}

.about-value-icon-transparency::before { top: 4px; left: 2px; }
.about-value-icon-transparency::after { right: 2px; bottom: 4px; }

.about-value-icon-cubism::before,
.about-value-icon-cubism::after {
    position: absolute;
    border: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.about-value-icon-cubism::before { width: 23px; height: 23px; top: 1px; left: 6px; }
.about-value-icon-cubism::after { width: 14px; height: 14px; right: 0; bottom: 1px; }

.about-value h3 {
    margin-bottom: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-value p {
    color: var(--color-muted);
    font-size: 12px;
}

@media (max-width: 700px) {
    .about-section { padding-bottom: 48px; }
    .about-section-heading { margin-bottom: 28px; font-size: 25px; }
    .about-layout { grid-template-columns: 1fr; gap: 32px; }
    .about-portrait { max-width: 430px; }
    .about-content h2 { font-size: 42px; }
    .about-biography { gap: 16px; }
    .about-biography p { font-size: 14px; }
    .about-values { grid-template-columns: 1fr; gap: 20px; margin-top: 42px; }
}

/* =========================================================
   SECTION CARDS
   ========================================================= */
body {
    background: #ffffff;
}

main {
    display: grid;
    gap: 7px;
    padding: 7px 7px 0;
}

main > section,
.site-footer {
    border: 1px solid rgba(28, 28, 26, 0.14);
    box-shadow: 0 1px 4px rgba(28, 28, 26, 0.12);
}

.site-footer {
    margin: 7px 7px 7px;
}

@media (max-width: 700px) {
    main {
        gap: 5px;
        padding: 5px 5px 0;
    }

    .site-footer {
        margin: 5px;
    }
}

/* =========================================================
   18. SMALL MOBILE
========================================================= */
@media (max-width: 430px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .notable-series-grid {
        grid-template-columns: 1fr;
    }

    .artwork-image {
        aspect-ratio: 4 / 5;
    }

    .hero-section {
        min-height: 580px;
    }

    .hero-description {
        max-width: 250px;
    }
}

/* -----------------------------------------
   HERO
----------------------------------------- */
.hero-section {
    min-height: 680px;
    background: linear-gradient(
            90deg,
            rgba(15, 15, 14, 0.80) 0%,
            rgba(15, 15, 14, 0.50) 44%,
            rgba(15, 15, 14, 0.12) 100%
        ),
        url("../images/site/hero-artwork.jpg");
    background-size: cover;
    background-position: center center;
}

.hero-content {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.hero-eyebrow {
    margin-bottom: 14px;
}

.hero-section h1 {
    max-width: 560px;
    font-size: clamp(58px, 6.6vw, 90px);
    line-height: 0.88;
    letter-spacing: -2px;
    margin-bottom: 27px;
}

.hero-description {
    max-width: 300px;
    margin-bottom: 28px;
    font-size: 11px;
    line-height: 1.65;
}

.hero-button {
    min-width: 150px;
    padding: 13px 16px;
}

.hero-scroll {
    right: 7%;
    bottom: 52px;
}

.scroll-circle {
    width: 38px;
    height: 38px;
}

/* =========================================================
   STEP 5C — HERO / NAV FINE TUNING
   ========================================================= */
.hero-content {
    transform: translateX(-35px);
}

.main-nav a {
    font-size: 12px;
    letter-spacing: 0.8px;
}

/* =========================================================
   HERO ART DIRECTION — DESKTOP
   ========================================================= */
@media (min-width: 701px) {
    .hero-section {
        min-height: 100svh;
        padding: 170px var(--page-padding) 90px;
        background: linear-gradient(
                90deg,
                rgba(8, 8, 8, 0.92) 0%,
                rgba(10, 10, 10, 0.76) 29%,
                rgba(12, 12, 12, 0.38) 52%,
                rgba(12, 12, 12, 0.10) 100%
            ),
            url("../images/site/hero-artwork.jpg");
        background-position: center center;
        background-size: cover;
    }

    .header-container {
        width: calc(100% - 160px);
        max-width: none;
        min-height: 118px;
    }

    .site-logo {
        font-size: 25px;
        line-height: 1.04;
        letter-spacing: 0;
    }

    .main-nav {
        margin-left: auto;
        gap: clamp(24px, 3vw, 50px);
    }

    .main-nav a {
        font-size: 17px;
        font-weight: 400;
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
        margin-left: clamp(28px, 4vw, 62px);
        gap: 7px;
    }

    .menu-toggle span,
    .menu-toggle span:nth-child(2) {
        width: 30px;
        height: 1px;
    }

    .menu-toggle span:nth-child(3) {
        display: none;
    }

    .hero-content {
        width: min(100%, 1180px);
        transform: translateX(-35px);
    }

    .hero-eyebrow {
        margin-bottom: 24px;
        font-size: 17px;
        letter-spacing: 1.9px;
        color: #e6bb72;
    }

    .hero-section h1 {
        max-width: 760px;
        margin-bottom: 38px;
        font-size: clamp(86px, 8.4vw, 132px);
        line-height: 0.9;
        letter-spacing: -3px;
    }

    .hero-section h1::after {
        content: "";
        display: block;
        width: 109px;
        height: 3px;
        margin-top: 42px;
        background: #e6bb72;
    }

    .hero-description {
        max-width: 460px;
        margin-bottom: 43px;
        font-size: 20px;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-button {
        min-width: 356px;
        padding: 24px 32px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    .button-arrow {
        font-size: 28px;
    }

    .hero-scroll {
        right: 8.4%;
        bottom: 10.5%;
        gap: 14px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .scroll-circle {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }
}

/* =========================================================
   MOBILE HERO LAYOUT
   ========================================================= */
@media (max-width: 700px) {
    .hero-content {
        transform: none;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .hero-section h1 {
        max-width: 100%;
        font-size: clamp(52px, 16vw, 72px);
        line-height: 0.9;
        letter-spacing: -1.5px;
    }

    .hero-description {
        max-width: 290px;
        font-size: 13px;
    }
}

/* =========================================================
   UPDATED COMMISSION LAYOUT
========================================================= */
.commission-section {
    padding: clamp(56px, 7vw, 96px) 0;
    background: #f8f6f1;
}

.commission-container {
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: clamp(54px, 8vw, 120px);
    align-items: start;
    max-width: 980px;
}

.commission-intro {
    padding-top: 4px;
}

.commission-intro .section-eyebrow {
    margin-bottom: 42px;
    color: #2c2a27;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.commission-intro h2 {
    margin-bottom: 16px;
    font-size: clamp(32px, 3.2vw, 45px);
    line-height: .98;
    letter-spacing: -1.1px;
}

.commission-subtext {
    max-width: 180px;
    font-size: 12px;
    line-height: 1.55;
}

.commission-decor {
    left: -120px;
    bottom: -130px;
    width: 410px;
    height: 590px;
    opacity: .72;
}

.commission-decor span {
    border-radius: 50%;
    filter: blur(.1px);
}

.commission-decor span:nth-child(1) {
    width: 350px;
    height: 540px;
    left: 20px;
    top: 30px;
    background: linear-gradient(125deg, rgba(245, 239, 227, .15), #dfcda9 56%, rgba(112, 83, 48, .45));
    transform: rotate(25deg);
}

.commission-decor span:nth-child(2) {
    width: 260px;
    height: 500px;
    left: -110px;
    top: 75px;
    background: linear-gradient(145deg, #6d5842, #d7b77c 55%, #f7f4ed);
    transform: rotate(-18deg);
}

.commission-decor span:nth-child(3) {
    width: 220px;
    height: 480px;
    left: 110px;
    top: 105px;
    background: linear-gradient(165deg, transparent 8%, rgba(255, 255, 255, .76) 47%, rgba(211, 190, 153, .54));
    transform: rotate(-30deg);
}

.commission-decor span:nth-child(4) {
    display: none;
}

.commission-form {
    gap: 13px;
}

.form-row {
    gap: 12px;
}

.form-field {
    gap: 5px;
}

.form-field label {
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
    color: #4d4943;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    min-height: 32px;
    padding: 8px 9px;
    border: 1px solid #e1ddd5;
    background-color: rgba(255, 255, 255, .28);
    font-size: 11px;
}

.form-field textarea {
    min-height: 92px;
    resize: vertical;
}

.form-field select {
    background-position: right 12px top 52%, right 7px top 52%;
}

.file-upload {
    gap: 10px;
}

.file-upload-button {
    padding: 7px 13px;
    font-size: 8px;
    background: transparent;
}

.file-upload-name {
    font-size: 9px;
}

.commission-submit {
    margin-top: 4px;
    padding: 14px 17px;
    font-size: 9px;
}

@media (max-width: 900px) {
    .commission-container {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .commission-decor {
        opacity: .22;
    }
}

@media (max-width: 700px) {
    .commission-intro .section-eyebrow {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .commission-decor {
        display: block;
        left: -210px;
        bottom: -215px;
        opacity: .22;
    }
}
/* =========================================================
   UPDATED FOOTER — EDITORIAL HORIZONTAL BAR
========================================================= */
.site-footer {
    margin: 7px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #151514;
    color: #f4f1eb;
}

.footer-container {
    min-height: 118px;
    display: grid;
    grid-template-columns: minmax(175px, 1fr) auto minmax(320px, 1.5fr);
    grid-template-areas:
        "brand social nav"
        "brand social copyright";
    align-items: center;
    column-gap: clamp(30px, 4vw, 70px);
    row-gap: 8px;
    padding: 27px clamp(28px, 4vw, 64px) 24px;
}

.footer-brand {
    grid-area: brand;
}

.footer-brand .site-logo {
    font-size: 20px;
    line-height: .98;
    letter-spacing: .25px;
}

.footer-social {
    grid-area: social;
    justify-content: center;
    gap: 22px;
}

.footer-social a {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    font-size: 0;
    color: #f4f1eb;
}

.footer-social a::before {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    line-height: 1;
}

.footer-social a[aria-label="Facebook"]::before { content: "f"; font-weight: 700; }
.footer-social a[aria-label="Email"]::before { content: "✉"; font-size: 19px; }
.footer-social a[aria-label="Location"]::before { content: "⌖"; font-size: 24px; }

.footer-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: clamp(15px, 2vw, 28px);
}

.footer-nav a {
    position: relative;
    font-size: 9px;
    letter-spacing: .65px;
    color: rgba(244, 241, 235, .86);
    transition: color var(--transition-fast);
}

.footer-nav a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    background: #e6bb72;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    grid-area: copyright;
    padding: 0;
    border: 0;
    text-align: left;
}

.footer-bottom p {
    font-size: 9px;
    letter-spacing: .1px;
    color: rgba(244, 241, 235, .62);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand social"
            "nav nav"
            "copyright copyright";
        gap: 20px 30px;
        padding: 28px;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .footer-container {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "social"
            "nav"
            "copyright";
        gap: 20px;
        padding: 30px 22px 26px;
    }

    .footer-brand .site-logo {
        font-size: 18px;
    }

    .footer-social,
    .footer-nav {
        justify-content: flex-start;
    }

    .footer-nav {
        flex-wrap: wrap;
        row-gap: 13px;
    }
}

/* =========================================================
   UPDATED GALLERY — FLOATING ART SHELF
========================================================= */
.featured-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 8vw, 116px) 0 clamp(106px, 10vw, 146px);
    background:
        radial-gradient(ellipse 43% 54% at 97% 22%, rgba(255, 255, 255, .9), transparent 66%),
        radial-gradient(ellipse 38% 42% at 5% 96%, rgba(150, 103, 56, .16), transparent 70%),
        linear-gradient(112deg, #ddd4c7 0%, #f3eee5 48%, #ded1be 100%);
}

.featured-section::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: min(43vw, 590px);
    height: 54%;
    background: radial-gradient(ellipse at top right, rgba(255, 255, 255, .78), transparent 69%);
    content: "";
    filter: blur(7px);
}

.featured-section .section-container {
    width: min(calc(100% - (var(--page-padding) * 2)), 1320px);
}

.featured-section .section-heading {
    max-width: 480px;
    display: block;
    margin-bottom: 46px;
}

.featured-section .section-heading h2 {
    margin-bottom: 17px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -1.8px;
    text-transform: none;
}

.featured-section .section-heading h2::before {
    display: block;
    margin-bottom: 23px;
    color: #292723;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1;
    text-transform: uppercase;
    content: "Gallery";
}

.featured-section .section-link {
    width: max-content;
    min-width: 176px;
    justify-content: space-between;
    padding: 15px 19px;
    border: 1px solid rgba(28, 28, 26, .52);
    font-size: 10px;
    letter-spacing: 1.1px;
}

.featured-section .section-link:hover {
    background: #1c1c1a;
    color: #fff;
    opacity: 1;
}

.featured-grid {
    position: relative;
    display: flex;
    gap: clamp(18px, 2.25vw, 34px);
    align-items: flex-end;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 18px 10px 55px;
    scrollbar-width: none;
}

.featured-grid::-webkit-scrollbar {
    display: none;
}

.featured-grid::before {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 13px;
    left: 0;
    height: 29px;
    border: 1px solid rgba(74, 42, 22, .68);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 223, 177, .26), transparent 22%),
        repeating-linear-gradient(92deg, rgba(54, 27, 11, .18) 0 2px, transparent 2px 18px),
        linear-gradient(180deg, #9a633c 0%, #60391f 46%, #3a2113 100%);
    box-shadow: 0 18px 24px rgba(63, 36, 18, .31), inset 0 1px rgba(255, 242, 214, .28);
    content: "";
}

.featured-grid::after {
    position: absolute;
    z-index: -1;
    right: 4%;
    bottom: -25px;
    left: 4%;
    height: 74px;
    border-radius: 50%;
    background: rgba(85, 50, 25, .31);
    content: "";
    filter: blur(21px);
}

.featured-grid .artwork-card {
    position: relative;
    z-index: 1;
    flex: 0 0 clamp(210px, 21vw, 285px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(89, 69, 47, .18);
    border-radius: 12px;
    background: #f7f2e8;
    box-shadow: 0 7px 13px rgba(54, 33, 18, .20);
    cursor: pointer;
    transform: translateY(0);
    transition: transform .32s ease, box-shadow .32s ease;
}

.featured-grid .artwork-card:hover,
.featured-grid .artwork-card:focus-visible {
    z-index: 2;
    box-shadow: 0 22px 27px rgba(47, 27, 13, .30);
    outline: none;
    transform: translateY(-18px);
}

.featured-grid .artwork-image {
    aspect-ratio: 1 / 1.03;
    border-radius: 0;
    background: #d8cab8;
}

.featured-grid .artwork-image img {
    transition: transform .45s ease;
}

.featured-grid .artwork-card:hover .artwork-image img,
.featured-grid .artwork-card:focus-visible .artwork-image img {
    transform: scale(1.035);
}

.featured-grid .artwork-info {
    min-height: 99px;
    padding: 18px 19px 17px;
}

.featured-grid .artwork-info h3 {
    margin-bottom: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.15;
}

.featured-grid .artwork-info p {
    font-size: 11px;
    color: #4f4a43;
}

@media (max-width: 700px) {
    .featured-section {
        padding: 62px 0 93px;
    }

    .featured-section .section-heading {
        margin-bottom: 29px;
    }

    .featured-section .section-heading h2 {
        font-size: 44px;
    }

    .featured-section .section-heading h2::before {
        margin-bottom: 17px;
        font-size: 9px;
    }

    .featured-grid {
        gap: 15px;
        margin-right: calc(var(--page-padding) * -1);
        padding: 13px 6px 45px;
    }

    .featured-grid::before {
        right: var(--page-padding);
        bottom: 8px;
        height: 22px;
    }

    .featured-grid .artwork-card {
        flex-basis: min(69vw, 258px);
    }

    .featured-grid .artwork-card:hover,
    .featured-grid .artwork-card:focus-visible {
        transform: translateY(-10px);
    }
}

/* =========================================================
   GALLERY SHELF REFINEMENTS
========================================================= */
.featured-section .section-container {
    position: relative;
}

.featured-section .section-heading h2::before {
    display: none;
}

.featured-section .section-heading h2 {
    margin-bottom: 17px;
}

.gallery-description {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.7;
    color: #565048;
}

.featured-section .section-link {
    display: none;
}

.featured-grid {
    padding-top: 26px;
    padding-bottom: 67px;
}

.featured-grid::before {
    bottom: 17px;
    height: 38px;
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 235, 197, .43) 0 8%, transparent 9%),
        repeating-linear-gradient(92deg, rgba(48, 23, 9, .19) 0 2px, transparent 2px 17px),
        linear-gradient(180deg, #b47b4b 0%, #814c2b 42%, #4b2a17 100%);
    box-shadow: 0 3px 0 #3b2113, 0 21px 28px rgba(63, 36, 18, .35), inset 0 1px rgba(255, 247, 222, .38);
}

.featured-grid::after {
    bottom: -16px;
}

.gallery-shelf-controls {
    position: absolute;
    z-index: 4;
    right: -52px;
    left: -52px;
    top: 59%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-shelf-button {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 1px solid rgba(57, 40, 25, .21);
    border-radius: 50%;
    background: rgba(247, 241, 231, .77);
    box-shadow: 0 5px 16px rgba(63, 36, 18, .12);
    color: #31251c;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    pointer-events: auto;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-shelf-button:hover:not(:disabled) {
    background: #241b15;
    box-shadow: 0 9px 20px rgba(63, 36, 18, .24);
    color: #fff;
    transform: scale(1.06);
}

.gallery-shelf-button:disabled {
    cursor: default;
    opacity: .36;
}

.gallery-shelf-button:focus-visible {
    outline: 2px solid #241b15;
    outline-offset: 3px;
}

@media (max-width: 1400px) {
    .gallery-shelf-controls {
        right: 0;
        left: 0;
    }

    .gallery-shelf-button {
        transform: translateX(-10px);
    }

    .gallery-shelf-next {
        transform: translateX(10px);
    }

    .gallery-shelf-button:hover:not(:disabled) {
        transform: translateX(-10px) scale(1.06);
    }

    .gallery-shelf-next:hover:not(:disabled) {
        transform: translateX(10px) scale(1.06);
    }
}

@media (max-width: 700px) {
    .gallery-description {
        max-width: 330px;
        font-size: 13px;
    }

    .featured-grid {
        padding-top: 20px;
        padding-bottom: 58px;
    }

    .featured-grid::before {
        bottom: 13px;
        height: 28px;
    }

    .gallery-shelf-controls {
        position: static;
        width: max-content;
        gap: 9px;
        margin: -12px 0 14px auto;
    }

    .gallery-shelf-button,
    .gallery-shelf-button:hover:not(:disabled),
    .gallery-shelf-next,
    .gallery-shelf-next:hover:not(:disabled) {
        width: 39px;
        height: 39px;
        transform: none;
    }
}

/* =========================================================
   FIXED GALLERY SHELF
========================================================= */
.gallery-shelf-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 67px;
}

.gallery-shelf-frame::before {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 38px;
    border: 1px solid rgba(74, 42, 22, .68);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 235, 197, .43) 0 8%, transparent 9%),
        repeating-linear-gradient(92deg, rgba(48, 23, 9, .19) 0 2px, transparent 2px 17px),
        linear-gradient(180deg, #b47b4b 0%, #814c2b 42%, #4b2a17 100%);
    box-shadow: 0 3px 0 #3b2113, 0 21px 28px rgba(63, 36, 18, .35), inset 0 1px rgba(255, 247, 222, .38);
    content: "";
}

.gallery-shelf-frame::after {
    position: absolute;
    z-index: -1;
    right: 4%;
    bottom: -16px;
    left: 4%;
    height: 74px;
    border-radius: 50%;
    background: rgba(85, 50, 25, .31);
    content: "";
    filter: blur(21px);
}

.featured-grid::before,
.featured-grid::after {
    display: none;
}

.featured-grid {
    z-index: 1;
    padding-top: 26px;
    padding-bottom: 0;
}

@media (max-width: 700px) {
    .gallery-shelf-frame {
        margin-right: calc(var(--page-padding) * -1);
        padding-bottom: 54px;
    }

    .gallery-shelf-frame::before {
        right: var(--page-padding);
        bottom: 13px;
        height: 28px;
    }

    .featured-grid {
        margin-right: 0;
        padding-top: 20px;
        padding-bottom: 0;
    }
}

/* =========================================================
   GALLERY INSTALLATION — TARGET COMPOSITION
========================================================= */
.featured-section {
    padding: 0 0 clamp(100px, 8vw, 132px);
    background:
        radial-gradient(ellipse 34% 60% at 94% 23%, rgba(255, 255, 255, .92), transparent 74%),
        radial-gradient(ellipse 45% 40% at 7% 89%, rgba(159, 104, 50, .19), transparent 72%),
        linear-gradient(110deg, #d9d0c2 0%, #f4efe6 50%, #ddd0bd 100%);
}

.featured-section::after {
    display: block;
    width: 100%;
    height: clamp(26px, 2.1vw, 35px);
    background:
        linear-gradient(rgba(15, 12, 9, .45), rgba(15, 12, 9, .45)),
        url("../images/artworks/artwork-02.jpg") center 47% / cover;
    content: "";
    filter: saturate(.67) brightness(.46);
}

.featured-section .section-container {
    width: min(calc(100% - 112px), 1420px);
}

.featured-section .section-heading {
    max-width: 500px;
    padding-top: clamp(78px, 8vw, 124px);
    margin-bottom: clamp(34px, 4vw, 57px);
}

.featured-section .section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(48px, 5vw, 74px);
    letter-spacing: -2.2px;
}

.featured-section .section-heading h2::before {
    display: none;
}

.gallery-eyebrow {
    margin-bottom: 25px;
    color: #1f1d1a;
    font-size: 11px;
    letter-spacing: 5px;
    line-height: 1;
    text-transform: uppercase;
}

.gallery-description {
    max-width: 410px;
    font-size: 15px;
    line-height: 1.7;
}

.gallery-shelf-frame {
    padding-bottom: 54px;
    overflow: visible;
}

.gallery-shelf-frame::before {
    bottom: 4px;
    height: 43px;
    border: 1px solid rgba(65, 34, 14, .8);
    border-top: 10px solid #a36a3e;
    border-radius: 1px;
    background:
        linear-gradient(180deg, rgba(255, 234, 198, .37), transparent 10%),
        linear-gradient(90deg, rgba(70, 34, 13, .15), transparent 14%, rgba(67, 33, 13, .12) 29%, transparent 44%, rgba(62, 30, 12, .17) 61%, transparent 77%, rgba(52, 25, 10, .16)),
        linear-gradient(180deg, #8d542f 0%, #5e331c 48%, #3b2011 100%);
    box-shadow: 0 4px 0 #2f190d, 0 25px 31px rgba(67, 39, 19, .37), inset 0 1px rgba(255, 243, 216, .42);
}

.gallery-shelf-frame::after {
    right: 3%;
    bottom: -22px;
    left: 3%;
    height: 82px;
    background: rgba(73, 43, 23, .34);
    filter: blur(23px);
}

.featured-grid {
    gap: clamp(21px, 2.2vw, 34px);
    padding: 12px 10px 0;
}

.featured-grid .artwork-card {
    flex-basis: clamp(220px, 18.5vw, 280px);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(47, 29, 16, .22);
}

.featured-grid .artwork-image {
    aspect-ratio: 1 / .96;
}

.featured-grid .artwork-info {
    min-height: 105px;
    padding: 18px 19px;
}

.gallery-shelf-controls {
    top: 69%;
    right: -75px;
    left: -75px;
}

.gallery-shelf-button {
    width: 50px;
    height: 50px;
    background: rgba(244, 237, 226, .78);
}

@media (max-width: 1500px) {
    .gallery-shelf-controls {
        right: -24px;
        left: -24px;
    }
}

@media (max-width: 700px) {
    .featured-section {
        padding-bottom: 83px;
    }

    .featured-section .section-container {
        width: calc(100% - (var(--page-padding) * 2));
    }

    .featured-section .section-heading {
        padding-top: 62px;
    }

    .featured-section::after {
        height: 24px;
    }

    .gallery-eyebrow {
        margin-bottom: 19px;
        font-size: 9px;
        letter-spacing: 3.5px;
    }

    .featured-section .section-heading h2 {
        font-size: 46px;
    }

    .gallery-shelf-frame {
        padding-bottom: 43px;
    }

    .gallery-shelf-frame::before {
        right: 0;
        bottom: 3px;
        left: 0;
        height: 34px;
        border-top-width: 7px;
    }

    .featured-grid {
        padding-top: 6px;
    }

    .gallery-shelf-controls {
        top: auto;
    }
}

/* Keep the artwork strip fixed at the top of the Gallery installation. */
.featured-section::after {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    pointer-events: none;
}

.featured-section .section-container {
    z-index: 1;
}

/* =========================================================
   NOTABLE SERIES — FLOATING ART SHELF
========================================================= */
.notable-series-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 clamp(92px, 8vw, 128px);
    background:
        radial-gradient(ellipse 38% 57% at 96% 25%, rgba(255, 255, 255, .85), transparent 72%),
        radial-gradient(ellipse 44% 47% at 5% 92%, rgba(148, 91, 43, .17), transparent 70%),
        linear-gradient(112deg, #dcd3c6, #f4efe6 52%, #dbceba);
}

.notable-series-section::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: clamp(26px, 2.1vw, 35px);
    background:
        linear-gradient(rgba(15, 12, 9, .45), rgba(15, 12, 9, .45)),
        url("../images/series/mamang-bingwitero.jpg") center 48% / cover;
    content: "";
    filter: saturate(.58) brightness(.46);
}

.notable-series-section .section-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 112px), 1420px);
}

.notable-series-intro {
    max-width: 535px;
    padding-top: clamp(78px, 8vw, 124px);
    margin-bottom: clamp(35px, 4vw, 57px);
}

.series-eyebrow {
    margin-bottom: 25px;
    font-size: 11px;
    letter-spacing: 5px;
    line-height: 1;
    text-transform: uppercase;
}

.notable-series-intro h2 {
    margin-bottom: 18px;
    font-size: clamp(48px, 5vw, 74px);
    line-height: .95;
    letter-spacing: -2.2px;
    text-transform: none;
}

.notable-series-intro p:not(.series-eyebrow) {
    max-width: 430px;
    font-size: 15px;
    line-height: 1.7;
    color: #565048;
}

.series-shelf-frame {
    position: relative;
    isolation: isolate;
    padding-bottom: 54px;
}

.series-shelf-frame::before {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 43px;
    border: 1px solid rgba(65, 34, 14, .8);
    border-top: 10px solid #a36a3e;
    border-radius: 1px;
    background:
        linear-gradient(180deg, rgba(255, 235, 198, .37), transparent 10%),
        linear-gradient(90deg, rgba(70, 34, 13, .15), transparent 14%, rgba(67, 33, 13, .12) 29%, transparent 44%, rgba(62, 30, 12, .17) 61%, transparent 77%, rgba(52, 25, 10, .16)),
        linear-gradient(180deg, #8d542f 0%, #5e331c 48%, #3b2011 100%);
    box-shadow: 0 4px 0 #2f190d, 0 25px 31px rgba(67, 39, 19, .37), inset 0 1px rgba(255, 243, 216, .42);
    content: "";
}

.series-shelf-frame::after {
    position: absolute;
    z-index: -1;
    right: 3%;
    bottom: -22px;
    left: 3%;
    height: 82px;
    border-radius: 50%;
    background: rgba(73, 43, 23, .34);
    content: "";
    filter: blur(23px);
}

.notable-series-grid {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(22px, 2.8vw, 43px);
    align-items: flex-end;
    overflow-x: auto;
    padding: 12px 10px 0;
    scrollbar-width: none;
}

.notable-series-grid::-webkit-scrollbar {
    display: none;
}

.notable-series-grid .series-card {
    flex: 1 0 0;
    overflow: hidden;
    border: 1px solid rgba(89, 69, 47, .18);
    border-radius: 12px;
    background: #f7f2e8;
    box-shadow: 0 8px 16px rgba(47, 29, 16, .22);
    cursor: pointer;
    transition: transform .32s ease, box-shadow .32s ease;
}

.notable-series-grid .series-card:hover,
.notable-series-grid .series-card:focus-visible {
    z-index: 2;
    box-shadow: 0 22px 27px rgba(47, 27, 13, .30);
    outline: none;
    transform: translateY(-18px);
}

.notable-series-grid .artwork-image {
    aspect-ratio: 1 / .92;
    border-radius: 0;
}

.notable-series-grid .artwork-image img {
    transition: transform .45s ease;
}

.notable-series-grid .series-card:hover .artwork-image img,
.notable-series-grid .series-card:focus-visible .artwork-image img {
    transform: scale(1.035);
}

.notable-series-grid .artwork-info {
    min-height: 104px;
    padding: 18px 19px;
}

.notable-series-grid .artwork-info h3 {
    margin-bottom: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}

.notable-series-grid .artwork-info p {
    font-size: 11px;
    color: #4f4a43;
}

@media (max-width: 700px) {
    .notable-series-section {
        padding-bottom: 82px;
    }

    .notable-series-section .section-container {
        width: calc(100% - (var(--page-padding) * 2));
    }

    .notable-series-intro {
        padding-top: 62px;
    }

    .series-eyebrow {
        margin-bottom: 19px;
        font-size: 9px;
        letter-spacing: 3.5px;
    }

    .notable-series-intro h2 {
        font-size: 46px;
    }

    .notable-series-intro p:not(.series-eyebrow) {
        font-size: 13px;
    }

    .series-shelf-frame {
        margin-right: calc(var(--page-padding) * -1);
        padding-bottom: 43px;
    }

    .series-shelf-frame::before {
        right: 0;
        bottom: 3px;
        left: 0;
        height: 34px;
        border-top-width: 7px;
    }

    .notable-series-grid {
        gap: 16px;
        padding: 6px 6px 0;
    }

    .notable-series-grid .series-card {
        flex: 0 0 min(72vw, 276px);
    }

    .notable-series-grid .series-card:hover,
    .notable-series-grid .series-card:focus-visible {
        transform: translateY(-10px);
    }
}

/* Remove decorative artwork strips above the Gallery and Notable Series sections. */
.featured-section::after,
.notable-series-section::before {
    display: none;
}

/* =========================================================
   HERO ALIGNMENT & SIGNATURE MARK
========================================================= */
.site-header .site-logo {
    display: block;
    width: clamp(122px, 10vw, 166px);
    color: #fff;
}

.site-header .site-logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

@media (min-width: 701px) {
    .hero-content {
        width: calc(100vw - 160px);
        max-width: none;
        margin-inline: auto;
        transform: none;
    }
}

@media (max-width: 700px) {
    .site-header .site-logo {
        width: 112px;
    }
}

/* =========================================================
   ABOUT & COMMISSION — EDITORIAL REDESIGN
========================================================= */
.about-section {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 8vw, 126px) 0 clamp(64px, 7vw, 104px);
    background:
        radial-gradient(ellipse 38% 58% at 100% 12%, rgba(255, 255, 255, .86), transparent 72%),
        linear-gradient(112deg, #ded4c5 0%, #f5f0e7 52%, #e5d8c7 100%);
}

.about-section::before {
    position: absolute;
    top: -150px;
    right: -180px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(123, 86, 49, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 58px rgba(123, 86, 49, .06), 0 0 0 118px rgba(123, 86, 49, .035);
    content: "";
}

.about-section .section-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 112px), 1320px);
}

.about-section-heading {
    margin-bottom: clamp(38px, 5vw, 68px);
    font-size: 11px;
    letter-spacing: 5px;
}

.about-layout {
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 7vw, 108px);
    align-items: start;
}

.about-portrait {
    position: relative;
    overflow: visible;
    aspect-ratio: 4 / 5;
    background: #2b2925;
    box-shadow: 18px 20px 0 rgba(91, 61, 36, .13), 0 18px 32px rgba(49, 31, 17, .18);
}

.about-portrait::before {
    position: absolute;
    z-index: -1;
    top: 24px;
    right: -24px;
    bottom: -24px;
    left: 24px;
    border: 1px solid rgba(93, 63, 38, .4);
    content: "";
}

.about-portrait img {
    filter: grayscale(.62) contrast(1.02);
}

.about-content {
    position: relative;
    padding: clamp(34px, 4vw, 58px);
    background: rgba(251, 248, 241, .81);
    box-shadow: 0 13px 32px rgba(63, 42, 23, .09);
}

.about-content::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 75px;
    height: 3px;
    background: #b4773e;
    content: "";
}

.about-content h2 {
    margin-bottom: 11px;
    font-size: clamp(44px, 4.4vw, 70px);
    line-height: .94;
    letter-spacing: -1.8px;
}

.about-role {
    margin-bottom: 7px;
    color: #27231f;
    font-size: 11px;
    letter-spacing: 2.4px;
}

.about-style {
    margin-bottom: 34px;
    font-size: 13px;
    letter-spacing: .15px;
}

.about-biography {
    gap: 20px;
}

.about-biography p {
    font-size: 15px;
    line-height: 1.8;
}

.about-biography p:first-child {
    max-width: 590px;
    color: #322a22;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.6;
}

.about-signature {
    margin-top: 37px;
}

.about-signature span {
    width: 72px;
    background: #b4773e;
}

.about-signature img {
    width: 190px;
    opacity: .82;
}

.about-values {
    margin-top: clamp(62px, 7vw, 98px);
    padding: 0;
    border: 0;
    gap: 17px;
}

.about-value {
    min-height: 105px;
    padding: 23px 24px;
    border: 1px solid rgba(91, 64, 40, .22);
    background: rgba(250, 247, 240, .64);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.about-value:hover {
    background: #fffaf1;
    box-shadow: 0 13px 20px rgba(61, 38, 19, .12);
    transform: translateY(-5px);
}

.about-value-icon {
    color: #a56936;
}

/* Commission becomes a dedicated, two-panel inquiry studio. */
.commission-section {
    position: relative;
    padding: clamp(72px, 8vw, 120px) 0;
    background: #d8c9b5;
}

.commission-section::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 45% 85% at 1% 100%, rgba(104, 62, 32, .24), transparent 70%),
        linear-gradient(125deg, rgba(255, 255, 255, .25), transparent 44%);
    content: "";
}

.commission-section .section-container {
    width: min(calc(100% - 112px), 1320px);
}

.commission-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
    gap: 0;
    max-width: none;
    overflow: hidden;
    background: #f8f4ec;
    box-shadow: 0 24px 48px rgba(57, 34, 18, .21);
}

.commission-intro {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 620px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(45px, 5vw, 80px);
    overflow: hidden;
    background: #24241f;
    color: #f8f1e4;
}

.commission-intro::before,
.commission-intro::after {
    position: absolute;
    border: 1px solid rgba(220, 177, 112, .38);
    border-radius: 50%;
    content: "";
}

.commission-intro::before {
    right: -190px;
    bottom: -150px;
    width: 440px;
    height: 440px;
}

.commission-intro::after {
    right: -85px;
    bottom: -50px;
    width: 260px;
    height: 260px;
    background: rgba(182, 118, 62, .12);
    box-shadow: -75px -82px 0 rgba(236, 206, 151, .08);
}

.commission-intro > * {
    position: relative;
    z-index: 1;
}

.commission-intro .section-eyebrow {
    margin-bottom: 29px;
    color: #e8bd77;
    font-size: 11px;
    letter-spacing: 3px;
}

.commission-intro h2 {
    margin-bottom: 22px;
    font-size: clamp(45px, 4.3vw, 68px);
    line-height: .95;
    letter-spacing: -1.7px;
}

.commission-subtext {
    max-width: 245px;
    color: rgba(248, 241, 228, .76);
    font-size: 15px;
    line-height: 1.7;
}

.commission-form {
    align-content: center;
    gap: 17px;
    padding: clamp(42px, 5vw, 78px);
    background: #f8f4ec;
}

.form-row {
    gap: 15px;
}

.form-field {
    gap: 7px;
}

.form-field label {
    color: #4e463d;
    font-size: 10px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid #d8cdbd;
    background-color: #fcfaf5;
    font-size: 13px;
}

.form-field textarea {
    min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #a56a38;
    box-shadow: 0 0 0 3px rgba(165, 106, 56, .13);
}

.file-upload-button {
    border-color: #bda98e;
    background: #f7f0e3;
}

.commission-submit {
    margin-top: 9px;
    padding: 18px 22px;
    background: #24241f;
    font-size: 10px;
    letter-spacing: 1.35px;
}

.commission-submit:hover {
    background: #a46937;
}

.commission-decor {
    display: none;
}

@media (max-width: 900px) {
    .about-section .section-container,
    .commission-section .section-container {
        width: min(calc(100% - 56px), 1320px);
    }

    .about-layout,
    .commission-container {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        width: min(100%, 500px);
    }

    .commission-intro {
        min-height: 380px;
    }
}

@media (max-width: 700px) {
    .about-section {
        padding: 62px 0 52px;
    }

    .about-section .section-container,
    .commission-section .section-container {
        width: calc(100% - 40px);
    }

    .about-section-heading {
        margin-bottom: 32px;
        font-size: 9px;
        letter-spacing: 3.5px;
    }

    .about-layout {
        gap: 42px;
    }

    .about-portrait::before {
        top: 14px;
        right: -14px;
        bottom: -14px;
        left: 14px;
    }

    .about-content {
        padding: 32px 25px;
    }

    .about-content h2 {
        font-size: 44px;
    }

    .about-biography p,
    .about-biography p:first-child {
        font-size: 14px;
    }

    .about-values {
        gap: 12px;
    }

    .commission-section {
        padding: 55px 0;
    }

    .commission-intro {
        min-height: 330px;
        padding: 42px 30px;
    }

    .commission-intro h2 {
        font-size: 47px;
    }

    .commission-form {
        padding: 34px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 17px;
    }
}

/* =========================================================
   MOBILE — ONE-CARD ART SHELVES
========================================================= */
@media (max-width: 700px) {
    .gallery-shelf-frame,
    .series-shelf-frame {
        margin-right: 0;
        overflow: hidden;
    }

    .featured-grid,
    .notable-series-grid {
        gap: 14px;
        padding-right: 6px;
        padding-left: 6px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 6px;
    }

    .featured-grid .artwork-card,
    .notable-series-grid .series-card {
        flex: 0 0 calc(100% - 12px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .featured-grid .artwork-image,
    .notable-series-grid .artwork-image {
        aspect-ratio: 1 / .94;
    }

    .featured-grid .artwork-info,
    .notable-series-grid .artwork-info {
        min-height: 94px;
        padding: 16px 18px;
    }

    .gallery-shelf-frame::before,
    .series-shelf-frame::before {
        right: 0;
        left: 0;
    }

    .gallery-shelf-controls {
        gap: 10px;
        margin: 2px 0 18px auto;
    }
}

/* =========================================================
   SERIES MODALS — RESPONSIVE IMAGE GALLERIES
========================================================= */
.series-modal-dialog {
    width: min(100%, 1120px);
    padding: clamp(66px, 6vw, 94px) clamp(28px, 6vw, 86px) clamp(34px, 5vw, 70px);
}

.series-modal-heading {
    margin-bottom: clamp(28px, 4vw, 48px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.series-modal-heading .section-eyebrow {
    margin-bottom: 16px;
    color: #9f6637;
    font-size: 10px;
    letter-spacing: 3px;
}

.series-modal-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .94;
}

.series-modal-heading > p:last-child {
    color: var(--color-muted);
    font-size: 14px;
}

.series-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 26px);
}

.series-modal-gallery img {
    width: 100%;
    min-height: 220px;
    max-height: 560px;
    object-fit: cover;
    background: #ded9cf;
}

.series-modal-gallery img:first-child:only-child {
    grid-column: 1 / -1;
    max-height: min(62vh, 620px);
    object-fit: contain;
}

.series-card:focus-visible {
    outline: 3px solid #b4773e;
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .series-modal-dialog {
        max-height: calc(100vh - 28px);
        padding: 68px 21px 28px;
    }

    .series-modal-heading {
        margin-bottom: 26px;
        padding-bottom: 19px;
    }

    .series-modal-heading h2 {
        font-size: 42px;
    }

    .series-modal-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .series-modal-gallery img,
    .series-modal-gallery img:first-child:only-child {
        grid-column: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}

/* =========================================================
   SERIES MODALS — GALLERY-STYLE IMAGE CAROUSEL
========================================================= */
.series-modal .modal-artwork-content { min-height: 0; }

.series-modal .modal-artwork-image {
    height: min(670px, 69vh);
    aspect-ratio: auto;
    background: #d8d3c9;
}

.series-modal-image img {
    display: none;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.series-modal-image img.is-active {
    display: block;
}

.series-modal [data-series-previous]:disabled,
.series-modal [data-series-next]:disabled {
    cursor: default;
    opacity: .32;
}

@media (max-width: 800px) {
    .series-modal .modal-artwork-image {
        height: min(58vh, 520px);
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 800px) {
    .artwork-modal .modal-artwork-image {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }
}

/* Keep every artwork whole inside its modal.  The neutral modal background
   becomes the surrounding space when an artwork has a different proportion,
   instead of cutting off its top, bottom, or sides. */
.artwork-modal .modal-artwork-image {
    display: grid;
    place-items: center;
    background: transparent;
}

.artwork-modal .modal-artwork-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
}
