.trajes-formais-page {
  overflow: clip;
}

.trajes-formais-page .tf-hero__grid,
.trajes-formais-page .tf-directions__grid,
.trajes-formais-page .tf-fit__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}

.trajes-formais-page .tf-hero {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.trajes-formais-page .tf-hero__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  align-self: center;
  max-width: 30rem;
}

.trajes-formais-page .tf-hero__copy h1 {
  color: var(--color-ivory-50);
  font-size: clamp(3rem, 5.1vw, 4rem);
}

.trajes-formais-page .tf-hero__copy h1 em {
  font-weight: inherit;
}

.trajes-formais-page .tf-hero__copy p {
  max-width: 29rem;
}

.trajes-formais-page .tf-hero__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.trajes-formais-page .tf-hero__process-link {
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-hero__media {
  grid-column: 7 / span 5;
  min-width: 0;
  width: 100%;
  height: clamp(31rem, 48vw, 42rem);
  margin: var(--space-5) 0 0;
}

.trajes-formais-page .tf-hero__media img {
  object-position: 72% center;
}

.trajes-formais-page .tf-intent__header,
.trajes-formais-page .tf-directions__header,
.trajes-formais-page .tf-reading__header,
.trajes-formais-page .tf-material__header,
.trajes-formais-page .tf-process__header,
.trajes-formais-page .tf-gallery__header,
.trajes-formais-page .tf-prepare__header {
  min-width: 0;
}

.trajes-formais-page .tf-intent__header {
  max-width: 35rem;
  margin-bottom: var(--space-8);
}

.trajes-formais-page .tf-intent__grid,
.trajes-formais-page .tf-material__grid,
.trajes-formais-page .tf-prepare__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.trajes-formais-page .tf-intent__item,
.trajes-formais-page .tf-material__item,
.trajes-formais-page .tf-prepare__item {
  min-width: 0;
}

.trajes-formais-page .tf-intent__item {
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-4);
}

.trajes-formais-page .tf-number {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-detail);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: var(--weight-medium);
  line-height: 1;
}

.trajes-formais-page .tf-directions__header {
  max-width: 37.5rem;
  margin-bottom: var(--space-8);
}

.trajes-formais-page .tf-directions__header p,
.trajes-formais-page .tf-reading__header p,
.trajes-formais-page .tf-material__header p,
.trajes-formais-page .tf-process__header p,
.trajes-formais-page .tf-gallery__header p {
  max-width: 37.5rem;
}

.trajes-formais-page .tf-directions__media {
  grid-column: 1 / span 5;
  min-width: 0;
  width: 100%;
  height: 39rem;
  margin: 0;
}

.trajes-formais-page .tf-directions__media img {
  object-position: 45% center;
}

.trajes-formais-page .tf-direction {
  min-width: 0;
}

.trajes-formais-page .tf-direction--main {
  grid-column: 6 / span 3;
  align-self: end;
  padding-bottom: var(--space-6);
}

.trajes-formais-page .tf-directions__secondary {
  grid-column: 9 / span 4;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, auto));
}

.trajes-formais-page .tf-direction--night,
.trajes-formais-page .tf-direction--celebration {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
}

.trajes-formais-page .tf-direction--night > *,
.trajes-formais-page .tf-direction--celebration > * {
  margin-block: 0;
}

.trajes-formais-page .tf-direction--night {
  background: var(--color-espresso-900);
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-direction--night h3 {
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-direction--celebration {
  background: var(--color-ivory-100);
}

.trajes-formais-page .tf-reading__header,
.trajes-formais-page .tf-process__header {
  max-width: 33.75rem;
  margin-bottom: var(--space-8);
}

.trajes-formais-page .tf-reading__grid,
.trajes-formais-page .tf-process__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.trajes-formais-page .tf-reading__item,
.trajes-formais-page .tf-process__step {
  min-width: 0;
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-4);
}

.trajes-formais-page .tf-reading__accent {
  color: var(--color-detail);
  font-weight: var(--weight-semibold);
}

.trajes-formais-page .tf-material__media {
  width: min(100%, 51.5rem);
  height: 29rem;
  margin: 0 0 var(--space-8) auto;
}

.trajes-formais-page .tf-material__media img {
  object-position: 72% center;
}

.trajes-formais-page .tf-material__header {
  max-width: 32.5rem;
  margin-bottom: var(--space-7);
}

.trajes-formais-page .tf-material__item {
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-4);
}

