body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}


/* HEADER */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 40px;
    background: white;

    transition: transform .55s ease;
}

.topbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

main {
    position: relative;
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

@supports (height: 100svh) {
    main {
        min-height: calc(100svh - 80px);
    }
}

nav a {
    margin-right: 18px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    position: relative;
    padding-bottom: 4px;
    transition: color .2s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #d29e04;
    transition: width .25s ease;
}

nav a:hover {
    color: #111;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #111;
}

nav a.active::after {
    width: 100%;
}

.nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

nav {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: max-content;

    padding-right: 40px;
}

.logo img {
    height: 40px;
}


/* MASONRY */

.masonry {
    column-count: 5;
    column-gap: 30px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.card {
    break-inside: avoid;
    margin-bottom: 34px;
}

.card img {
    width: 100%;
    border-radius: 12px;
    display: block;
    background: var(--art-color, #e9e9e9);
}

.card a,
.card a:link,
.card a:visited,
.card a:hover,
.card a:active,
.card a * {
    text-decoration: none !important;
}

.card a {
    display: block;
}

.card a:hover {
    opacity: 0.95;
}

/* CAPTION */

.caption {
    margin-top: 10px;
}

.title {
    margin: 0;
    font-size: 15px;
    font-weight: 300;
    color: var(--art-color, #3a2a22);
    line-height: 1.25;
}

.details {
    margin-top: 2px;
    font-size: 10px;
    color: #666;
    line-height: 1.25;
}

.meta {
    margin-top: 4px;
    font-size: 10px;
    color: #9a9a9a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog {
    letter-spacing: 0.4px;
}

.hero-caption .title {

    font-size: 36px;
    font-weight: 100;
    margin-bottom: 3px;

}

.hero-caption .subtitle {

    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
    margin-left: 40px;
    color: var(--art-color, #3a2a22);

}

.hero-caption .details {

    font-size: 12px;
    margin-top: 4px;

}

.hero-caption .meta {

    font-size: 12px;
    margin-top: 8px;

}

.hero-caption .status {

    width: 9px;
    height: 9px;

}


/* STATUS DOT */

.status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.available {
    background: #8bb58c;
}

.sold {
    background: #d33;
}


/* OPTIONAL TITLE COLORS */

.title.blue {
    color: #2c4a7c;
}

.title.burgundy {
    color: #6b3b3f;
}

.title.brown {
    color: #4c3428;
}


/* RESPONSIVE */

@media (max-width:900px) {
    .masonry {
        column-count: 4;
    }
}

@media (max-width:600px) {
    .masonry {
        column-count: 2;
    }

    .topbar {
        padding: 16px 14px;
    }

    nav a {
        margin-right: 16px;
        font-size: 14px;
    }

}


/* =========================
   PAINTING HERO
========================= */

.painting-hero {

    display: flex;
    align-items: flex-start;
    gap: 40px;

    padding: 40px;

}

/* IMAGE */

.painting-image {

    flex: 0 0 auto;

}

.painting-image img {

    max-height: calc(100vh - 160px);
    width: 100%;
    height: auto;

    border-radius: 12px;

    object-fit: contain;

}

/* Safari / iPad fix */

@supports (-webkit-touch-callout: none) {

    .painting-image img {

        max-height: calc(100svh - 160px);

    }

}

/* INFO PANEL */

.painting-info {

    flex: 1;
    min-width: 300px;

    max-width: 900px;

    margin-right: 40px;

    max-height: calc(100vh - 140px);
    overflow-y: auto;

}

.painting-info h1 {

    font-size: 30px;
    font-weight: 300;
    margin-bottom: 12px;

}

.painting-info p {

    margin: 6px 0;
    font-size: 14px;
    color: #625f5c;

}

.description {

    margin-top: 20px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    -webkit-line-clamp: 6;
    line-clamp: 6;

    overflow: hidden;

    font-size: 14px;
    color: #625f5c;

}

.description.expanded {

    display: block;

    -webkit-line-clamp: unset;
    line-clamp: unset;

    max-height: 45vh;
    overflow-y: auto;

}

.read-more {

    display: inline-block;
    margin-top: 6px;

    font-style: italic;
    font-size: 13px;
    color: #888;
    cursor: pointer;

}


/* =========================
   MOBILE
========================= */

@media (max-width:900px) {

    .painting-hero {

        flex-direction: column;
        gap: 30px;

        padding: 30px 20px;

    }

    .painting-image img {

        width: 100%;
        height: auto;
        max-height: none;

    }

    .painting-info {

        width: 100%;
        max-height: none;
        overflow: visible;

    }

}





/* =========================
   GALLERY BELOW HERO
========================= */

.painting-gallery {

    margin-top: 0px;

}


/* bottom BG */

main {
    position: relative;
}

main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1200px;

    background:
        linear-gradient(
            to bottom,
            rgba(245, 245, 245, 1) 0%,
            rgba(245, 245, 245, 1) 10%,
            rgba(245, 245, 245, 0.84) 90%,
            rgba(245, 245, 245, 0.915) 100%
        ),
        url("../img/img_xl/LLK-2022-007-the-visitor.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    pointer-events: none;
    z-index: -1;
}

/*
body::before {
    content: "";
    position: fixed;
    inset: 0;

    z-index: 0;
    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(245, 245, 245, 1) 0%,
            rgba(245, 245, 245, 1) 10%,
            rgba(245, 245, 245, 0.734) 90%,
            rgba(245, 245, 245, 0.674) 100%
        ),
        url("../img/img_xl/LLK-2022-007-the-visitor.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



body {
    position: relative;
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background:
        linear-gradient(
            to bottom,
            rgba(245, 245, 245, 1) 0%,
            rgba(245, 245, 245, 1) 10%,
            rgba(245, 245, 245, 0.834) 90%,
            rgba(245, 245, 245, 0.866) 100%
        ),
        url("../img/img_xl/LLK-2022-007-the-visitor.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main,
.topbar {
    position: relative;
    z-index: 1;
}
*/
/* HOME SIGNATURE TEST */

.home-signature {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 56px 40px 30px;
}

.home-signature img {
    display: block;
    width: min(608px, 58vw);
    max-width: 100%;
    height: auto;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .home-signature {
        padding: 40px 24px 20px;
    }

    .home-signature img {
        width: min(620px, 82vw);
    }
}

@media (max-width: 600px) {
    .home-signature {
        padding: 28px 16px 12px;
    }

    .home-signature img {
        width: 88vw;
    }
}


/* =========================
   ARTWORK ENGAGE
========================= */

.artwork-engage {
    margin-top: 18px;
}

.copyright-line,
.sale-line {
    margin: 14px 0 14px 0;
    line-height: 1.45;
}

.copyright-line {
    font-size: 10px;
    color: #ff0000;
}

.sale-line {
    font-size: 15px;
    font-weight: 600;
    color: #6f6f6f;
}

.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-left: 0px;
}

.art-tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.05);
    color: #878787;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.2px;
}

/* =========================
   ARTWORK GALLERY STRIP
========================= */

.artwork-gallery-strip {
    padding: 0 40px 8px;
}

.detail-card img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
}

/* =========================
   ARTWORK RECORD
========================= */

.artwork-record {
    padding: 10px 40px 56px;
    max-width: 1100px;
}

.artwork-record h2 {
    margin: 0 0 18px 0;
    font-size: 26px;
    font-weight: 300;
    color: #656565;
}

.artwork-record h3 {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 400;
    color: #757575;
}

.artwork-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px 28px;
    margin-top: 18px;
}

