/* Camphill MK Artists. Colours and type come from Avada global options. */
.cma, .cma-profile { --cma-navy: var(--awb-color5, #2b2762); --cma-lilac: var(--awb-color4, #7a73c4); --cma-line: #E6E3F7; --cma-soft: #F3F1FA; }

/* ---------- Card grid ---------- */
.cma-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cma-filter { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--cma-line); background: #fff; color: var(--cma-navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cma-filter:hover { border-color: var(--cma-navy); }
.cma-filter.is-active { background: var(--cma-navy); border-color: var(--cma-navy); color: #fff; }
.cma-grid { display: grid; grid-template-columns: repeat(var(--cma-cols, 3), minmax(0, 1fr)); gap: 25px; }
@media (max-width: 1024px) { .cma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cma-grid { grid-template-columns: 1fr; } }
.cma-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none !important; color: inherit; box-shadow: 0 1px 2px rgba(30,27,69,.04), 0 10px 24px -8px rgba(30,27,69,.10), 0 28px 56px -24px rgba(30,27,69,.18); transition: transform .4s cubic-bezier(.22,.8,.3,1), box-shadow .4s cubic-bezier(.22,.8,.3,1); }
.cma-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(30,27,69,.05), 0 18px 36px -10px rgba(30,27,69,.16), 0 40px 72px -28px rgba(30,27,69,.26); }
.cma-card[hidden] { display: none; }
.cma-card__img { display: block; aspect-ratio: 1 / 1; background: var(--cma-soft) center / cover no-repeat; }
.cma-card__img--empty { background: linear-gradient(135deg, #e2e0ea, #f1f0f8); }
.cma-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; flex: 1 1 auto; }
.cma-card__eyebrow { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--cma-lilac); font-weight: 600; }
.cma-card__title { font-family: var(--h4_typography-font-family, inherit); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--cma-navy); }
.cma-card__text { font-size: 15px; line-height: 1.5; }
.cma-card__link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--cma-navy); }
.cma-empty { padding: 18px 20px; border: 1px dashed var(--cma-line); border-radius: 14px; }

/* ---------- Profile ---------- */
.cma-profile { max-width: 1100px; margin: 0 auto; }
.cma-profile__head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; margin: 0 0 50px; }
@media (max-width: 768px) { .cma-profile__head { grid-template-columns: 1fr; gap: 24px; } }
.cma-profile__photo img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 24px -8px rgba(30,27,69,.18); }
.cma-profile__eyebrow { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--cma-lilac); font-weight: 600; margin: 0 0 12px; }
.cma-profile__eyebrow a { color: inherit; }
.cma-profile__lead { font-size: 20px; line-height: 1.55; margin: 0 0 20px; }
.cma-profile__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.cma-profile__facts strong { color: var(--cma-navy); }
.cma-profile__section { margin: 0 0 50px; }
.cma-profile__section h2 { font-size: var(--h2_typography-font-size, 34px); margin: 0 0 20px; }
.cma-artworks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
@media (max-width: 1024px) { .cma-artworks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cma-artworks { grid-template-columns: 1fr; } }
.cma-artwork { margin: 0; }
.cma-artwork__link { display: block; border-radius: 16px; overflow: hidden; background: var(--cma-soft); }
.cma-artwork__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.8,.3,1); }
.cma-artwork__link:hover .cma-artwork__img { transform: scale(1.04); }
.cma-artwork figcaption { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cma-artwork__title { font-weight: 700; color: var(--cma-navy); font-size: 16px; }
.cma-artwork__meta { opacity: .72; }
.cma-artwork__buy { font-weight: 700; color: var(--cma-navy); text-decoration: none; margin-top: 4px; }
.cma-list { padding-left: 1.2em; margin: 0; }
.cma-list li { margin-bottom: .5em; }
.cma-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 768px) { .cma-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cma-product { display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; color: inherit; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px -8px rgba(30,27,69,.12); padding-bottom: 14px; }
.cma-product img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cma-product__name { font-weight: 700; padding: 8px 14px 0; font-size: 15px; color: var(--cma-navy); }
.cma-product__price { padding: 0 14px; font-size: 14px; }
.cma-back { font-weight: 700; }
.cma-profile__more .cma-grid { margin-bottom: 20px; }

/* ---------- Shop product page ---------- */
.cma-made-by { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0 0 18px; }
.cma-made-by a { font-weight: 700; }
.cma-made-by__img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; order: -1; }
@media (prefers-reduced-motion: reduce) { .cma-card, .cma-artwork__img { transition: none; } .cma-card:hover, .cma-artwork__link:hover .cma-artwork__img { transform: none; } }

/* Avada's full-width featured image above the profile is replaced by the profile photo in the header. */
.single-artist .fusion-featured-image-wrapper, .single-artist .post-slideshow, .single-artist .fusion-flexslider { display: none !important; }
