/*
| Cloud Gallery: header, menu and footer, after the old site
| (cloudgalleryfineart.co.uk, local/cloud/styles/main.css and responsive.css),
| with the spacing tightened a little. Our own account and basket icons replace
| the old basket. Everything is scoped to the cg- classes so the shared page
| styles are untouched.
*/

:root {
    --cg-grey: #f0f1f1;
    --cg-blue: #a8e2fe;
    --cg-text: #44494f;
    --cg-red: #c84024;
    --cg-heading: 'Raleway', sans-serif;
    --cg-body: 'Open Sans', sans-serif;
}

[x-cloak] {
    display: none !important;
}

.cg-container {
    position: relative;
    max-width: 960px;   /* 940px inside, as on the old site */
    margin: 0 auto;
    padding: 0 10px;
}

.cg-hd *, .cg-nav *, .cg-ft *, .cg-ft2 * {
    box-sizing: border-box;
}

.cg-hd, .cg-nav, .cg-ft, .cg-ft2 {
    font-family: var(--cg-body);
    font-size: 13px;
    color: var(--cg-text);
    letter-spacing: normal;
}

.cg-hd a, .cg-nav a, .cg-ft a, .cg-ft2 a {
    color: var(--cg-text);
    text-decoration: none;
}

/* HEADER */

.cg-hd {
    background: var(--cg-grey);
    padding: 26px 0 16px;
    text-align: center;
}

.cg-logo {
    margin: 0;
    line-height: 0;
}

.cg-logo img {
    display: inline-block;
    width: 270px;
    max-width: 100%;
    height: auto;
}

.cg-hd-details {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #fff;
}

.cg-strapline {
    margin: 0;
    font-family: var(--cg-heading);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
    color: rgba(68, 73, 79, 0.5);
}

.cg-places {
    margin: 4px 0 10px;
    padding: 0;
    list-style: none;
}

.cg-places li {
    display: inline-block;
    padding: 0 5px;
    font-family: var(--cg-heading);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    text-transform: uppercase;
    color: rgba(68, 73, 79, 0.9);
}

.cg-places li:first-child {
    padding-left: 0;
}

.cg-places li:last-child {
    padding-right: 0;
}

.cg-places li:after {
    content: "|";
    padding-left: 10px;
}

.cg-places li:last-child:after {
    content: "";
    padding-left: 0;
}

/* The old site's round icons (a grey ring and mark, darker on hover), drawn with Font Awesome's brand icons so
   every network Office can hold has one (partials/social) */
.cg-social {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 0;
}

.cg-social li {
    display: inline-block;
    padding: 0 6px;
}

.cg-social li:first-child {
    padding-left: 0;
}

.cg-social li:last-child {
    padding-right: 0;
}

.cg-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    border: 1.5px solid #b3b5b8;
    border-radius: 50%;
    font-size: 19px;
    color: #8f9295;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.cg-social a:hover {
    border-color: var(--cg-text);
    color: var(--cg-text);
}

.cg-social a span {
    position: absolute;
    left: -20000px;
}


/* Our account and basket icons (partials.basket-icons): white images, darkened to the text colour */
.cg-shop {
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 0;
}

.cg-shop a {
    display: inline-block;
}

.cg-shop img {
    width: 24px;
    height: 24px;
    filter: brightness(0.27);
    transition: filter 0.2s;
}

.cg-shop a:hover img {
    filter: brightness(0);
}

.cg-hd {
    position: relative;
}

.cg-shop {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 2;
}

/* MENU */

.cg-nav {
    background: var(--cg-blue);
}

.cg-menu {
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
    text-align: center;
}

.cg-menu li {
    display: inline-block;
    padding: 0 12px;
    line-height: 13px;
}

.cg-menu li:first-child {
    padding-left: 0;
}

.cg-menu li:last-child {
    padding-right: 0;
}

