/* Site-wide fixes, Nov 21 2026 — loaded after each project's own CSS. */

/* 9) Details: bigger tiles, two per row on a wide column, one per row on mobile. */
.details .details-grid,
.details .details-grid.pairs,
.details .details-grid.six,
.details .details-grid.triple {
  width: 100% !important;
  max-width: var(--content, 1240px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px 40px !important;
  align-items: start !important;
}
.details .details-grid figure { width: 100%; margin: 0; }
.details .details-grid img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
}
/* keep the agreed matching-crop look on the paired / six grids, just larger */
.details .details-grid.pairs img,
.details .details-grid.six img { aspect-ratio: 4 / 5; object-fit: cover; }
.details .details-grid.pairs.product-row img { aspect-ratio: auto; object-fit: contain; }
/* an odd last tile sits centred on its own row at the same size */
.details .details-grid > figure:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 20px);
}
@media (max-width: 760px) {
  .details .details-grid,
  .details .details-grid.pairs,
  .details .details-grid.six,
  .details .details-grid.triple {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .details .details-grid > figure:last-child:nth-child(odd) { width: 100%; }
  .details .details-grid.pairs img,
  .details .details-grid.six img { aspect-ratio: auto; object-fit: contain; }
}

/* 10) Exhibition details, readable and placed before the photographs. */
.exhibition-info {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.exhibition-info p { margin: 0; }
.exhibition-info .ex-kind {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #502e60);
  margin-bottom: 12px;
}
.exhibition-info .ex-name {
  font-family: "Jost", sans-serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink, #221e20);
  margin-bottom: 8px;
}
.exhibition-info .ex-meta {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink, #221e20);
}
@media (max-width: 760px) {
  .exhibition-info { margin-bottom: 28px; }
  .exhibition-info .ex-name { font-size: 22px; }
  .exhibition-info .ex-meta { font-size: 15px; }
}

/* ——— Mobile round 2 (Nov 21): header, overflow, contact, side padding ——— */
@media (max-width: 1000px) {
  /* 1) Header: one centred column; a little more air around the AN monogram. */
  .site-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 24px 20px 0 !important;
    min-height: 0 !important;
    text-align: center;
  }
  .site-header .name {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    font-size: clamp(24px, 7.2vw, 28px) !important;
    letter-spacing: 1px !important;
    padding-left: 1px;            /* balances the trailing letter-space so the word sits optically centred */
    text-align: center !important;
    white-space: nowrap !important;
    justify-self: auto !important;
  }
  .site-header .header-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    margin: 0 !important;
  }
  .site-header .header-center .mono {
    display: block;
    margin: 24px auto 22px !important;
  }
  .site-header nav.menu { margin-top: 0 !important; justify-content: center; }
  .site-header .socials {
    justify-content: center !important;
    justify-self: auto !important;
    height: auto !important;
    margin: 16px 0 0 !important;
  }
  .header-rule {
    width: auto !important;
    max-width: none !important;
    margin-left: var(--header-side, 24px) !important;
    margin-right: var(--header-side, 24px) !important;
  }

  /* Grids must never be widened by a large image or a long heading. */
  .hero, .about-hero, .about-grid, .recognition-block, .contact-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero > *, .about-hero > *, .about-grid > *, .recognition-block > *, .contact-hero > * { min-width: 0; }
  .hero-figure img, .portrait img { max-width: 100% !important; height: auto !important; }
  .hero-copy { max-width: none !important; }
  .hero-copy .tags { white-space: normal !important; }
  .hero-copy h1 .work-title, .hero-copy h1 .client { overflow-wrap: anywhere; }
  .about-heading .lettering, .about-heading .lettering-base { max-width: 100% !important; }

  /* 3) Contact: stacked single column — lettering, intro, then the form. */
  .contact-hero {
    display: grid !important;
    gap: 40px !important;
    align-items: start !important;
    padding: 32px 0 40px !important;
  }
  .contact-copy {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
  }
  .contact-copy .lettering { width: 100% !important; }
  .contact-copy .invite { margin-bottom: 28px !important; }
  .contact-copy .email { flex-wrap: wrap; font-size: 19px !important; }
  .enquiry .consent label { flex: 1 1 auto; min-width: 0; }
  .enquiry { width: 100% !important; max-width: 500px !important; margin: 0 auto !important; }
  .enquiry input:not([type="checkbox"]), .enquiry select, .enquiry textarea { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
}
@media (max-width: 600px) {
  /* Side margin on phones: 24px instead of 56px so artwork and text use the screen. */
  :root { --header-side: 24px; }
}
@media (max-width: 1100px) {
  #header .header-rule { margin-left: 20px !important; margin-right: 20px !important; }
}
