/* ============================================================
   INTERIOR PAGES (shared by all non-landing pages)
   ============================================================ */

body {
  background-color: #ffffff;
}

/* tonos 600 — solid nav bar */
.interior-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border-soft);
  z-index: 10;
}

.home-link {
  font-family: 'tonos', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold-nav);
  text-decoration: none;
  transition: color 0.2s;
}

.home-link:hover {
  color: var(--clr-gold-hover);
}


.interior-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 40px 80px;
  color: #111111;
}

/* tonos 600 — page section heading */
.interior-content h1 {
  font-family: 'tonos', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 40px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 16px;
}

/* tonos 600 — section subheading */
.interior-content .copy h2 {
  font-family: 'tonos', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111111;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

/* tonos 300 — body copy */
.interior-content .copy p {
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.4em;
}

/* tonos 300 — bulleted list */
.interior-content .copy ul {
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.4em;
  padding-left: 1.2em;
}

.interior-content .copy ul li {
  margin-bottom: 0.3em;
}

/* tonos 300 — contact info */
.contact-block {
  margin-top: 40px;
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 2;
  color: #111111;
}

.contact-block a,
.copy a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #999999;
  transition: color 0.2s, border-color 0.2s;
}

.contact-block a:hover,
.copy a:hover {
  color: #444444;
  border-color: #444444;
}

/* Gallery instruction line */
.gallery-instruction--mobile {
  display: none;
}

.gallery-instruction {
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #888888;
  margin-bottom: 28px;
  font-style: italic;
}

/* ============================================================
   GALLERY — CSS columns masonry (natural aspect ratios, no crop)
   ============================================================ */

.gallery {
  columns: 3;
  column-gap: 28px;
}

@media (max-width: 900px) {
  .gallery { columns: 2; }
}

@media (max-width: 520px) {
  .gallery { columns: 1; }
}

/* ============================================================
   GALLERY ITEM (hover to reveal after)
   ============================================================ */

.gallery-item {
  break-inside: avoid;
  margin-bottom: 28px;
  cursor: default;
  user-select: none;
}

.item-img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #dddddd;
}

.item-img-wrap .img-before,
.item-img-wrap .img-after {
  width: 100%;
  display: block;
  transition: opacity 0.45s ease;
}

.item-img-wrap .img-after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.gallery .gallery-item:hover .img-before {
  opacity: 0;
}

.gallery .gallery-item:hover .img-after {
  opacity: 1;
}

/* tonos 600 — gallery item labels */
.item-name {
  font-family: 'tonos', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   OTHER PROJECTS — per-object entries with image rows + labels
   ============================================================ */

.project-entry {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e8e8e8;
}

.project-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-images {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: 340px;
  margin-bottom: 10px;
  overflow: hidden;
}

.project-images .img-solo {
  height: 100%;
  width: auto;
  display: block;
  border: 1px solid #dddddd;
  background: #f9f9f9;
  flex-shrink: 0;
}

.project-images.row-large {
  height: 560px;
}

.project-images.row-large .img-solo {
  /* All images share space equally and scale together */
  flex: 1;
  width: 0;
  min-width: 0;
  height: 560px;
  object-fit: cover;
  object-position: top center;
}

.project-label {
  margin-top: 14px;
}

.project-label + .project-label {
  margin-top: 20px;
}

/* Visual gap between unrelated photos in a shared row */
.img-separated {
  margin-left: 40px;
}

/* AIC badge on about page */
.aic-badge {
  display: block;
  width: 110px;
  margin: 20px 0;
}

.label-title {
  display: none;
}

.label-id {
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 3px;
}

.label-treatment {
  font-family: 'tonos', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  font-style: italic;
  color: #888888;
  margin: 0;
}

@media (max-width: 700px) {
  .gallery-instruction--desktop {
    display: none;
  }
  .gallery-instruction--mobile {
    display: block;
  }

  /* Switch to block stacking — avoids all flex-column/align-items quirks on iOS */
  .project-images,
  .project-images.row-large {
    display: block;
    height: auto;
    overflow: visible;
  }
  .project-images .img-solo,
  .project-images.row-large .img-solo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: initial;
    object-fit: initial;
    margin-bottom: 10px;
  }
  /* img-separated: vertical gap on mobile instead of horizontal indent */
  .img-separated {
    margin-left: 0;
    margin-top: 30px;
  }
}

/* ============================================================
   TOUCH DEVICES — tap to toggle before/after (no hover)
   ============================================================ */

@media (hover: none) {
  /* Neutralise the sticky CSS hover on touch */
  .gallery .gallery-item:hover .img-before { opacity: 1; }
  .gallery .gallery-item:hover .img-after  { opacity: 0; }

  /* JS-toggled class drives the reveal instead */
  .gallery .gallery-item.is-tapped .img-before { opacity: 0; }
  .gallery .gallery-item.is-tapped .img-after  { opacity: 1; }
}