.cg-menu a {
    display: inline-block;
    padding: 17px 0 9px;
    font-family: var(--cg-heading);
    font-size: 21px;
    font-weight: 400;
    line-height: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.cg-menu a:hover {
    border-bottom-color: #fff;
}

/* the page's own section: white, as on the old site, and bold so it stands out on the light blue */
.cg-nav a.active {
    color: #fff;
    font-weight: 700;
}

.cg-menu-bar, .cg-menu-mobile {
    display: none;
}

/* BREADCRUMBS (partials/breadcrumbs): under the menu, the header's width, small and in the site's greys */
.breadcrumbs {
    max-width: 940px;
    margin: 16px auto 0;
    padding: 0 10px;
    font-family: var(--cg-body);
    font-size: 13px;
    color: rgba(68, 73, 79, 0.65);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--cg-red);
    text-decoration: none;
}

.breadcrumbs [aria-current="page"] {
    color: var(--cg-text);
}

/* FOOTER: the old site's, a little tighter */

.cg-ft {
    clear: both;
    background: var(--cg-grey);
    margin-top: 24px;
    padding: 20px 0 16px;
    font-size: 14px;
}

.cg-ft-columns {
    display: flex;
}

.cg-ft-places {
    flex: 0 0 66.6%;
    padding-right: 40px;
    border-right: 1px solid #fff;
}

.cg-ft-signup {
    flex: 1;
    padding-left: 18.8px;
}

.cg-ft h2 {
    margin: 0 0 10px;
    font-family: var(--cg-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
}

.cg-ft h3 {
    margin: 10px 0 0;
    font-family: var(--cg-heading);
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--cg-red);
}

.cg-ft-text > h3:first-child {
    margin-top: 0;
}

.cg-ft p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--cg-text);
}

.cg-ft-signup > p {
    margin-bottom: 6px;
}

/* the shared signup form's messages (components/mailing-list-form), as plain lines like the old site's */
.cg-ft .mailing-list-thanks,
.cg-ft .mailing-list-errors {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    list-style: none;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
}

.cg-ft .mailing-list-thanks {
    color: green;
}

.cg-ft .mailing-list-errors {
    color: #b00;
}

.cg-ft-signup form {
    margin: 0 0 12px;
}

.cg-ft-signup input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: #fff;
    font-family: arial, helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
}

.cg-ft-signup input::placeholder {
    font-style: italic;
}

.cg-ft .cg-button {
    margin-top: 8px;
    padding: 5px 14px;
    border: 1px solid var(--cg-text);
    border-radius: 0;
    background: var(--cg-grey);
    font-family: var(--cg-heading);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cg-text);
    cursor: pointer;
}

.cg-ft .cg-button:hover {
    background: var(--cg-blue);
}

.cg-ft .cg-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.cg-ft2 {
    background: var(--cg-blue);
    padding: 8px 0;
    font-size: 13px;
}

.cg-ft2-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cg-ft2 p {
    margin: 0;
    line-height: 20px;
    color: var(--cg-text);
}

.cg-ft2 a:hover {
    color: #fff;
}

/* ARTISTS PAGE: the featured artists first, as on the old site - three picture tiles across the header's
   width, each name in a pale band over the foot of its picture - then "Gallery Artists" */

body.artists .featured-artists,
body.artists .artists-list-title {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.featured-artists-title,
.artists-list-title {
    font-family: var(--cg-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--cg-text);
}

.featured-artists-grid {
    gap: 28px;
}

body.artists .featured-artists {
    margin-bottom: 36px;
}

.featured-artist-image {
    aspect-ratio: 295 / 211;
}

.featured-artist-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    background: rgba(240, 241, 241, 0.85);
    font-family: var(--cg-heading);
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
    color: var(--cg-text);
}

.featured-artist:hover .featured-artist-name {
    background: rgba(168, 226, 254, 0.9);
}

/* TEXT PAGES (News, a news entry, About Us, Contact): the header's width, as on the old site, and running
   text in a column narrow enough to read comfortably (the old site's was about 600px) */

