/* Header layout (image + left/right date text) – Monte Carlo or Bust */

header {
  background: #f7f2e6;
}

/* Backwards-compatible sizing for pages that still use: <header><img ...></header> */
header img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;   /* prevents 'huge' header on wide screens */
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* New header layout (requires <header class="site-header"> ... ) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;   /* keeps text close to the image, not at page edges */
  gap: 16px;
  padding: 12px 20px;
  max-width: 1100px;         /* makes header content behave like a centred banner */
  margin: 0 auto;
}

.site-header img {
  width: auto;
  max-width: 700px;          /* leaves room for the side text so it sits beside the image */
  max-height: 260px;
  object-fit: contain;
}

/* Funky, on-brand pill styling */
/* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}


.header-text.left { text-align: right; }
.header-text.right { text-align: left; }

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px;
  }
  .site-header img {
    max-width: 100%;
  }
  /* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}

}

/* Backwards-compatible sizing for pages that still use: <header><img ...></header> */
header img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;   /* prevents 'huge' header on wide screens */
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

/* New header layout (requires <header class="site-header"> ... ) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 20px;
}

.site-header img {
  width: auto;
  max-width: 1100px;
  max-height: 260px;
}

/* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}


.header-text.left { text-align: right; }
.header-text.right { text-align: left; }

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    gap: 6px;
  }
  /* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}

}


.site-/* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}


.header-text.left {
  text-align: right;
}

.header-text.right {
  text-align: left;
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    gap: 6px;
  }
  /* Funky, on-brand pill styling */
.header-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;            /* force white text */
  background: #1f4b5a;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid #d0482f;
}

}


/* Retro-Modern Hybrid – Fixed Header Size (Option B: Medium Banner) */


/* Rest of CSS unchanged from previous version */
body {
  margin:0;
  font-family:'Nunito', sans-serif;
  background:#f7f2e6;
  color:#123;
}

nav {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
  padding:14px 10px;
  background:#1f4b5a;
}

nav a {
  color:white;
  text-decoration:none;
  font-weight:600;
  font-size:1rem;
  padding:6px 12px;
  border-radius:999px;
  transition:background 0.25s, transform 0.15s;
}

nav a:hover {
  background:#d0482f;
  transform:translateY(-1px);
}

.container {
  max-width:960px;
  margin:24px auto;
  background:white;
  padding:26px 22px 30px;
  border-radius:14px;
  box-shadow:0 4px 16px rgba(0,0,0,0.12);
}

footer {
  text-align:center;
  padding:22px 10px 26px;
  background:#1f4b5a;
  color:white;
  margin-top:40px;
  font-size:0.9rem;
}

.car-gallery {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  margin-top:14px;
}

.car-gallery img {
  width:48%;
  margin-bottom:10px;
  border-radius:10px;
  box-shadow:0 3px 10px rgba(0,0,0,0.25);
}

@media (max-width:700px) {
  .container {
    margin:16px 10px;
    padding:20px 16px 22px;
  }
  nav {
    gap:10px;
  }
  nav a {
    font-size:0.95rem;
    padding:5px 10px;
  }
  .car-gallery img {
    width:100%;
  }
}

footer a {
  color: #ffffff !important;
  text-decoration: none;
}


/* Emphasise the dates slightly more than 'Save the dates' */
.header-text.right {
  font-size: 1.7rem;
  padding: 12px 18px;
}
