/* ============================================================
   jeffsiddens.com — gallery615.css
   ============================================================ */

/* RESET — Piccalilli Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-size: 16px;
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* ============================================================
   BASE TYPOGRAPHY + LAYOUT
   ============================================================ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Modernized typography */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #2f2f2f; /* softened graphite */
  background: #fafafa; /* subtle warm neutral */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a; /* softened black */
  color: #2f2f2f; /* softened graphite */
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }

h1 a {
  text-decoration: none;
  color: inherit;
}

.text-center{
	text-align: center;
}

a{
	color: #2f2f2f; /* softened graphite */
	text-decoration: underline;
}

a:hover{
	background-color: #ddd;
	color: #2f2f2f; /* softened graphite */
	padding-bottom: 6px;
	text-decoration: none;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.page-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ============================================================
   HEADER (TITLE + SUBMENU)
   ============================================================ */

#header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 10px 0 25px;
  padding: 0 4px;
}

#title-block {
  text-align: left;
}

#site-title {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

#site-tagline {
  font-size: 1.1rem;
  opacity: 0.85;
}

#top-submenu a {
  margin-left: 16px;
  font-size: 1.1rem;
}

/*
#top-submenu a:hover {
  text-decoration: none;
  color: #777;
}
*/

/* ============================================================
   GALLERY NAVIGATION
   ============================================================ */

.browse-search {
    color: #777;              			/* softer, distinct from link color */
    font-size: 0.9rem;        		/* smaller, more subtle */
    letter-spacing: 0.03em;   		/* slight refinement */
    text-transform: lowercase; 	/* understated, modern */
	font-variant: small-caps;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
}

#gallery-nav {
  margin: 0 auto 30px;
  max-width: 900px;
  padding: 0 10px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.35;
}

#gallery-nav .nav-row {
  margin: 14px 0;
  padding: 0;
}

#gallery-nav .nav-row li {
  display: inline-block;
  margin: 0 10px;
}

#gallery-nav a {
  color: #333;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#gallery-nav a:hover {
  color: #777;
  text-decoration: none;
}

#gallery-nav .search-row {
  margin: 20px 0 12px;
}

#gallery-nav #searchBox {
  font-size: 1.2rem;
  max-width: 320px;
  padding: 8px 12px;
  width: 70%;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

#gallery-nav #searchButton,
#gallery-nav #clearButton {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 6px;
  padding: 8px 14px;
  background: #e3e3e3;
  border: 1px solid #bbb;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#gallery-nav #searchButton:hover,
#gallery-nav #clearButton:hover {
  background: #cfcfcf;
  border-color: #999;
}

#gallery-nav #search-explanation {
  font-size: 1rem;
  margin: 22px auto;
  max-width: 66ch;
  color: #555;
}

/* Search messages displayed to user */
.msg {
  background: #e8f5e8;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 6px;
  font-size: 1rem;
  color: #2a662a;
}

.msg-warning,
.msg-error {
  background: #f3eaea;
  color: #a33;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 6px;
}

.msg-success {
  background: #e8e8e8;
  color: #333;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 6px;
}



/* ============================================================
   GALLERY GRID
   ============================================================ */

#gallery {
  display: grid;
  gap: 24px 14px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  justify-items: center;
  margin: 40px auto 0;
  padding-bottom: 40px;
}

#gallery img {
  border: 1px solid #555; /* softened border */
  height: 170px;
  width: 170px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  margin-top: 50px;
  padding: 20px 0 30px;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

form.contact-form {
  max-width: 520px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #333;
}

form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form textarea {
  font-size: 1.2rem;
  padding: 10px 14px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  width: 100%;
}

form.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

form.contact-form button {
  font-size: 1.2rem;
  padding: 10px 18px;
  cursor: pointer;
  background: #e3e3e3;
  border: 1px solid #bbb;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease;
}

form.contact-form button:hover {
  background: #cfcfcf;
  border-color: #999;
}

form.contact-form .hidden {
  display: none;
}


/* ====================================
	Odds 'n' Ends
=====================================*/

.back{
    font-size: 0.98rem;
	text-align: center; 
    letter-spacing: 0.03em;
	margin: 2em auto 0 auto;
}

.inner-wrapper{
	background: #eee;
	margin: 1em auto 0 auto;
	padding: 10px;
	max-width: 526px;
}

ol p{
	margin: 0 0 .5em 0
}

span{
	margin: 0 .3em;
}


/*Add some color to see stuff better while building it */

body{
	background: pink;
}



/* =====================================================
	@ MEDIA
======================================================*/

@media (max-width: 724px) {
  body {
    background-color: lightblue;
  }
}