/* Full-bleed photographs. Keep original-image links and protected technical figures intact. */
.au-photo-fill {
  --au-photo-ratio: 16 / 9;
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: var(--au-photo-ratio);
  overflow: hidden;
  box-sizing: border-box;
  background: #eaf0e9;
  line-height: 0;
}

.au-photo-fill::before { content: none; }

/* The homepage has older !important image rules; only enhanced images override them. */
.au-photo-fill.au-photo-fill > img.au-photo-fill__image,
.home-application-cases .case-card .home-case-image .au-photo-fill > img.au-photo-fill__image {
  display: block !important;
  position: absolute !important;
  z-index: 1;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: var(--au-photo-position, center) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.au-photo-fill--case,
.au-photo-fill--gallery,
.au-photo-fill--equipment {
  --au-photo-ratio: 4 / 3;
}
.au-photo-fill--portrait-card { --au-photo-ratio: 3 / 4; }
.au-photo-fill--product { --au-photo-ratio: 8 / 5; height: 230px; aspect-ratio: auto; }
.au-photo-fill--lowp { --au-photo-ratio: 3 / 2; }
.au-photo-fill--black { --au-photo-ratio: 1.4945; }
.au-photo-fill--thumb {
  height: 100%;
  aspect-ratio: auto;
}

/* Remove gutters only from figures whose photograph was explicitly accepted. */
.source-gallery figure.au-photo-fill-card,
.technical .source-gallery figure.au-photo-fill-card,
.cp .cp-gallery figure.au-photo-fill-card {
  padding: 0;
  overflow: hidden;
}
.source-gallery figure.au-photo-fill-card > a.au-photo-fill-host,
.cp .cp-gallery figure.au-photo-fill-card > a.au-photo-fill-host {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
}
.source-gallery figure.au-photo-fill-card > figcaption,
.cp .cp-gallery figure.au-photo-fill-card > figcaption {
  margin: 0;
  padding: 16px 18px;
}
.source-gallery figure.au-photo-fill-card > .au-photo-fill,
.source-gallery figure.au-photo-fill-card > a.au-photo-fill-host {
  border-bottom: 1px solid #dce3de;
}

.industry-photo-frame.au-photo-fill-host > .au-photo-fill {
  grid-area: 1 / 1;
  z-index: 1;
}
.industry-photo-frame.au-photo-fill-host > .industry-photo-extension {
  display: none;
}
.home-case-image.au-photo-fill-host > .au-photo-fill,
.production-line-photo.au-photo-fill-host > .au-photo-fill,
.facility-photo-frame.au-photo-fill-host > .au-photo-fill {
  width: 100%;
}
.au-case-link > .au-photo-fill { flex: 0 0 auto; }

.surface-faq .example-thumb.au-photo-fill-host { overflow: hidden; }
.surface-faq .photo-original.au-photo-fill-host {
  display: block;
  padding: 0;
  overflow: hidden;
}
/* Existing .photo-original > span styles also match a newly inserted frame. */
.surface-faq .photo-original.au-photo-fill-host > .au-photo-fill {
  position: relative;
  inset: auto;
  width: 100%;
  font-size: inherit;
}
.surface-faq .photo-original.au-photo-fill-host > span:not(.au-photo-fill) {
  z-index: 2;
  padding: 4px 8px;
  background: #ffffffed;
  line-height: 1.5;
}

.eq-page .eq-product-visual.au-photo-fill-card {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}
.eq-page .eq-product-visual.au-photo-fill-card > .eq-image-note {
  margin: 0;
  padding: 17px 20px;
}

/* Historical source sheets: enlarge the photo window, never expose the surrounding sheet. */
.au-photo-fill--crop { display: grid; place-items: center; }
.au-photo-fill--crop > .facility-photo-window {
  flex: none;
  position: relative;
  max-width: none;
}
/* An approved extended photograph is displayed as one image, without a smaller copy over it. */
.industry-case-card .industry-photo-frame.au-photo-use-extension > .industry-photo-extension {
  display: block;
  width: 100%; height: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; z-index: 1;
}
.industry-case-card .industry-photo-frame.au-photo-use-extension > .catalog-image { display: none !important; }
@media (max-width: 700px) {
  .technical .source-gallery figure.au-photo-fill-card,
  .cp .cp-gallery figure.au-photo-fill-card { padding: 0; }
}

/* Four home cases share a taller frame to keep the complete working parts visible. */
.home-application-cases .home-case-image { aspect-ratio: 4 / 3; }
.home-application-cases .home-case-image > .au-photo-fill { --au-photo-ratio: 4 / 3; }
.eq-page .eq-pump > .au-photo-fill { --au-photo-ratio: 404 / 821; }
