/* mobile-fix.css — load AFTER bootstrap.min.css and bss-overrides.css */

/* ---------- Safety nets ---------- */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

/* ---------- Header ---------- */

.site-header {
  height: auto;
}

.nav-wrap {
  height: auto;
  min-height: 78px;
  padding: 10px 0;
}

.brand img {
  height: 56px;
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- Hero photo ---------- */

.hero-gallery {
  display: block;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Photo boxes that hold real images ---------- */

.photo-placeholder:has(img)::before {
  display: none;
}

.tall {
  min-height: 0;
  background: #000;
}

.tall img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Event cards ---------- */

.event-card {
  width: auto;
}

.event-image {
  height: 220px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-body p.event-date {
  font-size: 17px;
}

/* ---------- Officers ---------- */

.officer img {
  width: 100%;
  max-width: 195px;
  height: auto;
}

/* ---------- Contact section ---------- */

.contact-section {
  padding: 80px 0;
  width: 100%;
  margin: 0;
}

.contact-grid {
  align-items: start;
}

.contact-section .contact-grid p {
  max-width: 520px;
}

.contact-form {
  background: #fff;
  color: #111;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.contact-form h3 {
  margin: 0 0 18px;
  font-size: 28px;
  color: var(--green);
}

.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #cfd8d3;
  border-radius: 3px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 14px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--red-dark);
}

/* ---------- Footer ---------- */

footer {
  padding: 50px 0 30px;
}

.footer-flag i:first-child {
  width: 40%;
}

/* ======================= TABLET / PHONE ======================= */

@media (max-width: 850px) {
  nav {
    top: 100%;
  }
}

@media (max-width: 850px) {
  nav a {
    padding: 14px 13px;
    font-size: 15px;
  }
}

@media (max-width: 850px) {
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 10px;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 0;
    padding-bottom: 90px;
  }
}

@media (max-width: 850px) {
  .hero-content {
    padding: 50px 0 40px;
  }
}

@media (max-width: 850px) {
  .hero-gallery {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 320px;
    margin: 40px auto 0;
  }
}

@media (max-width: 850px) {
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 850px) {
  .two-col {
    gap: 36px;
  }
}

@media (max-width: 850px) {
  .membership-inner, .contact-grid {
    gap: 36px;
  }
}

@media (max-width: 850px) {
  h2 {
    font-size: clamp(30px, 8vw, 44px);
  }
}

@media (max-width: 850px) {
  .event-image {
    height: 200px;
  }
}

@media (max-width: 850px) {
  .officer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .contact-section {
    padding: 60px 0;
  }
}

@media (max-width: 850px) {
  .contact-form {
    padding: 22px;
  }
}

/* ======================= SMALL PHONES ======================= */

@media (max-width: 480px) {
  h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }
}

@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-details {
    display: block;
  }
}

@media (max-width: 480px) {
  .brand strong {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 9px;
    letter-spacing: .12em;
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 46px;
  }
}

@media (max-width: 480px) {
  .officer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .officer {
    padding: 14px 6px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
}

