/* ArtProject CollectiFF — About page / version 5.
   External stylesheet layered over existing styles.css.
   Keep the menu styles in menu.php and footer styles in styles.css.
   The desktop layout is an exact five-column, three-row square grid. */

.collectiff-about-grid {
  --about-gold: #DDB260;
  color: #292929;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  aspect-ratio: 5 / 3;
  width: 100%;
  gap: 0;
  background: #fff;
}
.about-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.about-gallery { grid-column: 1 / span 2; grid-row: 1 / span 2; background: #eeeae4; }
.about-copy { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.about-motto { grid-column: 5; grid-row: 1; }
.about-slideshow { grid-column: 5; grid-row: 2; }
.about-negative-space { grid-column: 1; grid-row: 3; }
.about-artists-label { grid-column: 2; grid-row: 3; }
.about-artists-panel { grid-column: 3 / span 3; grid-row: 3; }

.about-gallery > img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-copy {
  /* Match the Home and Artists introductory panels precisely. */
  padding: var(--collectiff-copy-padding);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--collectiff-copy-size);
  line-height: var(--collectiff-copy-leading);
  letter-spacing: var(--collectiff-copy-tracking);
}
.about-copy p { margin: 0 0 var(--collectiff-copy-gap); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { font-weight: 700; }
.about-gold-letters { color: var(--about-gold); }

.about-motto, .about-artists-panel { background: var(--about-gold); color: #fff; }
.about-motto { padding: var(--collectiff-motto-padding); }
.about-motto p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--collectiff-motto-size);
  font-weight: 400;
  line-height: var(--collectiff-motto-leading);
  letter-spacing: var(--collectiff-motto-tracking);
}

.about-slideshow, .about-slideshow-images { background: #211811; }
.about-slideshow-images { position: relative; width: 100%; height: 100%; isolation: isolate; }
.about-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s;
}
.about-slide.is-active { opacity: 1; visibility: visible; }
.about-slideshow-fallback {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 18px; text-align: center; color: #fff;
  font-size: 15px;
}
.about-slideshow-fallback small { margin-top: 9px; font-size: 10px; color: #e9c68c; }

.about-negative-space, .about-artists-label { background: #fff; }
.about-artists-label {
  display: flex;
  /* Match the first artist's name at the TOP of the neighbouring gold panel. */
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(13px, 1.35vw, 27px) clamp(12px, 1vw, 19px) 20px;
}
.about-artists-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--about-gold);
  font-size: clamp(15px, 1.7vw, 26px);
  line-height: 1.05;
  font-weight: 400;
}
.about-artists-panel { padding: clamp(13px, 1.35vw, 27px); }
.about-artists-list { display: flex; flex-direction: column; align-items: flex-start; gap: .16em; }
.about-artists-list a {
  display: inline-block;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.62vw, 27px);
  line-height: 1.16;
  text-decoration: none;
  white-space: nowrap;
}
.about-artists-list a:hover, .about-artists-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about-artists-list a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.about-slideshow-dots {
  position: absolute;
  /* The panel spans columns 3–5; the image above is column 5.
     Its centre is at 5/6 of this three-column panel's width. */
  left: 83.333333%;
  right: auto;
  transform: translateX(-50%);
  top: 10px;
  display: flex;
  align-items: center;
  gap: clamp(3px, .25vw, 7px);
}
.about-slideshow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.about-slideshow-dot::before {
  content: '';
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, .72);
  border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}
.about-slideshow-dot.is-active::before, .about-slideshow-dot:hover::before {
  background: #fff;
  transform: scale(1.18);
}
.about-slideshow-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Medium screens: retain the 5-column design only as long as its text fits. */
@media (max-width: 1050px) {
  .collectiff-about-grid {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }
  .about-gallery { width: 100%; aspect-ratio: 1 / 1; order: 1; }
  .about-copy {
    order: 2;
    padding: var(--collectiff-copy-padding);
    font-size: var(--collectiff-copy-size);
    line-height: var(--collectiff-copy-leading);
    letter-spacing: var(--collectiff-copy-tracking);
  }
  .about-copy p { margin-bottom: var(--collectiff-copy-gap); }
  .about-motto { order: 3; min-height: 160px; padding: var(--collectiff-motto-padding); }
  .about-motto p { font-size: var(--collectiff-motto-size); }
  .about-slideshow { order: 4; aspect-ratio: 1 / 1; width: 100%; }
  .about-negative-space { display: none; }
  .about-artists-label {
    order: 5;
    padding: 24px clamp(22px, 5vw, 54px) 0;
    justify-content: flex-start;
    align-items: center;
  }
  .about-artists-label span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 24px;
  }
  .about-artists-panel {
    order: 6;
    padding: 45px clamp(22px, 5vw, 54px) 32px;
    min-height: 240px;
  }
  .about-artists-list { gap: .25em; }
  .about-artists-list a { font-size: clamp(19px, 3.3vw, 26px); white-space: normal; }
  /* On mobile the panel is full-width, so centre the dots within it. */
  .about-slideshow-dots { top: 11px; left: 50%; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .about-slide, .about-slideshow-dot::before { transition: none; }
}

/* Match small-screen text and motto sizes across all three pages. */
@media (max-width: 700px) {
  .about-copy {
    padding: var(--collectiff-mobile-copy-padding);
    font-size: var(--collectiff-mobile-copy-size);
    line-height: var(--collectiff-mobile-copy-leading);
    letter-spacing: 0;
  }
  .about-copy p { margin-bottom: var(--collectiff-copy-gap); }
  .about-motto { padding: var(--collectiff-mobile-motto-padding); }
  .about-motto p {
    font-size: var(--collectiff-mobile-motto-size);
    line-height: var(--collectiff-motto-leading);
    letter-spacing: var(--collectiff-motto-tracking);
  }
}

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

/* 13 November 2026 — moved Home slideshow into large About image tile. */
.about-gallery-slideshow { position: relative; width: 100%; height: 100%; isolation: isolate; }
.about-gallery-slideshow .about-slide {
  object-fit: cover;
  object-position: center;
}
/* The small square is now a single gallery-logo image rather than a slideshow. */
.about-slideshow { background: #eeeae4; }
.about-gallery-logo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* The controls now live in the white row directly below the large artwork. */
.about-gallery-controls {
  grid-column: 1 / span 2;
  grid-row: 3;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  pointer-events: none;
}
.about-gallery-controls .about-slideshow-dots {
  position: static;
  transform: none;
  display: flex;
  gap: clamp(5px, .42vw, 9px);
  padding: 0;
  background: none;
  pointer-events: auto;
}
.about-gallery-controls .about-slideshow-dot::before { background: #d3bc91; }
.about-gallery-controls .about-slideshow-dot.is-active::before,
.about-gallery-controls .about-slideshow-dot:hover::before { background: #a87928; }
.about-gallery-controls .about-slideshow-dot:focus-visible { outline-color: #a87928; }

/* Display the entire logo photograph, consistently across browsers. */
.about-slideshow { background: #eeeae4; }
.about-gallery-logo { object-fit: contain; object-position: center center; }

@media (max-width: 1050px) {
  .about-gallery-controls {
    order: 2;
    display: flex;
    width: 100%;
    min-height: 48px;
    padding-top: 9px;
    background: #fff;
  }
  .about-copy { order: 3; }
  .about-motto { order: 4; }
  .about-slideshow { order: 5; }
  .about-artists-label { order: 6; }
  .about-artists-panel { order: 7; }
}
