/* The photograph, the captions and the cards keep their own edges at every width. */
.drive-home .drive-mottos { --quote-step: 0px; padding-bottom: 0; border-bottom: 0; }
.drive-home .drive-motto:nth-child(2) { position: static; top: auto; }
.drive-home .drive-motto { justify-content: flex-start; }
@media (min-width: 801px) {
  .drive-home .drive-motto small { margin-top: auto; }
}
.drive-home .drive-freedom-copy { background: transparent; }
.drive-home .drive-gallery::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(4 17 34 / .91), rgb(6 24 43 / .71) 32%, transparent 72%);
}
.drive-home .drive-gallery figure:last-child {
  border: 0; box-shadow: none; transform: none;
}
.drive-home .drive-gallery figure:only-child {
  inset: 0; width: 100%; height: 100%;
}
.drive-home .drive-gallery figure:only-child img { height: 100%; aspect-ratio: auto; }
.drive-home .drive-gallery figure:not(:first-child):not(:has(img[src]:not([src=""]))) { display: none; }
.drive-home .drive-gallery figure + figure { z-index: 1; }
/* Full-bleed photograph and adjoining navy introduction, including saved 5.6 pages. */
.drive-home .drive-school { padding: 0; background: var(--drive-navy); }
.drive-home .drive-school > .drive-school-layout { width: 100%; max-width: none; margin-inline: 0; background: var(--drive-navy); }

@media (min-width: 651px) {
  .sziti-drive .drive-why {
    --why-gap: clamp(1.5rem, 3vw, 2.8125rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--why-gap);
  }
  .sziti-drive .drive-why > :is(h1,h2,h3,h4,h5,h6) {
    grid-column: 1; min-width: 0; margin-inline: 0; overflow-wrap: break-word;
  }
  .sziti-drive .drive-why > p {
    grid-column: 2 / -1; min-width: 0; margin-inline: var(--why-intro-offset, 0px) 0;
  }
  .sziti-drive .drive-why > .drive-features {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    column-gap: var(--why-gap);
  }
}
.drive-home .drive-last-question {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: 1rem; text-align: center;
}
.drive-home .drive-last-question > :is(h1,h2,h3,p) {
  flex: 0 0 100%; max-width: none; text-align: center; margin-inline: 0;
}
.drive-home .drive-last-question > a { margin-inline: 0; }
.drive-home .drive-school-copy > p + p { margin-top: 1em; }
.drive-home .drive-reviews {
  padding-block: clamp(3rem,6vw,6rem);
  background: #f5f1e8; color: #112c49;
}
.drive-home .drive-reviews > :is(h2,h3) {
  color: #112c49; font: italic bold clamp(2.7rem,5vw,5rem)/1.05 "Times New Roman",Times,serif;
  margin: 0 0 clamp(1.5rem,3vw,2.75rem);
}
.drive-home .drive-review-list {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr));
  gap: clamp(1rem,2vw,1.85rem); align-items: stretch; grid-auto-rows: 1fr;
}
.drive-home .drive-review-list > article {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0;
  padding: clamp(1.25rem,2.1vw,2.25rem); border: 1px solid #dad4c8;
  border-radius: 4px 20px 4px 4px; background: #fffcf6; color: #142e49;
  box-shadow: 0 5px 18px #1c29450a; overflow-wrap: anywhere;
}
.drive-home .drive-review-list > article::before {
  content: ""; display: block; width: 2.5rem; height: .24rem;
  border-radius: 1rem; background: #c61024; margin-bottom: 1.1rem;
}
.drive-home .drive-review-list article > p:first-child {
  margin: 0; color: inherit; font-size: clamp(1.12rem,1.45vw,1.4rem); line-height: 1.5;
}
.drive-home .drive-review-list article > :nth-last-child(2) { margin-bottom: 1.15rem; }
.drive-home .drive-review-list article > p:last-child:not(:first-child) {
  padding-top: .8rem; margin: auto 0 0; border-top: 1px solid #ddd8ce;
  color: #203d5a; font-size: 1.07rem; line-height: 1.35; text-align: left;
}
.drive-footer .drive-footer-main > div:first-child:has(.drive-footer-logo) {
  display: flex; justify-content: center; align-items: center; grid-row: 1; min-width: 0;
}
.drive-footer .drive-footer-main .drive-footer-logo {
  display: block; margin: 0 auto; position: static; inset: auto; transform: none;
  width: auto; height: auto; max-width: 100%; max-height: 10rem; aspect-ratio: auto; object-fit: contain;
}
@media (max-width: 800px) {
  .drive-home .drive-freedom-copy { background: transparent; }
}
@media (max-width: 650px) {
  .drive-home .drive-gallery::after { background: linear-gradient(165deg,#05152be8, #071c348c 52%, transparent 85%); }
  .drive-footer .drive-footer-main .drive-footer-logo { max-height: 8rem; }
}

.drive-footer:has(> .drive-footer-photo) {
  position: relative; isolation: isolate; background-color: #061b34; color: #fff;
}
.drive-footer > .drive-footer-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%; z-index: -2; pointer-events: none;
}
/* Match the navy overlay on the application photograph. */
.drive-footer:has(> .drive-footer-photo)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg,#061b34 0%,#061b34ed 38%,#061b3499 100%);
  opacity: var(--drive-shade,.84);
}
.drive-footer:has(> .drive-footer-photo) > :is(.drive-footer-main,.drive-footer-bottom) {
  background: transparent; color: #fff; text-shadow: 0 1px 3px #031220;
}
.drive-footer .drive-footer-bottom :is(a,button) { color: inherit; }
.drive-footer .drive-footer-bottom:empty { display: none; }
.drive-footer .cookie-footer.drive-legal-links {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .4em 1.15em;
  width: auto; max-width: 100%; margin: 0; padding: 0; color: inherit; font: inherit;
}
.drive-footer .drive-legal-links > :is(button,a) {
  color: inherit; font-size: 1.1rem; line-height: 1.6; text-underline-offset: .16em;
}
.drive-footer .drive-legal-links > button { text-shadow: inherit; }
.drive-footer #sziti-cookie-status:empty { display: none; }
