/* ArtProject CollectiFF — Artists page / version 7.
 * External page-specific stylesheet. Uses existing styles.css and about.css;
 * menu.php and footer.php are unchanged.
 * Desktop: three confirmed portraits, a guest editorial tile and two blank gold tiles. */
.collectiff-artists-grid {
  --artists-gold: #DDB260;
  --about-gold: #DDB260; /* About-page heading styles depend on this variable. */
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 5 / 3;
  gap: 0;
  background: #fff;
}
.artists-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
/* Portrait cards: reveal the artist name in a gold reverse on hover/focus. */
.artists-portrait {
  display: block;
  background: #d9d9d9;
  perspective: 1100px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.artists-flip-inner {
  display: block;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.72,.2,1);
}
.artists-card-front, .artists-card-back {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.artists-card-front img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}
.artists-card-back {
  transform: rotateY(180deg);
  background: var(--artists-gold);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.5vw, 26px);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.artists-card-name {
  display: block;
  font-size: clamp(16px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.artists-card-action {
  display: block;
  margin-top: 21px;
  font-size: clamp(10px, .83vw, 12px);
  line-height: 1.3;
  letter-spacing: .12em;
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  padding-bottom: 5px;
}
.artists-portrait:hover .artists-flip-inner,
.artists-portrait:focus-visible .artists-flip-inner,
.artists-portrait.is-flipped .artists-flip-inner { transform: rotateY(180deg); }
.artists-portrait:focus-visible { outline: 3px solid var(--artists-gold); outline-offset: -3px; z-index: 1; }
.artists-portrait-1 { grid-column: 1; grid-row: 1; }
.artists-portrait-2 { grid-column: 2; grid-row: 1; }
.artists-portrait-4 { grid-column: 2; grid-row: 2; }

.artists-introduction {
  grid-column: 3 / span 2;
  grid-row: 1;
  background: #fff;
  /* Match the Home and About introductory panels precisely. */
  padding: var(--collectiff-copy-padding);
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  font-size: var(--collectiff-copy-size);
  line-height: var(--collectiff-copy-leading);
  letter-spacing: var(--collectiff-copy-tracking);
}
.artists-introduction p { margin: 0 0 var(--collectiff-copy-gap); }
.artists-introduction p:last-child { margin-bottom: 0; }
.artists-introduction strong { font-weight: 700; }
.artists-gold-letter { color: var(--artists-gold); }

/* The original Charanjit slot and the right-hand tile remain solid gold. */
.artists-gold-square-left { grid-column: 1; grid-row: 2; background: var(--artists-gold); }
.artists-gold-square { grid-column: 4; grid-row: 2; background: var(--artists-gold); }

/* Guest artists are explained in a static editorial tile, not a false portrait. */
.artists-guest-card {
  grid-column: 3; grid-row: 2;
  background: #707273; /* Neutral mid-grey to complement monochrome portraits. */
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
}
.artists-guest-content {
  width: 100%;
  padding: clamp(15px, 1.4vw, 24px);
}
.artists-guest-card h2 {
  margin: 0 0 clamp(8px, .75vw, 13px);
  color: #fff;
  font-weight: 400;
  font-size: clamp(16px, 1.26vw, 20px);
  line-height: 1.16;
  letter-spacing: .005em;
}
.artists-guest-card p {
  margin: 0 0 clamp(8px, .65vw, 11px);
  font-weight: 400;
  font-size: clamp(12px, .91vw, 14px);
  line-height: 1.37;
  letter-spacing: 0;
}
.artists-guest-card p:last-child { margin-bottom: 0; }
.artists-slideshow { grid-column: 5; grid-row: 1 / span 2; background: #e9e4e0; }
.artists-slide-images { position: relative; height: 100%; width: 100%; isolation: isolate; }
.artists-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover; object-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .65s ease, visibility .65s;
}
.artists-slide.is-active { opacity: 1; visibility: visible; }
.artists-slideshow-fallback {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; width: 100%; height: 100%;
  color: #615b54; font-size: 14px; text-align: center;
  padding: 20px;
}
.artists-slideshow-fallback small { margin-top: 7px; font-size: 11px; }

/* The heading and links use the same appearance as on the About page. */
.artists-side-label {
  grid-column: 1; grid-row: 3;
  pointer-events: none;
  background: #fff;
  color: var(--artists-gold);
}
.artists-side-label span { color: var(--artists-gold); }
.artists-list-panel {
  grid-column: 2 / span 2;
  grid-row: 3;
  background-color: var(--artists-gold); /* Fix the missing gold panel. */
  color: #fff;
}
.artists-list-panel .about-artists-list a { color: #fff; }

.artists-dots-tile { grid-column: 4 / span 2; grid-row: 3; background: #fff; }
.artists-slideshow-dots {
  position: absolute;
  top: 10px;
  left: 75%; /* right-hand column centre of a two-column white panel */
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(3px, .28vw, 8px);
}
.artists-slideshow-dot {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 0; border: 0; background: none;
  width: 14px; height: 22px; cursor: pointer;
}
.artists-slideshow-dot::before {
  content: ''; display: block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--artists-gold);
  opacity: .72;
  transition: transform .2s ease, opacity .2s ease;
}
.artists-slideshow-dot.is-active::before,
.artists-slideshow-dot:hover::before { opacity: 1; transform: scale(1.22); }
.artists-slideshow-dot:disabled { cursor: default; }
.artists-slideshow-dot:focus-visible { outline: 2px solid #333; outline-offset: 2px; }

/* On smaller screens make the content usable without tiny text or portraits.
   The three portraits retain their two-column mosaic character. */
@media (max-width: 1200px) {
  .collectiff-artists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    aspect-ratio: auto;
    grid-auto-flow: row;
  }
  .collectiff-artists-grid > .artists-tile { grid-column: auto; grid-row: auto; }
  .artists-introduction {
    grid-column: 1 / -1 !important; order: 1;
    padding: var(--collectiff-copy-padding);
    font-size: var(--collectiff-copy-size);
    line-height: var(--collectiff-copy-leading);
    letter-spacing: var(--collectiff-copy-tracking);
  }
  .artists-introduction p { margin-bottom: var(--collectiff-copy-gap); }
  .artists-portrait { aspect-ratio: 1 / 1; }
  .artists-portrait-1 { order: 2; }
  .artists-portrait-2 { order: 3; }
  .artists-gold-square-left { order: 4; aspect-ratio: 1 / 1; }
  .artists-portrait-4 { order: 5; }
  .artists-guest-card { order: 6; min-height: 250px; }
  .artists-gold-square { order: 7; aspect-ratio: 1 / 1; }
  .artists-slideshow {
    order: 8; grid-column: 1 / -1 !important;
    aspect-ratio: 1 / 1.2;
  }
  .artists-dots-tile {
    order: 9; grid-column: 1 / -1 !important;
    height: 53px;
  }
  .artists-slideshow-dots { top: 10px; left: 50%; }
  .artists-side-label {
    order: 10; grid-column: 1 / -1 !important;
    padding: 25px clamp(22px, 5vw, 54px) 9px;
    display: flex; align-items: center; justify-content: flex-start;
  }
  .artists-side-label span {
    writing-mode: horizontal-tb; transform: none;
    font-size: clamp(20px, 3.2vw, 26px);
  }
  .artists-list-panel {
    order: 11; grid-column: 1 / -1 !important;
    min-height: 235px;
    padding: 28px clamp(22px, 5vw, 54px);
  }
  .artists-list-panel .about-artists-list a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .artists-slide, .artists-flip-inner, .artists-slideshow-dot::before { transition: none; }
}

/* Temporary profile destinations, styled in the same restrained visual language. */
.artist-profile-placeholder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); max-width: 1320px; margin: 0 auto; min-height: 56vh; }
.artist-profile-image { aspect-ratio: 1 / 1; background: #dedede; }
.artist-profile-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.artist-profile-copy { padding: clamp(36px, 5vw, 90px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.artist-profile-eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 700; margin: 0 0 28px; }
.artist-profile-copy h1 { font-size: clamp(29px, 3.8vw, 56px); line-height: 1.1; font-weight: 400; margin: 0 0 26px; }
.artist-profile-copy > p:not(.artist-profile-eyebrow) { color: #555; font-size: 18px; line-height: 1.5; }
.artist-profile-return { margin-top: 40px; font-size: 12px; color: #222; letter-spacing: .1em; text-decoration: none; border-bottom: 2px solid #DDB260; padding-bottom: 7px; }
@media (max-width: 760px) { .artist-profile-placeholder { grid-template-columns: 1fr; } .artist-profile-copy { padding: 33px 24px 58px; } }

/* Same small-screen introductory typography as Home and About. */
@media (max-width: 700px) {
  .artists-introduction {
    padding: var(--collectiff-mobile-copy-padding);
    font-size: var(--collectiff-mobile-copy-size);
    line-height: var(--collectiff-mobile-copy-leading);
    letter-spacing: 0;
  }
  .artists-introduction p { margin-bottom: var(--collectiff-copy-gap); }
  .artists-guest-card { grid-column: 1 / -1 !important; min-height: 0; }
  .artists-guest-content { padding: 32px var(--collectiff-mobile-copy-padding); }
  .artists-guest-card h2 { font-size: clamp(18px, 5vw, 24px); }
  .artists-guest-card p { font-size: clamp(14px, 3.4vw, 16px); line-height: 1.5; }
}

/* Tablet white-panel type, paragraph spacing and inset are controlled centrally in styles.css. */
