:root {
    /* Additional spacing classes */
    /* One-up pairs, based on based on utopia CSS calculator.
       See link in styleguide.mjs
    */
    --space-3to-2: clamp(0.4rem, 0.22rem + 0.47vw, 0.9rem);
    --space-2to-1: clamp(0.8rem, 0.52rem + 0.75vw, 1.6rem);
    --space-1to0: clamp(1.4rem, 1.26rem + 0.38vw, 1.8rem);
    --space0to1: clamp(1.6rem, 1.213rem + 1.03vw, 2.7rem);
    --space1to2: clamp(2.4rem, 2.12rem + 0.75vw, 3.2rem);
    --space2to3: clamp(2.9rem, 2.20rem + 2.35vw, 5.4rem);
    /* Additional colors */
    --gray50: hsl(0, 0%, 95%);

    /* additional in-between font size class, used for artwork price */
    --text-0\.5: clamp(1.9rem, 1.69rem + 0.31vw, 2.1rem);
}

.mbe-2to-1 {
    margin-block-end: var(--space-2to-1)
}

/* widen the page container */
@media (min-width: 1312px) {
    .container, /* main page container */
    .header .holder, .artnet-brand /* old global header on .de and .fr */
    {
        max-width: 1312px;
        width: 1312px;
    }
}

/* Utility classes */

/* borrow width/height numbers from tailwind, e.g. size 24 = 4px * 24 = 96px */

.si-24 {
    inline-size: 9.6rem;
}

.sb-max-24 {
    max-inline-size: 9.6rem;
}

.align-middle {
    vertical-align: middle;
}

.border-gray-200 {
    border-color: var(--gray200)
}

.background-gray-100 {
    background-color: var(--gray100)
}

.text-gray-200 {
    color: var(--gray200)
}

.mb-static0 {
    margin-block: 1.6rem;
}

.text-shadow {
    text-shadow: 0 0 7px rgba(0,0,0,0.5)
}

.shadow {
    box-shadow: 4px 4px 4px 0px #D9D9D9;
}

/* Overrides */

.artwork-area-container > .carousel-inner {
    /* prevents the currency converter popover from getting cut off when the price is a
       big number and it gets positioned all the way to the right, e.g.
       "Est. 2,000,000�3,000,000 JPY"
    */
    overflow: visible;
}

.carousel-inner .item {
    padding: 0;
}

.popover {
    /* make popovers go in front of the unified header */
    z-index: 5000;
}

.redesign-2024 {
    color: #000;
    letter-spacing: normal;
}

.redesign-2024 .converterPopup > span {
    letter-spacing: normal;
}

@media (min-width: 48em) {
    .redesign-2024 .block-md {
        display: block !important;
        visibility: visible !important;
    }
}

/* the paramour spacing scale doesn't quite match what we need for this div on desktop,
   so we're defining margin-top for this div in this stylesheet instead
*/
.artwork-area-container {
    margin-top: var(--space0to1);
}

/* large breakpoint (desktop, >= 1024px) */
@media (min-width: 64em) {
    .artwork-area-container {
        margin-top: 3.6rem;
    }

    .redesign-2024 {
        /* correct offset in legacy styles that cause the page container to overlap with unified header */
        margin-top: 2px;
    }

    .redesign-2024 .block-lg {
        display: block !important;
        visibility: visible !important;
    }
}

h1, h2, h3, .h1, .h2, .h3 {
    margin-top: 0;
    margin-bottom: 0;
}

dt, dd {
    line-height: inherit;
}

dt {
    font-weight: 500;
}

.redesign-2024 button {
    background: transparent;
    border: none;
    padding: 0;
}

.syndicated-container .pb-2 {
    padding-block: 0; /* override paramour pb-2 class */
}


/* Defaults */

.redesign-2024, .redesign-2024 p {
    font-size: 1.6rem;
}

.redesign-2024 {
    line-height: 1;
}

.redesign-2024 p {
    line-height: 1.5;
}


.redesign-2024 ul {
    margin: 0;
    padding: 0;
}

/* allow paramour text classes to work on paragraphs - need to override the above default */
.redesign-2024 .text-2 {
    font-size: var(--text-2);
}


.redesign-2024 .text-1 {
    font-size: var(--text-1);
}

.redesign-2024 .text0 {
    font-size: var(--text0);
}

