/*
Theme Name:     kamileGallery Child
Theme URI:
Description:    Assembler child theme.
Author:         kamilegallery
Author URI:
Template:       assembler
Version:        0.2.7
*/

@font-face {
  font-family: "Neue Montreal";
  src:
    url("assets/fonts/neue-montreal/NeueMontreal-Light.woff2") format("woff2"),
    url("assets/fonts/neue-montreal/NeueMontreal-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src:
    url("assets/fonts/neue-montreal/NeueMontreal-Regular.woff2") format("woff2"),
    url("assets/fonts/neue-montreal/NeueMontreal-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src:
    url("assets/fonts/neue-montreal/NeueMontreal-Medium.woff2") format("woff2"),
    url("assets/fonts/neue-montreal/NeueMontreal-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.kg-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

.wp-site-blocks {
  transform: translateY(0);
}

:root {
  --kg-slide-duration: 0.7s;
  --kg-slide-ease: ease;
  /* Fallback when JS has not set --kg-lightbox-top-offset yet */
  --kg-lightbox-top-offset: clamp(64px, 10vh, 112px);
}

body.kg-transitioning {
  overflow: hidden;
}

.kg-current-page,
.kg-next-page {
  position: fixed;
  inset: 0;
  width: 100%;
  background: #fff;
  overflow-y: auto;
  transition: transform var(--kg-slide-duration) var(--kg-slide-ease);
  will-change: transform;
}

.kg-current-page {
  z-index: 1001;
  transform: translateY(0);
}

.kg-next-page {
  z-index: 1002;
  transform: translateY(100%);
}

.kg-current-page.kg-slide-up {
  transform: translateY(-100%);
}

.kg-next-page.kg-slide-up {
  transform: translateY(0);
}

textarea,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.jetpack-contact-form .jetpack-field .jetpack-field__input,
.jetpack-contact-form .jetpack-field .jetpack-field__textarea {
  border-width: 0;
}

#kg-footer-email {
  border: 0;
}

.kg-header-row {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
}

.kg-logo {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kg-logo a,
.kg-main-nav .wp-block-navigation-item__content {
  text-decoration: none;
  color: currentColor;
}

.kg-main-nav {
  flex: 0 1 auto;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  min-width: 0;
  margin-right: 35px;
}

.kg-header-right {
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

.kg-shop-actions {
  align-items: center;
  margin-left: 40px;
}

.kg-shop-actions .wc-block-customer-account__link,
.kg-shop-actions .wc-block-mini-cart__button {
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kg-shop-actions .kg-account-block .wc-block-customer-account__account-icon,
.kg-shop-actions .kg-account-block svg.icon,
.kg-shop-actions .wc-block-customer-account__account-icon,
.kg-shop-actions .wc-block-mini-cart__icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 940px) {
  .kg-header-row {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 0.5rem;
  }

  .kg-header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }

  .kg-logo {
    min-width: 0;
    flex-shrink: 1;
    font-size: clamp(0.75rem, 2.75vw, 1.125rem);
  }

  .kg-main-nav {
    flex: 0 0 auto;
  }

  .kg-shop-actions {
    margin-left: 12px;
    flex: 0 0 auto;
  }

  .kg-main-nav.wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

  .kg-main-nav.wp-block-navigation.is-responsive
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
}

.kg-site-footer {
  background-color: #fff;
}

.kg-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: transparent;
  color: #333;
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.kg-footer__inner {
  max-width: 100%;
  margin: 0;
  padding: 140px 0 80px;
  box-sizing: border-box;
}

.kg-footer__title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 80px;
  padding: 0;
  box-sizing: border-box;
  line-height: 0;
  text-align: left;
}

.kg-footer__title-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.kg-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 100px;
  row-gap: 40px;
  align-items: start;
  justify-items: start;
  width: 100%;
  box-sizing: border-box;
}

.kg-footer__col {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.kg-footer__col--newsletter {
  justify-self: stretch;
  text-align: left;
  max-width: none;
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
}

.kg-footer__section-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}

.kg-footer__section-title--after {
  margin-top: 14px;
}

.kg-footer__text {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
}

.kg-footer__link {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.kg-footer__link:hover {
  text-decoration: underline;
}

.kg-footer__disclaimer {
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.kg-footer__newsletter {
  width: 100%;
  text-align: left;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.kg-footer__newsletter-notice {
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

.kg-footer__newsletter-form {
  margin: 0;
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
}

.kg-footer__newsletter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.kg-footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  text-align: left;
  appearance: none;
}

.kg-footer__newsletter-input::placeholder {
  color: #bbb;
}

.kg-footer__newsletter-input:focus,
.kg-footer__newsletter-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.kg-footer__newsletter-submit {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #000;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kg-footer__newsletter-submit:hover {
  opacity: 0.72;
}

.kg-footer__newsletter-submit:focus,
.kg-footer__newsletter-submit:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.kg-contact-card {
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 16px;
}

.kg-contact-image img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  background: #f4f4f4;
}

@media (max-width: 1024px) {
  .kg-footer__inner {
    padding: 120px 0 72px;
  }

  .kg-footer__title {
    margin-bottom: 56px;
  }

  .kg-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 40px;
  }

  .kg-footer__col--newsletter {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 781px) {
  .kg-footer__inner {
    padding: 100px 0 64px;
  }

  .kg-footer__title {
    margin-bottom: 40px;
  }

  .kg-footer__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
}

.kg-home-main {
  margin-top: 0 !important;
}

.kg-home-exhibitions-slider {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 4rem);
  background: #fff;
}

.kg-home-exhibitions-slider__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
  min-height: min(72vh, 760px);
}

.kg-home-exhibitions-slider__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.kg-home-exhibitions-slider__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kg-home-exhibitions-slider__bullet-item {
  margin: 0 0 0.45rem;
  line-height: 1;
}

.kg-home-exhibitions-slider__bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #d3d3d3;
  padding: 0;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.kg-home-exhibitions-slider__bullet.is-active {
  background: #000;
}

.kg-home-exhibitions-slider__copy-wrap {
  position: relative;
  margin-top: auto;
  min-height: 240px;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.kg-home-exhibitions-slider__copy {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.kg-home-exhibitions-slider__copy.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.kg-home-exhibitions-slider__copy.is-entering {
  opacity: 1;
  animation: kg-info-cube-down-in 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kg-home-exhibitions-slider__copy.is-leaving {
  opacity: 1;
  animation: kg-info-cube-down-out 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kg-home-exhibitions-slider__title,
.kg-home-exhibitions-slider__subtitle {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
  font-weight: 700;
  color: #000;
}

.kg-home-exhibitions-slider__title {
  font-size: clamp(2.15rem, 4vw, 3rem);
}

.kg-home-exhibitions-slider__subtitle {
  margin-top: 0.06em;
  font-size: clamp(2.15rem, 4vw, 3rem);
}

.kg-home-exhibitions-slider__dates,
.kg-home-exhibitions-slider__location {
  margin: 0.4rem 0 0;
  font-size: clamp(1.15rem, 1.9vw, 1.8rem);
  line-height: 1.08;
  font-weight: 400;
  color: #000;
}

.kg-home-exhibitions-slider__dates {
  margin-top: 1.2rem;
}

.kg-home-exhibitions-slider__right {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 760px);
}

.kg-home-exhibitions-slider__image-link {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.kg-home-exhibitions-slider__image-link.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.kg-home-exhibitions-slider__image-link.is-entering {
  opacity: 1;
  animation: kg-image-slide-up-in 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kg-home-exhibitions-slider__image-link.is-leaving {
  opacity: 1;
  animation: kg-image-slide-up-out 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.kg-home-exhibitions-slider__img,
.kg-home-exhibitions-slider__img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.kg-home-exhibitions-slider__img {
  object-fit: cover;
}

@keyframes kg-image-slide-up-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes kg-image-slide-up-out {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes kg-info-cube-down-in {
  from {
    transform: translate3d(0, -34px, 0) rotateX(-88deg);
    transform-origin: top center;
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes kg-info-cube-down-out {
  from {
    transform: translate3d(0, 0, 0) rotateX(0deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 30px, 0) rotateX(88deg);
    transform-origin: bottom center;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .kg-home-exhibitions-slider__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .kg-home-exhibitions-slider__left {
    order: 2;
  }

  .kg-home-exhibitions-slider__copy-wrap {
    margin-top: 1.5rem;
    min-height: 0;
  }

  .kg-home-exhibitions-slider__right {
    order: 1;
    min-height: 52vh;
  }

  /* Mobile/tablet UX: avoid stacked absolute copies */
  .kg-home-exhibitions-slider__copy {
    position: relative;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }

  .kg-home-exhibitions-slider__copy.is-active,
  .kg-home-exhibitions-slider__copy.is-entering,
  .kg-home-exhibitions-slider__copy.is-leaving {
    display: block;
  }

  .kg-home-exhibitions-slider__copy.is-entering,
  .kg-home-exhibitions-slider__copy.is-leaving {
    will-change: transform;
  }

  .kg-home-exhibitions-slider__bullets {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .kg-home-exhibitions-slider__bullet-item {
    margin: 0;
  }

  .kg-home-exhibitions-slider__bullet {
    width: 9px;
    height: 9px;
    border: 0;
  }
}

@media (max-width: 640px) {
  .kg-home-exhibitions-slider {
    padding-inline: 1rem;
  }

  .kg-home-exhibitions-slider__right {
    min-height: 42vh;
  }

  .kg-home-exhibitions-slider__title,
  .kg-home-exhibitions-slider__subtitle {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .kg-home-exhibitions-slider__dates,
  .kg-home-exhibitions-slider__location {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .kg-home-exhibitions-slider__dates {
    margin-top: 0.9rem;
  }

  .kg-home-exhibitions-slider__left {
    padding-top: 0.25rem;
  }
}

/* Single product card layout */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 80%) minmax(260px, 20%);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: start;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  float: none !important;
  width: 100% !important;
}

.single-product div.product .woocommerce-product-gallery {
  margin: 0;
}

.single-product div.product .woocommerce-product-gallery__wrapper img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
}

.single-product div.product .summary {
  font-size: 0.95rem;
  line-height: 1.3;
}

.single-product div.product .summary .product_title {
  font-size: 1.65rem;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.single-product div.product .summary .price {
  margin: 0.3rem 0 0.9rem;
  font-size: 1.1rem;
}

.single-product div.product .summary form.cart {
  margin: 0.7rem 0 0.75rem;
}

.single-product div.product .summary form.cart button.single_add_to_cart_button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #000;
  background: #fff;
  color: #111;
  text-transform: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
  margin: 0.7rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.kg-product-enquire {
  border-top: 1px solid #111;
  padding-top: 0.7rem;
}

.kg-product-enquire__toggle {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

/* Title left; +/- pinned to the right (overrides theme button text-align:center). */
.kg-product-enquire__toggle > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.kg-product-enquire__icon {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.kg-product-enquire__panel {
  margin-top: 0.7rem;
}

.kg-product-enquire__field {
  margin: 0 0 0.85rem;
}

.kg-product-enquire__field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.kg-product-enquire__field input,
.kg-product-enquire__field textarea {
  width: 100%;
  border: 1px solid #6f6f6f !important;
  min-height: 44px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.kg-product-enquire__field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Match .kg-product-single__add (Add to Cart) */
.kg-product-enquire__submit {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 0.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* White + black-border buttons: invert on hover / keyboard focus */
.single-product div.product .summary form.cart button.single_add_to_cart_button:hover,
.single-product div.product .summary form.cart button.single_add_to_cart_button:focus-visible,
.kg-product-enquire__submit:hover,
.kg-product-enquire__submit:focus-visible,
.kg-product-single__add:hover,
.kg-product-single__add:focus-visible {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

.single-product div.product .summary form.cart button.single_add_to_cart_button:hover .woocommerce-Price-amount,
.single-product div.product .summary form.cart button.single_add_to_cart_button:focus-visible .woocommerce-Price-amount,
.kg-product-single__add:hover .woocommerce-Price-amount,
.kg-product-single__add:focus-visible .woocommerce-Price-amount {
  color: #fff !important;
}

/* Gutenberg outline buttons (light background + border) */
.wp-block-button.is-style-outline > .wp-block-button__link {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

@media (max-width: 980px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }
}

/* Woo block template product layout (80/20) */
.single-product main .wp-block-columns.alignwide {
  max-width: var(--wp--style--global--wide-size, 1400px);
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: 79% 21% !important;
  align-items: flex-start;
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

/* Force override inline flex-basis from Woo product block columns */
.single-product main .wp-block-columns.alignwide.is-layout-flex > .wp-block-column:first-child,
.single-product main .wp-block-columns.alignwide > .wp-block-column[style*="flex-basis:512px"] {
  flex: 0 0 79% !important;
  width: 79% !important;
  max-width: 79% !important;
}

.single-product main .wp-block-columns.alignwide.is-layout-flex > .wp-block-column:last-child {
  flex: 0 0 21% !important;
  width: 21% !important;
  max-width: 21% !important;
}

.single-product main .wp-block-columns.alignwide > .wp-block-column:first-child {
  flex: none !important;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  flex-basis: auto !important;
}

.single-product main .wp-block-columns.alignwide > .wp-block-column:last-child {
  flex: none !important;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  flex-basis: auto !important;
  justify-self: end;
  max-width: 315px;
  font-size: 13px;
  line-height: 1.25;
  color: #171717;
}

.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
  margin: 0;
}

.single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__wrapper img {
  width: 100%;
  min-height: 640px;
  max-height: 78vh;
  object-fit: cover;
}

.single-product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
  display: none !important;
}

.single-product .wp-block-woocommerce-product-image-gallery .flex-control-nav.flex-control-paging {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0 !important;
}

.single-product .wp-block-woocommerce-product-image-gallery .flex-control-paging li a {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d3d3d3;
  box-shadow: none;
}

.single-product .wp-block-woocommerce-product-image-gallery .flex-control-paging li a.flex-active {
  background: #000;
}

.single-product .wp-block-columns.alignwide > .wp-block-column:last-child {
  font-size: 0.86rem;
  line-height: 1.28;
}

.single-product .wp-block-columns.alignwide .wp-block-post-title {
  margin: 0 0 0.15rem;
  font-size: 38px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.single-product .wp-block-columns.alignwide .wc-block-components-product-price {
  font-size: 40px;
  line-height: 1;
  margin: 0.45rem 0 0.95rem;
  font-weight: 500;
}

.single-product .wp-block-columns.alignwide .wp-block-woocommerce-product-summary {
  font-size: 13px;
  line-height: 1.25;
}

/* Keep Additional information on right column width */
.single-product .wp-block-woocommerce-product-details.alignwide {
  max-width: var(--wp--style--global--wide-size, 1400px);
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-tabs {
  width: 21%;
  max-width: 315px;
  margin-left: auto;
  margin-top: -6px;
  font-size: 13px;
  line-height: 1.25;
}

.single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-tabs ul.tabs {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
}

.single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-tabs ul.tabs li a {
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
}

.single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-Tabs-panel {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Remove related products section */
.single-product .related.products,
.single-product .wp-block-woocommerce-related-products {
  display: none !important;
}

@media (max-width: 980px) {
  .single-product main .wp-block-columns.alignwide {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .single-product main .wp-block-columns.alignwide > .wp-block-column:first-child,
  .single-product main .wp-block-columns.alignwide > .wp-block-column:last-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100%;
  }

  .single-product .wp-block-woocommerce-product-details.alignwide .woocommerce-tabs {
    width: 100%;
  }
}

/* Woo shop / archive: on hover show full image (object-fit contain), default grid may use cover */
ul.products li.product .woocommerce-LoopProduct-link,
.wc-block-grid__product .wc-block-grid__product-image {
  background-color: #f0f0f0;
}

ul.products li.product .woocommerce-LoopProduct-link img,
.wc-block-grid__product .wc-block-grid__product-image img {
  transition: object-fit 0.2s ease, transform 0.28s ease;
}

ul.products li.product:hover .woocommerce-LoopProduct-link img,
.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wc-block-grid__product:hover a.wc-block-components-product-image img,
.wc-block-grid__product:hover .wc-block-components-product-image img {
  object-fit: contain !important;
}

/* Custom single product template — fluid two-column until phone */
main.kg-single-product-main {
  position: relative;
  z-index: 0;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.kg-product-single {
  --kg-product-sidebar: clamp(260px, 26vw, 320px);
  --kg-product-gap: clamp(1rem, 2.2vw, 2rem);
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 0;
}

.kg-product-single__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--kg-product-sidebar);
  gap: var(--kg-product-gap);
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.kg-product-single__left {
  min-width: 0;
  position: relative;
  z-index: 0;
}

.kg-product-single__slides {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
}

/* Stack slides in one grid cell so row height follows image (no clipping from a short box). */
.kg-product-single__slide {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.kg-product-single__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.kg-product-single__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(92vh, 1200px);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.kg-product-single__img-placeholder {
  display: block;
  width: 100%;
  min-height: clamp(320px, 45vh, 520px);
  aspect-ratio: 4 / 3;
}

.kg-product-single__dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.kg-product-single__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: #d3d3d3;
  cursor: pointer;
}

.kg-product-single__dot.is-active {
  background: #000;
}

.kg-product-single__right {
  width: 100%;
  max-width: var(--kg-product-sidebar);
  min-width: 0;
  position: sticky;
  top: 5.25rem;
  font-size: 13px;
  line-height: 1.22;
  color: #111;
  font-weight: 400;
  font-style: normal;
}

.kg-product-single__artist,
.kg-product-single__title,
.kg-product-single__meta,
.kg-product-single__price {
  margin: 0;
}

.kg-product-single__artist,
.kg-product-single__meta {
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
}

.kg-product-single__artist {
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.kg-product-single__title {
  margin-top: 0.12rem;
  text-align: left;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
}

.kg-product-single__meta--spaced {
  margin-top: 0.72rem;
}

.kg-product-single__price {
  margin-top: 0.74rem;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
}

.kg-product-single__price .woocommerce-Price-amount,
.kg-product-single__price ins {
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
}

.kg-product-single__icons {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.kg-product-single__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  box-sizing: border-box;
}

.kg-product-single__icon-btn svg {
  display: block;
}

/* Wishlist heart: outline by default; filled when header .has-items or button .is-in-wishlist */
.kg-wishlist-heart {
  display: block;
  color: #000;
}

.kg-wishlist-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linejoin: round;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.kg-header-wishlist.has-items .kg-wishlist-heart path,
.kg-product-single__icon-btn--wishlist.is-in-wishlist .kg-wishlist-heart path {
  fill: currentColor;
  stroke: none;
}

/* Temporarily hide enlarge button; main image click still opens lightbox. */
.kg-product-single__icon-btn--lightbox {
  display: none !important;
}

.kg-product-single__wishlist-slot .yith-wcwl-add-button,
.kg-product-single__wishlist-slot .add_to_wishlist {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
}

.kg-product-single__wishlist-slot a.add_to_wishlist {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.kg-product-single__left--zoomable .kg-product-single__slides {
  cursor: zoom-in;
}

.kg-product-single__left--zoomable .kg-product-single__img {
  cursor: zoom-in;
}

.kg-product-single__line {
  margin: 0.62rem 0;
  border-top: 1px solid #777;
}

/* One separator: __line already borders this block; drop enquire top border to avoid double rule. */
.kg-product-single__right > .kg-product-single__line + .kg-product-enquire {
  border-top: 0;
  padding-top: 0.35rem;
}

.kg-product-single__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  font-style: normal;
}

.kg-product-single__add {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 0.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.kg-product-single__description {
  margin-top: 0.84rem;
  font-size: 13px;
  line-height: 1.24;
  font-weight: 400;
  font-style: normal;
}

/* Author band: 50/50 — name + “All Artwork” (left, space-between), bio (right) */
.kg-product-single__author-band {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  box-sizing: border-box;
  background: #fff;
  color: #000;
}

.kg-product-single__author-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100%;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.kg-product-single__author-heading {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.12;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  color: #000;
}

.kg-product-single__author-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.62rem 1.35rem;
  min-height: 2.5rem;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.kg-product-single__author-all:hover,
.kg-product-single__author-all:focus-visible {
  background: #000;
  color: #fff;
}

.kg-product-single__author-bio {
  margin: 0;
  padding: 0;
  max-width: 42em;
  font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
  line-height: 1.55;
  font-weight: 400;
  color: #000;
  align-self: start;
}

.kg-product-single__author-bio--empty {
  min-height: 0;
}

.kg-product-single__author-bio p {
  margin: 0 0 1.05em;
}

.kg-product-single__author-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .kg-product-single__author-band {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    column-gap: 0;
    grid-template-columns: unset;
    margin-top: clamp(1.25rem, 4vw, 2rem);
    padding-top: clamp(1.25rem, 4vw, 2rem);
  }

  .kg-product-single__author-lead {
    display: contents;
  }

  .kg-product-single__author-heading {
    order: 1;
    max-width: none;
  }

  .kg-product-single__author-bio {
    order: 2;
    max-width: none;
  }

  .kg-product-single__author-all {
    order: 3;
  }
}

/* Related works — same author, 3 per row */
.kg-related-works {
  width: 100%;
  min-width: 0;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-top: clamp(2rem, 5vw, 3.75rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
  background: #fff;
  color: #111;
}

.kg-related-works__heading {
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
  font-size: clamp(1rem, 1.75vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}

.kg-related-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5.4rem, 12.8vw, 10rem) clamp(4.4rem, 11.2vw, 8.4rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.kg-related-works__card {
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.kg-related-works__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.kg-related-works__media {
  margin: 0 0 0.45rem;
  display: block;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.kg-related-works__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: top center;
}

.kg-related-works__img-placeholder {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: clamp(160px, 24vw, 240px);
  box-sizing: border-box;
}

.kg-related-works__lower {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 44px;
  box-sizing: border-box;
}

.kg-related-works__text-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.kg-related-works__text-link:hover .kg-related-works__work-title,
.kg-related-works__text-link:focus-visible .kg-related-works__work-title {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.kg-related-works__foot {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
  color: #111;
}

.kg-related-works__artist,
.kg-related-works__work-title,
.kg-related-works__dims,
.kg-related-works__medium,
.kg-related-works__price {
  margin: 0;
}

.kg-related-works__work-title {
  margin-top: 0.06rem;
  font-weight: 400;
  text-transform: none;
}

.kg-related-works__dims {
  margin-top: 0.06rem;
}

.kg-related-works__medium {
  margin-top: 0.14rem;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
  color: #111;
}

.kg-related-works__price {
  margin-top: 0.32rem;
  font-size: 13px;
  line-height: 1.22;
  font-weight: 400;
  font-style: normal;
}

.kg-related-works__price .woocommerce-Price-amount,
.kg-related-works__price ins {
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
}

.kg-related-works__wishlist {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.kg-related-works__wishlist .kg-wishlist-heart {
  display: block;
}

.kg-related-works__wishlist-slot {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.kg-related-works__wishlist-slot .yith-wcwl-add-button,
.kg-related-works__wishlist-slot .add_to_wishlist {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
}

.kg-related-works__wishlist-slot a.add_to_wishlist {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.kg-related-works__wishlist.is-in-wishlist .kg-wishlist-heart path {
  fill: currentColor;
  stroke: none;
}

/* ---------- Artworks catalog (/artworks) ---------- */
body.kg-artworks-filter-open {
  overflow: hidden;
}

.kg-artworks-main {
  margin-top: 0 !important;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

main h1 {
  text-align: center;
}

.kg-artworks {
  width: 100%;
  min-width: 0;
}

.kg-artworks__header {
  position: relative;
  display: block;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  min-height: clamp(2.75rem, 8vw, 4rem);
}

.kg-artworks__title {
  margin: 0 auto;
  padding: 0 5.5rem;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
}

.kg-artworks__filter-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.kg-artworks__filter-toggle:hover,
.kg-artworks__filter-toggle:focus-visible {
  opacity: 0.75;
}

.kg-artworks__grid-wrap {
  width: 100%;
  min-width: 0;
}

.kg-artworks__grid.kg-related-works__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(2.5rem, 6vw, 5rem);
  column-gap: clamp(13rem, 32.5vw, 22.75rem);
}

.kg-artworks__grid.kg-related-works__grid > .kg-related-works__card:nth-child(even) {
  margin-top: clamp(2.25rem, 5.5vw, 4.5rem);
}

.kg-artworks--view-list .kg-artworks__grid.kg-related-works__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.kg-artworks--view-list .kg-artworks__grid.kg-related-works__grid > .kg-related-works__card:nth-child(even) {
  margin-top: 0;
}

.kg-artworks__empty {
  margin: 2rem 0;
  font-size: 15px;
  color: #555;
  grid-column: 1 / -1;
}

.kg-artworks-filter__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.kg-artworks-filter__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.kg-artworks-filter {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  max-width: 100%;
  z-index: 1002;
  box-sizing: border-box;
  background: #ececec;
  box-shadow: -10px 0 48px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.kg-artworks-filter.is-open {
  transform: translateX(0);
}

.kg-artworks-filter__top {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: clamp(14px, 3vw, 22px) clamp(16px, 3vw, 24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kg-artworks-filter__close {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
}

.kg-artworks-filter__close:hover,
.kg-artworks-filter__close:focus-visible {
  opacity: 0.6;
}

.kg-artworks-filter__form {
  flex: 1 1 auto;
  padding: clamp(12px, 2.5vw, 20px) clamp(16px, 3vw, 24px) clamp(100px, 14vh, 140px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kg-artworks-filter__fieldset {
  margin: 0;
  padding: clamp(14px, 2.5vw, 20px) 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.kg-artworks-filter__fieldset::after {
  content: "";
  display: table;
  clear: both;
}

.kg-artworks-filter__fieldset--scroll .kg-artworks-filter__options {
  max-height: min(40vh, 320px);
  overflow-y: auto;
}

.kg-artworks-filter__legend {
  float: left;
  width: 32%;
  max-width: 7.5rem;
  margin: 0;
  padding: 0 0.75rem 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.35;
}

.kg-artworks-filter__options {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.kg-artworks-filter__options--price .kg-artworks-filter__radio {
  display: block;
  margin-bottom: 0.35rem;
}

.kg-artworks-filter__options--price .kg-artworks-filter__radio:last-child {
  margin-bottom: 0;
}

.kg-artworks-filter__radio,
.kg-artworks-filter__check {
  display: block;
  margin-bottom: 0.35rem;
  cursor: pointer;
  font-weight: 400;
  color: #888;
}

.kg-artworks-filter__radio:last-child,
.kg-artworks-filter__check:last-child {
  margin-bottom: 0;
}

.kg-artworks-filter__radio input:checked + span,
.kg-artworks-filter__check input:checked + span {
  color: #000;
  font-weight: 600;
}

.kg-artworks-filter__radio input,
.kg-artworks-filter__check input {
  margin-right: 0.35rem;
}

.kg-artworks-filter__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 2px;
}

.kg-artworks-filter__swatch {
  position: relative;
  cursor: pointer;
  line-height: 0;
}

.kg-artworks-filter__swatch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kg-artworks-filter__swatch-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kg-artworks-filter__swatch-input:focus-visible + .kg-artworks-filter__swatch-dot {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.kg-artworks-filter__swatch-input:checked + .kg-artworks-filter__swatch-dot {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
  transform: scale(1.05);
}

.kg-artworks-filter__footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: auto;
  padding: clamp(14px, 2.5vw, 20px) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: linear-gradient(to top, #ececec 70%, rgba(236, 236, 236, 0));
}

.kg-artworks-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #111;
}

.kg-artworks-filter__btn--ghost {
  background: #fff;
  color: #111;
}

.kg-artworks-filter__btn--solid {
  background: #111;
  color: #fff;
}

@media (max-width: 720px) {
  .kg-artworks__header {
    min-height: 0;
    padding-bottom: 0.25rem;
  }

  .kg-artworks__title {
    padding: 0 0 3.25rem;
  }

  .kg-artworks__filter-toggle {
    position: static;
    transform: none;
    display: block;
    margin: 0.35rem auto 0;
  }

  .kg-artworks__grid.kg-related-works__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kg-artworks__grid.kg-related-works__grid > .kg-related-works__card:nth-child(even) {
    margin-top: 0;
  }
}

/* ---------- Artists index + author pages (/artists) ---------- */
.kg-artists-main {
  width: 100%;
  box-sizing: border-box;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.kg-artists-dir__title {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}

.kg-artists-dir__layout {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
}

.kg-artists-dir__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: min(100%, 28rem);
}

.kg-artists-dir__item {
  margin: 0 0 0.2em;
}

.kg-artists-dir__name {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

.kg-artists-dir__name:hover,
.kg-artists-dir__name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.kg-artists-dir__preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-top))
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right))
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-bottom))
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  pointer-events: none;
  box-sizing: border-box;
}

.kg-artists-dir__preview-inner {
  position: relative;
  min-height: 0;
  max-width: min(36rem, 45vw, calc(100vw - 2rem));
  max-height: min(72vh, calc(100dvh - 6rem));
  overflow-y: auto;
  overflow-x: hidden;
  text-align: right;
  overscroll-behavior: contain;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

.kg-artists-dir__placeholder {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #777;
  text-align: right;
}

.kg-artists-dir__panel {
  font-size: 15px;
  line-height: 1.5;
  color: #111;
  text-align: right;
}

.kg-artists-dir__panel-body {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.kg-artists-dir__panel-body p {
  margin: 0 0 0.75em;
}

.kg-artists-dir__panel-body p:last-child {
  margin-bottom: 0;
}

.kg-artists-dir__empty {
  margin: 0;
  font-size: 13px;
}

/* Author single */
.kg-artist-single__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  width: 100%;
  min-width: 0;
}

.kg-artist-single__hero-media {
  min-width: 0;
}

.kg-artist-single__photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.kg-artist-single__hero-text {
  min-width: 0;
}

.kg-artist-single__name {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: #000;
}

.kg-artist-single__bio {
  font-size: 13px;
  line-height: 1.45;
  color: #111;
}

.kg-artist-single__bio p {
  margin: 0 0 0.75em;
}

.kg-artist-single__bio p:last-child {
  margin-bottom: 0;
}

.kg-artist-single__cv {
  margin: 1.25rem 0 0;
}

.kg-artist-single__cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border: 1px solid #000;
  background: transparent;
  color: #111;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.kg-artist-single__cv-btn:hover,
.kg-artist-single__cv-btn:focus-visible {
  background: #000;
  color: #fff;
}

/* Exhibitions on author page */
.kg-artist-ex {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.kg-artist-ex__title {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  font-size: clamp(1.05rem, 1.85vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}

.kg-artist-ex__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.7rem, 6.4vw, 5rem) clamp(2.2rem, 5.6vw, 4.2rem);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.kg-artist-ex__card:nth-child(even) {
  margin-top: clamp(2.5rem, 7vw, 5.5rem);
}

.kg-artist-ex__card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.kg-artist-ex__media {
  margin: 0 0 0.55rem;
  overflow: hidden;
  width: 100%;
}

.kg-artist-ex__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.kg-artist-ex__img-placeholder {
  display: block;
  width: 100%;
  min-height: clamp(160px, 22vw, 240px);
  aspect-ratio: 4 / 3;
}

.kg-artist-ex__text {
  font-size: 13px;
  line-height: 1.22;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.kg-artist-ex__artist {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kg-artist-ex__work {
  margin: 0.15rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kg-artist-ex__dates,
.kg-artist-ex__loc {
  margin: 0.2rem 0 0;
  font-weight: 400;
  text-transform: none;
}

/* Artworks grid: 2 per row, tighter gap than 3-up related */
.kg-artist-works .kg-related-works__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 3.2vw, 2.5rem) clamp(1.1rem, 2.8vw, 2.1rem);
}

@media (max-width: 900px) {
  .kg-artists-dir__list {
    max-width: 100%;
  }

  .kg-artists-dir__name {
    font-size: clamp(1.5rem, 6vw, 40px);
  }

  .kg-artist-single__hero {
    grid-template-columns: 1fr;
  }

  .kg-artist-ex__grid {
    grid-template-columns: 1fr;
  }

  .kg-artist-ex__card:nth-child(even) {
    margin-top: 0;
  }

  .kg-artist-works .kg-related-works__grid {
    grid-template-columns: 1fr;
  }

  .kg-related-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kg-related-works__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kg-product-single .kg-product-enquire__toggle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  font-style: normal;
  text-align: left;
  justify-content: flex-start;
}

.kg-product-single .kg-product-enquire__icon {
  font-size: 28px;
  font-weight: 300;
}

.kg-product-single .kg-product-enquire__field label,
.kg-product-single .kg-product-enquire__field input,
.kg-product-single .kg-product-enquire__field textarea {
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
}

.kg-product-accordion__body {
  margin: 0;
  padding: 0.35rem 0 0.15rem;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 400;
}

.kg-product-single__size-plain {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 400;
}

.kg-product-frame-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.35rem 0 0.15rem;
}

.kg-product-frame-options__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #bbb;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.kg-product-size-options {
  margin: 0;
  padding: 0.35rem 0 0.15rem 1.1rem;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.kg-product-size-options__item {
  margin: 0.15rem 0;
}

/* Header wishlist (prepended before mini-cart) */
.kg-header-wishlist-slot {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.kg-header-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.kg-header-wishlist:hover {
  color: #111;
  text-decoration: none;
  opacity: 0.75;
}

.kg-header-wishlist__quantity-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kg-header-wishlist__heart {
  flex-shrink: 0;
}

/* Match Woo mini-cart badge (see wc-block-mini-cart__badge) */
.kg-header-wishlist .kg-header-wishlist__badge.wc-block-mini-cart__badge {
  position: absolute;
  align-items: center;
  border-radius: 1em;
  box-sizing: border-box;
  display: flex;
  font-size: 0.875em;
  font-weight: 600;
  height: 1.4285714286em;
  justify-content: center;
  left: 100%;
  margin-left: -44%;
  min-width: 1.4285714286em;
  padding: 0 0.25em;
  top: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 1;
  background-color: rgb(30, 30, 30);
  color: rgb(255, 255, 255);
}

.kg-header-wishlist-slot--yith .yith-wcwl-items-count,
.kg-header-wishlist-slot--yith a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

/* Wishlist page ([kg_wishlist]) — gallery-style cards */
.kg-wishlist-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0 clamp(2rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

.kg-wishlist-page__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.kg-wishlist-page__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.2;
}

.kg-wishlist-page__intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: #444;
}

.kg-wishlist-page__empty {
  margin: 0 0 1.5rem;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  text-align: center;
  font-size: 15px;
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.kg-wishlist-page__empty[hidden] {
  display: none;
}

.kg-wishlist-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .kg-wishlist-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kg-wishlist-page__grid {
    grid-template-columns: 1fr;
  }
}

.kg-wishlist-page__card {
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  box-sizing: border-box;
}

.kg-wishlist-page__figure {
  margin: 0 0 0.5rem;
  padding: 0;
}

.kg-wishlist-page__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: transparent;
}

/* Loading / missing thumb: keep a square tile; real images use natural aspect (no letterbox gap). */
.kg-wishlist-page__media-link.kg-wishlist-page__media-link--placeholder {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
}

.kg-wishlist-page__card-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.kg-wishlist-page__media-link--placeholder .kg-wishlist-page__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kg-wishlist-page__card-img--placeholder {
  opacity: 0.35;
}

.kg-wishlist-page__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.kg-wishlist-page__card-title {
  font-size: 13px;
  line-height: 1.28;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.kg-wishlist-page__card-title:hover,
.kg-wishlist-page__card-title:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.kg-wishlist-page__card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.kg-wishlist-page__card-view {
  font-size: 12px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kg-wishlist-page__card-view:hover {
  opacity: 0.7;
}

.kg-wishlist-page__card-remove {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
}

.kg-wishlist-page__card-remove:hover {
  color: #111;
}

/* Full-screen product gallery */
body.kg-product-lightbox-open {
  overflow: hidden;
}

.kg-product-lightbox[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.kg-product-lightbox:not([hidden]) {
  position: fixed;
  top: var(--kg-lightbox-top-offset, clamp(64px, 10vh, 112px));
  left: 0;
  right: 0;
  z-index: 999;
  box-sizing: border-box;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: calc(100vh - var(--kg-lightbox-top-offset, clamp(64px, 10vh, 112px)));
  height: calc(100dvh - var(--kg-lightbox-top-offset, clamp(64px, 10vh, 112px)));
}

.kg-product-lightbox__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

.kg-product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.kg-product-lightbox__exit {
  position: absolute;
  top: clamp(10px, 2vh, 22px);
  right: clamp(12px, 3vw, 36px);
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: none;
  pointer-events: auto;
}

.kg-product-lightbox__exit:hover {
  opacity: 0.65;
}

.kg-product-lightbox__stage {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Leave room for Exit; keep sides tight — image uses the rest */
  padding: clamp(36px, 4.5vh, 52px) clamp(6px, 1.5vw, 14px) 0;
  box-sizing: border-box;
  pointer-events: auto;
}

.kg-product-lightbox__stage-scroll {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  flex: 1 1 0%;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 2px 2px;
  box-sizing: border-box;
}

.kg-product-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  /* Fill stage area (above compact bar), like gallery viewers */
  max-height: 100%;
  margin: 0 auto;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
}

.kg-product-lightbox__bar {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(8px, 2vw, 18px);
  row-gap: 2px;
  padding: 6px clamp(10px, 2.5vw, 24px) 7px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
  color: #111;
  pointer-events: auto;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.kg-product-lightbox__counter {
  justify-self: start;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.kg-product-lightbox__counter--hidden,
.kg-product-lightbox__nav--hidden {
  visibility: hidden;
  pointer-events: none;
}

.kg-product-lightbox__meta {
  justify-self: stretch;
  align-self: center;
  text-align: left;
  max-width: none;
  min-width: 0;
}

.kg-product-lightbox__heading {
  margin: 0 0 0.1rem;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.kg-product-lightbox__artist {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.35em;
}

.kg-product-lightbox__work-title {
  font-weight: 400;
}

.kg-product-lightbox__specs {
  margin: 0 0 0.08rem;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}

.kg-product-lightbox__price {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.kg-product-lightbox__price .woocommerce-Price-amount,
.kg-product-lightbox__price ins {
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
}

.kg-product-lightbox__nav {
  justify-self: end;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.kg-product-lightbox__arrow {
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.kg-product-lightbox__arrow:hover {
  opacity: 0.55;
}

@media (max-width: 600px) {
  .kg-product-lightbox__bar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: clamp(8px, 2.5vw, 14px);
    row-gap: 4px;
    padding: 5px 10px 6px;
  }

  .kg-product-lightbox__counter {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .kg-product-lightbox__nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .kg-product-lightbox__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

.kg-product-frame-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0.35rem 0 0.15rem;
}

.kg-product-frame-swatches__item {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid #bbb;
  flex: 0 0 auto;
}

.kg-product-frame-swatches__item--none {
  position: relative;
  background: #fff;
}

.kg-product-frame-swatches__item--none::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 1px solid #111;
  transform: rotate(-42deg);
  transform-origin: center;
}

.kg-product-frame-swatches__item--none.is-selected {
  border-color: #111;
  box-shadow: 0 0 0 1px #111 inset;
}

.kg-product-frame-swatches__item--dark {
  background: #111;
}

.kg-product-frame-swatches__item--tan {
  background: #d9c9b4;
}

.kg-product-frame-swatches__item--wood {
  background: #8b5a3c;
}

/* Tablet / small laptop: keep sidebar; slightly narrower rail */
@media (max-width: 1100px) {
  .kg-product-single {
    --kg-product-sidebar: clamp(248px, 30vw, 300px);
  }
}

@media (max-width: 900px) {
  .kg-product-single {
    --kg-product-sidebar: clamp(240px, 34vw, 288px);
    --kg-product-gap: clamp(0.85rem, 2vw, 1.35rem);
  }
}

/* Phone: stack — image first, details full width below */
@media (max-width: 640px) {
  .kg-product-single {
    padding-inline: clamp(0.85rem, 4vw, 1.25rem);
  }

  .kg-product-single__main {
    grid-template-columns: 1fr;
  }

  .kg-product-single__right {
    max-width: 100%;
    position: static;
    padding-bottom: 2rem;
  }

  .kg-product-single__slides {
    min-height: 0;
  }

  .kg-product-single__img {
    max-height: min(78vh, 900px);
  }

  .kg-product-single__img-placeholder {
    min-height: clamp(220px, 52vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-product-single__slide {
    transition: none;
  }
}

/* --- Appointments / About static pages --- */
.kg-appointments-page {
  max-width: 1120px;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  color: #111;
}

/* About page: stay inside post-content / is-layout-constrained (no alignfull breakout). */
.kg-about-page {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  padding-block: clamp(2rem, 5vw, 4rem);
  padding-inline: 0;
  color: #111;
}

.kg-appointments-page__heading,
.kg-about-page__heading,
.kg-about-current-ex__heading {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kg-appointments-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.kg-appointments-page__p {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  max-width: 38rem;
}

.kg-appointments-page__cta-wrap {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.kg-appointments-page__button {
  display: inline-block;
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0.95rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kg-appointments-page__button:hover,
.kg-appointments-page__button:focus-visible {
  background: #111;
  color: #fff;
  border-color: #111;
}

.kg-appointments-page__figure {
  margin: 0;
}

.kg-appointments-page__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.kg-about-page__intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.kg-about-page__figure {
  margin: 0;
}

.kg-about-page__hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.kg-about-accordion {
  border-top: 1px solid #ddd;
}

.kg-about-accordion__item {
  border-bottom: 1px solid #ddd;
}

.kg-about-accordion__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.kg-about-accordion__toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.kg-about-accordion__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  width: 1.25rem;
  text-align: center;
}

.kg-about-accordion__panel {
  overflow: hidden;
}

.kg-about-accordion__panel[hidden] {
  display: none;
}

.kg-about-accordion__panel:not([hidden]) {
  animation: kg-about-accordion-open 0.38s ease forwards;
}

.kg-about-accordion__panel-inner {
  padding: 0 0 1.15rem;
  max-width: 36rem;
}

.kg-about-accordion__panel-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

/* About page built in block editor: core/details accordion look */
.kg-about-page .wp-block-details {
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.kg-about-page .wp-block-column > .wp-block-details:first-child {
  border-top: 1px solid #ddd;
}

.kg-about-page .wp-block-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.kg-about-page .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.kg-about-page .wp-block-details summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 400;
  width: 1.25rem;
  text-align: center;
  line-height: 1;
}

.kg-about-page .wp-block-details[open] summary::after {
  content: "-";
}

.kg-about-page .wp-block-details summary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.kg-about-page .wp-block-details > .wp-block-paragraph {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

@keyframes kg-about-accordion-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kg-about-current-ex__heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.kg-about-current-ex__empty {
  margin: 0;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

.kg-about-current-ex__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.kg-about-current-ex__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kg-about-current-ex__media-link {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 1 / 1;
}

.kg-about-current-ex__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.kg-about-current-ex__media-link:hover .kg-about-current-ex__thumb-img,
.kg-about-current-ex__media-link:focus-visible .kg-about-current-ex__thumb-img {
  transform: scale(1.03);
}

.kg-about-current-ex__thumb-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: linear-gradient(135deg, #e8e8e8, #f8f8f8);
}

.kg-about-current-ex__meta {
  font-size: 0.9rem;
  line-height: 1.4;
}

.kg-about-current-ex__artist,
.kg-about-current-ex__title {
  font-weight: 700;
}

.kg-about-current-ex__dates,
.kg-about-current-ex__location {
  font-weight: 400;
  color: #333;
}

@media (max-width: 768px) {
  .kg-appointments-page__layout {
    grid-template-columns: 1fr;
  }

  .kg-appointments-page__col--media {
    order: -1;
  }

  .kg-about-page__intro-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-about-accordion__panel:not([hidden]) {
    animation: none;
  }

  .kg-about-current-ex__thumb-img {
    transition: none;
  }
}
