:root {
  color-scheme: light;
  --text: #3f3f3f;
  --muted: #777777;
  --line: #e8e4df;
  --soft: #f7f5f2;
  --accent: #5f5f5f;
  --accent-dark: #4c4c4c;
  --shadow: 0 24px 80px rgba(80, 80, 80, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 24px 36px;
  text-align: center;
}


.exhibition-note {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: -68px calc(50% - 50vw) 44px;
  padding: 14px 24px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.exhibition-note strong {
  color: #ffd84d;
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1;
}
.eyebrow,
.modal-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Montserrat, Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
}

.intro {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}

.gallery > * {
  align-self: start;
}

.art-card {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  align-items: start;
  gap: 14px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
    .art-card > .card-more {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important;
        width: 100% !important;
        min-height: 44px !important;
        margin: 1px auto 0 !important;
        padding: 0 22px !important;
        border: 1px solid #4f4f4f !important;
        background-color: #4f4f4f !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center !important;
        text-transform: uppercase !important;
    }
.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.18;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.art-card:hover .thumb img,
.art-card:focus-visible .thumb img {
  transform: scale(1.025);
}

.art-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.price-table {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.price-row {
  display: grid;
  gap: 4px;
}

.price-label {
  color: #777777;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.price-label small {
  display: block;
  margin-top: 2px;
  font-size: 0.9em;
  font-weight: 500;
  text-transform: none;
}

.price-stack {
  display: inline-grid;
  gap: 3px;
}

.regular-price {
  color: #9a9a9a;
  font-size: 0.78em;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.discount-price {
  color: #4f4f4f;
  font-size: 1.08em;
  font-weight: 700;
}

.collection-status {
  display: inline-block;
  color: #777777;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.35;
}
.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.card-meta {
  width: 100%;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-size {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.card-meta .price-table {
  gap: 7px;
  width: 100%;
}

.card-meta .price-row {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.card-meta .price-row:last-child {
  border-bottom: 0;
}

.card-meta .price-values {
  min-width: 0;
  text-align: right;
  white-space: normal;
  justify-self: stretch;
  align-self: center;
}

.card-meta .price-stack {
  white-space: nowrap;
}

.card-meta .price-label {
  min-width: 0;
  align-self: center;
}
.site-cta {
  display: flex;
  justify-content: center;
  max-width: 1280px;
  margin: -28px auto 72px;
  padding: 0 24px;
}

.exhibition-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid #5f5f5f;
  background: #5f5f5f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.exhibition-site-link:hover,
.exhibition-site-link:focus-visible {
  background: #4c4c4c;
  border-color: #4c4c4c;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 26px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(70, 70, 70, 0.52);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 52px));
  background: #fff;
  box-shadow: var(--shadow);
  overflow: auto;
  scrollbar-color: #9a9a9a #f0f0f0;
  scrollbar-width: thin;
}

.modal-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.modal-panel::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.modal-panel::-webkit-scrollbar-thumb {
  background: #9a9a9a;
  border: 2px solid #f0f0f0;
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  background: #777777;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 520px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  padding: 28px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #4f4f4f;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: #ffffff;
  color: #303030;
}

.carousel-control[hidden],
.carousel-status[hidden] {
  display: none;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-status {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(48, 48, 48, 0.78);
  color: #f0f0f0;
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
  margin-top: 14px;
}

.carousel-thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #f0f0f0;
  cursor: pointer;
  opacity: 0.72;
  overflow: hidden;
}

.carousel-thumb:hover,
.carousel-thumb:focus-visible,
.carousel-thumb.is-active {
  border-color: #5f5f5f;
  opacity: 1;
}

.carousel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-main-image {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
/* Direct thumbnail image lock */
#artwork-thumbs img{
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover !important;
}
div#artwork-thumbs {
    margin: 11px 0;
}

div#artwork-thumbs button {
    border: none;
}
.modal-content {
  overflow: visible;
  padding: 54px 46px 44px;
}

.modal-content h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.details {
  display: grid;
  gap: 1px;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 34px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.details div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 600;
}

.details .info-detail {
  grid-template-columns: 1fr;
}

.details .info-detail dd {
  grid-column: 1 / -1;
  width: 100%;
  color: #4f4f4f;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
}

#modal-info strong {
  display: inline-block;
  min-width: 118px;
  color: #777777;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.details .price-detail {
  grid-template-columns: 1fr;
}

.details .price-detail dd {
  grid-column: 1 / -1;
  width: 100%;
}

#modal-price .price-table {
  gap: 12px;
  width: 100%;
}

#modal-price .price-row {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, max-content);
  align-items: center;
  column-gap: 34px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

#modal-price .price-row:last-child {
  border-bottom: 0;
}

#modal-price .price-values {
  min-width: 150px;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

#modal-price .price-label {
  min-width: 0;
  max-width: 100%;
}
.description {
  margin: 0 0 28px;
  color: #5f5f5f;
  font-size: 15px;
  line-height: 1.75;
}

.description:empty {
  display: none;
}

.contact {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.contact p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  padding: 0 24px;
  background: #5f5f5f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .modal-image-wrap {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 56px 18px 22px;
  }

  .artwork-main-image {
    max-height: 42vh;
  }

  .carousel-thumbs {
    flex-wrap: wrap;
  }

  .site-header {
    padding-top: 46px;
  }

  .exhibition-note {
    margin-top: -46px;
    margin-bottom: 34px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
    padding-inline: 18px;
  }




.modal {
    padding: 0;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: auto;
  }

  .modal-image-wrap {
    min-height: 0;
    max-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 56px 18px 22px;
  }

  
.artwork-main-image {
    width: auto;
    max-width: 100%;
    max-height: calc(48vh - 78px);
  }

  .modal-content {
    overflow: visible;
    padding: 34px 22px 36px;
    position: inherit !important;
    float: left;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.site-footer {
  background: #303030;
  color: #d8d8d8;
  padding: 34px 24px;
}

.footer-inner {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  max-width: 920px;
  margin: 0;
  color: #c7c7c7;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 520px) {
  .carousel-control {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .modal-image-wrap {
    max-height: 42vh;
    padding: 54px 14px 16px;
  }

  
.artwork-main-image {
    max-height: calc(42vh - 70px);
  }

  .footer-contact {
    display: grid;
    gap: 14px;
  }

  .footer-contact a {
    width: fit-content;
  }
}
@media (max-width: 820px) {
  .modal-image-wrap {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 56px 18px 22px;
  }

  .artwork-main-image {
    max-height: 42vh;
  }

  .carousel-thumbs {
    flex-wrap: wrap;
  }

@media (max-width: 420px) {
#modal-price .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #modal-price .price-values {
    justify-self: start;
    text-align: left;
  }
}
/* final carousel visibility overrides */
.modal-image-wrap .carousel-thumbs {
  position: static;
  display: flex;
  visibility: visible;
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .modal-image-wrap {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .modal-image-wrap .carousel-thumbs {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .artwork-main-image {
    max-height: 42vh;
  }
}
/* Swiper carousel */
.modal-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
}

.artwork-swiper {
  width: 100%;
  min-height: 0;
}

.artwork-swiper .swiper-slide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.artwork-swiper .swiper-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
}

.artwork-thumbs {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.artwork-thumbs[hidden],
.swiper-button-prev[hidden],
.swiper-button-next[hidden],
.swiper-pagination[hidden] {
  display: none;
}

.artwork-thumbs .swiper-slide {
  width: 54px;
  height: 54px;
  border: 2px solid transparent;
  background: #f0f0f0;
  cursor: pointer;
  opacity: 0.62;
  overflow: hidden;
}

.artwork-thumbs .swiper-slide-thumb-active {
  border-color: #5f5f5f;
  opacity: 1;
}

.artwork-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #4f4f4f;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: 700;
}

.swiper-pagination {
  color: #f0f0f0;
  font-size: 12px;
  font-weight: 700;
}

.swiper-pagination-fraction {
  left: 50%;
  bottom: 12px;
  width: auto;
  padding: 5px 10px;
  background: rgba(48, 48, 48, 0.78);
  transform: translateX(-50%);
}

@media (max-width: 820px) {
  .artwork-swiper .swiper-slide img {
    max-height: 42vh;
  }

  .artwork-thumbs {
    max-width: 280px;
  }

  .artwork-thumbs .swiper-slide {
    width: 44px;
    height: 44px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 38px;
    height: 38px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 17px;
  }
}
/* Swiper layout hard fix */
.modal-image-wrap {
  min-width: 0;
  overflow: hidden;
}

.artwork-swiper,
.artwork-thumbs {
  min-width: 0;
  overflow: hidden;
}

.artwork-swiper {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
}

.artwork-swiper .swiper-wrapper {
  align-items: flex-start;
}

.artwork-swiper .swiper-slide {
  width: 100% !important;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.artwork-swiper .swiper-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}

.artwork-thumbs {
  width: min(360px, 100%);
  max-width: 100%;
  margin: 0 auto;
  flex: 0 0 auto;
}

.artwork-thumbs .swiper-wrapper {
  align-items: center;
}

.artwork-thumbs .swiper-slide {
  flex: 0 0 54px;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px;
  max-width: 54px;
}

.artwork-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 820px) {
  .artwork-swiper .swiper-slide img {
    max-height: 42vh;
  }

  .artwork-thumbs .swiper-slide {
    flex-basis: 44px;
    width: 40px !important;
    height: 40px !important;
    min-width: 44px;
    max-width: 44px;
  }
}
/* fallback: prevent stacked carousel slides */
.swiper-fallback .artwork-swiper .swiper-wrapper {
  display: block;
  transform: none !important;
}

.swiper-fallback .artwork-swiper .swiper-slide {
  display: none !important;
  width: 100% !important;
}

.swiper-fallback .artwork-swiper .swiper-slide.is-active {
  display: flex !important;
}

.swiper-fallback .artwork-thumbs .swiper-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  transform: none !important;
}

.swiper-fallback .artwork-thumbs .swiper-slide {
  flex: 0 0 54px;
  width: 54px !important;
  height: 54px !important;
}

@media (max-width: 820px) {
  .swiper-fallback .artwork-thumbs .swiper-slide {
    flex-basis: 44px;
    width: 40px !important;
    height: 40px !important;
  }
}
/* definitive Swiper split: main slides vs thumbs */
.artwork-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.artwork-swiper .swiper-wrapper {
  width: 100% !important;
}

.artwork-swiper .artwork-slide {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.artwork-swiper .artwork-slide img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 220px) !important;
  object-fit: contain !important;
}

