/* ====================================================================
   RESET based on Piccalilli Modern Reset  https://piccalil.li/blog/a-more-modern-css-reset/
   ==================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  text-size-adjust: 100%; /* Prevents mobile browsers from automatically increasing font size, but allows users to zoom */
}

body, h1, h2, h3, h4, h5, h6, p,
figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

p{
	margin: 0 0 1em 0;
}


img, picture {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ============================================================
   BASE TYPOGRAPHY + LAYOUT
   ============================================================ */

body {
  background: #fafafa;
  color: #2f2f2f;
  display: flex;					/*Adding display: flex; to the body selector, the entire website body itself becomes the flex container*/
  flex-direction: column;	/* flex-direction: column switches the primary layout direction from a horizontal row to a vertical column.*/
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

a {
  border-radius: 4px;
  color: #2f2f2f;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  background-color: #d5d5d5;
  color: #2f2f2f;
  text-decoration: none;
}

.page-wrapper {
  flex: 1;						/* Works with display: flex, display: column and min-height: 100vh in body to keep footer at botton of the page */
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 12px;
  width: 100%;
}

.inner-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 10px;
}


/* ============================================================
   HEADER
   ============================================================ */

#header-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 30px;
  padding-bottom: 10px;
}

#site-title a {
  font-size: 2rem;
  padding: 6px;
  text-decoration: none;
}

#site-tagline {
  font-size: 1rem;
}

/* Style for About, Contact, and Privacy links */
#top-submenu {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.1rem;
  gap: 12px;
  text-decoration: none;
}

#top-submenu a {
  text-decoration: none;
}


/* ============================================================
   SEARCH
   ============================================================ */

.search-row {
  align-items: center;
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Centers items along the primary horizontal row */
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  max-width: 100%;
  text-align: center; /* Ensures text-based fallbacks center accurately */
}

#searchBox {
  border: 1px solid #999;
  border-radius: 6px;
  font-size: .9rem;
  color: #2f2f2f;
  height: 34px;
  padding: 5px 7px;
  width: 340px; /* Replaced flexible grow rules with a crisp, stable static width */
}

#searchButton,
#clearButton,
.linkButton {
  background: #eaeaea;
  background: #cdcdcd;
  border: 1px solid #dedede;
  border-radius: 4px;
  color: #2f2f2f;
  cursor: pointer;
  font-size: .95rem;
  text-transform: lowercase;
  font-variant: small-caps;
  height: 34px;
  padding: 5px 12px; /* Margins widened slightly to make tapping them easier */
}

#searchButton:hover,
#clearButton:hover {
  background: #d5d5d5;
  border-color: #999;
}

#searchMessage {
  color: #36454F;
  display: block;
  flex-basis: 100%;
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1px;
  margin-top: 10px;
  min-height: 1.6em;
  text-align: center;
}

#searchBox,
#searchButton,
#clearButton {
  height: 34px; /* Forces identical height across the input and flat buttons */
}

/* ============================================================
   GALLERY NAVIGATION / MENU   
   ============================================================ */

#gallery-nav {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .1em;
  margin: 0 auto 10px auto;
  max-width: 1199px;
  text-align: center;
}

#gallery-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Stacks links cleanly into a column on phone viewports */
#gallery-nav .nav-row {
  align-items: stretch;			/* Forces flex items to expand and stretch to fill the entire space of the container, ensuring all items have equal height or equal width*/
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  width: 100%;
}

#gallery-nav .nav-row > li {
  position: relative;
  text-align: center;
}

/* ------------------- DROPDOWN MENUS STYLE ------------------------------------------*/

/* Force dropdown links (both list links and grid links) to stay flush left */
.dropdown-content a {
  display: block;
  text-align: left !important; /* Overrides the parent cascading header centering */
  border-radius: 4px; /* Matches global link design */
  padding: 6px 12px; 
}

/* Force dropdown links to look and act like global a:hover styles */
.dropdown-content a:hover {
  background-color: #d5d5d5 !important; /* Matches signature gray hover */
  color: #2f2f2f !important;             /* Matches site text color */
  text-decoration: none !important;
}

#gallery-nav .nav-row .arrow {
  display: inline-block;
  font-size: 0.6em; /* Shrinks the arrow symbol to be proportional */
  transform: translateY(1px); /* Shifts an element vertically downward by exactly 1 pixel  */
}

#gallery-nav .nav-row a,
#gallery-nav .nav-row .dropbtn {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  text-decoration: none;
}

