/*
Theme Name: Mary Wilkerson Theme
Author: Mary Caroline Wilkerson
Version: 1.0
*/



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Optima, sans-serif;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 0;
  width: 100%;
  padding-top: 60px;
  background-color: #E5E0DA;
  min-height: 100vh;
}



/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #7F7B46;
  padding: 15px 20px;
  color: white;
  width: 100%; /* Ensure full width */
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Ensures the navbar stretches to the right edge */
  z-index: 1000;
  box-sizing: border-box; /* Ensures padding does not affect the width */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Adds shadow at the bottom */
}

.navbar .logo {
  font-size: 3.5rem;
  font-weight: lighter;
  text-decoration: none;
  color: white;
}

.navbar .logo:hover {
  cursor: default;
  transform: scale(1.01);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  margin-left: auto;
}

.nav-links li {
  position: relative;
}

.nav-links a, .copy-button {
  text-decoration: none;
  color: white; /* Ensures all links and buttons have white text */
  padding: 8px 12px;
  transition: background 0.3s;
  display: block;
  background: none;
  border: none;
  cursor: default;
  font-size: 1rem;
  text-align: left;
  width: 100%;
}

.nav-links a:hover, .copy-button:hover {
  border-radius: 5px;
  cursor: default;
  transform: scale(1.1);
}

/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* Aligns dropdown to the right side */
  background-color: #7F7B46;
  min-width: 150px;
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.dropdown a, .copy-button {
  padding: 10px;
  color: white;
  text-align: left;
  white-space: nowrap;
  font-family: Optima, sans-serif;
}

/* Show dropdown on hover for larger screens */
.nav-links li:hover .dropdown {
  display: block;
  cursor: default;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  cursor: default;
  font-size: 1.8rem;
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 12px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

        /* About Me Section */
        #about-me {
          padding: 40px 20px;
          margin-top: 80px;
          flex-grow: 1;
      }

      .about-container {
          max-width: 1200px;
          margin: 0 auto;
          display: flex; /* Use flexbox to align image and text */
          align-items: center;
          justify-content: space-between;
          gap: 20px; /* Space between image and text */
      }

      .about-left {
          flex: 1; /* Make the image container flexible */
      }

      .about-img {
          width: 100%; /* Make the image responsive */
          max-width: 300px; /* Set a max width for the image */
          box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
      }

      .about-right {
          flex: 2; /* Make the text container larger */
          max-width: 800px;
      }

      #about-me h2 {
          font-size: 2rem;
          margin-bottom: 20px;
          color: #6B3F2A; /* Brown color for the header */
      }

      #about-me p {
          font-size: 1.1rem;
          color: #6B3F2A; /* Brown color for the paragraph text */
          line-height: 1.6;
      }

/* Headshot and Resume Section */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 200px 20px;
  text-align: center;
}

.download-button {
  background-color: #7F7B46;
  color: white;
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  cursor: default;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
}

.download-button:hover {
  cursor: default;
  transform: scale(1.1);
}

.image {
  max-width: 700px;
  width: 100%;
  height: auto;
  max-height: 70vh; /* NEW: prevents it from being taller than the viewport */
  border-radius: 10px;
  object-fit: contain; /* Optional: ensures it fits within the box without distortion */
}

@media (min-width: 768px) {
  .image {
      width: 50%;
      max-width: 50%;
  }
}


/* Photography Page Museum-Style Gallery */
.gallery-container {
  padding: 120px 5vw 40px; /* Adjust for navbar */
  column-count: 3; /* Default 3 columns */
  column-gap: 40px;
}

.gallery-item {
  display: inline-block;
  width: 100%; /* Ensures images fit column width */
  margin-bottom: 30px; /* Space between images */
  break-inside: avoid; /* Prevents breaking inside columns */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  background: white; 
  padding: 15px;
}

.gallery-item img {
  width: 100%; /* Responsive */
  height: auto; /* Maintain aspect ratio */
}

@media (max-width: 1024px) {
  .gallery-container {
      column-count: 2; /* Reduce to 2 columns */
  }
}

@media (max-width: 768px) {
  .gallery-container {
      column-count: 1; /* Single column for smaller screens */
  }
}



/* Footer */
.footer {
  background-color: #6B3F2A;
            color: white;
            text-align: left;
            padding: 15px;
            font-size: 1rem;
            margin-top: auto;
            box-shadow: inset 0px 1px 10px rgba(0, 0, 0, 0.4); 
        }


/* Responsive styles */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
      align-items: flex-start;
  }

  .nav-links {
      flex-direction: column;
      width: 100%;
      display: none;
      gap: 10px;
  }

  .nav-links.active {
      display: block;
  }

  .hamburger {
      display: block;
  }

  .about-container {
      flex-direction: column;
      text-align: center;
  }

  .about-img {
      max-width: 100%;
      margin-bottom: 20px;
  }

  .about-left,
  .about-right {
      flex: 1;
  }

  .navbar .logo {
      font-size: 1.2rem; /* Decrease font size for smaller screens */
  }
}

@media (max-width: 480px) {
  .navbar .logo {
      font-size: 1rem; /* Further decrease font size for very small screens */
  }
}