.artwork-thumbs {
  width: min(360px, 100%) !important;
  max-width: 100% !important;
  height: 58px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

.artwork-thumbs .swiper-wrapper {
  align-items: center !important;
}

.artwork-thumbs .artwork-thumb-slide {
  flex-shrink: 0 !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  display: block !important;
  border: 2px solid transparent !important;
  background: #f0f0f0 !important;
  cursor: pointer !important;
  opacity: 0.65 !important;
  overflow: hidden !important;
}

.artwork-thumbs .artwork-thumb-slide.swiper-slide-thumb-active {
  border-color: #5f5f5f !important;
  opacity: 1 !important;
}

.artwork-thumbs .artwork-thumb-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (max-width: 820px) {
  .artwork-swiper .artwork-slide img {
    max-height: 42vh !important;
  }

  .artwork-thumbs {
    width: min(300px, 100%) !important;
    height: 40px !important;
  }

  .artwork-thumbs .artwork-thumb-slide {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}
/* Swiper sizing fix: keep gallery slides and thumbnails independent */
.modal-image-wrap {
  min-width: 0 !important;
  overflow: hidden !important;
}

.artwork-swiper,
.artwork-swiper.swiper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.artwork-swiper > .swiper-wrapper {
  width: 100% !important;
  align-items: flex-start !important;
}

.artwork-swiper > .swiper-wrapper > .artwork-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.artwork-swiper > .swiper-wrapper > .artwork-slide > img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 230px) !important;
  object-fit: contain !important;
}

