/* The photograph and controls share one box. Product details use the same starting line in every column. */
.brl-family-photo, .catalogue-serum-frame, article .brl4-card-gallery,
article .rm-gallery--compact, article .ea-gallery--compact, article .pl-gallery-compact {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.brl-family-card .brl-family-photo, .catalog-card > .catalogue-serum-frame,
.plt-family-card > .catalogue-serum-frame, article.sr-product-tile > .catalogue-serum-frame,
article .rm-gallery--compact, article .pl-gallery-compact, #app article .brl4-card-gallery {
  width: 100%; height: auto; aspect-ratio: 1; flex: 0 0 auto;
}
.ea-family-card .ea-family-photo:has(> .ea-gallery), .ea-family-card .ea-family-photo.catalogue-serum-frame,
.ea-family-card .ea-family-photo > .ea-gallery--compact, article.seo-card > .catalogue-serum-frame {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
}
.catalogue-serum-frame > a, .brl-family-card .brl-family-photo > a,
.catalogue-serum-frame > a > .product-image, .brl-family-card .brl-family-photo > a > .product-image {
  display: block; position: relative; width: 100%; height: 100%; margin: 0; padding: 0;
}
article .catalogue-serum-frame > a img, article .catalogue-serum-frame > a > .product-image img {
  display: block; width: 100%; height: 100%; inset: 0; max-height: none; object-fit: cover; transform: none;
}
article .catalogue-serum-frame[data-serum-view="3"] > a img { object-fit: contain; }
#app article .brl4-card-gallery .brl-capsule-stage, article .rm-gallery--compact .rm-gallery-stage,
article .pl-gallery-compact .pl-gallery-stage, article .ea-gallery--compact .ea-gallery-stage,
.ea-family-card .ea-family-photo > .ea-gallery--compact .ea-gallery-stage {
  width: 100%; height: 100% !important; aspect-ratio: auto; padding: 0; margin: 0;
}
article .rm-gallery--compact .rm-gallery-track, article .rm-gallery--compact .rm-gallery-slide,
article .pl-gallery-compact .pl-gallery-track, article .pl-gallery-compact .pl-gallery-slide,
article .ea-gallery--compact .ea-gallery-track, article .ea-gallery--compact .ea-gallery-slide { height: 100%; }
#app article .brl4-card-gallery .brl4-image { width: 100% !important; height: 100% !important; object-fit: contain !important; }
#app .brl-family-card .brl4-format-pill { display: none; }
article .catalogue-photo-ready :is(.brl4-gallery-footer,.rm-gallery-controls,.pl-gallery-controls,.ea-gallery-controls,.rm-gallery-help,.ea-gallery-help) { display:none !important; }
/* Pocket-sized, keyboard-accessible controls leave the label and format badge visible. */
article .catalogue-image-nav {
  position: absolute; inset: auto auto 8px 50%; z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: max-content; max-width: calc(100% - 12px); margin: 0; padding: 0 2px;
  border: 1px solid rgb(34 30 27 / 19%); border-radius: 999px; background: rgb(255 255 255 / 95%);
  color: #262321; box-shadow: 0 1px 5px rgb(0 0 0 / 12%); font-family: inherit;
}
article .catalogue-image-nav > button, #app article .catalogue-image-nav > button {
  position: static !important; inset: auto !important; transform: none !important;
  display: grid; place-items: center; flex: none; width: 34px; min-width: 34px; height: 34px; min-height: 34px;
  padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
  box-shadow: none; cursor: pointer; font: 400 24px/1 Arial,sans-serif; touch-action: manipulation;
}
article .catalogue-image-nav > button:focus-visible, #app article .catalogue-image-nav > button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
article .catalogue-image-nav > button:hover, #app article .catalogue-image-nav > button:hover { background: rgb(120 116 110 / 15%); }
article .catalogue-image-nav .catalogue-view-count {
  display: inline; position: static; padding: 0 3px; margin: 0; border: 0; border-radius: 0; background: transparent;
  color: inherit; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.2;
  letter-spacing: .025em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
article .catalogue-image-nav .catalogue-audible-caption { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
article.catalog-card .catalogue-image-nav, article.plt-family-card .catalogue-image-nav { background: rgb(21 22 25 / 94%); color: #fff; border-color: rgb(255 255 255 / 35%); }
.brl-family-card .brl-family-body { flex: 1 1 auto; }
.brl-family-card .brl-family-body > .brl-card-actions, .plt-family-card .qs-info > .qs-actions { margin-top: auto; }
.ea-family-card .ea-family-body > .ea-family-links, .catalog-card .catalog-info > .catalog-bottom { margin-top: auto; }
@media (pointer: coarse) {
  article .catalogue-image-nav > button, #app article .catalogue-image-nav > button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}
