/* Libra editorial photography, composed over the existing dark surfaces. */
[data-photo] {
  --photo-direction: to right;
  --photo-focus: 50% 53%;
  --photo-strong: color-mix(in srgb, var(--bg) 97%, transparent);
  --photo-mid: color-mix(in srgb, var(--bg) 78%, transparent);
  --photo-edge: color-mix(in srgb, var(--bg) 57%, transparent);
  position: relative;
  isolation: isolate;
}

[data-photo]:dir(rtl) { --photo-direction: to left; }
[data-photo="dubai-palm"] { --photo-focus: 56% 48%; }
[data-photo="bangkok-river"] { --photo-focus: 62% 56%; }
[data-photo="jet-dusk"] { --photo-focus: 63% 55%; }
.page-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-photo img {
  display: block;
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
  object-position: var(--photo-focus);
}
.page-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, transparent 26%),
    linear-gradient(var(--photo-direction), var(--bg) 0%, var(--photo-strong) 24%, var(--photo-mid) 58%, var(--photo-mid) 85%, var(--photo-edge) 100%);
}

.hallmark-page main [data-photo] :is(.aviation-service-index, .jet-brief, .jet-scope, .dossier-lede, .emblem-stage) {
  background: transparent;
}
body.hallmark-home .heli-feature[data-photo] .heli-feature-grid {
  background: transparent;
}
.hallmark-page [data-photo].bkk > .container {
  padding-block-start: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 768px) {
  .page-photo::after {
    background: linear-gradient(0deg, var(--bg) 0%, var(--photo-mid) 27%, var(--photo-mid) 82%, var(--photo-edge));
  }
}

@media (forced-colors: active) {
  .page-photo { display: none; }
}