/* additional in-between font size class, used for artwork price */
.redesign-2024 .text0\.5 {
    font-size: var(--text-0\.5);
}

.redesign-2024 .text1 {
    font-size: var(--text1);
}

.redesign-2024 .text2 {
    font-size: var(--text2);
}

.redesign-2024 .text3 {
    font-size: var(--text3);
}

.redesign-2024 .text4 {
    font-size: var(--text4);
}

.redesign-2024 .text5 {
    font-size: var(--text5);
}

/* start: prefix some other paramour classes with .redesign-2024 to make them more specific, so they can
   be used to override defaults for heading elements
*/
.redesign-2024 .mbe-5 {
    margin-block-end: var(--space-5);
}

.redesign-2024 .mbe-none {
    margin-block-end: 0;
}

.redesign-2024 .font-normal {
    font-weight: normal;
}
/* end: prefix some other paramour classes with .redesign-2024 */

.redesign-2024 a:hover, .redesign-2024 a:focus {
    color: #000;
    text-decoration: none;
}

.redesign-2024 a.underline:hover, .redesign-2024 a.underline:focus {
    text-decoration: underline;
}

h1, .h1 {
    font-size: var(--text3);
    font-weight: 500;
    line-height: 1.2;
}

.redesign-2024 h1 a:hover,
.redesign-2024 h2 a:hover,
.redesign-2024 h3 a:hover,
.redesign-2024 a h1:hover,
.redesign-2024 a h2:hover {
    text-decoration: underline;
}

h2, .h2 {
    font-size: var(--text1);
    font-weight: bold;
    line-height: 1.4;
    margin-block-end: var(--space-1);
}

/* large breakpoint (desktop, >= 1024px) */
@media (min-width: 64em) {
    h2, .h2 {
        font-weight: 500;
    }
}

/* .artwork-description needed in addition to <p> because the descriptions don't necessarily
    have paragraphs in them as they should
*/
.artwork-description {
    font-size: clamp(1.6rem, 1.56rem + 0.1156vw, 1.7rem);
    line-height: 1.5;
}

.description-wrapper, .about-wrapper {
    max-height: 512px;
    overflow: hidden;
    position: relative;
    content: "";
    transition: max-height 500ms ease-in-out;
}

.see-more-description::before, .see-more-about::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(transparent 250px, white);
}

p a, .artwork-description a {
    text-decoration: underline;
}

@media (min-width: 64em) {
    .see-more-description-button {
        min-width: 25.813rem;
    }
}

/* General classes */

.redesign-2024 .button {
    display: inline-block;
    background-color: #000;
    border-radius: 0.3rem;
    border-style: solid;
    border-width: var(--borderWidth0);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.4;
    padding-block: var(--space-2);
    padding-inline: var(--space0);
    text-align: center;
    vertical-align: middle;
    inline-size: 100%;
}

/* large breakpoint (desktop, >= 1024 px) */
@media (min-width: 64em) {
    .redesign-2024 .button {
        inline-size: auto;
    }
}

.redesign-2024 .button:hover {
    background-color: var(--gray700);
    color: #fff;
}

.redesign-2024 .button:focus {
    color: #fff;
}

.redesign-2024 .button-secondary {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
}

.redesign-2024 .button-secondary:hover {
    background-color: #fff;
    border-color: var(--gray700);
    color: var(--gray700);
}

.redesign-2024 .button-secondary:focus {
    color: var(--gray700);
}

.redesign-2024 .button-sm {
    font-size: var(--text-2);
    inline-size: auto;
    line-height: 1.3;
    padding-inline: var(--space0);
    padding-block: var(--space-4);
}

.redesign-2024 .button-lg {
    line-height: 1.5;
    padding-block: 1.6rem;
}

/* make a <dl> element look like a table */
.dl-table {
    display: grid;
    grid-template-columns: clamp(14.6rem, 10vw, 15.6rem) auto;
    column-gap: var(--space-1);
    row-gap: var(--space-2);
    line-height: 1.5;
    word-break: break-word;
}

.dl-table-narrower {
    grid-template-columns: clamp(12rem, 10vw, 15.6rem) auto;
}

/* Custom CSS */

.redesign-2024 .member-site-links li {
    display: inline;
}

.redesign-2024 .member-site-links li:not(:last-child)::after {
    content: '|';
    padding-inline: 1.3rem;
}
