/* predictable hidden behaviour */
[hidden] { display: none !important; }

/* ===== Auto-scroll gallery strip ===== */
.scroll-box { position: relative; margin-top: 1rem; }

.scroll-box-viewport {
  overflow: hidden;                /* hide native scrollbar for the auto-scroller */
  white-space: nowrap;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background-color: var(--overlay-color);
  padding: .5rem .75rem;
}

.scroll-box-inner {
  display: inline-flex;            /* horizontal row of images */
  gap: 10px;
  will-change: transform;
}

.scroll-image {
  height: 240px;
  width: auto;
  border-radius: 8px;
  border: 0px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  cursor: zoom-in;
  object-fit: cover;
  display: block;
}

/* Left/right arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: rgba(30,20,15,.6);
  color: var(--primary-color);
  font-size: 22px; line-height: 30px;
  text-align: center;
  cursor: pointer; z-index: 2; z-index: 3;
}
.scroll-arrow.left  { left: 6px; }
.scroll-arrow.right { right: 6px; }
.scroll-arrow:hover { background: rgba(30,20,15,.8); }

/* Fallback note */
.gallery-fallback { text-align: center; color: var(--accent-color); margin-top: .75rem; }

/* ===== Enlarged overlay ===== */
.enlarged-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85);
  display: grid; place-items: center;
}
.enlarged-overlay img {
  max-width: 92vw; max-height: 82vh;
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,.8);
  background: #000;
}
.close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: rgba(30,20,15,.6);
  color: var(--primary-color);
  font-size: 26px; line-height: 34px;
  cursor: pointer;
}


/* --- Our story: paragraph rhythm & readable line height --- */
#our-story p {
  margin: 0 0 1.1rem;      /* increased paragraph spacing */
  line-height: 1.75;       /* more comfortable reading */
}
#our-story p:last-child {
  margin-bottom: 0;
}

/* --- Our story: links match body text, with subtle hover --- */
#our-story a,
#our-story a:visited {
  color: var(--primary-color);            /* same white as body text */
  text-decoration: underline;
  text-underline-offset: 2px;
}
#our-story a:hover,
#our-story a:focus {
  color: var(--accent-color);             /* subtle contrast on hover/focus */
  text-decoration-thickness: 2px;
}
#our-story a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* --- Leaders grid (responsive cards) --- */
#leaders .leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.leader-card,
.leader-link {
  display: block;
  background: var(--overlay-color);
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition);
}
.leader-card:hover,
.leader-link:hover,
.leader-card:focus-within,
.leader-link:focus {
  transform: translateY(-2px);
}
.leader-card img,
.leader-link img {
  width: 100%;
  height: 280px;
  object-fit: cover;        /* ensures consistent scaling */
  border-radius: 8px;
  display: block;
}
.leader-card figcaption,
.leader-link .leader-caption {
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
}
