﻿/* STEP 46 — RESPONSIVE SAFEGUARDS */

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* Keep common grid layouts inside the viewport */
.sub-grid,
.travel-grid,
.gallery-grid,
.involve-options,
.blog-grid {
  min-width: 0;
}

.sub-grid > *,
.travel-grid > *,
.gallery-grid > *,
.involve-options > *,
.blog-grid > * {
  min-width: 0;
}

/* Improve heading wrapping */
h1, h2, h3 {
  overflow-wrap: break-word;
}

/* Comfortable mobile forms */
input, select, textarea {
  max-width: 100%;
}

@media (max-width: 700px) {
  input, select, textarea {
    font-size: 16px;
  }

  .sub-hero,
  .blog-hero,
  .gallery-hero,
  .involve-hero,
  .sponsor-hero,
  .donate-hero {
    background-position: center;
  }

  .sub-hero h1,
  .blog-hero h1,
  .gallery-hero h1,
  .involve-hero h1,
  .sponsor-hero h1,
  .donate-hero h1 {
    font-size: clamp(36px, 10vw, 58px);
    line-height: 1.12;
  }

  .sub-hero p,
  .blog-hero p,
  .gallery-hero p,
  .involve-hero p,
  .sponsor-hero p,
  .donate-hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .sub-grid,
  .travel-grid,
  .gallery-grid,
  .involve-options,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
