/* Component: ObjectsOfDesire (editorial) ----------------------------------- */
@layer components {
  .tp-objects {
    padding: 78px var(--tp-gutter) 84px;
  }

  .tp-objects__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 60px;
    align-items: center;
    max-width: var(--tp-container);
    margin-inline: auto;
  }

  /* Collage: two designed frames + seal at the exported positions. */
  .tp-objects__collage {
    position: relative;
    min-height: 440px;
  }

  .tp-objects__frame {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: var(--tp-color-paper-well);
    border: 6px solid var(--tp-color-frame);
    box-shadow: var(--tp-shadow-frame);
  }

  .tp-objects__frame--a {
    left: 0;
    top: 4%;
    width: 62%;
    height: 66%;
  }

  .tp-objects__frame--b {
    right: 0;
    bottom: 0;
    width: 48%;
    height: 54%;
  }

  .tp-objects__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Empty state: the frame stays, holding quiet paper until a still life is chosen. */
  .tp-objects__empty {
    display: block;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.55) 0%, rgba(255, 253, 248, 0.5396) 4.29%, rgba(255, 253, 248, 0.5115) 8.57%, rgba(255, 253, 248, 0.4706) 12.86%, rgba(255, 253, 248, 0.4217) 17.14%, rgba(255, 253, 248, 0.3696) 21.43%, rgba(255, 253, 248, 0.3191) 25.71%, rgba(255, 253, 248, 0.275) 30%, rgba(255, 253, 248, 0.2309) 34.29%, rgba(255, 253, 248, 0.1804) 38.57%, rgba(255, 253, 248, 0.1283) 42.86%, rgba(255, 253, 248, 0.0794) 47.14%, rgba(255, 253, 248, 0.0385) 51.43%, rgba(255, 253, 248, 0.0104) 55.71%, rgba(255, 253, 248, 0) 60%),
      var(--tp-color-paper-well);
  }

  .tp-objects__seal {
    position: absolute;
    right: 0;
    top: -22px;
    width: 150px;
    height: auto;
    opacity: 0.85;
    transform: rotate(-13deg);
  }

  .tp-objects__eyebrow {
    font-family: var(--tp-font-mono);
    font-size: var(--tp-size-label-l);
    letter-spacing: var(--tp-track-eyebrow);
    text-transform: uppercase;
    color: var(--tp-color-gold-text);
  }

  .tp-objects__heading {
    margin-top: 14px;
    font-weight: var(--tp-weight-regular);
    font-size: var(--tp-size-h2-editorial);
    line-height: var(--tp-leading-heading);
    letter-spacing: var(--tp-track-h);
    text-transform: uppercase;
    color: var(--tp-color-ink);
    text-wrap: balance;
  }

  .tp-objects__rule {
    display: block;
    width: 56px;
    height: 1px;
    margin: 24px 0;
    background: var(--tp-color-brass-light);
  }

  .tp-objects__body {
    margin: 0 0 30px;
    max-width: var(--tp-measure);
    font-size: var(--tp-size-body-l);
    font-style: italic;
    font-weight: var(--tp-weight-light);
    line-height: var(--tp-leading-body);
    color: var(--tp-color-text-body);
    text-wrap: pretty;
  }

  @media (max-width: 1099px) {
    .tp-objects {
      padding: 52px var(--tp-gutter) 58px;
    }

    .tp-objects__inner {
      grid-template-columns: minmax(0, 1fr);
      gap: 38px;
    }

    .tp-objects__collage {
      min-height: 360px;
    }

    .tp-objects__heading {
      font-size: 30px;
      line-height: 1.15;
    }
  }

  @media (max-width: 699px) {
    .tp-objects {
      padding: 40px var(--tp-gutter) 44px;
    }

    .tp-objects__inner {
      gap: 30px;
    }

    .tp-objects__collage {
      min-height: 280px;
    }

    .tp-objects__heading {
      font-size: 24px;
      line-height: 1.2;
      letter-spacing: 0.09em;
    }
  }
}
