/* =========================================================
   ABOUT PAGE - RESPONSIVE ONLY
   Desktop styles stay in: assets/css/about-template.css
   Breakpoints:
   - Tablet / laptop: <= 991px
   - Mobile: <= 767px
   ========================================================= */

@media (max-width: 991px) {
  .about-template-heading {
    max-width: 760px;
    margin-bottom: 28px;
  }

  .about-template-2 .about-layout-sidebar,
  .about-template-5 .about-stats-hero,
  .about-newsletter {
    grid-template-columns: 1fr;
  }

  .about-team-grid,
  .about-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* About 4 - keep the editorial 2-column composition on tablet. */
  .about-template-4 {
    padding-top: 4px;
  }

  .about-template-4 .about4-shape {
    top: -46px;
    left: -34%;
    width: 116%;
    height: 650px;
  }

  .about-template-4 .about4-hero {
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    gap: clamp(24px, 4vw, 38px);
  }

  .about-template-4 .about4-hero-copy {
    padding-right: 0;
  }

  .about-template-4 .about4-hero-copy > h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 48px);
  }

  .about-template-4 .about4-intro {
    max-width: none;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  .about-template-4 .about4-story {
    margin-top: 56px;
  }

  .about-template-4 .about4-story-content {
    column-gap: 30px;
    font-size: 14px;
    line-height: 1.62;
  }

  .about-template-4 .about4-story-content > h2,
  .about-template-4 .about4-story-content > h3 {
    margin-bottom: 20px;
    font-size: clamp(32px, 5vw, 46px);
  }

  .about-template-4 .about4-story-content > h3 {
    font-size: clamp(26px, 4vw, 36px);
  }

  .about-template-4 .about4-gallery {
    gap: 16px;
    margin-top: 42px;
  }
}

@media (max-width: 767px) {
  .about-template-heading {
    margin-bottom: 22px;
  }

  .about-template-heading > h1,
  .about-layout-main > h1,
  .about-company-copy > h1,
  .about-stats-hero h1 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .about-template-lead,
  .about-template-content,
  .about-template-content p,
  .about-template-content li {
    font-size: 14px;
    line-height: 1.65;
  }

  .about-alternating-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .about-alternating-item:nth-child(even) .about-alternating-photo {
    order: initial;
  }

  .about-template-4 .about-company-panel,
  .about-template-5 .about-stats-hero {
    padding: 20px;
  }

  .about-team-grid,
  .about-testimonial-grid,
  .about-counter-grid,
  .about-newsletter-form {
    grid-template-columns: 1fr;
  }

  /* =======================================================
     ABOUT 4 MOBILE
     Target: preserve the reference layout instead of stacking
     everything vertically. Hero stays image + copy side-by-side,
     story remains two compact editorial columns, gallery stays 3-up.
     ======================================================= */
  .about-template-4 {
    padding: 0 0 4px;
    overflow: hidden;
  }

  .about-template-4 .about4-shape {
    top: -18px;
    left: -37%;
    width: 121%;
    height: 410px;
    border-radius: 0 54% 54% 0;
  }

  .about-template-4 .about4-hero {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    align-items: start;
    gap: clamp(13px, 4vw, 20px);
  }

  .about-template-4 .about4-cover {
    min-height: 0;
  }

  .about-template-4 .about4-cover img {
    aspect-ratio: 0.94 / 1;
    object-fit: cover;
  }

  .about-template-4 .about4-hero-copy {
    align-self: center;
    padding: 6px 0 0;
  }

  .about-template-4 .about4-hero-copy > h1 {
    margin: 0 0 10px;
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.08;
    letter-spacing: -.02em;
  }

  .about-template-4 .about4-intro {
    padding-left: 10px;
    border-left-width: 1px;
    font-size: clamp(9px, 2.55vw, 11px);
    line-height: 1.45;
  }

  .about-template-4 .about4-intro p,
  .about-template-4 .about4-intro li {
    margin-bottom: 7px;
  }

  .about-template-4 .about4-story {
    margin-top: clamp(34px, 9vw, 46px);
  }

  .about-template-4 .about4-story-content {
    column-count: 2;
    column-gap: clamp(14px, 4vw, 20px);
    font-size: clamp(8px, 2.25vw, 10px);
    line-height: 1.5;
  }

  .about-template-4 .about4-story-content > h2,
  .about-template-4 .about4-story-content > h3 {
    margin: 0 0 14px;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
  }

  .about-template-4 .about4-story-content > h3 {
    font-size: clamp(22px, 6vw, 29px);
  }

  .about-template-4 .about4-story-content p,
  .about-template-4 .about4-story-content li {
    margin-bottom: 8px;
  }

  .about-template-4 .about4-story-content ul,
  .about-template-4 .about4-story-content ol {
    padding-left: 14px;
  }

  .about-template-4 .about4-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2.5vw, 12px);
    margin-top: clamp(26px, 7vw, 34px);
  }

  .about-template-4 .about4-gallery-item img {
    aspect-ratio: 3 / 4;
  }
}

