.gallery-language-toggle {
  color: #d7d0c5;
  background: transparent;
  border: 1px solid #555b5e;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .05em;
  cursor: pointer;
  white-space: nowrap;
}

.gallery-language-toggle span:not([aria-hidden]) { opacity: .48; }
.gallery-language-toggle span.active { color: #f1ede5; opacity: 1; }
.gallery-language-toggle span[aria-hidden] { margin: 0 2px; opacity: .55; }
.gallery-language-toggle:focus-visible { outline: 2px solid #d06a4b; outline-offset: 3px; }
.gallery-language-duplicate { display: none !important; }
.gallery-language-copy { display: inline !important; }

.artwork-dimension-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .28);
  color: #332f2a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.art-meta .art-collection,
.art-meta .art-edition {
  margin: 7px 0 0;
  color: #4f4a43;
  font-size: 11px;
  line-height: 1.35;
}

.art-meta .art-collection {
  font-style: italic;
}

.art-meta .art-edition {
  color: var(--terracotta);
  font-weight: 700;
  letter-spacing: .04em;
}

/* Keep pricing inside the artwork dialog rather than on the collection grid. */
.art-card .art-meta > .price {
  display: none !important;
}

/* Keep the collection grid focused on the room and artwork title.
   Full artwork descriptions remain available in the detail dialog. */
.art-card .art-meta > div > p:not(.art-location) {
  display: none !important;
}

.collection-statements {
  border-top: 1px solid var(--line);
  margin-top: 90px;
  padding-top: 60px;
}

.collection-statements-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.collection-statements-heading h3 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.025em;
}

.collection-statements-intro {
  color: #625d55;
  font-size: 14px;
  line-height: 1.6;
}

.collection-statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.collection-statement {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .12);
}

.collection-statement summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.collection-statement summary::-webkit-details-marker { display: none; }
.collection-statement summary::after {
  content: "+";
  color: var(--terracotta);
  font-size: 22px;
  line-height: 1;
}
.collection-statement[open] summary::after { content: "−"; }

.collection-statement-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.collection-statement-action {
  margin-left: auto;
  color: #6d665d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.collection-statement-body {
  border-top: 1px solid var(--line);
  padding: 25px 24px 10px;
}

.collection-statement-body p {
  color: #4f4a43;
  font-size: 14px;
  line-height: 1.72;
}

.dialog-edition {
  margin: -5px 0 14px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.dialog-collection-context {
  border-left: 3px solid var(--terracotta);
  margin: 18px 0;
  padding: 2px 0 2px 15px;
}

.dialog-collection-title {
  margin-bottom: 7px;
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dialog-collection-summary {
  margin: 0;
  color: #514b43;
  font-size: 13px;
  line-height: 1.55;
}

.gallery-language-ready .hero h1 {
  max-width: 920px;
  line-height: .98;
}

html[data-gallery-language="es"] .hero h1 {
  max-width: 850px;
  letter-spacing: -.038em;
}

html[data-gallery-language="es"] .hero-copy {
  max-width: 650px;
}

.gallery-language-ready .purpose-copy p,
.gallery-language-ready .artist-content > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.75;
}

.gallery-purpose .eyebrow {
  color: #fff2e8 !important;
  font-weight: 700;
  opacity: 1;
}

.gallery-purpose .eyebrow::before {
  background: #fff2e8 !important;
}

.gallery-language-ready .artist-content > p:not(.eyebrow) {
  max-width: 680px;
}

.gallery-language-ready .steps h3 {
  margin-bottom: 12px;
}

.purchase-policy-link {
  margin: 28px 0 0;
  text-align: center;
}

.purchase-policy-link a,
.footer-policy-link {
  color: inherit;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-policy-link {
  display: inline-block;
  margin-top: 12px;
}

@media (width <= 780px) {
  .header-nav { gap: 12px; }
  .gallery-language-toggle { padding: 8px 9px; font-size: 10px; }
  .gallery-language-ready .hero h1 { line-height: 1.01; }
  html[data-gallery-language="es"] .hero h1 { letter-spacing: -.032em; }
  .artwork-dimension-note { margin-top: 22px; }
  .collection-statements { margin-top: 70px; padding-top: 48px; }
  .collection-statement-grid { grid-template-columns: 1fr; }
}

@media (width <= 480px) {
  .gallery-language-toggle { padding: 7px 8px; }
  .gallery-language-ready .purpose-copy p,
  .gallery-language-ready .artist-content > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.7;
  }
  .collection-statement summary { min-height: 72px; padding: 18px; }
  .collection-statement-title { font-size: 19px; }
  .collection-statement-action { display: none; }
  .collection-statement-body { padding: 21px 18px 8px; }
  .collection-statement-body p { font-size: 13px; line-height: 1.68; }
}
.art-dialog .dialog-note { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.art-dialog .dialog-note a { color: inherit; text-decoration: underline; }

/* Prominent purchase action inside each artwork dialog. */
.art-dialog .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px !important;
  margin: 28px 0 18px;
  padding: 16px 24px;
  border: 2px solid #8f321f;
  border-radius: 0;
  background: #a8482d;
  color: #fffaf2;
  box-shadow: 6px 6px 0 #2a2d2e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.art-dialog .checkout-button::after {
  content: "\2192";
  margin-left: 14px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.art-dialog .checkout-button:hover {
  background: #86331f;
  box-shadow: 3px 3px 0 #2a2d2e;
  transform: translate(3px, 3px);
}

.art-dialog .checkout-button:focus-visible {
  outline: 3px solid #fffaf2;
  outline-offset: -6px;
}

.art-dialog .checkout-button[aria-disabled="true"] {
  border-color: #777168;
  background: #777168;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (width <= 480px) {
  .art-dialog .checkout-button {
    min-height: 56px !important;
    padding: 15px 18px;
    font-size: 13px;
  }
}
/* Keep the native dialog close control reachable while its content scrolls. */
.art-dialog {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  scroll-padding-top: 64px;
}
.art-dialog .bilingual-close {
  position: sticky;
  top: 0;
  right: auto;
  z-index: 60;
  justify-self: end;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 104px;
  height: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #202426;
  color: #f1ede5;
  box-shadow: 0 2px 8px #0003;
  touch-action: manipulation;
}
.art-dialog .bilingual-close::after {
  content: attr(aria-label);
  font: 600 14px/1.2 system-ui, sans-serif;
  pointer-events: none;
}
.art-dialog .bilingual-close svg { pointer-events: none; flex-shrink: 0; }
.art-dialog .bilingual-close:focus-visible { outline: 3px solid #a8482d; outline-offset: 3px; }
@media (max-width: 640px) {
  .art-dialog { width: calc(100vw - 24px); padding: 12px; }
}
