.photo-layout {
  --photo-paper:var(--bp-link,var(--card));
  --photo-ink:var(--bp-text,var(--ink));
  --photo-line:var(--bp-line,var(--border));
  min-width:0;
  overflow-wrap:anywhere;
}
figure.photo-layout > img {display:block;width:100%;height:auto;max-height:none;object-fit:cover;object-position:var(--photo-position,center)}
.photo-fit--contain > img {background:var(--photo-paper)}
figure.photo-layout.photo-fit--contain > img,.be-preview-blocks figure.photo-layout.photo-fit--contain > img,.be-photo-thumb.photo-fit--contain > img {object-fit:contain;object-position:center}
.photo-layout--banner > img {aspect-ratio:16/9}
.photo-layout--square > img {aspect-ratio:1}
.photo-layout--portrait > img {aspect-ratio:3/4;max-width:360px;margin-inline:auto}
.photo-layout--panorama > img {aspect-ratio:3/1}
figure.photo-layout--round > img,.be-preview-blocks figure.photo-layout--round > img {aspect-ratio:1;max-width:200px;border-radius:50%;margin-inline:auto}
figure:is(.photo-layout--round,.photo-layout--portrait) {background:transparent;text-align:center;border:0}
.photo-position--top {--photo-position:50% 0%}
.photo-position--bottom {--photo-position:50% 100%}
.photo-position--left {--photo-position:0% 50%}
.photo-position--right {--photo-position:100% 50%}
.photo-layout > figcaption {white-space:pre-wrap;overflow-wrap:anywhere}
.photo-layout--frame {padding:clamp(8px,2.5%,20px);background:var(--photo-paper);color:var(--photo-ink);border:1px solid var(--photo-line)}
.photo-layout--frame > figcaption {padding:8px 0 0}
.photo-layout--postcard {padding:8px;background:var(--photo-paper);color:var(--photo-ink);box-shadow:0 5px 16px #22343226}
.photo-layout--postcard > figcaption {padding:10px 4px 6px;text-align:center;font-family:Georgia,serif}
.photo-layout--split:has(figcaption) {display:flex;flex-wrap:wrap;align-items:center}
figure.photo-layout--split:has(figcaption) > img {flex:1.4 1 190px;width:0;min-width:0}
.photo-layout--split > figcaption {flex:1 1 225px;min-width:0;padding:8px}
.photo-layout--editorial:has(figcaption) {display:flex;flex-direction:column-reverse;background:transparent}
.photo-layout--editorial > figcaption {padding:0 0 8px;font:600 1.12em/1.25 Georgia,serif}
.be-style-swatches.be-photo-choices {grid-template-columns:repeat(auto-fill,minmax(min(100%,126px),1fr))}
.be-photo-choices label > span {height:100%;align-content:space-between}
.be-photo-thumb {display:grid;align-content:start;width:100%;max-width:136px;gap:3px;color:var(--bp-text)}
.be-photo-choices [data-photo-swatch] {width:100%;display:grid;justify-items:center}
.be-photo-thumb > img {display:block;width:100%;max-height:72px;object-fit:cover;object-position:var(--photo-position,center);border-radius:4px}
.be-photo-thumb small {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.be-photo-fit {margin-block:10px}
.be-photo-focus {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px;margin-top:8px}
.be-photo-focus[hidden] {display:none}
.be-photo-appearance [data-photo-live-sample] .be-preview-blocks {margin:0}
.be-photo-appearance [data-photo-live-sample] .be-preview-page {min-height:0;padding:10px}
.be-photo-appearance [data-photo-live-sample] figure {max-width:400px;margin-inline:auto;width:100%}
.be-photo-thumb.photo-layout--round > img {width:42px;height:42px;border-radius:50%}
.be-photo-thumb.photo-layout--portrait > img {width:48px}
.be-photo-thumb.photo-layout--panorama > img {max-height:42px}
.be-photo-thumb.photo-layout--frame,.be-photo-thumb.photo-layout--postcard {padding:5px}
.be-photo-thumb.photo-layout--split:has(small) {grid-template-columns:1fr .65fr;align-items:center}
.be-photo-thumb.photo-layout--editorial {display:flex;flex-direction:column-reverse}
.be-photo-thumb.photo-layout--editorial:not([class*="photo-caption--"]) > small {font-family:Georgia,serif;font-weight:700}
@media(max-width:430px) {
  .be-style-swatches.be-photo-choices {grid-template-columns:repeat(2,minmax(0,1fr))}
}

.be-preview-blocks figure.photo-layout {padding:var(--preview-photo-inset,0)}
.be-preview-blocks figure.photo-layout--frame {--preview-photo-inset:10px;color:var(--photo-ink);border:1px solid var(--photo-line)}
.be-preview-blocks figure.photo-layout--postcard {--preview-photo-inset:8px;color:var(--photo-ink)}
.be-preview-blocks figure:is(.photo-layout--round,.photo-layout--portrait,.photo-layout--editorial) {background:transparent}
.be-photo-thumb.photo-layout--square > img {width:64px;height:64px;margin-inline:auto}
.be-photo-thumb.photo-layout--round > img,.be-photo-thumb.photo-layout--portrait > img {margin-inline:auto}
.be-photo-thumb.photo-layout--banner > img {aspect-ratio:16/9;max-height:61px}

.be-preview-blocks figure.photo-layout > img {max-height:none}

.photo-has-action {position:relative}
.photo-has-action > figcaption {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;
  padding:8px 10px;white-space:normal;
}
.photo-has-action:is(.photo-layout--round,.photo-layout--portrait,.photo-layout--postcard) > figcaption {justify-content:center}
[data-photo-caption] {white-space:pre-wrap;overflow-wrap:anywhere}
.photo-caption--quiet [data-photo-caption] {font:400 .82em/1.5 system-ui,sans-serif}
.photo-caption--editorial [data-photo-caption] {font:600 1.1em/1.45 Georgia,serif}
.photo-caption--plate [data-photo-caption] {
  padding:.45em .7em;border-radius:6px;
  color:var(--bp-page-text,var(--page-ink,var(--bp-text,var(--ink))));
  background:var(--bp-page-bg,var(--page-bg,var(--bp-background,var(--bg))));
  font:600 .9em/1.45 system-ui,sans-serif
}
.photo-caption--plate figcaption [data-photo-caption] {display:block}
.photo-caption-align--start [data-photo-caption] {text-align:start}
.photo-caption-align--center [data-photo-caption] {text-align:center}
.photo-caption-align--end [data-photo-caption] {text-align:end}
figure[class*="photo-caption-align--"] [data-photo-caption] {display:block;inline-size:100%}
.be-photo-caption-controls {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px}
.photo-visitor-action {
  display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:4px 10px;
  border-radius:7px;color:var(--bp-text,var(--ink));background:var(--photo-paper,var(--bp-link,var(--card)));
  text-align:start;text-decoration:none;overflow-wrap:anywhere;
  font-family:system-ui,sans-serif;font-size:.86rem;font-weight:650;
}
a.photo-visitor-action::before {content:"";position:absolute;inset:0}
a.photo-visitor-action:is(:hover,:focus-visible) {color:var(--primary,var(--bp-primary))}
a.photo-visitor-action:focus-visible {outline:2px solid currentColor;outline-offset:-2px}
.photo-has-action:has(a.photo-visitor-action:focus-visible) {outline:2px solid currentColor;outline-offset:3px}
.be-photo-action-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px;margin-block-start:8px}
.be-photo-action-fields[hidden] {display:none}
