/* V50: original backdrop, smaller asymmetric cuts and one quiet edge highlight. */
.fly-v44-frame {
  --photo-cut: 20px;
  display: block; position: relative; isolation: isolate; width: 100%; height: 100%;
  min-height: 0; aspect-ratio: 1.5; box-sizing: border-box;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  clip-path: polygon(0 0,calc(100% - var(--photo-cut)) 0,100% var(--photo-cut),100% 100%,0 100%);
}
.fly-v44-frame::before,.fly-v44-frame::after { content: none; display: none; }
.fly-v44-frame .fly-v44-edge {
  display:block;position:absolute;z-index:2;top:0;right:0;
  width:var(--photo-cut);height:var(--photo-cut);pointer-events:none;
}
.fly-v44-edge::before {
  content:'';position:absolute;top:0;left:0;width:calc(var(--photo-cut) * 1.414214);
  height:1px;background:#8f8678;transform:rotate(45deg);transform-origin:0 0;
}
.fly-v44-photo {
  display: block; position: absolute; inset: 0; overflow: hidden;
  border: 0; border-radius: 0; background: #030405;
}
body .fly-v44-photo img.fly-v44-original {
  display: block; box-sizing: border-box; border-radius: 0 !important;
  background: transparent !important; filter: none !important; mix-blend-mode: normal !important;
}
.fly-v44-frame.is-document .fly-v44-photo {
  top: 50%; bottom: auto; height: auto; aspect-ratio: 1050/430; transform: translateY(-50%);
}
.fly-v44-frame.is-document { background: #030405; }

/* A2125 sheet: only the clipped wordmark in the photographic window is covered.
   Source-sheet coordinates x250..460/y110..196; the car begins farther right.
   The original document and native full-sheet gallery remain untouched. */
.fly-v44-frame.is-document[data-fly-frame="porsche-a2125-ficha.webp"]::after {
  content:'';display:block;position:absolute;z-index:3;top:50%;left:-1px;
  width:calc(20% + 2px);height:auto;aspect-ratio:1050/430;
  transform:translateY(calc(-250% - 1px));background:#000;pointer-events:none;
}

/* Opposite corners and the existing stagger create the family asymmetry. */
body.fly-v42-home .fly-v42-family figure { background: transparent; overflow: visible; }
.fly-v42-family:first-child .fly-v44-frame { --photo-cut: 26px; }
.fly-v42-family:nth-child(2) .fly-v44-frame {
  --photo-cut: 20px;
  clip-path: polygon(0 0,100% 0,100% 100%,var(--photo-cut) 100%,0 calc(100% - var(--photo-cut)));
}
.fly-v42-family:nth-child(2) .fly-v44-edge,.fly-v42-story .fly-v44-edge { top:auto;right:auto;bottom:0;left:0; }

/* Native wrappers retain complete photos without a second document crop. */
body.fly-v42 .fly-v35-card-window:has(.fly-v44-frame) { display: contents !important; clip-path: none !important; }
body.fly-v42 .fly-product-card-media:has(.fly-v44-frame),
body.fly-v42 .fly-v30-model-media:has(.fly-v44-frame) { clip-path: none !important; background: transparent !important; overflow: visible !important; }
body.fly-v42 .fly-product-card-media:has(.fly-v44-frame)::before,
body.fly-v42 .fly-product-card-media:has(.fly-v44-frame)::after { display: none !important; }
body.fly-v42-home .fly-v30-model-media:has(.fly-v44-frame) { width: 100%; height: 100%; max-width: none; }
body.fly-v42-home .fly-premiere .fly-v30-model-frame .fly-v35-document-photo:has(.fly-v44-frame) { height: 100% !important; aspect-ratio: auto !important; max-width: none !important; clip-path: none !important; }
body.fly-v42-home .fly-v30-model-frame:has(.fly-v44-frame) { background: transparent; overflow: visible; }
.fly-v30-model .fly-v44-frame { --photo-cut: 16px; }
body.fly-v42 .fly-product-card-media>.fly-v44-frame { width: 100%; }
.fly-v42-story .fly-v44-frame {
  --photo-cut: 22px; aspect-ratio: 1.5; height: auto;
  clip-path: polygon(0 0,100% 0,100% 100%,var(--photo-cut) 100%,0 calc(100% - var(--photo-cut)));
}
.fly-v42-detail-stage .fly-v44-frame { --photo-cut: 20px; aspect-ratio: 1.5; height: auto; }

/* Native gallery and original-image lightbox; no photographic mount. */
body.fly-premiere-site.fly-product-page.woocommerce div.product div.images .woocommerce-product-gallery__image:has(.fly-v44-frame) { min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; background: transparent !important; clip-path: none !important; box-shadow: none !important; }
body.fly-premiere-site.fly-product-page.woocommerce div.product div.images .woocommerce-product-gallery__image>a:has(.fly-v44-frame) { position: static !important; inset: auto !important; width: 100%; height: auto !important; display: block !important; transform: none !important; aspect-ratio: auto !important; }
body.fly-v42 .woocommerce-product-gallery__image .fly-v44-frame {
  --photo-cut: 18px; height: auto; aspect-ratio: 1.5;
  clip-path: polygon(0 0,100% 0,100% calc(100% - var(--photo-cut)),calc(100% - var(--photo-cut)) 100%,0 100%);
}
body.fly-v42 .woocommerce-product-gallery__image .fly-v44-edge { top:auto;right:0;bottom:0;left:auto; }
body.fly-v42 .woocommerce-product-gallery__image .fly-v44-edge::before { left:auto;right:0;transform:rotate(-45deg);transform-origin:100% 0; }
body.fly-v42 .woocommerce-product-gallery__image:has(.fly-v44-frame)>.zoomImg { display: none !important; }
body.fly-premiere-site.fly-product-page .product.fly-product-v15>.fly-v31-gallery-boundary:has(.fly-v44-frame),
body.fly-premiere-site.fly-product-page .product.fly-product-v15 .fly-v31-gallery-shell:has(.fly-v44-frame),
body.fly-premiere-site.fly-product-page .product.fly-product-v15 .fly-v31-gallery-shell>.images:has(.fly-v44-frame) { background: #f6f3ed !important; }
body.fly-premiere-site.fly-product-page .fly-v31-gallery-boundary:has(.fly-v44-frame) :is(.fly-v15-gallery-tools,.fly-v31-gallery-note) { color: #625f58; }
body.fly-premiere-site.fly-product-page .fly-v31-gallery-boundary:has(.fly-v44-frame) :is(.fly-v15-gallery-tools,.fly-v31-gallery-note,.fly-v32-source) a { color: #1d1c1a !important; border-color: #d3cec5; }

@media (max-width: 680px) {
  .fly-v44-frame { --photo-cut: 14px; }
  .fly-v42-family:first-child .fly-v44-frame { --photo-cut: 18px; }
  .fly-v42-family:nth-child(2) .fly-v44-frame { --photo-cut: 14px; }
  .fly-v42-story .fly-v44-frame,.fly-v42-detail-stage .fly-v44-frame { --photo-cut: 16px; }
  body.fly-v42 .woocommerce-product-gallery__image .fly-v44-frame { --photo-cut: 14px; }
}
