#root .home-shell .home-realized-proof {
  grid-template-areas: "title" "summary" "photos" "gallery";
  gap: 8px 18px;
  padding-block: 14px;
}

.home-shell .home-realized-proof__copy {
  display: contents;
}

.home-shell .home-realized-proof__copy > .home-eyebrow {
  display: none;
}

#root .home-shell .home-realized-proof__copy h2 {
  grid-area: title;
  margin: 0;
}

#root .home-shell .home-realized-proof__copy p {
  grid-area: summary;
  margin: 0;
}

.home-shell .home-realized-proof__photos {
  grid-area: photos;
}

.home-shell .home-realized-proof__copy > a[href="/proiecte-realizate"] {
  grid-area: gallery;
  justify-self: start;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  gap: 8px;
  min-height: 46px;
  margin-top: 0;
  padding: 5px 6px 5px 8px;
  font-size: 11px;
  letter-spacing: .02em;
}

.home-shell .home-realized-proof__copy > a[href="/proiecte-realizate"]::before,
.home-shell .home-realized-proof__copy > a[href="/proiecte-realizate"] > .home-realized-proof__arrow {
  width: 32px;
  height: 32px;
}

.home-shell .home-realized-proof__copy > a[href="/proiecte-realizate"]::before {
  background-size: 18px;
}

.home-shell .home-realized-proof__copy > a[href="/proiecte-realizate"] > .home-realized-proof__arrow {
  justify-self: end;
  border-radius: 6px;
}

#root .home-shell .home-realized-proof__photos img {
  aspect-ratio: 2 / 1;
  object-position: center 55%;
}

.home-shell .home-authority {
  display: grid;
  gap: 10px;
  padding-block: 12px;
}

.home-shell .home-authority__primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.home-shell .home-authority__intro {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
}

.home-shell .home-authority__intro h2 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.home-shell .home-authority__intro h2 strong {
  font-size: inherit;
  letter-spacing: .02em;
}

.home-shell .home-authority__intro h2 span {
  margin: 0;
}

.home-shell .home-authority__intro > em {
  display: block;
  margin: 3px 0 0;
  font-size: 10px;
}

.home-shell .home-authority__intro > :is(p, i, small),
.home-shell .home-authority__item > :is(.home-authority__icon, .home-authority__divider),
.home-shell .home-authority__verification-copy :is(.azd-icon, small) {
  display: none;
}

.home-shell .home-authority__stats {
  gap: 6px;
  padding: 0;
}

.home-shell .home-authority__item.card-standard {
  display: grid;
  align-content: start;
  min-height: 0;
  gap: 2px;
  box-shadow: none;
}

.home-shell .home-authority__item > strong {
  line-height: 1.02;
}

.home-shell .home-authority__item > .home-authority__label {
  min-height: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .025em;
}

.home-shell .home-authority__item > small {
  margin: 0;
  font-size: 10px;
  line-height: 1.25;
}

.home-shell .home-authority__item:last-child {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

.home-shell .home-authority__item:last-child > strong {
  grid-row: span 2;
}

.home-shell .home-authority__verification {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 5px;
  margin: 0;
  padding: 7px 0 0;
  border: 0;
  border-top: 1px solid var(--rule, #dce1e4);
  border-radius: 0;
  box-shadow: none;
}

.home-shell .home-authority__verification-copy strong {
  font-size: 11px;
  line-height: 1.25;
}

.home-shell .home-authority__sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.home-shell .home-authority__sources > :is(a, span) {
  width: 100%;
  min-height: 36px;
  gap: 3px;
  padding: 3px;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
}

.home-shell .home-authority__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 10px;
  letter-spacing: .02em;
}

/* These measurements override the existing mobile layout in the same layer. */
@layer azd-mobile-refinement {
  .home-shell .home-authority__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-shell .home-authority__item.card-standard {
    padding: 7px 8px !important;
  }

  .home-shell .home-authority__item > strong {
    margin: 0 !important;
    font-size: clamp(23px, 6.5vw, 30px) !important;
  }

  .home-shell .home-authority__item:last-child > strong {
    font-size: clamp(20px, 5.8vw, 26px) !important;
  }

  @media (orientation: landscape) and (min-width: 560px) {
    .home-shell .home-authority__item.card-standard {
      padding: 5px 7px !important;
    }

    .home-shell .home-authority__item > strong {
      font-size: 24px !important;
    }

    .home-shell .home-authority__item:last-child > strong {
      font-size: 22px !important;
    }
  }
}

@media (max-width: 350px), (orientation: landscape) and (min-width: 560px) {
  .home-shell .home-authority__item:not(:last-child) > small {
    display: none;
  }
}

@media (orientation: landscape) and (min-width: 560px) {
  #root .home-shell .home-realized-proof {
    grid-template-areas: "title photos" "summary photos" ". gallery";
    align-items: start;
    row-gap: 6px;
    padding-block: 6px;
  }

  #root .home-shell .home-realized-proof__copy h2 {
    align-self: end;
  }

  .home-shell .home-authority {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 12px;
    padding-block: 6px;
  }

  .home-shell .home-authority__primary {
    gap: 5px;
  }

  .home-shell .home-authority__verification {
    padding: 0 0 0 9px;
    border: 0;
    border-left: 1px solid var(--rule, #dce1e4);
  }

  .home-shell .home-authority__sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shell .home-authority__sources > :last-child {
    grid-column: 1 / -1;
  }
}

@media (orientation: landscape) and (min-width: 560px) and (max-height: 360px) {
  #root .home-shell .home-realized-proof__photos img {
    aspect-ratio: 11 / 5;
  }
}