body.page .c-container {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

body.page .content-split-text,
body.page .highlight-item .left {
    max-width: 680px;
}

/* a listing entry (pages/listing-entry): the way back to its listing, then text and picture side by side */
.listing-entry .listing-entry-back {
    margin: 30px 0 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-entry .listing-entry-back a {
    color: var(--cg-text);
    text-decoration: none;
}

.listing-entry .listing-entry-back a::before {
    content: "\2039  ";
}

.listing-entry .content-split {
    margin-top: 16px;
}

/* EVENTS (sites/cloud-gallery/pages/events): as the old site's Events page - each event's picture on the left
   (294px of 940), its title, dates in italics and text beside it */

.events-h1 {
    margin: 70px 0 50px;
    font-family: var(--cg-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
}

.event-item {
    display: flex;
    gap: 38px;
    margin-bottom: 70px;
}

.event-item .event-image {
    flex: 0 0 294px;
}

.event-item .event-image img {
    display: block;
    width: 100%;
    height: auto;
}

.event-item .event-text {
    flex: 1;
    min-width: 0;
}

.event-item h2 {
    margin: 0 0 12px;
    font-family: var(--cg-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--cg-text);
}

.event-item .event-dates {
    margin: 0 0 22px;
    font-family: var(--cg-heading);
    font-size: 25px;
    font-style: italic;
    font-weight: 300;
    color: var(--cg-text);
}

.event-item .event-description {
    font-family: var(--cg-body);
    font-size: 16px;
    line-height: 23px;
    color: #85898d;
}

/* as the old site: paragraphs run on, and an empty one is the blank line between them */
.event-item .event-description p {
    margin: 0;
}

.event-item .event-description p:empty {
    height: 23px;
}

/* an event with works: its title and picture link to its own page, and "view the works" under the text */
.event-item h2 a {
    color: inherit;
    text-decoration: none;
}

.event-item h2 a:hover {
    color: var(--cg-red);
}

.event-item .event-works-link {
    display: inline-block;
    margin: 16px 0 0;
    font-family: var(--cg-heading);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
    text-decoration: none;
}

.event-item .event-works-link::after {
    content: "\203A";
    margin-left: 8px;
    font-size: 20px;
    line-height: 0;
}

.event-item .event-works-link:hover {
    color: var(--cg-red);
}

/* an event's own page (sites/cloud-gallery/exhibition): the way back to Events, the event as on that page,
   then its works as the artist page's */
.cg-event-back {
    margin: 50px 0 30px;
}

.cg-event-back a {
    font-family: var(--cg-heading);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(68, 73, 79, 0.6);
    text-decoration: none;
}

.cg-event-back a::before {
    content: "\2039";
    margin-right: 8px;
    font-size: 20px;
    line-height: 0;
}

.cg-event-back a:hover {
    color: var(--cg-text);
}

.event-item .cg-event-title {
    margin: 0 0 12px;
    font-family: var(--cg-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--cg-text);
}

.cg-event-works {
    margin: 0 0 70px;
    padding-top: 40px;
    border-top: 1px solid #d5d8d8;
}

.event-none {
    margin-bottom: 70px;
}

/* NEW ARTIST SIGNINGS (sites/cloud-gallery/pages/signings): laid out as an event, a faint line between
   signings, then "View artist's page" and the artworks in a row of three squares, as on the old site */

.signing-item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e3e5e5;
}

.signing-item:last-child {
    border-bottom: 0;
    margin-bottom: 70px;
}

.signing-item h2 {
    margin-bottom: 22px;
}

.signing-artist-link {
    display: inline-block;
    margin: 6px 0 10px;
    font-family: var(--cg-heading);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--cg-text);
    text-decoration: none;
}

.signing-artist-link::after {
    content: "\203A";
    margin-left: 8px;
    font-size: 20px;
    line-height: 0;
}

.signing-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.signing-works img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ABOUT US (sites/cloud-gallery/pages/about): as the old site - the text on the left, the pictures stacked
   down the right (294px of 940); paragraphs run on, the empty ones being the blank lines */

.about-split {
    display: flex;
    gap: 38px;
    margin-bottom: 70px;
}

.about-text {
    flex: 1;
    min-width: 0;
    font-family: var(--cg-body);
    font-size: 15px;
    line-height: 23px;
    color: var(--cg-text);
}

.about-text p,
.about-text li p {
    margin: 0;
}

.about-text ul {
    margin: 16px 0;
    padding-left: 25px;
}

.about-text a {
    color: inherit;
}

.about-pictures {
    flex: 0 0 294px;
    margin-top: -12px;
}

.about-pictures img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

/* CONTACT (sites/cloud-gallery/pages/contact): the form alone and centred, then the galleries three across
   as on the old site - name, address, phone, "Email Gallery", map - then the rest in a row */

.cg-contact .contact-form-grid,
.cg-contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.cg-contact .c-container {
    margin-top: 10px;
}

.cg-contact-form h1 {
    margin: 20px 0 0;
    font-family: var(--cg-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
    text-align: center;
}

.cg-contact-form .contact-intro {
    margin: 0 0 4px;
    text-align: center;
}

/* compact: two fields to a row (name and email, telephone and subject), smaller fields and button */
.cg-contact .cg-contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.cg-contact .cg-contact-form form > * {
    grid-column: 1 / -1;
}

.cg-contact .cg-contact-form form > div:has(#name),
.cg-contact .cg-contact-form form > div:has(#email),
.cg-contact .cg-contact-form form > div:has(#telephone),
.cg-contact .cg-contact-form form > div:has(#subject) {
    grid-column: auto;
}

.cg-contact-form label {
    gap: 3px;
    font-size: 15px;
}

.cg-contact-form label span {
    margin-bottom: 0;
}

.contact-page.cg-contact input,
.contact-page.cg-contact textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 14px !important;
}

.contact-page.cg-contact input:not([type="checkbox"]) {
    height: 36px;
}

.contact-page.cg-contact textarea {
    height: 96px;
}

.cg-contact-form .contact-mailing-list {
    margin: 2px 0 !important;
}

.contact-page.cg-contact input[type="checkbox"] {
    width: 22px !important;
    height: 22px;
    padding: 0 !important;
}

.contact-page.cg-contact button {
    padding: 9px 34px !important;
    font-size: 16px !important;
    justify-self: start;
}

.cg-contact-form .contact-note {
    margin: 0;
}

.cg-contact-places {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid #e3e5e5;
}

/* a column each, the maps lined up along the bottom whatever the address's length */
.cg-place {
    display: flex;
    flex-direction: column;
    font-family: var(--cg-body);
    font-size: 16px;
    line-height: 23px;
    color: var(--cg-text);
}

.cg-place h2 {
    margin: 0 0 16px;
    font-family: var(--cg-body);
    font-size: 26px;
    font-weight: 400;
    color: var(--cg-text);
}

.cg-place-address {
    margin: 0 0 8px;
}

.cg-place-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 4px;
}

.cg-place-line svg {
    width: 20px;
    height: 20px;
    fill: var(--cg-text);
    flex: 0 0 20px;
}

.cg-place a {
    color: var(--cg-text);
    text-decoration: none;
}

.cg-place a:hover {
    text-decoration: underline;
}

.cg-place-map {
    display: block;
    margin-top: auto;
    padding-top: 24px;
}

.cg-place-map img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.cg-contact-more {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0 70px;
    font-family: var(--cg-body);
    font-size: 16px;
    line-height: 23px;
    color: var(--cg-text);
}

.cg-contact-more:empty {
    display: none;
}

.cg-contact-more h3 {
    margin: 0 0 10px;
    font-family: var(--cg-heading);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--cg-text);
}

.cg-contact-more a {
    color: var(--cg-text);
}

.cg-contact-more img {
    max-width: 100%;
}

/* ARTIST (sites/cloud-gallery/pages/artist): as the old site - the works on the left, three across, and the
   artist on the right (294px of 940) */

.cg-artist {
    display: flex;
    gap: 46px;
    align-items: flex-start;
    max-width: 940px;
    margin: 40px auto 70px;
    padding: 0 10px;
}

.cg-artist-works {
    flex: 1;
    min-width: 0;
}

.cg-artist-filter {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0 28px;   /* level with the artist's name */
    padding: 0;
    list-style: none;
}

.cg-artist-filter li + li::before {
    content: "|";
    margin: 0 14px;
    color: var(--cg-text);
}

.cg-artist-filter a {
    font-family: var(--cg-heading);
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
    text-decoration: none;
}

.cg-artist-filter a:hover {
    color: var(--cg-red);
}

/* the chosen filter, clearly: bold and red (there is no heading over the works) */
.cg-artist-filter a.active {
    font-weight: 700;
    color: var(--cg-red);
}

.cg-artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 30px;
}

.cg-work {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--cg-text);
}