.trajes-formais-page .tf-material__item--surface {
  border-top: 0;
  background: var(--color-ivory-100);
  padding: var(--space-6);
}

.trajes-formais-page .tf-fit__statement {
  grid-column: 1 / span 5;
  min-width: 0;
  align-self: center;
  max-width: 31.25rem;
}

.trajes-formais-page .tf-fit__media {
  grid-column: 6 / span 4;
  min-width: 0;
  width: 100%;
  height: 35rem;
  margin: 0;
}

.trajes-formais-page .tf-fit__media img {
  object-position: center center;
}

.trajes-formais-page .tf-fit__notes {
  grid-column: 10 / span 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.trajes-formais-page .tf-fit__note {
  min-width: 0;
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-4);
}

.trajes-formais-page .tf-fit__note--surface {
  border-top: 0;
  background: var(--color-ivory-100);
  padding: var(--space-5);
}

.trajes-formais-page .tf-process__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: var(--space-7);
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-gallery__header {
  max-width: 32.5rem;
  margin-bottom: var(--space-7);
}

.trajes-formais-page .tf-gallery__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: end;
}

.trajes-formais-page .tf-gallery__figure {
  min-width: 0;
  margin: 0;
}

.trajes-formais-page .tf-gallery__figure .media-frame {
  width: 100%;
}

.trajes-formais-page .tf-gallery__figure--silhouette {
  grid-column: 1 / span 7;
}

.trajes-formais-page .tf-gallery__figure--silhouette .media-frame {
  height: 39rem;
}

.trajes-formais-page .tf-gallery__figure--detail {
  grid-column: 8 / span 5;
  padding-bottom: var(--space-7);
}

.trajes-formais-page .tf-gallery__figure--detail .media-frame {
  height: 22rem;
}

.trajes-formais-page .tf-gallery__figure figcaption .tf-number {
  display: inline;
  margin: 0 var(--space-2) 0 0;
  font-size: var(--text-lg);
}

.trajes-formais-page .tf-gallery__button {
  margin-top: var(--space-7);
}

.trajes-formais-page .tf-cta__panel {
  width: min(100%, calc((100% / 12 * 10) - var(--space-5)));
  min-width: 0;
  margin-inline: auto;
  background: var(--color-burgundy-700);
  border-top: 1px solid var(--color-detail);
  padding: var(--space-8);
}