#gallery-nav .nav-row a,
#gallery-nav .nav-row .dropbtn,
#top-submenu a {
  padding: 4px 8px; /* Adds a subtle box cushion area */
}

/* Mobile dropdown container setup */
.dropdown-content {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  list-style: none;
  margin-top: 8px;
  padding: 8px; /* Adds uniform cushioning inside the white menu block */
  position: static;
  }

/* Category subheaders inside the menu */
.dropdown-content .dd-title {
  color: #666666;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 16px 6px;
  text-align: center; /* Keeps JUST the labels explicitly centered */
  text-transform: uppercase;
}


/* Revealed state class */
.dropdown-content.show {
  display: block !important;
}


/* ============================================================
   GALLERY GRID  
   ============================================================ */

#gallery {
  display: grid;
  gap: 12px; /* A tighter, clean gap for small screens */
  grid-template-columns: repeat(2, 1fr); /* Forces exactly two equal columns */
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  max-width: 100%;
  padding-bottom: 40px;
}

#gallery img {
  aspect-ratio: 1 / 1; /* Makes every grid cell a clean uniform square on mobile too */
  border: 1px solid #555;
  border-radius: 4px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
  cursor: zoom-in;
}

#gallery img:hover{
	transform: scale(1.02);
	filter: brightness(1.05);
	border-color: #aaa; (Subtly lightens your #555 border to match the glow)
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  color: #555;
  font-size: 0.95rem;
  margin-top: 50px;
  padding: 20px 0 30px;
  text-align: center;
}


/* ============================================================
   HELPERS
   ============================================================ */

.center-text {
  text-align: center;
}

.hidden{
	display: none;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px auto;
  max-width: 520px;
}

form.contact-form input,
form.contact-form textarea {
  border: 1px solid #bbb;
  border-radius: 6px;
  font-family: inherit;
  font-weight: normal;
  font-size: 1.1rem;
  padding: 10px 14px;
  width: 100%;
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form button {
  background: #e3e3e3;
  border: 1px solid #bbb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 10px 18px;
  width: fit-content;
}



/* ============================================================
   GRID NAVIGATION ADJUSTMENTS
   ============================================================ */

/* Stacks the US States vertically, flush-left */
.compact-grid-nav {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Elegant vertical spacing between links */
  width: 100%;
}

/* Ensures state links accept global hover styles cleanly without block clipping */
.compact-grid-nav a {
  border-radius: 4px;
  display: block;
  padding: 6px 12px;
  text-align: left;
}

.compact-grid-nav a:hover {
  background-color: #d5d5d5 !important;
  color: #2f2f2f !important;
  text-decoration: none !important;
}

/* ============================================================
   MEDIA QUERY OVERRIDES for min-width: 499px
   ============================================================ */
   
@media (min-width: 499px) {

  #header-top {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Horizontal row for image menu below the header */
  #gallery-nav .nav-row {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    margin: 40px auto 20px auto;
  }

  #gallery-nav .nav-row > li {
    margin: 0 10px;
    position: relative;
    text-align: center;
    width: auto;
	white-space: nowrap;
  }

/* DESKTOP dropdowns */
.dropdown-content {
    background: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: none;
    font-family: inherit;
    font-size: 1rem;
    left: 0;
    letter-spacing: 0;
    min-width: 290px;
    position: absolute;
    text-align: left; 					/* Anchors the container baseline layout flush left */
    top: 90%;
    z-index: 999;
  }

  /* Automatically triggers display on hover for desktop users */
  .dropdown:hover .dropdown-content {
    display: block;
  }

  
  /* Desktop gallery grid handles auto-filling grids elegantly */
  #gallery {
    display: grid;
    gap: 24px 16px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    margin-top: 0;
  }

  #gallery img {
    aspect-ratio: 1 / 1; /* Locks everything into a clean square grid cell */
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

} /* End Media Query */




/* ============================================================
   MEDIA QUERY OVERRIDES for SMALLER VIEWPORTS - MAX-WIDTH: 498px
   ============================================================ */
   
@media (max-width: 498px) {

#site-title a {
	font-size: 1.2rem;
	padding: 6px;
	text-decoration: none;
	text-align: center;
}

#site-tagline, 
#top-submenu,
.search-row {
  display: none;
}

/* DESKTOP dropdowns */
.dropdown-content {
    font-size: 0.85rem;
	text-align: left;
  }


  } /* End Media Query */

