/* Base Styles */
/* Apply border-box globally for consistent box model behavior */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: url('https://www.transparenttextures.com/patterns/rocky-wall.png');
  background-color: #d4d4d4;
  color: #333;
  overflow-x: hidden; /* Keep this as instructed, but it makes precise full-width crucial */
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Main Content */
main {
  flex: 1;
  padding: 1.5rem 2rem; /* Retain general padding for main content */
}

/* Header */
header {
  background-color: #1e1e1e;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* Navigation */
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  gap: 0.5rem;
}

nav ul li {
  margin: 0;
}

nav a {
  color: #00bfff;
  text-decoration: none;
  font-weight: bold;
  background-color: #333;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #555;
}

nav a.active {
  background-color: #00bfff;
  color: #fff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem;
}

.hero img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Gear Section */
.gear-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.radio {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
}

.radio img {
  width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Inline Image Styling */
.inline-photo {
  max-width: 250px;
  margin: 0 1rem 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.inline-photo.left {
  float: left;
}

.inline-photo.right {
  float: right;
}

/* Full-Width About Image Strip */
.about-images.full-width {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 2000px; /* Or whatever width you want for desktop layout */
  padding: 0 1rem;
}

.about-images.full-width img {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Responsive Styles */
@media (max-width: 768px) {
  .inline-photo.left,
  .inline-photo.right {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 90%;
  }

  .about-images.full-width {
    flex-direction: column;
    align-items: center;
    /* Reset desktop specific full-width properties for mobile to allow natural flow */
    width: auto; /* Allow it to be naturally sized by parent */
    position: static; /* Reset position for mobile */
    left: auto; /* Reset left for mobile */
    transform: none; /* Reset transform for mobile */
    margin-left: 0; /* Ensure no residual desktop margins */
    margin-right: 0; /* Ensure no residual desktop margins */
    padding: 0; /* Remove padding for mobile full width of individual images */
  }

  .about-images.full-width img {
    width: 90vw; /* Keep consistent with your mobile design for individual images */
    flex: none; /* Disable flex growing/shrinking for mobile images */
  }


  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin-bottom: 0.5rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/* Desktop Visibility Helpers */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}