.trajes-formais-page .tf-cta__content {
  display: flex;
  min-width: 0;
  max-width: 36.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.trajes-formais-page .tf-cta__content > * {
  margin-block: 0;
}

.trajes-formais-page .tf-cta__content h2,
.trajes-formais-page .tf-cta__content p {
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-cta__button {
  border-color: var(--color-ivory-50);
  background: var(--color-ivory-50);
  color: var(--color-espresso-900);
}

.trajes-formais-page .tf-cta__button:hover {
  border-color: var(--color-espresso-900);
  background: var(--color-espresso-900);
  color: var(--color-ivory-50);
}

.trajes-formais-page .tf-prepare__header {
  max-width: 31.25rem;
  margin-bottom: var(--space-7);
}

.trajes-formais-page .tf-prepare__item {
  border-top: 1px solid var(--color-detail);
  padding-top: var(--space-4);
}

.trajes-formais-page .tf-prepare__item--surface {
  border: 1px solid var(--color-border);
  background: var(--color-ivory-100);
  padding: var(--space-6);
}

@media (max-width: 980px) {
  .trajes-formais-page .tf-hero__grid,
  .trajes-formais-page .tf-directions__grid,
  .trajes-formais-page .tf-fit__grid,
  .trajes-formais-page .tf-gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .trajes-formais-page .tf-hero__copy {
    grid-column: 1 / span 3;
  }

  .trajes-formais-page .tf-hero__media {
    grid-column: 4 / span 3;
    height: 34rem;
    margin-top: 0;
  }

  .trajes-formais-page .tf-hero__copy h1 {
    font-size: 3rem;
  }

  .trajes-formais-page .tf-directions__media {
    grid-column: 1 / span 3;
    height: 34rem;
  }

  .trajes-formais-page .tf-direction--main {
    grid-column: 4 / span 3;
    padding-bottom: 0;
  }

  .trajes-formais-page .tf-directions__secondary {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-4);
  }

  .trajes-formais-page .tf-intent__grid,
  .trajes-formais-page .tf-material__grid,
  .trajes-formais-page .tf-prepare__grid,
  .trajes-formais-page .tf-reading__grid,
  .trajes-formais-page .tf-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trajes-formais-page .tf-fit__statement {
    grid-column: 1 / span 3;
  }

  .trajes-formais-page .tf-fit__media {
    grid-column: 4 / span 3;
    height: 32rem;
  }

  .trajes-formais-page .tf-fit__notes {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trajes-formais-page .tf-gallery__figure--silhouette {
    grid-column: 1 / span 3;
  }

  .trajes-formais-page .tf-gallery__figure--detail {
    grid-column: 4 / span 3;
    padding-bottom: 0;
  }

  .trajes-formais-page .tf-gallery__figure--silhouette .media-frame,
  .trajes-formais-page .tf-gallery__figure--detail .media-frame {
    height: 27rem;
  }

  .trajes-formais-page .tf-cta__panel {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .trajes-formais-page .tf-hero__grid,
  .trajes-formais-page .tf-directions__grid,
  .trajes-formais-page .tf-fit__grid,
  .trajes-formais-page .tf-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .trajes-formais-page .tf-hero {
    padding-block: var(--space-8);
  }

  .trajes-formais-page .tf-hero__copy,
  .trajes-formais-page .tf-hero__media,
  .trajes-formais-page .tf-directions__media,
  .trajes-formais-page .tf-direction--main,
  .trajes-formais-page .tf-directions__secondary,
  .trajes-formais-page .tf-fit__statement,
  .trajes-formais-page .tf-fit__media,
  .trajes-formais-page .tf-fit__notes,
  .trajes-formais-page .tf-gallery__figure--silhouette,
  .trajes-formais-page .tf-gallery__figure--detail {
    grid-column: 1;
    width: 100%;
  }

  .trajes-formais-page .tf-hero__copy h1 {
    font-size: clamp(1.875rem, 9vw, 2.125rem);
    line-height: 1.05;
  }

  .trajes-formais-page .tf-hero__actions {
    align-items: stretch;
  }

  .trajes-formais-page .tf-hero__actions .button,
  .trajes-formais-page .tf-hero__process-link {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
  }

  .trajes-formais-page .tf-hero__media,
  .trajes-formais-page .tf-directions__media,
  .trajes-formais-page .tf-fit__media {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .trajes-formais-page .tf-intent__header,
  .trajes-formais-page .tf-directions__header,
  .trajes-formais-page .tf-reading__header,
  .trajes-formais-page .tf-material__header,
  .trajes-formais-page .tf-process__header,
  .trajes-formais-page .tf-gallery__header,
  .trajes-formais-page .tf-prepare__header {
    margin-bottom: var(--space-6);
  }

  .trajes-formais-page .tf-intent__grid,
  .trajes-formais-page .tf-material__grid,
  .trajes-formais-page .tf-prepare__grid,
  .trajes-formais-page .tf-reading__grid,
  .trajes-formais-page .tf-process__grid,
  .trajes-formais-page .tf-directions__secondary,
  .trajes-formais-page .tf-fit__notes {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .trajes-formais-page .tf-direction--night,
  .trajes-formais-page .tf-direction--celebration {
    padding: var(--space-5);
  }

  .trajes-formais-page .tf-material__media {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: var(--space-6);
  }

  .trajes-formais-page .tf-material__item--surface,
  .trajes-formais-page .tf-fit__note--surface,
  .trajes-formais-page .tf-prepare__item--surface {
    padding: var(--space-5);
  }

  .trajes-formais-page .tf-gallery__figure--silhouette .media-frame {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .trajes-formais-page .tf-gallery__figure--detail .media-frame {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .trajes-formais-page .tf-gallery__button {
    width: 100%;
  }

  .trajes-formais-page .tf-cta__panel {
    padding: var(--space-6) var(--space-5);
  }

  .trajes-formais-page .tf-cta__content {
    width: 100%;
  }

  .trajes-formais-page .tf-cta__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trajes-formais-page .media-frame:hover > img {
    filter: none;
    transform: none;
  }
}
