/* Source-preserving photographic direction. All selectors are opt-in and scoped. */
body[data-fl-photo-release] .fl-photo-image {
  object-position: var(--fl-photo-x,50%) var(--fl-photo-y,50%);
  filter: none;
}
body[data-fl-photo-release] .card-photo > img.fl-photo-card {
  object-fit: cover !important;
  object-position: var(--fl-photo-x) var(--fl-photo-y) !important;
  transform: none !important;
  filter: none !important;
}
body[data-fl-photo-release] .fl-campus-hero {
  background: var(--fl-paper,#f7f6f1);
  border: 1px solid var(--fl-line,#d7e0dc);
  border-radius: 4px;
  overflow: hidden;
}
body[data-fl-photo-release] .fl-campus-hero img.fl-photo-hero {
  width: 100%; height: auto; min-height: 0; max-height: none;
  aspect-ratio: 2.15; object-fit: cover;
  object-position: var(--fl-photo-x) var(--fl-photo-y);
}
body[data-fl-photo-release] .fl-campus-hero figcaption {
  background: var(--fl-paper,#f7f6f1); color: var(--fl-ink,#12313b);
  padding: 12px 16px; font-size: 13px; line-height: 1.55;
  border-top: 1px solid var(--fl-line,#d7e0dc);
}
body[data-fl-photo-release] .fl-campus-gallery {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(18px,2.4vw,30px); align-items: start;
}
body[data-fl-photo-release] .fl-campus-gallery .fl-campus-frame {
  min-width: 0; margin: 0; align-self: start; overflow: hidden;
  border: 1px solid var(--fl-line,#d7e0dc); border-radius: 4px;
  background: var(--fl-paper,#f7f6f1); box-shadow: none;
}
body[data-fl-photo-release] .fl-campus-gallery .fl-photo-gallery {
  display: block; width: 100%; height: auto; min-height: 0; max-height: none;
  aspect-ratio: var(--fl-photo-source-aspect); object-fit: contain;
  border: 0; border-radius: 0; transform: none;
  background: var(--fl-paper,#f7f6f1);
}
body[data-fl-photo-release] .fl-campus-gallery [data-fl-campus-format="panorama"] { grid-column: 1 / -1; }
body[data-fl-photo-release] .fl-campus-gallery [data-fl-campus-format="portrait"] .fl-photo-gallery {
  height: clamp(340px,46vw,560px); aspect-ratio: auto; object-fit: contain;
}
body[data-fl-photo-release] .fl-campus-gallery figcaption {
  margin: 0; padding: 13px 16px 15px;
  color: var(--fl-ink,#12313b); font-size: 14px; line-height: 1.6;
  border-top: 1px solid var(--fl-line,#d7e0dc); background: var(--fl-paper,#f7f6f1);
}
body[data-fl-photo-release] .fl-photo-open { display: block; position: relative; }
body[data-fl-photo-release] .fl-photo-open::after {
  content: "↗"; position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 32px; height: 32px;
  color: var(--fl-navy,#123b46); background: var(--fl-paper,#f7f6f1);
  border: 1px solid var(--fl-line,#d7e0dc); border-radius: 50%; pointer-events: none;
}
body[data-fl-photo-release] .fl-photo-open:focus-visible {
  outline: 3px solid var(--fl-jade,#1c6c60); outline-offset: 4px; z-index: 1;
}
/* The complete canvas stays intact; seals and wordmarks have different optical frames. */
body[data-fl-photo-release][data-editorial-page] .university-card .university-logo.fl-photo-logo,
body[data-fl-photo-release] .university-card .university-logo.fl-photo-logo {
  width: var(--fl-logo-card-w) !important; min-width: var(--fl-logo-card-w) !important;
  max-width: var(--fl-logo-card-w) !important; height: var(--fl-logo-card-h) !important;
  padding: var(--fl-logo-inset) !important; box-sizing: border-box; flex: none;
  object-fit: contain !important; object-position: center !important;
  border: 1px solid var(--fl-line,#d7e0dc) !important; border-radius: 3px !important;
  background: var(--fl-logo-surface) !important; box-shadow: none !important;
  filter: none !important; transform: none !important;
}
body[data-fl-photo-release][data-editorial-page="profile"] .profile-identity .university-logo.fl-photo-logo {
  width: var(--fl-logo-profile-w) !important; max-width: var(--fl-logo-profile-w) !important;
  min-width: 0 !important; height: var(--fl-logo-profile-h) !important; flex: none;
  padding: var(--fl-logo-inset) !important; box-sizing: border-box;
  object-fit: contain !important; object-position: center !important;
  background: var(--fl-logo-surface) !important; border: 1px solid var(--fl-line,#d7e0dc) !important;
  border-radius: 3px !important; filter: none !important; transform: none !important;
}
@media (max-width:760px) {
  body[data-fl-photo-release] .fl-photo-image {
    object-position: var(--fl-photo-mobile-x,var(--fl-photo-x)) var(--fl-photo-mobile-y,var(--fl-photo-y));
  }
  body[data-fl-photo-release] .card-photo > img.fl-photo-card,
  body[data-fl-photo-release] .fl-campus-hero img.fl-photo-hero {
    object-position: var(--fl-photo-mobile-x,var(--fl-photo-x)) var(--fl-photo-mobile-y,var(--fl-photo-y)) !important;
  }
  body[data-fl-photo-release] .fl-campus-hero img.fl-photo-hero { aspect-ratio: 2; }
  body[data-fl-photo-release] .fl-campus-gallery { grid-template-columns: minmax(0,1fr); gap: 22px; }
  body[data-fl-photo-release] .fl-campus-gallery [data-fl-campus-format="panorama"] { grid-column: auto; }
  body[data-fl-photo-release] .fl-campus-gallery [data-fl-campus-format="portrait"] .fl-photo-gallery { height: auto; max-height: 540px; }
}
@media (forced-colors:active) {
  body[data-fl-photo-release] :is(.fl-campus-frame,.fl-campus-hero,.fl-photo-open::after) { border-color: CanvasText; }
  body[data-fl-photo-release] .fl-photo-open:focus-visible { outline-color: Highlight; }
}