/* the picture in a fixed box, so the titles line up across a row */
.cg-work-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 200px;
    margin-bottom: 14px;
}

.cg-work-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cg-work-title {
    font-family: var(--cg-body);
    font-size: 14px;
    font-style: italic;
    line-height: 18px;
}

.cg-work-category {
    margin-top: 4px;
    font-family: var(--cg-body);
    font-size: 12px;
    font-style: italic;
    color: #85898d;
}

.cg-work:hover .cg-work-title {
    text-decoration: underline;
}

.cg-artist-more {
    margin: 40px 0 0;
    text-align: center;
}

.cg-artist-more .infinite-loading-text {
    font-family: var(--cg-heading);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #85898d;
}

.cg-artist-more a,
.cg-artist-bio-toggle button {
    border: 1px solid var(--cg-text);
    background: transparent;
    padding: 8px 24px;
    font-family: var(--cg-heading);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cg-text);
    cursor: pointer;
}

.cg-artist-more a {
    display: inline-block;
    text-decoration: none;
}

.cg-artist-more a:hover,
.cg-artist-bio-toggle button:hover {
    background: var(--cg-blue);
}

.cg-artist-about {
    flex: 0 0 294px;
}

.cg-artist-about h1 {
    margin: 0 0 30px;
    font-family: var(--cg-heading);
    font-size: 38px;
    font-weight: 300;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--cg-text);
}

