
/* ==========================================================
   RAW — TEXTILE SCULPTURE PROJECT PAGE
   ========================================================== */

/*
   Shared introduction and technology logos:
   project-intro.css

   This stylesheet controls:
   - Raw-specific colours
   - Main artwork presentation
   - Image lightbox trigger
   - Responsive artwork styling

   Load AFTER project-intro.css.
*/


/* ==========================================================
   01 — PAGE COLOURS
   ========================================================== */

/* Dark mode */

.mask-page {
  background: var(--paper);
  color: var(--ink);

  --project-highlight: #563A3D;
  --project-highlight-text: #FFF0EB;
  --project-description: #D1CDD5;
}


/* Light mode */

html[data-theme="light"] .mask-page {
  --project-highlight: #FAD5D0;
  --project-highlight-text: #171822;
  --project-description: #494650;
}


/* ==========================================================
   02 — MAIN ARTWORK
   ========================================================== */

.mask-page .mask-artwork {
  background: #0B1118;
  color: #EDF0F3;

  padding: 80px var(--pad);
}


/* Artwork heading */

.mask-page .mask-artwork h2 {
  margin: 10px 0 30px;

  font-family: var(--display);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.055em;

  color: inherit;
}


/* ==========================================================
   03 — MAIN IMAGE AND LIGHTBOX
   ========================================================== */

.mask-page .mask-artwork-figure {
  margin: 0 auto;
  padding: 0;

  width: 100%;
  max-width: 850px;
}


/* Clickable artwork */

.mask-page .mask-artwork .image-open {
  display: block;

  width: 100%;
  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;

  cursor: zoom-in;
}


/* Full artwork image — no cropping */

.mask-page .mask-artwork .image-open img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
  object-position: center;

  background: transparent;
}


/* Keyboard accessibility */

.mask-page .mask-artwork .image-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}


/* ==========================================================
   04 — IMAGE CAPTION
   ========================================================== */

.mask-page .mask-artwork-figure figcaption {
  display: block;

  margin-top: 15px;
  padding: 0;

  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;

  color: #AAAAAA;
}


/* ==========================================================
   05 — MOBILE
   MAX WIDTH: 650px
   ========================================================== */

@media (max-width: 650px) {

  .mask-page .mask-artwork {
    padding: 60px var(--pad);
  }

  .mask-page .mask-artwork h2 {
    font-size: clamp(30px, 6vw, 42px);
  }

  .mask-page .mask-artwork-figure figcaption {
    font-size: 12px;
  }

}

/* ==========================================
   RAW — BROTHER LOGO
   ========================================== */

.mask-page .portfolio-intro .green-tool {
  justify-items: center;
  text-align: center;
}

.mask-page .portfolio-intro .green-tool img {
  width: 55px;
  height: 42px;
  max-width: none;
  object-fit: contain;

  justify-self: center;
}

.mask-page .portfolio-intro .green-tool span {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}