/*
 * ATC vehicle photo galleries.
 * Shared by /small-mini-van-gallery/, /large-mini-van/ and /mini-bus-photo-gallery-mercedes-sprinter-van/.
 */

/* =========================================================
   VEHICLE PHOTO GALLERIES
   Scope: body.atc-vehicle-gallery-page and .atc-vg
   ========================================================= */

body.atc-vehicle-gallery-page .atc-secondary-page-banner {
  display: none !important;
}

body.atc-vehicle-gallery-page .main.prose .atc-vg h1::before,
body.atc-vehicle-gallery-page .main.prose .atc-vg h1::after,
body.atc-vehicle-gallery-page .main.prose .atc-vg h2::before,
body.atc-vehicle-gallery-page .main.prose .atc-vg h2::after,
body.atc-vehicle-gallery-page .main.prose .atc-vg p::before,
body.atc-vehicle-gallery-page .main.prose .atc-vg p::after {
  display: none !important;
  content: none !important;
}

.atc-vg {
  --atc-green: #14532d;
  --atc-green-dark: #0f3f22;
  --atc-green-light: #eef7f1;
  --atc-gold: #c7a76c;
  --atc-text: #26332b;
  --atc-muted: #66736b;
  --atc-border: #dfe8e2;
  --atc-white: #ffffff;

  position: relative;
  left: 50%;
  width: min(1320px, calc(100vw - 40px));
  max-width: none !important;
  margin: 40px 0 0;
  color: var(--atc-text);
  font-family: Lato, Arial, Helvetica, sans-serif;
  transform: translateX(-50%);
}

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

.atc-vg a {
  text-decoration: none;
}

.atc-vg img {
  max-width: 100%;
}

.atc-vg__hero,
.atc-vg__overview,
.atc-vg__gallery-section,
.atc-vg__details,
.atc-vg__cta,
.atc-vg__resource {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* Hero */
.atc-vg__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 570px;
  overflow: hidden;
  background: var(--atc-green);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 63, 34, 0.17);
}

.atc-vg__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 64px;
}

.atc-vg__eyebrow,
.atc-vg__section-label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.atc-vg__eyebrow {
  color: var(--atc-gold);
}

.atc-vg__section-label {
  color: var(--atc-green);
}

.atc-vg__hero h1 {
  max-width: 650px;
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: var(--atc-white) !important;
  font-size: clamp(42px, 5vw, 68px) !important;
  font-weight: 800 !important;
  line-height: 1.04 !important;
  letter-spacing: -1.5px;
  text-align: left !important;
}

.atc-vg__hero-text {
  max-width: 620px;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

.atc-vg__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.atc-vg__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.atc-vg__button:hover,
.atc-vg__button:focus-visible {
  transform: translateY(-2px);
}

.atc-vg__button--gold {
  color: #1f2c24 !important;
  background: var(--atc-gold);
  border-color: var(--atc-gold);
}

.atc-vg__button--gold:hover,
.atc-vg__button--gold:focus-visible {
  color: #17221b !important;
  background: #d4b97f;
  border-color: #d4b97f;
}

.atc-vg__button--outline {
  color: var(--atc-white) !important;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.atc-vg__button--outline:hover,
.atc-vg__button--outline:focus-visible {
  color: var(--atc-green) !important;
  background: var(--atc-white);
  border-color: var(--atc-white);
}

.atc-vg__button:focus-visible,
.atc-vg__gallery-card:focus-visible,
.atc-vg__text-link:focus-visible,
.atc-vg__internal-links a:focus-visible,
.atc-vg__resource a:focus-visible {
  outline: 3px solid var(--atc-gold);
  outline-offset: 3px;
}

.atc-vg__hero-image {
  min-height: 570px;
  overflow: hidden;
}

.atc-vg__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 570px;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
}

/* Overview */
.atc-vg__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 70px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.atc-vg__overview-content h2,
.atc-vg__section-heading h2,
.atc-vg__details-content h2,
.atc-vg__cta h2 {
  margin: 0 0 22px !important;
  padding: 0 !important;
  color: var(--atc-green) !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.7px;
}

.atc-vg__overview-content p,
.atc-vg__details-content p {
  margin: 0 0 18px !important;
  color: var(--atc-muted) !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}

.atc-vg__internal-links a,
.atc-vg__resource a {
  color: var(--atc-green) !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--atc-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.atc-vg__internal-links a:hover,
.atc-vg__resource a:hover {
  color: var(--atc-green-dark) !important;
}

.atc-vg__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: start;
}

.atc-vg__fact {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--atc-green-light);
  border: 1px solid var(--atc-border);
  border-radius: 14px;
}