.cg-artist-picture {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.cg-artist-bio {
    font-family: var(--cg-body);
    font-size: 15px;
    line-height: 22px;
    color: var(--cg-text);
}

.cg-artist-bio p {
    margin: 0 0 12px;
}

/* the start of the biography, fading out, until "more about this artist" */
.cg-artist-bio.clipped {
    max-height: 198px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.cg-artist-bio-toggle {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #d5d8d8;
    text-align: center;
}

.cg-artist-bio-toggle button {
    border: 0;
}

.cg-artist-bio-toggle button::after {
    content: " \2304";
}

/* ARTWORK (sites/cloud-gallery/artwork): as the old site - the picture on the left and the details on the right
   (294px of 940), the artist and the title at the top of them, in its greys; our buttons in its colours */

.cg-item-messages {
    max-width: 940px;
    margin: 20px auto 0;
    padding: 0 10px;
}

.cg-item {
    max-width: 940px;
    margin: 30px auto 70px;
    padding: 0 10px;
    font-family: var(--cg-body);
    color: var(--cg-text);
}

.cg-item-body {
    display: flex;
    gap: 46px;
    align-items: flex-start;
}

.cg-item-picture {
    flex: 1;
    min-width: 0;
}

.cg-item-details {
    flex: 0 0 294px;
}

.cg-item-artist {
    margin: 0 0 6px;
    font-family: var(--cg-heading);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cg-item-artist a {
    color: rgba(68, 73, 79, 0.75);
    text-decoration: none;
}

.cg-item-artist a:hover {
    color: var(--cg-red);
}

.cg-item-title {
    margin: 0 0 20px;
    font-family: var(--cg-heading);
    font-size: 29px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--cg-text);
}

/* previous and next at the ends, under the picture */
.cg-item-nav {
    display: flex;
    align-items: center;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.cg-item-nav .cg-item-previous,
.cg-item-nav .cg-item-next {
    flex: 1;
    min-height: 33px;
}

.cg-item-nav .cg-item-previous {
    text-align: left;
}

.cg-item-nav .cg-item-next {
    text-align: right;
}

.cg-item-nav img {
    height: 33px;
    width: auto;
    opacity: 0.6;
}

.cg-item-nav a:hover img {
    opacity: 1;
}

.cg-item-picture {
    text-align: center;
}

.cg-item-picture #cg-item-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.cg-item-facts {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 24px;
}

.cg-item-ref {
    margin: 0 0 14px;
    font-size: 11px;
    color: #85898d;
}

.cg-item .artwork-price {
    margin: 0 0 14px;
    font-family: var(--cg-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--cg-text);
}

.cg-item-description {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 22px;
    color: #8f9295;
}

.cg-item-description p {
    margin: 0 0 10px;
}

.cg-item-description p:empty {
    display: none;
}

.cg-item-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.cg-item-buttons button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--cg-text);
    background: transparent;
    font-family: var(--cg-heading);
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: var(--cg-text);
    cursor: pointer;
}

