/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  background-color: #fff;
  color: #111;
  background-repeat: no-repeat;
  background-position: bottom left, bottom center, bottom right;
  background-size: 120px, 80px, 100px;
}

header {
  background-color: #fff;
  color: #111;
  text-align: center;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #ccc;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 0.5em 0;
}

nav a {
  margin: 0 1em;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #ff3c00;
}

main {
  padding: 1em;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 5em; /* prevents content from being hidden behind fixed footer */
}

h1, h2 {
  font-weight: normal;
  text-transform: uppercase;
  color: #ff3c00;
}

.tagline {
  font-size: 1.2em;
  font-style: italic;
  margin-bottom: 0.5em;
}

a {
  color: #ff3c00;
  text-decoration: underline;
}

/* Fixed Background Image */
.background-desert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background-image: url('desert-footer.png');
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;  /* Set behind everything */
  pointer-events: none;
}

/* Tumbleweed Animation */
.tumbleweed {
  position: fixed;
  bottom: 0;
  left: -150px;
  width: 100px;
  height: auto;
  z-index: 5;
  animation: rollAcross 12s linear infinite;
  pointer-events: none;
}

@keyframes rollAcross {
  0% { transform: translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(110vw) rotate(720deg); opacity: 0; }
}

/* Fixed Footer */
.footer-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  color: #888;
  background: transparent;
  z-index: 10;
  pointer-events: none;
}

/* About Section Layout */
.about-section {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin-top: 2em;
  padding-bottom: 4em; /* fallback spacing on wider screens */  
}

.about-photo {
  width: 160px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text {
  max-width: 600px;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .background-desert {
    width: 300px;
    height: 300px;
    bottom: 10px; /* pushes it lower */
  }
.photo-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  }

  .tumbleweed {
    width: 70px;
  }

  .footer-fixed {
    font-size: 0.7em;
    bottom: 5px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }

  nav a {
    font-size: 1em;
    padding: 0.5em;
    width: 100%;
    text-align: center;
  }

  .tagline {
    font-size: 1em;
    text-align: center;
    padding: 0 1em;
  }

  .about-section {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding-bottom: 100px; 
  }

  .about-photo {
    width: 100%;
    max-width: 300px;
  }

   .about-text {
    padding: 1.25em;
    font-size: 1em;
    text-align: center;
  }
}
/* Contact Section Layout */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2em 1em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;           /* This is the key for centering */
  align-items: stretch;     /* Makes inner fields span the full width */
}

input, textarea, button {
  width: 100%; /* keep this for full-width look */
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.75em;
  font-family: inherit;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background-color: #ff3c00;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75em;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #cc2f00;
}
/* Photography Gallery */
.photo-gallery {
  margin: 2em auto;
  padding: 1em;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

#lightbox img {
  max-width: 80vw;      /* width limited to 80% of viewport */
  max-height: 80vh;     /* height limited to 80% of viewport */
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

