/* A custom banner photo is already framed by its author. */
.cfr-home-hero:has(.cfr-hero-desktop-frame) {
  height: auto;
}

.cfr-home-hero-photo.cfr-hero-desktop-frame {
  align-self: center;
  height: auto;
  aspect-ratio: 5 / 3;
}

.cfr-home-hero-photo.cfr-hero-desktop-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@media (max-width: 767px) {
  .cfr-home-hero-photo.cfr-hero-mobile-frame {
    height: auto;
    aspect-ratio: 15 / 8;
  }

  .cfr-home-hero-photo.cfr-hero-mobile-frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
}

.staff-banner-upload.staff-banner-upload-frame {
  height: auto;
  aspect-ratio: 5 / 3;
}

.staff-banner-upload-frame[data-image-slot="mobile"] {
  aspect-ratio: 15 / 8;
}

.staff-banner-upload-frame > img {
  object-fit: contain;
}

.staff-banner-frame-previews {
  display: block;
}

.staff-banner-frame-previews .staff-banner-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: 0;
  padding: 0;
  column-gap: 16px;
  background: #342927;
}

.staff-banner-frame-previews .staff-banner-preview > img,
.staff-banner-frame-previews .staff-banner-preview:not(:has(> img))::before {
  position: static;
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: contain;
}

.staff-banner-frame-previews .staff-banner-preview:not(:has(> img))::before {
  content: 'Фото не загружено';
  display: grid;
  place-items: center;
  color: #fff;
}

.staff-banner-frame-previews .staff-banner-preview::after,
.staff-banner-frame-previews .staff-phone-preview::after {
  display: none;
}

.staff-banner-frame-previews .staff-phone-preview {
  display: none;
}

.staff-banner-frame-previews.phone-mode .staff-phone-preview {
  display: flex;
  flex-direction: column;
  width: min(375px, 100%);
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #342927;
  color: #fff;
}

.staff-banner-frame-previews .staff-phone-preview img,
.staff-banner-frame-previews .staff-phone-preview > [data-mobile-empty] {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 15 / 8;
  object-fit: contain;
}

.staff-banner-frame-previews .staff-phone-preview > [data-mobile-empty]:not([hidden]) {
  display: grid;
  place-items: center;
}


.staff-banner-frame-previews .staff-banner-copy-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  align-self: stretch;
  justify-content: center;
  padding: 18px 16px;
  text-align: left;
  overflow-wrap: anywhere;
  color: #fff8f1;
}

.staff-banner-frame-previews .staff-banner-copy-preview [hidden] {
  display: none !important;
}

.staff-banner-frame-previews .staff-banner-copy-preview h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.13;
}

.staff-banner-frame-previews .staff-banner-copy-preview p {
  margin: 0;
  color: #eadbd7;
  font-size: 13px;
  line-height: 1.45;
}

.staff-banner-frame-previews .staff-banner-eyebrow-preview {
  color: #ecc2d1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.staff-banner-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.staff-banner-frame-previews .staff-banner-preview-actions > :is(a, span) {
  align-self: auto;
  margin: 0;
  border: 1px solid #eadbd7;
  border-radius: 100px;
  padding: 7px 10px;
  color: #fff8f1;
  font-size: 11px;
  font-weight: 700;
}

.staff-banner-frame-previews .staff-banner-preview-actions > a {
  border-color: #bd2458;
  background: #bd2458;
}

.staff-banner-preview-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 2px 0 0;
  padding: 0;
  color: #eadbd7;
  font-size: 11px;
  list-style: none;
}

.staff-banner-preview-benefits li::before {
  content: '✓';
  margin-inline-end: 5px;
  color: #ecc2d1;
}

.staff-site-banner-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.staff-site-banner-preview iframe {
  position: absolute;
  inset: 0 auto auto 50%;
  display: block;
  border: 0;
  transform-origin: top left;
}
