/* Reset / base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Custom font (keep your case-sensitive path) */
@font-face {
  font-family: 'BubbleShake';
  src: url('../Fonts/ShakeBubbleDemo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Make all images fluid */
img { display: block; max-width: 100%; height: auto; }

/* Header image: scales down on phones, capped on desktop */
.site-header-img {
  width: 100%;
  max-height: 30vh;    /* keeps it from being too tall on small screens */
  max-width: 1150px;   /* keeps your desktop look */
  margin: 0 auto;
}
@media (max-width: 480px) {
  .site-header-img {
    max-height: 28vh;     /* keep it from eating the whole screen */
    object-fit: contain;  /* show entire logo */
  }
}

/* ========= NAV: full-width pink bar, centered links, perfect wrap ========= */
nav.nav-banner {
  width: 100%;
  background-color: #ff7aad;      /* pink bar */
}

/* Center the row of links; allow wrapping on small screens */
.nav-list {
  display: flex;
  flex-wrap: wrap;                 /* lets items wrap cleanly on phones */
  justify-content: center;         /* center the whole row */
  align-items: center;
  gap: 0.5rem 1rem;                /* row/column gap */
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.75rem;         /* controls bar height/padding */
}

/* Each item keeps its text centered, even when it wraps */
.nav-list li {
  display: flex;                   /* enables centering of the anchor */
  align-items: center;
  justify-content: center;
  text-align: center;              /* IMPORTANT: centers multi-line labels */
}

/* Link styling */
.nav-list a {
  display: inline-block;           /* keeps text-align working as expected */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .45rem .7rem;
  border-radius: 6px;
  font-family: 'BubbleShake', Fantasy, system-ui, sans-serif;
  letter-spacing: .5px;
  font-size: clamp(13px, 3.3vw, 18px);
  line-height: 1.15;               /* tighter line height looks better on wrap */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover/active */
.nav-list a:hover,
.nav-list a.active {
  background-color: rgba(255, 255, 255, 0.22);
}

/* Optional: slightly reduce spacing on very small phones */
@media (max-width: 380px) {
  .nav-list { gap: 0.4rem 0.6rem; padding: 0.5rem 0.5rem; }
  .nav-list a { padding: .4rem .55rem; }
}

header {
  margin-bottom: 0;  /* no gap between header and nav */
}

/* Main content area */
main {
  width: 100%;
  max-width: 800px;
  margin: 1.25rem auto 2rem;
  padding: 0 1rem;
}

.PageHeaders {
  text-align: center;
  color: #000000b4;
  text-shadow: 0 0 3px rgba(0,0,0,.67);
  letter-spacing: 1px;
  font-family: 'BubbleShake', Fantasy, system-ui, sans-serif;
  margin-bottom: .6rem;
}
#mission { text-align: center; }
#mission h2 { font-size: clamp(20px, 5vw, 28px); margin-bottom: .25rem; }
#mission p  { font-size: clamp(15px, 4.2vw, 18px); }

/* Contact form iframes (other pages) */
main iframe { max-width: 100%; width: 100%; border: none; }

/* Footer */
footer { text-align: center; padding: 1rem 0; margin-top: 2rem; }


/* Edge-to-edge on small phones, a bit narrower on desktop */
@media (max-width: 480px)  { nav.nav-banner { width: 100vw; } }  /* full bleed on mobile */
@media (min-width: 1024px) { nav.nav-banner { width: 100%;   } }  /* tasteful margins on desktop */

/* Container to align button to the right */
.request-box-container {
  display: flex;
  justify-content: flex-end;
  margin: 1.5rem auto;
  max-width: 800px; /* match your main content width */
  padding: 0 1rem;
}

/* Button styling */
.request-box-button {
  background-color: #ff4081; /* pink color */
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  font-family: inherit;
  transition: background-color 0.3s ease;
}

.request-box-button:hover {
  background-color: #e91e63;
}

/* ---- Alternating mission rows (Grid = bulletproof on Safari) ---- */
.mission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two equal columns */
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Swap columns for alternating layout */
.mission-row.reverse .mission-image { order: 2; }
.mission-row.reverse .mission-text  { order: 1; }

/* Uniform image sizing */
.mission-image {
  /* Keeps all images the same proportion regardless of source size */
  aspect-ratio: 4 / 3;              /* change to 16/9 if you prefer */
}
.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* crops to fill the box evenly */
  border-radius: 10px;
  display: block;
}

/* Text column */
.mission-text .PageHeaders { text-align: left; }
.mission-text p { font-size: clamp(15px, 1.8vw, 18px); line-height: 1.55; color: #222; }

/* Give the Request button some breathing room after the rows */
.request-box-container { margin-top: 1rem; }

/* Board grid */
.team-grid {
  list-style: none;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr)); /* 2 per row */
  gap: 24px;
}

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }          /* stack on mobile */
}

.team-card figure { margin: 0; }

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;          /* consistent portrait crop (change to 1/1 for square) */
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f3;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* uniform size; crops gently to fill */
  display: block;
}

figcaption {
  text-align: center;
  margin-top: 0.6rem;
}

.team-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.team-role {
  color: #444;
  font-size: 0.95rem;
}

/* Party History gallery — 2-wide grid like the About page */
.gallery-grid {
  list-style: none !important;     /* kill bullets */
  padding-left: 0 !important;      /* remove left indent */
  margin: 1.5rem auto 2rem;
  max-width: 1100px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr));  /* 2 per row */
  gap: 24px;
}

.gallery-grid li,
.gallery-grid .card {              /* be extra sure no markers show */
  list-style: none !important;
  margin: 0;
}

.gallery-grid .ph {
  width: 100%;
  aspect-ratio: 4 / 3;             /* consistent tile size */
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* nice crop */
  display: block;
}

/* Stack to 1-wide on phones */
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
