<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* ===============================
   Fonts & Colors
================================== */
@import url('https://fonts.googleapis.com/css2?family=Bitter&family=Montserrat:wght@500;700&family=Roboto&display=swap');

:root {
  --bg-dark: #163948;
  --nav-bg: #1E4B66;
  --text-color: #ACB99F;
  --heading-color: #C9BB8B;
  --section-bg: #1F4966;
  --accent-color: #C9BB8B;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-nav: 'Bitter', serif;
}

/* ===============================
   Base Styles
================================== */
body.project-template {
  background-color: var(--bg-dark);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 4rem;
  min-height: 100vh;
}

/* ===============================
   Navigation
================================== */
.main-header {
  background-color: var(--nav-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  font-family: var(--font-nav);
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--heading-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  background-color: var(--accent-color);
  color: var(--bg-dark);
  outline: none;
}

/* ===============================
   Main Content
================================== */
.project-content {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
}

.project-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--heading-color);
  margin-bottom: 0.3rem;
  text-align: center;
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ===============================
   Project Gallery
================================== */
.project-gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-gallery img {
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.7);
  object-fit: cover;
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-gallery img:hover,
.project-gallery img:focus {
  transform: scale(1.05);
  outline: none;
}

/* ===============================
   Sections
================================== */
.project-section {
  background-color: var(--section-bg);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.7);
}

.project-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.3rem;
}

/* Lists */
.project-section ul {
  margin-left: 1.2rem;
  list-style-type: disc;
  color: var(--text-color);
}

.project-section ul li {
  margin-bottom: 0.6rem;
}

/* ===============================
   Skills & Tools Tags
================================== */
.skills-used span,
.tools-used span {
  display: inline-block;
  background-color: var(--bg-dark);
  color: var(--accent-color);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.6);
  user-select: none;
}

/* ===============================
   More Photos Grid
================================== */
.more-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.more-photos-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.7);
  object-fit: cover;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}

.more-photos-grid img:hover,
.more-photos-grid img:focus {
  transform: scale(1.05);
  outline: none;
}

/* ===============================
   Responsive
================================== */
@media (max-width: 700px) {
  .project-gallery img {
    width: 48%;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 2.4rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }

  .project-section {
    padding: 1.2rem 1.5rem;
  }

  .skills-used span,
  .tools-used span {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }
}

.inline-gallery {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
  align-items: start;
}

.inline-gallery figure {
  margin: 0;
}

.inline-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.inline-gallery figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* column presets */
.inline-gallery.cols-1 { grid-template-columns: 1fr; }
.inline-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.inline-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.inline-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* responsive */
@media (max-width: 900px) {
  .inline-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .inline-gallery.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .inline-gallery.cols-4,
  .inline-gallery.cols-3,
  .inline-gallery.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.25s ease;
  cursor: zoom-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* optional hover cue */
.project-content img {
  cursor: zoom-in;
}

.download-writeup {
  margin: 30px 0 10px 0;
  text-align: center;
}

.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #111;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.download-btn:hover {
  background: #e10600;   /* motorsport red accent */
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

</style>
<!-- end Simple Custom CSS and JS -->