.artwork-facts p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #8c8c8c;
}

.artwork-context {
    margin-top: 28px;
    max-width: 900px;
}

.artwork-context p {
    margin: 0 0 14px 0;
    font-size: 12px;
    line-height: 1.75;
    color: #858585;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    .artwork-gallery-strip {
        padding: 0 20px 8px;
    }

    .artwork-record {
        padding: 10px 20px 40px;
    }

    .artwork-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* =========================
   ARTWORK CTA
========================= */

.artwork-cta {
    margin-top: 20px;
    display: block;
    flex-direction: column;
    gap: 10px;
    
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
    max-width: 220px;
}

.cta-button:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.cta-primary {
    background: #a4a4a4;
    color: #fff !important;
}

.cta-secondary {
    background: transparent;
    color: #555 !important;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.cta-note {
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.55;
    color: #666;
    max-width: 40ch;
}

.painting-info p.cta-note {
    font-size: 12px;
    color: #666;
}


/* =========================
   PALETTE SWATCHES
========================= */

.palette-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 0;
}

.palette-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swatch);
    display: inline-block;
}

/* ------ location ------- */

.location-line {
    margin: 4px 0 8px 0;
    font-size: 12px;
    line-height: 1.45;
}

.location-label {
    color: rgba(0, 0, 0, 0.42);
    font-weight: 500;
}

.location-value {
    color: rgba(0, 0, 0, 0.72);
    font-weight: 500;
}

.location-sep {
    color: rgba(0, 0, 0, 0.26);
    padding: 0 6px;
}

.exhibition-line {
    margin-top: 4px;
}

.exhibition-line .location-label,
.exhibition-line .location-value {
    font-size: 12px;
    line-height: 1.45;
}

.exhibition-line .location-label {
    color: rgba(0, 0, 0, 0.42);
    font-weight: 500;
}

.exhibition-line .location-value {
    color: rgba(0, 0, 0, 0.72);
    font-weight: 500;
}


/* ------ exhibited artworks on event cards ------- */

.exhibited-block {
    margin-top: 12px;
}

.exhibited-label {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.42);
    font-weight: 500;
    margin-bottom: 6px;
}

.exhibited-list {
    margin: 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exhibited-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.exhibited-list a,
.exhibited-list a:link,
.exhibited-list a:visited {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: #6f6f6f !important;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.exhibited-list a:hover,
.exhibited-list a:active {
    background: rgba(0, 0, 0, 0.09);
    color: var(--art-color, #555) !important;
    transform: translateY(-1px);
}

.exhibition-location {
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
}

.exhibition-dates {
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
}

.exhibition-line a {
    color: inherit;
    text-decoration: none;
}

.exhibition-line a:visited {
    color: inherit;
}

.exhibition-line a:hover {
    color: var(--art-color, rgba(0,0,0,0.8));
}