/* buying: the old site's blue bar */
.cg-item-buttons .cg-item-basket {
    border-color: var(--cg-blue);
    background: var(--cg-blue);
}

.cg-item-buttons button:hover {
    background: var(--cg-blue);
    border-color: var(--cg-blue);
}

/* in the basket (partials/basket-button): the same size, greyed and not clickable */
.cg-item-buttons button:disabled,
.cg-item-buttons button:disabled:hover {
    border-color: #d5d8d8;
    background: #f0f1f1;
    color: #85898d;
    cursor: default;
}

.cg-item .ownart {
    margin: 0 0 20px;
    font-size: 13px;
}

/* the other pictures, two across */
.cg-item-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #d5d8d8;
    list-style: none;
}

.cg-item-thumbs a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border: 1px solid transparent;
}

.cg-item-thumbs a.active {
    border-color: #d5d8d8;
}

.cg-item-thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* NARROW SCREENS (after the old site's responsive.css) */

@media (max-width: 979px) {
    .cg-hd .cg-places {
        display: none;
    }

    /* Contact: the galleries, and the row under them, two across */
    .cg-contact-places,
    .cg-contact-more {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Artist: the artist first, then the works */
    .cg-artist {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .cg-artist-about {
        flex-basis: auto;
        width: 100%;
    }

    .cg-artist-picture {
        max-width: 294px;
    }

    /* Artwork: the picture, then the artist, title and details under it */
    .cg-item-body {
        flex-direction: column;
        gap: 0;
    }

    .cg-item-details {
        flex-basis: auto;
        width: 100%;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .breadcrumbs {
        padding: 0 20px;
    }

    /* Artist: two works across */
    .cg-artist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
    }

    .cg-work-image {
        height: 160px;
    }

    /* Contact: one gallery under another, and one field to a row */
    .cg-contact-places,
    .cg-contact-more {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    /* About Us: the pictures under the text */
    .about-split {
        flex-direction: column;
    }

    .about-pictures {
        flex-basis: auto;
        margin-top: 0;
    }

    /* an event's picture above its text */
    .event-item {
        flex-direction: column;
        gap: 20px;
    }

    .event-item .event-image {
        flex-basis: auto;
    }

    .event-item h2,
    .event-item .cg-event-title {
        font-size: 26px;
    }

    .event-item .event-dates {
        font-size: 20px;
    }

    .cg-container {
        padding: 0 20px;
    }

    .cg-hd {
        padding: 20px 0 12px;
    }

    .cg-logo img {
        width: 230px;
    }

    .cg-strapline {
        font-size: 21px;
    }

    .cg-hd .cg-social {
        display: none;
    }

    /* Out of the header and into the left of the menu bar (40px high), opposite MENU */
    .cg-hd .cg-container {
        position: static;
    }

    .cg-shop {
        top: 100%;
        left: 20px;
        right: auto;
        height: 40px;
    }

    .cg-menu {
        display: none;
    }

    .cg-menu-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cg-menu-toggle {
        margin: 0 0 0 auto;
    }

    .cg-menu-toggle a {
        display: block;
        padding: 10px 40px 10px 0;
        background: url(menu.png) no-repeat 100% 50%;
        font-size: 18.2px;
        line-height: 20px;
        text-align: right;
        color: #8f9295;
    }

    .cg-menu-mobile {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cg-menu-mobile li {
        padding: 8px 0;
        border-top: 1px solid var(--cg-text);
    }

    .cg-menu-mobile a, .cg-nav .cg-menu-mobile a.active {
        font-size: 17px;
        line-height: 26px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cg-text);
    }

    /* the page's own section, in the dropdown menu */
    .cg-nav .cg-menu-mobile a.active {
        font-weight: 700;
    }

    .cg-ft-columns, .cg-ft2-row {
        display: block;
    }

    .cg-ft-places {
        padding-right: 0;
        border-right: 0;
    }

    .cg-ft-signup {
        padding-left: 0;
        margin-top: 18px;
    }

    .cg-ft2 p {
        text-align: center;
    }
}
