/* S.I.F. Skydning – Afdelinger: fotohero som på afdelingssiderne.
   Billedet (assets/img/afdelinger/tre-baase.jpg) viser de tre skytter fra Ungdom, Pistol og Riffel i hver sin bås:
   tre afdelinger, én klub. Billedet går op bag bjælken; flad havblå scrim, så den hvide tekst kan læses. */
.af-hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  background: var(--dark, #13262d); color: #edf2f3;
  padding: 120px 0 clamp(40px, 7vh, 80px);
}
.af-hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: #13262d url(../img/afdelinger/tre-baase-480.jpg) 50% 40% / cover no-repeat; /* lille forhåndsvisning */
}
.af-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.af-scrim {
  position: absolute; inset: 0;
  /* Teksten står til venstre: tæt slør dér, let over skytterne i midten og til højre */
  background:
    linear-gradient(90deg, rgba(19, 38, 45, 0.9) 0%, rgba(19, 38, 45, 0.74) 34%, rgba(19, 38, 45, 0.22) 62%, rgba(19, 38, 45, 0.12) 100%),
    linear-gradient(to top, rgba(19, 38, 45, 0.55) 0%, rgba(19, 38, 45, 0) 30%),
    linear-gradient(to bottom, rgba(19, 38, 45, 0.35) 0%, rgba(19, 38, 45, 0) 18%);
}
.af-hero h1 { color: #fff; font-size: clamp(40px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; max-width: 14ch; }
.af-hero .indledning { color: rgba(237, 242, 243, 0.86); margin-top: 22px; max-width: 46ch; }
.af-hero .handlinger { margin-top: 28px; }
.af-hero .knap { background: #fff; color: var(--ink); border-color: #fff; }
.af-hero .mere { color: #fff; }
@media (max-width: 860px) {
  .af-hero { padding-top: 104px; padding-bottom: 112px; } /* fri af mobilens dock nederst */
  /* Telefon: billedet fylder den øverste del, så de tre skytter står over teksten i stedet for bag den */
  .af-hero-bg { background-position: 50% 0; background-size: auto 46%; background-color: #13262d; }
  .af-hero-bg img { height: 46%; object-position: 50% 72%; }
  .af-scrim { background: linear-gradient(to bottom, rgba(19, 38, 45, 0.3) 0%, rgba(19, 38, 45, 0.05) 18%, rgba(19, 38, 45, 0.15) 32%, rgba(19, 38, 45, 0.92) 46%, #13262d 56%); }
}
