/* VANHAUEN RACING - Main Stylesheet */

body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: #000000;
    padding: 10px 0;
    border-bottom: 2px solid #FFD700;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

nav .logo img {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1em;
}

nav ul li a:hover {
    color: #FFD700;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #FFD700;
}

h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    border-bottom: 1px solid #333;
    padding-bottom: 0.3em;
}

h3 {
    font-family: 'News Gothic MT', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.car-title-caption {
    font-family: 'Oswald', sans-serif;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #FFFFFF;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3em;
}

.hero .btn {
    display: inline-block;
    background-color: #FFD700;
    color: #000000;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    text-transform: uppercase;
}

.hero .btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
}

/* Section Styling */
.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.2em;
    color: #FFD700;
}

/* News/Blog Snippets */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
}

.news-item img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 1.3em;
    margin-top: 0;
}

.news-item .date {
    font-size: 0.8em;
    color: #CCCCCC;
    margin-bottom: 5px;
}

/* The Car Section */
.car-intro {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
}

.car-intro img {
    max-width: 40%;
    height: auto;
    border-radius: 5px;
}

/* Generic Content Page */
.content-page .banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-page .banner h1 {
    color: #FFFFFF;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px #000000;
}

.parallax-banner {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #333;
}

/* Video Highlights */
.video-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #FFD700;
}

/* Subscribe Form */
.subscribe-form {
    text-align: center;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 5px;
    margin-top: 30px;
}

.subscribe-form input[type="email"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #FFD700;
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 3px;
    width: 60%;
    max-width: 300px;
    margin-right: 10px;
}

.subscribe-form input[type="submit"] {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #FFD700;
    color: #000000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #000000;
    color: #CCCCCC;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #FFD700;
}

/* Inline Image Styling for Article Layouts */
.image-wrap {
    max-width: 25%;
    margin: 0 20px 20px 0;
    float: left;
    border-radius: 5px;
    border: 2px solid #333;
}

.image-wrap.right {
    max-width: 25%;
    float: right;
    margin: 0 0 20px 20px;
}

@media screen and (max-width: 768px) {
    .image-wrap, .image-wrap.right {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
}

/* Paired Image Layout for Before/After */
.image-pair-wrap {
    display: flex;
    gap: 10px;
    max-width: 50%;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 5px;
}

.image-pair-wrap.right {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 50%;
}

.image-pair-wrap img {
    width: 50%;
    border-radius: 5px;
    border: 2px solid #333;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .image-pair-wrap,
    .image-pair-wrap.right {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
        flex-direction: column;
    }

    .image-pair-wrap img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Highlight Block for Special Features */
.highlight-block {
    background-color: #1a1a1a;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #FFD700;
    border-radius: 5px;
}

/* Clearfix utility to avoid float overflow issues */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Enhanced submit button styling */
.btn-submit {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #666;
}

/* Contact form layout styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.form-row label {
    width: 120px;
    font-weight: bold;
    padding-top: 8px;
}

.form-row input,
.form-row textarea {
    flex: 1;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #000;
    color: #fff;
}

.form-row textarea {
    resize: vertical;
}

.form-row.full-width {
    justify-content: flex-end;
}

/* Triple Image Layout for The Team Section */
.image-trio-wrap {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.image-trio-wrap img {
    width: 32%;
    border-radius: 5px;
    border: 2px solid #333;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .image-trio-wrap {
        flex-direction: column;
        align-items: center;
    }

    .image-trio-wrap img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ========================================== */
/* LIGHTBOX MODAL STYLES - CENTERED POSITIONING */
/* ========================================== */

/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content Container - PROPERLY CENTERED */
.modal-content {
  position: relative;
  background-color: transparent;
  margin: auto;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Slide Container */
.mySlides {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Show slides with flex centering */
.mySlides:target,
.mySlides[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* CRITICAL: Consistent Modal Image Sizing */
.mySlides img {
  /* Force consistent display dimensions */
  width: 90vw;
  max-width: 1200px;
  height: 60vh;
  max-height: 800px;
  
  /* Maintain aspect ratio and center content */
  object-fit: contain;
  object-position: center;
  
  /* Styling */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  border: 2px solid #FFD700;
  
  /* Ensure smooth scaling */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #FFD700;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0, 0, 0, 0.5);
  user-select: none;
  z-index: 1001;
}

.next {
  right: 20px;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 20px;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 215, 0, 0.8);
  color: #000;
}

/* Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #FFD700;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
}

/* Number Text */
.numbertext {
  color: #FFD700;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 8px 0;
}

/* Caption */
.caption-container {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 20px;
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 120px;
  overflow-y: auto;
}

#caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Gallery thumbnails hover effects */
.photo-gallery img.hover-shadow:hover {
  transform: scale(1.05);
  border-color: #FFD700;
}

.hover-shadow {
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Responsive adjustments for lightbox */
@media screen and (max-width: 768px) {
  .mySlides img {
    width: 95vw;
    height: 50vh;
  }
  
  .prev, .next {
    padding: 12px;
    font-size: 16px;
  }
  
  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  
  #caption {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .mySlides img {
    width: 98vw;
    height: 45vh;
  }
  
  .caption-container {
    padding: 10px;
  }
}