/* archives.css: the Archives page. A model in the centre, coats and bags on rails you scroll sideways.
   The rails, coats and bags have their own files in css/components/. */

.archives {
  /* EDIT HERE to line the coats and bags up with the model.
     Inside .try-on, 1cqh = 1% of the try-on area's height (the model's height). */

  /* The model's measurements (--shoulders, --shoulder-line, --body, --bag-top, --bag-hand-x) come
     from the model picked for the visit, in js/data/models.js; each coat is fitted to them
     (css/components/coat-fit.css). Each coat's own measurements are in js/data/coats.js. */
  --coat-gap: 2cqh; /* space between two coats on the rail */

  /* Every bag's top (the handle) sits in the model's hand. Each bag has its own scale in js/data/bags.js. */
  --bag-width: 13cqh; /* width of a bag with scale 1 */
  --bag-spread: 40cqw; /* how far left and right of the centre the other bags hang */
  --bag-faded-drop: 24cqh; /* how much lower the bags not worn hang */

  --faded: 0.9; /* opacity of the coats and bags not worn (their glassine look: css/components/rail.css) */
}

/* The card that opens the page is laid over all of it (css/components/intro-card.css). */
.archives {
  position: relative;
}

/* -- try-on: the model, the tagline and the coat rail on top -- */
.try-on {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}

.try-on-model {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
}

.try-on-tagline {
  position: absolute;
  top: 3cqh;
  left: calc(50% + 7cqh);
  max-width: 8em;
  font-size: var(--text-note);
  letter-spacing: var(--tracking-wide);
  line-height: 1.4;
}