.atc-vg__fact-number,
.atc-vg__fact-icon {
  display: block;
  margin-bottom: 10px;
  color: var(--atc-green);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.atc-vg__fact-label {
  color: var(--atc-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

/* Gallery */
.atc-vg__gallery-section {
  padding-top: 80px;
  padding-bottom: 90px;
  border-top: 1px solid var(--atc-border);
}

.atc-vg__section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.atc-vg__section-heading p {
  margin: 0 !important;
  color: var(--atc-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.atc-vg__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.atc-vg__gallery-card {
  display: block;
  overflow: hidden;
  color: var(--atc-text) !important;
  background: var(--atc-white);
  border: 1px solid var(--atc-border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(25, 57, 38, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.atc-vg__gallery-card:hover,
.atc-vg__gallery-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(199, 167, 108, 0.85);
  box-shadow: 0 18px 40px rgba(25, 57, 38, 0.14);
}

.atc-vg__gallery-card figure {
  margin: 0 !important;
}

.atc-vg__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eeea;
}

.atc-vg__image-wrap::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  content: "↗";
  color: var(--atc-white);
  background: rgba(20, 83, 45, 0.88);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.atc-vg__gallery-card:hover .atc-vg__image-wrap::after,
.atc-vg__gallery-card:focus-visible .atc-vg__image-wrap::after {
  opacity: 1;
  transform: translateY(0);
}

.atc-vg__gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.atc-vg__gallery-card:hover img,
.atc-vg__gallery-card:focus-visible img {
  transform: scale(1.045);
}

.atc-vg__gallery-card figcaption {
  padding: 18px 20px;
  color: var(--atc-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

/* Vehicle details */
.atc-vg__details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 70px;
  margin-bottom: 90px;
  padding: 60px;
  background: var(--atc-green-light);
  border: 1px solid var(--atc-border);
  border-radius: 20px;
}

.atc-vg__details-list {
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.atc-vg__details-list li {
  position: relative;
  margin: 0 !important;
  padding: 16px 0 16px 35px !important;
  color: var(--atc-text) !important;
  border-bottom: 1px solid rgba(20, 83, 45, 0.13);
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  list-style: none !important;
}

.atc-vg__details-list li:last-child {
  border-bottom: 0;
}

.atc-vg__details-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  display: flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  content: "✓";
  color: var(--atc-white);
  background: var(--atc-green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

/* CTA */
.atc-vg__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 50px;
  align-items: center;
  margin-bottom: 30px;
  padding: 62px;
  color: var(--atc-white);
  background: var(--atc-green);
  border-radius: 20px;
}

.atc-vg__cta h2 {
  color: var(--atc-white) !important;
}

.atc-vg__cta p {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

.atc-vg__cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.atc-vg__text-link {
  color: var(--atc-white) !important;
  font-size: 15px;
  font-weight: 800;
}

.atc-vg__text-link:hover,
.atc-vg__text-link:focus-visible {
  color: var(--atc-gold) !important;
}

.atc-vg__resource {
  margin-bottom: 80px;
  padding: 26px 30px;
  text-align: center;
  background: #f8faf8;
  border: 1px solid var(--atc-border);
  border-radius: 12px;
}

.atc-vg__resource p {
  margin: 0 !important;
  color: var(--atc-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .atc-vg__hero {
    grid-template-columns: 1fr;
  }

  .atc-vg__hero-content {
    padding: 58px 45px;
  }

  .atc-vg__hero-image,
  .atc-vg__hero-image img {
    min-height: 430px;
  }

  .atc-vg__overview,
  .atc-vg__details,
  .atc-vg__cta {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .atc-vg__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atc-vg__details,
  .atc-vg__cta {
    padding: 50px 42px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .atc-vg {
    width: calc(100vw - 28px);
    margin-top: 20px;
  }

  .atc-vg__hero {
    min-height: auto;
    border-radius: 14px;
  }

  .atc-vg__hero-content {
    padding: 44px 26px;
  }

  .atc-vg__hero h1 {
    font-size: 40px !important;
    letter-spacing: -0.8px;
  }

  .atc-vg__hero-text {
    font-size: 16px !important;
  }

  .atc-vg__hero-buttons {
    flex-direction: column;
  }

  .atc-vg__button {
    width: 100%;
  }

  .atc-vg__hero-image,
  .atc-vg__hero-image img {
    min-height: 290px;
  }

  .atc-vg__overview {
    gap: 38px;
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .atc-vg__facts {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .atc-vg__fact {
    min-height: 130px;
    padding: 19px;
  }

  .atc-vg__gallery-section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .atc-vg__gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .atc-vg__details {
    margin-bottom: 65px;
    padding: 38px 25px;
    border-radius: 14px;
  }

  .atc-vg__cta {
    margin-bottom: 24px;
    padding: 42px 26px;
    border-radius: 14px;
  }

  .atc-vg__cta-buttons {
    width: 100%;
  }

  .atc-vg__resource {
    margin-bottom: 60px;
    padding: 22px;
  }
}

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

  .atc-vg__fact {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atc-vg *,
  .atc-vg *::before,
  .atc-vg *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