.artwork-thumbs,
.artwork-thumbs.swiper {
  width: min(360px, 100%) !important;
  max-width: 100% !important;
  height: 58px !important;
  margin: 14px auto 0 !important;
  overflow: hidden !important;
}

.artwork-thumbs > .swiper-wrapper {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
}

.artwork-thumbs > .swiper-wrapper > .artwork-thumb-slide {
  flex: 0 0 54px !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  display: block !important;
  border: 2px solid transparent !important;
  background: #f0f0f0 !important;
  opacity: 0.65 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.artwork-thumbs > .swiper-wrapper > .artwork-thumb-slide.swiper-slide-thumb-active {
  border-color: #5f5f5f !important;
  opacity: 1 !important;
}

.artwork-thumbs > .swiper-wrapper > .artwork-thumb-slide > img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (max-width: 820px) {
  .artwork-swiper > .swiper-wrapper > .artwork-slide > img {
    max-height: 42vh !important;
  }

  .artwork-thumbs,
  .artwork-thumbs.swiper {
    width: min(300px, 100%) !important;
    height: 40px !important;
    margin-top: 10px !important;
  }

  .artwork-thumbs > .swiper-wrapper > .artwork-thumb-slide {
    flex-basis: 44px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}

/* Simple popup gallery: main image plus clickable thumbnails */
.modal-image-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.artwork-main-image {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 210px) !important;
  object-fit: contain !important;
}

.artwork-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.artwork-thumbs[hidden] {
  display: none !important;
}

.artwork-thumb-button {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  border: 2px solid #d6d6d6 !important;
  background: #f6f6f6 !important;
  cursor: pointer !important;
  opacity: 0.72 !important;
  overflow: hidden !important;
}

.artwork-thumb-button.is-active {
  border-color: #5f5f5f !important;
  opacity: 1 !important;
}

.artwork-thumb-button img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
}

