/* Lookbook chapter. Phone: words, then the large picture, then two smaller ones side by side with the
   second stepped down. Wide screens: a zigzag on twelve columns (large picture 7 wide; words and the
   second picture on the other side, the second resting on the large one's bottom edge; the third below,
   stepped inward). data-side="right" mirrors it. */
.cc_3kzs7xqn_yYRPQ096QR .op-lc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--op-sp-7) var(--op-sp-2);
  padding: var(--op-section-y) var(--op-edge);
  background: var(--op-bg);
  color: var(--op-fg);
}

.cc_3kzs7xqn_yYRPQ096QR .op-lc-copy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--op-sp-5);
  max-width: 40ch;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-title {
  margin: 0;
  color: var(--op-heading);
  text-wrap: balance;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-text {
  display: flex;
  flex-direction: column;
  gap: var(--op-sp-4);
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-text p {
  margin: 0;
  color: var(--op-muted);
  text-wrap: pretty;
}

.cc_3kzs7xqn_yYRPQ096QR .op-lc-main {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--op-sp-3);
  margin: 0;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-caption {
  margin: 0;
  color: var(--op-muted);
}

.cc_3kzs7xqn_yYRPQ096QR .op-lc-fig {
  position: relative;
  overflow: hidden;
  background: var(--op-surface);
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-big {
  aspect-ratio: 4 / 5;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-second, .cc_3kzs7xqn_yYRPQ096QR .op-lc-third {
  aspect-ratio: 3 / 4;
}
.cc_3kzs7xqn_yYRPQ096QR .op-lc-third {
  margin-top: var(--op-sp-10);
}
/* Two pictures only: the second steps to the right half so the pair still reads as a step. */
.cc_3kzs7xqn_yYRPQ096QR .op-lc[data-count="2"] .op-lc-second {
  grid-column: 2;
}

@media (min-width: 1024px) {
  .cc_3kzs7xqn_yYRPQ096QR .op-lc {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    gap: 0 var(--op-gutter);
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-main {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-copy {
    grid-column: 9 / span 4;
    grid-row: 1;
    align-self: start;
    gap: var(--op-sp-6);
    padding-top: var(--op-sp-6);
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-second, .cc_3kzs7xqn_yYRPQ096QR .op-lc[data-count="2"] .op-lc-second {
    grid-column: 10 / span 3;
    grid-row: 2;
    align-self: end;
    margin-top: var(--op-sp-10);
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-third {
    grid-column: 4 / span 4;
    grid-row: 3;
    margin-top: var(--op-sp-11);
  }

  .cc_3kzs7xqn_yYRPQ096QR .op-lc[data-side="right"] .op-lc-main {
    grid-column: 6 / span 7;
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc[data-side="right"] .op-lc-copy {
    grid-column: 1 / span 4;
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc[data-side="right"] .op-lc-second {
    grid-column: 1 / span 3;
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc[data-side="right"] .op-lc-third {
    grid-column: 6 / span 4;
  }
}

/* Pictures open from a slightly narrower window as they arrive (the global data-reveal does the fade). */
@media (prefers-reduced-motion: no-preference) {
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-fig[data-reveal="pending"] {
    clip-path: inset(6% 0 6% 0);
  }
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-fig[data-reveal="in"] {
    clip-path: inset(0 0 0 0);
    transition:
      clip-path var(--op-dur-xslow) var(--op-ease) var(--op-reveal-delay, 0ms),
      opacity var(--op-dur-slow) var(--op-ease) var(--op-reveal-delay, 0ms),
      transform var(--op-dur-xslow) var(--op-ease) var(--op-reveal-delay, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_3kzs7xqn_yYRPQ096QR .op-lc-fig {
    clip-path: none;
    transition: none;
  }
}