/* =========================================================
   ABOUT 4 - FINAL MOBILE STACK FIX
   2026-09-28
   The previous compact two-column mobile layout squeezed text.
   This override uses a readable one-column mobile composition.
   ========================================================= */
@media (max-width: 767px) {
  .about-template-4 {
    width: 100%;
    max-width: 100%;
    padding: 4px 0 18px;
    overflow: hidden;
  }

  .about-template-4 .about4-shape {
    top: -28px;
    left: -42%;
    width: 132%;
    height: 470px;
    border-radius: 0 52% 52% 0;
  }

  .about-template-4 .about4-hero {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .about-template-4 .about4-hero-media,
  .about-template-4 .about4-hero-copy {
    width: 100%;
    min-width: 0;
  }

  .about-template-4 .about4-cover {
    width: 100%;
    min-height: 0;
    border-radius: 8px;
  }

  .about-template-4 .about4-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: center;
  }

  .about-template-4 .about4-hero-copy {
    align-self: stretch;
    padding: 0;
  }

  .about-template-4 .about4-hero-copy > h1 {
    width: 100%;
    margin: 0 0 12px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.12;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
  }

  .about-template-4 .about4-intro {
    width: 100%;
    max-width: none;
    padding-left: 14px;
    border-left-width: 2px;
    font-size: 14px;
    line-height: 1.65;
  }

  .about-template-4 .about4-intro p,
  .about-template-4 .about4-intro li {
    margin-bottom: 10px;
    font-size: inherit;
    line-height: inherit;
  }

  .about-template-4 .about4-story {
    width: 100%;
    margin-top: 34px;
  }

  .about-template-4 .about4-story-content {
    width: 100%;
    column-count: 1;
    column-gap: 0;
    font-size: 14px;
    line-height: 1.68;
  }

  .about-template-4 .about4-story-content > h2,
  .about-template-4 .about4-story-content > h3 {
    margin: 0 0 16px;
    font-size: clamp(26px, 7.5vw, 33px);
    line-height: 1.15;
  }

  .about-template-4 .about4-story-content > h3 {
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .about-template-4 .about4-story-content p,
  .about-template-4 .about4-story-content li {
    margin-bottom: 11px;
    font-size: inherit;
    line-height: inherit;
    break-inside: auto;
  }

  .about-template-4 .about4-story-content ul,
  .about-template-4 .about4-story-content ol {
    padding-left: 18px;
  }

  .about-template-4 .about4-story-content img,
  .about-template-4 .about4-story-content iframe,
  .about-template-4 .about4-story-content video,
  .about-template-4 .about4-story-content table {
    width: auto;
    max-width: 100%;
  }

  .about-template-4 .about4-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .about-template-4 .about4-gallery-item img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 420px) {
  .about-template-4 .about4-gallery {
    grid-template-columns: 1fr;
  }

  .about-template-4 .about4-cover img {
    aspect-ratio: 4 / 3;
  }
}
