/* Card photo (1.37.48): a Group with the class `palladio-card-foto` whose first block is an Image. The photo fills the
   group (cover) under the night bordeaux veil of the hub 59 bands (1.37.31): 35% on the left, 70% from 38% of the
   width on. Used by the card bands of hub 59 (`palladio-az-card-top`, line drawing over the veil, band height in
   palladio-aziende.css) and by the course cards of page 57 (`palladio-numbered-card`, whole card, text colors and
   the extra veil on the text in palladio-numbered.css). A group whose Image block is empty is unchanged.
   Loaded only on pages that use the class, and in the editor.
   Hooks: --palladio-foto-pos (object-position; hub 59 keeps its --az-foto-pos, default center) and
   --palladio-card-foto-velo (extra veil layers drawn over the base one, none by default). */
.palladio-card-foto:has(> figure.wp-block-image:first-child img[src]) {
  background-color: var(--wp--preset--color--palladio-bordeaux-deep, #4a141b); background-image: none;
}
.palladio-card-foto > figure.wp-block-image:first-child { position: absolute; inset: 0; z-index: 0; margin: 0; }
.palladio-card-foto > figure.wp-block-image:first-child img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: var(--palladio-foto-pos, var(--az-foto-pos, 50% 50%));
}
.palladio-card-foto:has(> figure.wp-block-image:first-child img[src])::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--palladio-card-foto-velo, none), linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--palladio-bordeaux-deep, #4a141b) 35%, transparent), color-mix(in srgb, var(--wp--preset--color--palladio-bordeaux-deep, #4a141b) 70%, transparent) 38%);
}
/* Line drawing (hub 59) over the veil: lighter gold with a thin dark shadow, 3.49:1 over a white photo. */
.palladio-card-foto:has(> figure.wp-block-image:first-child img[src]) .palladio-az-drawing {
  z-index: 2; color: #e8c370; stroke-width: 1.7;
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--wp--preset--color--palladio-ink-warm, #2a211c) 45%, transparent));
}
