.at-house-ad {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1600px);
  margin: 30px auto;
}

.at-house-ad a {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(220px, 23vw, 300px);
  border: 0;
  border-radius: 10px;
  background: #063453;
  box-shadow: 0 10px 30px rgba(8, 33, 51, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.at-house-ad a:hover,
.at-house-ad a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 38px rgba(8, 33, 51, .18);
  outline: 3px solid rgba(255, 192, 0, .38);
  outline-offset: 3px;
}

.at-house-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.at-house-ad--home {
  margin-top: 22px;
  margin-bottom: 34px;
}

.at-house-ad--sidebar {
  width: 100%;
  margin: 0 0 20px;
}

.at-house-ad--sidebar a { height: auto; border-radius: 9px; }
.at-house-ad--sidebar img { height: auto; aspect-ratio: 1748 / 893; object-position: center; }
.at-house-ad--company {
  width: min(calc(100% - 44px), 1136px);
  margin-top: 38px;
  margin-bottom: 28px;
}

.at-house-ad--directory,
.at-house-ad--directory-widget {
  width: 100%;
  margin: 0;
}

.at-house-ad--directory-widget a,
.at-house-ad--article-content a {
  height: auto;
}

.at-house-ad--directory-widget img,
.at-house-ad--article-content img {
  height: auto;
  aspect-ratio: 1748 / 893;
  object-position: center;
}

.at-house-ad--article-content {
  width: 100%;
  margin: 30px 0 34px;
}

@media (max-width: 760px) {
  .at-house-ad,
  .at-house-ad--company {
    width: calc(100% - 24px);
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .at-house-ad a { border-radius: 10px; }
  .at-house-ad:not(.at-house-ad--sidebar) a { height: auto; }
  .at-house-ad:not(.at-house-ad--sidebar) img { height: auto; aspect-ratio: 1748 / 893; object-position: center; }
  .at-house-ad--sidebar { width: 100%; }
  .at-house-ad--article-content,
  .at-house-ad--directory-widget { width: 100%; }
}
