/* Fox Hysen — portfolio site
   Visual language matched from the live foxhysen.net (WordPress/NextGEN Gallery):
   gray nav bar, Georgia body serif, Open Sans nav sans-serif, italic-title captions. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: Georgia, Times, "Times New Roman", serif;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* header / nav */
.header-bar {
  background: #cccccc;
  padding: 34px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

body {
  padding-top: 87px; /* header-bar's rendered height, so fixed nav doesn't cover content */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  text-transform: lowercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* main content */
main {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 30px;
}

.series-title {
  font-family: Georgia, Times, "Times New Roman", serif;
  font-weight: normal;
  font-size: 18px;
  margin: 0 0 24px;
}

.series-title:not(:first-child) {
  margin-top: 96px;
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .header-bar { padding: 22px 0; }
  .container, main { padding: 0 18px; }
  body { padding-top: 65px; }
  .gallery-item { padding-right: 0; }
}

.gallery-item {
  padding-right: 0;
}

.gallery-item a {
  display: block;
  padding: 20px;
}

.gallery-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px; /* keeps tall/portrait paintings from towering over landscape ones in the grid */
  cursor: zoom-in;
  position: relative;
  z-index: 20; /* above .header-bar (z-index: 10), so images pass over the fixed nav on scroll */
}

.caption {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.gallery .caption {
  display: none; /* titles/details shown in the lightbox only, not the grid */
}

body.on-paper .gallery {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  body.on-paper .gallery { grid-template-columns: 1fr; }
}

.caption .title {
  font-style: italic;
  display: block;
  margin-bottom: 0;
}

.caption .meta {
  display: block;
}

/* simple pages (about/essays/inquiries) */
.prose {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 20; /* above .header-bar (z-index: 10), so text passes over the fixed nav on scroll */
}

.prose p { margin: 0 0 1.4em; }

.essay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.essay-list li {
  margin-bottom: 1.2em;
  font-size: 16px;
}

.note {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #666;
  margin-top: 3em;
  max-width: 640px;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,1);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox-frame {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 80px;
  max-width: 100%;
  max-height: 100%;
  cursor: default;
}

.lightbox-frame img {
  max-width: 60vw;
  max-height: calc(100vh - 80px);
  cursor: zoom-out;
}

.lightbox-caption {
  margin-top: 0;
  padding-bottom: 60px;
  text-align: left;
  flex-shrink: 0;
  max-width: 260px;
}

.lightbox-nav-group {
  position: fixed;
  top: 70px;
  right: 120px;
  display: flex;
  gap: 20px;
  z-index: 101;
}

.lightbox-nav {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: Georgia, Times, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  color: #000;
  cursor: pointer;
}

.lightbox-nav:hover { opacity: 0.5; }

@media (max-width: 640px) {
  .lightbox-nav-group { top: 20px; right: 18px; }
}

/* contact form */
.contact-form {
  max-width: 480px;
  margin-top: 0;
}

.form-row {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: #666;
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  font-family: Georgia, Times, "Times New Roman", serif;
  font-size: 16px;
  color: #000;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 6px 0;
  background: transparent;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: #000;
}

.form-submit {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: lowercase;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
}

.form-submit:hover {
  opacity: 0.85;
}

/* about page portrait */
.about-photo {
  position: fixed;
  top: 140px;
  right: 60px;
  width: 240px;
  height: auto;
}

@media (max-width: 900px) {
  .about-photo { display: none; }
}
