/**
 * TASK 227: Gallery directory presentation, extending the /artysci/ system.
 */
.the-art-gallery-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* TASK 228C: bridge Launch Reality tokens into the shared catalogue cards. */
.the-art-gallery-catalog-preview {
  --the-art-public-ink: #101414;
  --the-art-public-text: #242727;
  --the-art-public-muted: #666966;
  --the-art-public-paper: #f8f8f6;
  --the-art-public-white: #fff;
  --the-art-public-soft: #eeece8;
  --the-art-public-line: rgba(16, 20, 20, 0.14);
  --the-art-public-radius: 24px;
}

.the-art-gallery-card,
.the-art-gallery-catalog__cta {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--the-art-public-line);
  border-radius: var(--the-art-public-radius);
  background: var(--the-art-public-white);
}

.the-art-gallery-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.the-art-gallery-card__image,
.the-art-gallery-card__fallback {
  width: min(54%, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--the-art-public-soft);
}

.the-art-gallery-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1);
}

.the-art-gallery-card:hover .the-art-gallery-card__image img {
  transform: scale(1.025);
}

.the-art-gallery-card__fallback span {
  color: #777b78;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.the-art-gallery-card__body {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 28px 32px;
  text-align: center;
}

.the-art-gallery-card__eyebrow,
.the-art-gallery-catalog__cta-eyebrow {
  color: var(--the-art-public-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: lowercase;
}

.the-art-gallery-card h3 {
  max-width: 100%;
  margin: 8px 0 0;
  color: var(--the-art-public-ink);
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.the-art-gallery-card__location {
  margin-top: 11px;
  color: var(--the-art-public-muted);
  font-size: 14px;
  line-height: 1.45;
}

.the-art-gallery-card__link {
  margin-top: auto;
  padding-top: 25px;
  color: var(--the-art-public-ink);
  font-size: 13px;
  font-weight: 500;
}

.the-art-gallery-catalog__cta {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  background: var(--the-art-public-ink);
  color: var(--the-art-public-white);
}

.the-art-gallery-catalog__cta--two {
  grid-column: span 2;
}

.the-art-gallery-catalog__cta--full {
  grid-column: 1 / -1;
}

.the-art-gallery-catalog__cta-eyebrow {
  color: rgba(255, 255, 255, .62);
}

.the-art-gallery-catalog__cta h3 {
  max-width: 720px;
  margin-top: 17px;
  color: inherit;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.the-art-gallery-catalog__cta > p:not(.the-art-gallery-catalog__cta-eyebrow) {
  max-width: 670px;
  margin-top: 21px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.65;
}

.the-art-gallery-catalog__cta > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--the-art-public-white);
  color: var(--the-art-public-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  transition: transform 180ms ease;
}

.the-art-gallery-catalog__cta > a:hover {
  transform: translateY(-2px);
}

.the-art-gallery-catalog__artworks {
  padding-top: clamp(44px, 6vw, 80px);
  padding-bottom: clamp(84px, 10vw, 150px);
  background: var(--the-art-public-paper);
  color: var(--the-art-public-text);
}

.the-art-gallery-catalog__artworks .the-art-reality__section {
  padding-top: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--the-art-public-line);
}

@media (max-width: 980px) {
  .the-art-gallery-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .the-art-gallery-catalog__cta--one,
  .the-art-gallery-catalog__cta--two,
  .the-art-gallery-catalog__cta--full {
    grid-column: auto / span 1;
  }

  .the-art-gallery-catalog__cta--one,
  .the-art-gallery-catalog__cta--full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .the-art-gallery-catalog__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .the-art-gallery-catalog__cta--one,
  .the-art-gallery-catalog__cta--two,
  .the-art-gallery-catalog__cta--full {
    grid-column: 1;
  }

  .the-art-gallery-catalog__cta {
    min-height: 360px;
    padding: 32px 26px;
  }

  .the-art-gallery-card__body {
    min-height: 200px;
    padding-inline: 22px;
  }
}
