/* Approved keyboard photograph for the landing page's final invitation. */
.final-cta.lang-photo-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px;
  background: #0b1727;
  border-color: #76aff455;
}

.lang-photo-media,
.lang-photo-media img,
.lang-photo-cta::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lang-photo-media {
  z-index: -2;
}

.lang-photo-media img {
  object-fit: cover;
  object-position: center 58%;
}

.lang-photo-cta::after {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg, #081323f5 0%, #081323df 36%, #08132380 60%, #08132314 100%);
}

.lang-photo-cta .lang-photo-copy {
  width: min(56%, 36rem);
  min-width: 0;
}

.lang-photo-cta .lang-photo-copy h2 {
  color: var(--text);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.2;
  text-wrap: balance;
}

.lang-photo-cta .lang-photo-copy p {
  color: #d4e0ef;
  font-size: 16px;
  line-height: 1.65;
  margin: 16px 0 24px;
}

.lang-photo-copy .microsoft-store-badge {
  display: inline-flex;
  max-width: 100%;
}

[dir='rtl'] .lang-photo-media {
  transform: scaleX(-1);
}

[dir='rtl'] .lang-photo-cta::after {
  background: linear-gradient(270deg, #081323f5 0%, #081323df 36%, #08132380 60%, #08132314 100%);
}

html[data-theme='light'] .lang-photo-cta::after {
  background: linear-gradient(90deg, #f2f7fdfa 0%, #f2f7fdf0 36%, #f2f7fdb3 59%, #f2f7fd14 100%);
}

html[data-theme='light'][dir='rtl'] .lang-photo-cta::after {
  background: linear-gradient(270deg, #f2f7fdfa 0%, #f2f7fdf0 36%, #f2f7fdb3 59%, #f2f7fd14 100%);
}

html[data-theme='light'] .lang-photo-cta .lang-photo-copy p {
  color: #36516b;
}

@media (max-width: 700px) {
  .final-cta.lang-photo-cta {
    min-height: 390px;
    padding: 28px 24px;
    justify-content: flex-end;
    align-items: stretch;
  }

  .lang-photo-cta .lang-photo-copy {
    width: 100%;
  }

  .lang-photo-media img {
    object-position: 73% center;
  }

  .lang-photo-cta::after,
  [dir='rtl'] .lang-photo-cta::after {
    background: linear-gradient(180deg, #0813230a 0%, #08132380 28%, #081323ec 58%, #081323fa 100%);
  }

  html[data-theme='light'] .lang-photo-cta::after,
  html[data-theme='light'][dir='rtl'] .lang-photo-cta::after {
    background: linear-gradient(180deg, #f2f7fd0a 0%, #f2f7fd8c 28%, #f2f7fdf2 58%, #f2f7fdfa 100%);
  }
}

@media (forced-colors: active) {
  .lang-photo-media,
  .lang-photo-cta::after {
    display: none;
  }

  .final-cta.lang-photo-cta {
    background: Canvas;
    border-color: CanvasText;
  }

  .lang-photo-cta .lang-photo-copy :is(h2, p),
  html[data-theme='light'] .lang-photo-cta .lang-photo-copy p {
    color: CanvasText;
  }
}