@media (max-width: 820px) {
  .modal-image-wrap {
    gap: 10px !important;
    width: 100% !important;
    position: inherit !important;
    float: left;
    height: min-content;
  }

  .artwork-main-image {
    width: 100% !important;
    max-height: 42vh !important;
  }

  .artwork-thumbs {
    max-width: 100% !important;
    gap: 7px !important;
  }

  .artwork-thumb-button {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
  .modal-close {
    position: fixed;  }
}




/* Grid cards without prices */
.card-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid #707070;
  background: #ffffff;
  color: #5f5f5f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.art-card:hover .card-more,
.art-card:focus-visible .card-more {
  background: #5f5f5f;
  border-color: #5f5f5f;
  color: #ffffff;
}

.card-meta {
  margin-bottom: 0 !important;
}

.card-size {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Saiba Mais button refinement */
.card-more {
  justify-self: center !important;
  width: min(180px, 100%) !important;
  min-height: 44px !important;
  margin: 18px auto 0 !important;
  border: 1px solid #4f4f4f !important;
  background: #4f4f4f !important;
  color: #ffffff !important;
  text-align: center !important;
}

.art-card:hover .card-more,
.art-card:focus-visible .card-more {
  background: #6a6a6a !important;
  border-color: #6a6a6a !important;
  color: #ffffff !important;
}

/* Desktop card CTA button - final override */
.art-card .card-more {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: min(190px, 100%) !important;
  min-height: 46px !important;
  margin: 18px auto 0 !important;
  padding: 0 22px !important;
  border: 1px solid #4f4f4f !important;
  background-color: #4f4f4f !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.art-card:hover .card-more,
.art-card:focus-visible .card-more {
  background-color: #6a6a6a !important;
  border-color: #6a6a6a !important;
  color: #ffffff !important;
}

.art-card .card-meta {
  border-bottom: 0 !important;
}


/* Card title and CTA on the same row */
.art-card .card-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.art-card .card-heading .card-title {
  margin: 0 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.art-card .card-heading .card-more {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 112px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  font-size: 11px !important;
}

.art-card .card-meta {
  margin-top: 10px !important;
}

@media (max-width: 520px) {
  .art-card .card-heading {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .art-card .card-heading .card-more {
    align-self: flex-start !important;
  }
}


/* Grid cards without dimensions */
.art-card .card-heading {
  margin-bottom: 0 !important;
}

.art-card .card-meta,
.art-card .card-size {
  display: none !important;
}


/* Card CTA below title */
.art-card .card-heading {
  display: contents !important;
}

.art-card > .card-title {
  display: block !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.art-card > .card-more {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: min(190px, 100%) !important;
  min-height: 44px !important;
  margin: 16px auto 0 !important;
  padding: 0 22px !important;
  border: 1px solid #4f4f4f !important;
  background-color: #4f4f4f !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
