# Update the styles.css file with the new video gallery styles and cleaned-up media queries.
# We'll simulate the updated CSS content based on the user's original CSS with merged changes.

updated_css = """
/* styles.css */
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Georgia', serif;
  text-align: center;
  padding: 2rem;
  scroll-behavior: smooth;
  padding-top: 80px; /* Offset for fixed nav */
}

/* Honeypot Field Styling (for Netlify Forms) */
.hidden {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
}

button, a, [role="button"] {
  transition: 
    transform 0.2s ease,
    opacity 0.3s ease;
}

button:active, 
a:active,
[role="button"]:active {
  transform: scale(0.96);
}

/* Navigation */
nav {
  background-color: #000;
  padding: 1.5rem 0; /* Vertical padding only */
  position: fixed;
  top: 0;
  left: 0; /* Ensure full width */
  right: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  border-bottom: none; /* Remove default border */
}

/* Full-width divider line */
nav::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100vw; /* Viewport width */
  height: 1px;
  background-color: #333;
  z-index: 1000;
}

.nav-center {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px; /* Optional max width */
  margin: 0 auto;
  padding: 0 2rem; /* Horizontal padding */
}

 .nav-links {
	display: flex; /* This makes items horizontal */
	justify-content: center;
	gap: 2rem; /* Space between items */
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
    top: 70px; /* Match header height */
  }

.nav-links.active {
  transform: translateY(0);
}

.nav-links li {
  display: inline-block; /* Ensures horizontal layout */
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.3s;
  white-space: nowrap; /* Prevents text wrapping */
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-links a[aria-current="page"] {
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff5252;
}

/* Sections */
section {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Lesson Details List Styling */
.lesson-details h2 {
  margin-bottom: 0.5rem !important;
}

.lesson-details ul {
  margin-top: 0 !important;
  padding-left: 1em;
  text-align: left;
  display: inline-block;
  margin: 0.5rem auto;
  width: 100%;
  max-width: 100%;
}

.lesson-details li {
  text-align: left;
  list-style-position: outside;
  margin-left: 1em;
  padding-left: 0.5em;
  margin-bottom: 0.3rem;
}

/* Video Gallery Styles */
.video-gallery {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.video-card {
  background: #111;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(0);
	background: rgba(0,0,0,0.8);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* This creates the 1:1 aspect ratio */
  overflow: hidden;
  background: #000; /* Fallback color */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover; /* This will crop videos to fill the square */
}

.video-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	transform: translateY(100%);
	transition: transform 0.3s ease;	
	padding: 15px;
	text-align: center;
	color: #ccc;
	font-size: 0.9rem;
	margin: 0;
}

/* Contact Form */
form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-family: 'Georgia', serif;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="submit"] {
  background-color: #fff;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover {
  opacity: 0.8;
}

/* Disable Netlify's AJAX form handling */
.netlify-form:not([data-netlify-recaptcha]) {
  transform: none !important;
}

/* FAQ Styles */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.faq-container {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 0;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #ccc;
  padding: 0 20px;
  will-change: max-height; /* Optimize for animation */
}

.faq-answer p {
  padding-bottom: 20px;
  margin: 0;
}

/* Instagram Icon Styles */
.header-social {
  position: absolute;
  right: 70px; /* Space between icon and hamburger */
  top: 50%;
  transform: translateY(-50%);
}

.instagram-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: all 0.3s ease;
}

.instagram-icon:hover {
  color: #ccc;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#about {
  animation: fadeIn 1s ease-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .header-social {
    right: 60px; /* Adjust for mobile */
  }
  
  .instagram-icon {
    width: 22px;
    height: 22px;
  }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    padding: 1rem 80px 1rem 1rem; /* Top, Right, Bottom, Left */
    justify-content: space-between;
    position: relative;
  }

  .nav-center {
    padding: 0;
    width: auto;
    justify-content: flex-start;
  }

  .header-social {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    z-index: 1001;
  }

.mobile-nav-toggle.toggle-active {
  color: #ff5252;
}

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: #000;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
  }

  .nav-links.active {
    display: flex;
  }

  body {
    padding-top: 95px;
  }

  .instagram-icon {
    width: 22px;
    height: 22px;
  }
}


# Save to file for download
path = "/mnt/data/styles.css"
with open(path, "w") as f:
    f.write(updated_css)

path
