body {
  font-family: Avenir, Verdana, sans-serif;
  font-size: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 130px;
  margin-bottom: 50px;
  max-width: 600px;
  min-width: 600px;
  font-size: 130%;
  background-color: #decba5;
  color: #00404b;
}

/* Photo gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 40px 0;
}

.gallery a.gallery-item {
  display: block;
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  border: 1px solid #00404b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery a.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery a.gallery-item:hover img,
.gallery a.gallery-item:focus img {
  transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 4, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.lightbox button {
  position: absolute;
  padding: 0;
  color: #00404b;
  background: rgba(255, 232, 190, 0.9);
  border: none;
  border-radius: 4px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus {
  background: #FFE8BE;
  outline: 2px solid #D2282B;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font-size: 36px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFE8BE;
  font-size: 90%;
  letter-spacing: 0.05em;
}

div#header_bar {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	background-color: #FFE8BE;
	height:70px;
	z-index: 100;
}

div#header {
	font-size: 180%;
	font-weight: 400;
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
	min-width: 600px;
	position:relative;
	top:10px;
}

div#for_sale {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	padding: 5px 12px;
	background: #00404b;
	color: #FFE8BE;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: 3px;
	white-space: nowrap;
}

div#menu_bar {
	position: fixed;
	top: 70px;
	left: 0px;
	right: 0px;
	background-color: #FFE8BE;
	height: 35px;
	z-index: 100;
}

div#menu {
	font-weight: 100;
	margin-left: auto;
	margin-right: auto;
	max-width: 600px;
	min-width: 600px;
	position:relative;
	top:0px;
	height: 35px;
}

div#menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div#menu a {
	padding: 0px 10px 0px 10px ;
	display: block;
}

h1 {
  margin-top: 2.0em;
  margin-bottom: 0em;
  font-size: 1.3em;
  font-weight: 500;
}

img#logo {
  width: 300px;
  height: auto;
  margin: 50px 150px 50px 150px;
}

img#logo_double {
  width: 600px;
  height: auto;
  margin: 50px 0px 50px 0px;
}

img#image {
  width: 600px;
  height: auto;
  margin: 0px;
  border: 1px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

img#portrait {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Optional: two-column layout on wider screens */
@media (min-width: 720px) {
  .coffee-lots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

::-webkit-scrollbar { display: none; /* Chrome Safari */ }

pre {
	/* white-space: pre-wrap; */
	overflow-x: scroll;
}

span#selected {
	color: #00404b;
}

@media only screen and (max-device-width: 428px) {

  body {
	margin-top: 200px;
	max-width: 800px;
	min-width: 800px;
	font-size: 250%;
  }

  div#header_bar {
	 height: 100px;
  }
  div#header {
	font-size: 140%;
	max-width: 800px;
	min-width: 800px;
	top:15px;
  }

  div#for_sale {
	padding: 8px 18px;
	font-size: 1.6rem;
	border-radius: 4px;
  }

  div#menu_bar {
	top: 100px;
	height: 60px;
  }

  div#menu {
	font-size: 80%;
	max-width: 800px;
	min-width: 800px;
  }

  img#logo {
	width: 500px;
	height: auto;
	margin: 100px 150px 50px 150px;
  }

  img#logo_double {
	width: 800px;
	height: auto;
	margin: 100px 0px 50px 0px;
  }

  img#image {
	width: 800px;
	height: auto;
	margin: 0px;
	border: 1px solid #000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  img#portrait {
    display: block;
    width: 800px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

}

a { text-decoration: none; font-weight: 300}
a:link { color: #006c7f; }
a:visited { color: #006c7f; }
a:focus { color: #006c7f; }
a:hover { color: #006c7f; }
a:active { color: #006c7f; }

#menu a { text-decoration: none; }
#menu a:link { color: #D2282B; }
#menu a:visited { color: #D2282B; }
#menu a:focus { color: #D2282B; }
#menu a:hover { color: #00404b; }
#menu a:active { color: #D2282B; }
