/* Artists listing + detail — matched to funoonkadah.art/blank */

.page-artists {
  background: #ffffff;
}

.artists-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  min-height: min(92vh, 920px);
}

.artists-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.artists-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artists-hero > .container {
  position: relative;
  z-index: 1;
}

.artists-hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.artists-hero-decor--b {
  left: auto;
  right: clamp(-1%, 1vw, 3%);
  top: 18%;
  bottom: auto;
  width: min(22vw, 200px);
  z-index: 1;
}

.artists-hero-decor--c {
  left: 42%;
  bottom: 4%;
  top: auto;
  width: clamp(56px, 7vw, 88px);
  z-index: 1;
}

.artists-title {
  position: relative;
  z-index: 2;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal);
}

.artists-collage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  min-height: min(88vh, 900px);
  aspect-ratio: 1280 / 900;
}

.artist-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--teal);
  transition: transform 0.35s ease;
  z-index: 2;
}

.artist-card:hover {
  transform: translateY(-4px);
  z-index: 4;
}

.artist-card__frame {
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  width: 100%;
  aspect-ratio: 1 / 1;
}

.artist-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.05vw, 0.95rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--teal);
}

/* Reference collage placement (funoonkadah.art/blank) */
.artists-title-slot {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 48%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  text-align: center;
}

.artists-title-slot .artists-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 5.4rem);
}

/* Left cluster */
.artist-card--vangogh {
  left: 6.7%;
  top: 22%;
  width: 9.5%;
}

.artist-card--vangogh .artist-card__frame img {
  object-position: 47% 50%;
}

.artist-card--picasso {
  left: 17.8%;
  top: 22%;
  width: 22.2%;
}

.artist-card--picasso .artist-card__frame img {
  object-position: 38% 45%;
}

/* Center */
.artist-card--davinci {
  left: 41.55%;
  top: 22%;
  width: 16.9%;
}

.artist-card--davinci .artist-card__frame img {
  object-position: 39% 30%;
}

/* Right cluster */
.artist-card--michelangelo {
  right: 29.7%;
  top: 22%;
  width: 9.5%;
}

.artist-card--michelangelo .artist-card__frame img {
  object-position: 66% 60%;
}

.artist-card--rubens {
  right: 18.2%;
  top: 22%;
  width: 9.5%;
}

.artist-card--rubens .artist-card__frame {
  aspect-ratio: 4 / 5;
}

.artist-card--rubens .artist-card__frame img {
  object-position: 50% 37%;
}

.artist-card--schiele {
  right: 6.7%;
  top: 36%;
  width: 9.5%;
}

.artist-card--schiele .artist-card__frame {
  aspect-ratio: 4 / 5;
}

.artist-card--schiele .artist-card__frame img {
  object-position: 43% 31%;
}

/* Detail page */
.artist-detail {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 5.5rem);
}

.artist-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.artist-detail-photo {
  background: #eeeeee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}

.artist-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-detail-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1.05;
}

.artist-detail-copy p {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
}

.artist-portfolio h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--teal);
  letter-spacing: -0.02em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.portfolio-grid span {
  display: block;
  padding: 0.85rem 1rem;
  background: #f3f3f3;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
}

.artist-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--teal);
}

.artist-back:hover {
  color: var(--olive);
}

@media (max-width: 980px) {
  .artists-hero {
    min-height: 0;
  }

  .artists-hero-decor {
    display: none;
  }

  .artists-title-slot {
    display: none;
  }

  .artists-title--mobile {
    display: block;
  }

  .artists-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
    min-height: 0;
    aspect-ratio: auto;
    max-width: 560px;
  }

  .artist-card--picasso,
  .artist-card--vangogh,
  .artist-card--davinci,
  .artist-card--schiele,
  .artist-card--michelangelo,
  .artist-card--rubens {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .artist-card:hover {
    transform: translateY(-4px);
  }

  .artist-card__frame {
    aspect-ratio: 1 / 1;
  }

  .artist-card--rubens .artist-card__frame,
  .artist-card--schiele .artist-card__frame {
    aspect-ratio: 4 / 5;
  }

  .artist-card__name {
    font-size: 0.95rem;
  }

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

  .artist-detail-photo {
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (min-width: 981px) {
  .artists-title--mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .artists-collage {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
