/* Keep every CMS-managed website image inside an intentional frame without cropping the source. */
.website-orientation-image { object-fit: contain !important; object-position: center; background: var(--wm-cream, #f4f0e6); }
.website-orientation-image--landscape { aspect-ratio: 16 / 9; }
.website-orientation-image--portrait { aspect-ratio: 4 / 5; }
.website-media-grid > div, .website-photo-grid figure { background: var(--wm-cream, #f4f0e6); }
.website-media-grid img, .website-media-grid video, .website-photo-grid img, .website-photo-grid video { object-fit: contain !important; object-position: center; background: var(--wm-cream, #f4f0e6); }
.website-hero__art img, .website-split > img, .website-project-detail__hero > img { object-fit: contain !important; object-position: center; background: var(--wm-cream, #f4f0e6); }

.website-project-card__media {
    height: auto;
}

.website-project-card__media img {
    height: auto;
    aspect-ratio: auto 16 / 9;
}

.website-project-card__media .website-orientation-image--portrait {
    aspect-ratio: auto 4 / 5;
}

.website-project-card:hover .website-project-card__media img {
    transform: none;
}
.website-gallery-card__layer { object-fit: contain !important; background: #f4f0e6; }
.website-team-card img { object-fit: contain; background: #e8e2d5; }
.website-media-orientation { align-content: start; }
.website-media-orientation select { width: 100%; padding: 11px; border: 1px solid var(--cms-line); border-radius: 8px; background: var(--cms-surface-soft); color: var(--cms-text); font: inherit; }
.website-media-orientation small { color: var(--cms-muted); font-size: 11px; font-weight: 500; line-height: 1.4; }

/* Keep service imagery in a stable banner frame without cropping the source. */
.website-admin__service-image {
    display: block;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    background: var(--cms-surface-soft, #f8f6f0);
    border: 1px solid var(--cms-line, rgba(148, 163, 184, .22));
    border-radius: 10px;
    padding: 8px;
    margin-top: 10px;
}
.website-live-preview__project-media img, .website-live-preview__stack img, .website-project-admin-media__preview img, .website-gallery-admin-media img { object-fit: contain; background: var(--cms-surface-soft, #f8f6f0); }

.website-service-detail-hero__visual > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    background: var(--wm-cream);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .25);
}

/* Give the hero CTA row enough breathing room before the full-width service image. */
.website-service-detail-hero__visual {
    margin-top: 48px;
}

@media (max-width: 700px) {
    .website-service-detail-hero__visual {
        margin-top: 32px;
    }

    .website-service-detail-hero__visual > img {
        aspect-ratio: 16 / 9;
    }
}
