/* ========== Kolibri — About + Contact Page (light theme, mobile image fix) ========== */
/* Base.css is already loaded. This file only adds layout and team-specific rules. */

/* --- Team list layout --- */
.team-list {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
}

.team-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* --- Team photos (desktop: portrait 3:4, neat fill) --- */
.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;          /* more natural portrait rectangle */
  border-radius: 12px;
  object-fit: cover;            /* fills the frame with minimal crop due to ratio */
  object-position: center top;  /* bias towards faces */
  background: var(--card);
  display: block;
}

/* --- Text --- */
.team-body h3 {
  font-weight: 800;
  margin-bottom: .25rem;
  font-size: 1.05rem;
}

.role {
  color: var(--muted);
  margin-bottom: .5rem;
}

.contact {
  font-size: .98rem;
}

.contact span {
  display: inline-block;
  margin-right: .75rem;
}

/* --- Email link styling (modern lilac underline) --- */
.contact a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color .2s ease;
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--lilac);
  opacity: .6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease, opacity .25s ease;
}

.contact a:hover,
.contact a:focus {
  color: var(--text);
}

.contact a:hover::after,
.contact a:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Prevent visited links from turning purple */
.contact a:visited {
  color: var(--text);
}

/* Keyboard focus ring for accessibility */
.contact a:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Mobile adjustments (Option A: full image visible) --- */
@media (max-width: 900px) {
  .team-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-photo {
    height: auto;               /* allow full image height */
    width: 100%;
    object-fit: contain;        /* show entire photo (no crop) */
    object-position: center;
    aspect-ratio: 4 / 3;        /* slightly wider on mobile for balance */
    max-height: 340px;          /* prevent overly tall images */
  }

  /* Stack contact details vertically */
  .contact span {
    display: block;
    margin-right: 0;
    margin-bottom: .25rem;
  }
}

/* --- Team heading above leader cards --- */
.team-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 2rem 0 1.5rem;
  color: var(--text);
  position: relative;
}

/* soft underline accent */
.team-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--lilac);
  border-radius: 2px;
  opacity: 0.8;
}

/* ========== Om-oss sections: TOP-ALIGN + NATURAL-ASYNC IMAGES (no crop) ========== */
/* This overrides base.css only on pages that load this file (About + Contact). 
   Contact page doesn't use .section/.figure, so it's safe. */

/* Align the two-column section content to the top */
.section {
  align-items: start;
}

/* Let figures size to their content; remove any forced aspect ratio */
.figure {
  /* keep your border/radius/shadow from base.css; just ensure no fixed aspect */
  aspect-ratio: auto;        /* neutralizes any prior aspect-ratio */
}

/* Images: full width, natural height (portrait stays portrait, no crop) */
.figure img {
  display: block;
  width: 100%;
  height: auto;              /* critical: no fixed height */
  /* no object-fit here (prevents crop); no aspect-ratio here */
}

/* Optional desktop guardrail so a very tall portrait doesn't dominate */
@media (min-width: 901px) {
  .figure img {
    max-height: 560px;       /* tweak if you want a shorter/taller max */
  }
}

/* Mobile already stacks via base.css; no extra needed */
/* Left-align the subheading before leader cards */
.team-heading.left {
  text-align: left;
  margin-left: 0;
}

.team-heading.left::after {
  left: 0;
  transform: none;
}
.figure img[src$="Analoge_emmaJensen_dnt24_WEB-20.jpg"]{
  object-position: top !important;
}