.metamorphous-regular {
  font-family: "Metamorphous", serif;
  font-weight: 400;
  font-style: normal;
}

.macondo-regular {
  font-family: "Macondo", cursive;
  font-weight: 400;
  font-style: normal;
}

.new-rocker-regular {
  font-family: "New Rocker", system-ui;
  font-weight: 400;
  font-style: normal;
}

.floater {
    float: left;
    padding-right: 10px;
    padding-bottom: 5px;
}

#name, #email, #subject, #message, #submit {
  background-color: lightgray;
}

#submit {
  padding: 3px 10px 2px 10px;
  border: 2px solid #3B82F6;
  border-radius: 5px;
}

::placeholder {
  font-family: "Macondo", cursive;
  padding-left: 5px;
}

.font-regular {
  font-family: sans-serif;
}

.expand {
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.expand:hover {
  transform: scale(5);
  z-index: 999;
}

.carousel {
  margin: 0 auto;
  text-align: center;
  position: relative;
  width: 500px;
  height: 600px;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
  visibility: hidden;
  margin: 0 auto;
  justify-items: center;
  width: 75%;
  height: 75%;
  object-fit: cover;
  z-index: 0;
}

.carousel-image.active {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

#prevBtn, #nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#prevBtn {
  left: 10px;
  transition: transform 0.3s ease;
}

#nextBtn {
  right: 10px;
  transition: transform 0.3s ease;
}

#prevBtn:hover, #nextBtn:hover {
  transform: scale(1.2);
}

.error-message {
  color: darkred;
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

input.invalid, textarea.invalid {
  border-color: darkred;
}

/* =====================================================
   Mobile-only styles — desktop is completely unchanged
   ===================================================== */

#menu-toggle { display: none; }
#mobile-menu  { display: none; }

@media (max-width: 767px) {
  /* Header: flex row so title and hamburger sit side-by-side */
  header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  header h1 {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    flex: 1;
  }

  /* Hide the desktop float-right nav */
  #desktop-nav {
    display: none !important;
  }

  /* Show the hamburger button */
  #menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: inherit;
    flex-shrink: 0;
  }

  /* Mobile dropdown menu (JS toggles display: flex) */
  #mobile-menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.15);
  }

  #mobile-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-family: "Macondo", cursive;
    font-size: 1.2rem;
    text-decoration: none;
  }

  /* Carousel: shrink to fit screen width */
  .carousel {
    width: 90vw;
    height: 108vw;
  }

  /* Contact form: stack the two columns */
  #contact-layout {
    display: flex !important;
    flex-direction: column;
  }

  /* Form inputs: fill available width */
  #name, #email, #subject, #message {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Gallery embeds: stack vertically */
  #gallery-embeds {
    flex-direction: column;
  }

  .youTube-embed {
    min-height: 220px;
    width: 100%;
  }

  .youTube-embed iframe {
    min-height: 220px;
    width: 100%;
  }

  /* About page: un-float image so it doesn't crush text */
  .floater {
    float: none;
    display: block;
    margin: 0 auto 1rem;
    padding-right: 0;
    text-align: center;
  }
}