/* Volta a configuracao aprovada pela cliente: a foto entra com o proprio fundo,
   dentro da coluna da direita, alinhada pela base, com as bordas esquerda e
   inferior dissolvendo no marfim. Sem recorte e sem faixa de ponta a ponta. */

@media (min-width: 901px) {
  .dt-hero--editorial {
    padding-block: clamp(24px, 3.5vw, 56px) 0;
    overflow: hidden;
  }

  .dt-hero--editorial .dt-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: end;
    min-height: min(74vh, 620px);
    padding-top: 0;
    gap: clamp(20px, 3.5vw, 56px);
  }

  .dt-hero--editorial .dt-hero__text {
    align-self: end;
    padding-block: clamp(20px, 3.5vw, 64px) clamp(28px, 4.5vw, 72px);
    padding-right: 0;
  }

  .dt-hero__foto {
    position: relative;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 560px;
    margin: 0;
    overflow: visible;
    isolation: isolate;
  }

  .dt-hero__foto img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: min(76vh, 700px);
    object-fit: cover;
    object-position: center 12%;
  }

  .dt-hero__foto::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 26%;
    z-index: 1;
    background: linear-gradient(to right, var(--dt-bg) 0%, rgba(247, 244, 237, 0.6) 45%, rgba(247, 244, 237, 0) 100%);
    pointer-events: none;
  }

  .dt-hero__foto::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(to top, var(--dt-bg) 3%, rgba(247, 244, 237, 0) 24%),
      linear-gradient(to bottom, var(--dt-bg) 0%, rgba(247, 244, 237, 0) 15%);
  }
}

@media (max-width: 900px) {
  .dt-hero__foto {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    overflow: visible;
  }

  .dt-hero__foto img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: 56vh;
    object-fit: cover;
    object-position: center 10%;
  }

  .dt-hero__foto::before { display: none; }

  .dt-hero__foto::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, var(--dt-bg) 3%, rgba(247, 244, 237, 0) 20%);
  }
}
