/*
 * Faithful reimplementation of the Squarespace v5 layout for jenthario.com.
 * Reference: export/spider/css/common.css and rendered screenshots of the
 * original site.
 */

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Tahoma', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

a { color: #444; text-decoration: none; }
a:hover { color: #000; }

#canvasWrapper {
  max-width: 1082px;
  padding: 0 25px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---------- Header: banner left, nav right ---------- */

#pageHeaderWrapper {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #E8E8E8;
  position: relative;
}

#bannerArea {
  display: inline-block;
}
#bannerWrapper {
  line-height: 0;
}
#bannerWrapper img {
  display: block;
  max-width: 280px;
  height: auto;
}

#navigationTop {
  position: absolute;
  top: 36px;
  right: 0;
}
#navigationTop .horizontalNavigationBar { width: auto; }
.horizontalNavigationBar ul.content-navigation {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.horizontalNavigationBar ul.content-navigation::after {
  content: ""; display: block; clear: both;
}
.horizontalNavigationBar ul.content-navigation li.module {
  float: left;
  padding: 0;
  margin: 0;
}
.horizontalNavigationBar ul.content-navigation li.module a {
  display: block;
  font-family: 'Copse', 'Lucida Sans Unicode', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  color: #888;
  text-transform: lowercase;
}
.horizontalNavigationBar ul.content-navigation li.module a:hover { color: #000; }
.horizontalNavigationBar ul.content-navigation li.module.active-module a {
  color: #c45911;
}

/* ---------- Site search ---------- */

li.module.site-search { position: relative; }
.site-search-toggle {
  display: block;
  font-family: 'Copse', 'Lucida Sans Unicode', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  color: #888;
  text-transform: lowercase;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-search-toggle:hover { color: #000; }
.site-search.open .site-search-toggle {
  color: #c45911;
}
.site-search-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #E8E8E8;
  padding: 8px;
  z-index: 50;
}
.site-search.open .site-search-panel { display: block; }
.site-search-input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Tahoma', sans-serif;
  font-size: 13px;
  padding: 5px 7px;
  color: #000;
  border: 1px solid #D4D4D4;
  outline: none;
}
.site-search-input:focus { border-color: #c45911; }
.site-search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.site-search-results li { margin: 0; padding: 0; }
.site-search-hit a {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 6px;
  color: #555;
  text-decoration: none;
}
.site-search-hit a:hover,
.site-search-hit.is-active a {
  color: #c45911;
  background: #F6F2EE;
}
.site-search-empty {
  font-size: 12px;
  color: #999;
  padding: 5px 6px;
}

/* ---------- Page body ---------- */

#pageBodyWrapper {
  padding-top: 40px;
}
#contentWrapper {
  width: 100%;
}
#content {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Tahoma', sans-serif;
  color: #000;
}

.document-title {
  margin-bottom: 1.2em;
  font-family: 'Copse', serif;
  font-weight: normal;
  font-size: 20px;
  color: #555;
  text-transform: lowercase;
}
.document-title a { color: #888; }
.document-title a:hover { color: #000; }

.header { margin-bottom: 2em; line-height: 1.6; color: #444; font-size: 13px; }
.body { margin: 1em 0 2em 0; }

h3 { font-family: 'Copse', serif; font-weight: normal; margin: 0 0 0.4em 0; font-size: 15px; color: #c45911; }

.clearer { clear: both; }
p { margin: 0.7em 0; }

/* ---------- Single-column portfolio index (image left / description right) ---------- */

.portfolio-index {
  list-style: none;
  padding: 0;
  margin: 0;
}
.portfolio-card {
  margin: 0 0 36px 0;
  padding: 0;
}
.portfolio-card::after { content: ""; display: block; clear: both; }
.portfolio-card a {
  display: block;
  color: #444;
}
.portfolio-card .card-thumb {
  float: left;
  width: 200px;
  margin-right: 24px;
}
.portfolio-card .card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.portfolio-card .card-body {
  overflow: hidden;
}
.portfolio-card .card-title {
  font-family: 'Copse', serif;
  font-size: 15px;
  color: #c45911;
  display: block;
  margin-bottom: 6px;
  text-transform: lowercase;
}
.portfolio-card .card-count { color: #999; font-size: 12px; }
.portfolio-card .card-desc { font-size: 12px; color: #444; line-height: 1.6; }

/* ---------- Gallery (single portfolio page) ---------- */

.picture-gallery-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.picture-gallery-list li {
  margin: 0 0 40px 0;
  padding: 0;
}
.picture-gallery-list li::after { content: ""; display: block; clear: both; }
.thumbnail-container-with-description { text-align: center; }
.thumbnail-wrapper { display: inline-block; }
.thumbnail-wrapper a { display: inline-block; line-height: 0; }
.thumbnail-wrapper img {
  max-width: 100%;
  height: auto;
}
.picture-gallery-list .description {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}
.picture-gallery-list .description p { margin: 0.4em 0; }
.picture-gallery-list .description h3 { margin-bottom: 0.3em; }

/* ---------- Home page ---------- */

.home-image { text-align: center; }
.home-image img { max-width: 100%; height: auto; }

/* ---------- About leaves and index ---------- */

.about-entry { margin-bottom: 2.5em; }
.about-entry h3 {
  font-family: 'Copse', serif;
  font-size: 18px;
  color: #c45911;
  margin: 0 0 0.6em 0;
  text-transform: none;
}
.about-entry h3 a { color: #c45911; }
.about-entry h3 a:hover { color: #000; }
.about-entry-body p { margin: 0.6em 0; }

/* ---------- Footer ---------- */

#pageFooterWrapper {
  padding: 50px 0;
}
#pageFooter {
  font-family: 'Lucida Sans Unicode', sans-serif;
  font-size: 11px;
  color: #999;
  padding-top: 30px;
  border-top: 1px dotted #D4D4D4;
  text-align: center;
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
}
.lightbox-caption {
  color: #eee;
  font-family: 'Lucida Sans Unicode', sans-serif;
  font-size: 13px;
  margin-top: 14px;
  max-width: 800px;
  text-align: center;
  line-height: 1.5;
}
.lightbox-caption h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 6px 0;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  color: #fff;
  font-family: serif;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}
.lightbox-close { top: 12px; right: 18px; font-size: 28px; padding: 10px 16px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 36px; padding: 10px 16px; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: #ccc; }

/* ---------- Responsive: tablet and below ---------- */
/*
 * The original Squarespace layout pins the nav top-right via absolute
 * positioning against a fixed 1082px canvas. Below ~860px the banner and
 * nav collide, so we drop the nav into normal flow, centered under the
 * banner, and stack the floated portfolio thumbnails.
 */

@media (max-width: 860px) {
  #pageHeaderWrapper { padding-top: 20px; padding-bottom: 20px; }
  #navigationTop {
    position: static;
    top: auto;
    right: auto;
    margin-top: 18px;
  }
  #navigationTop .horizontalNavigationBar { width: 100%; }
  .horizontalNavigationBar ul.content-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .horizontalNavigationBar ul.content-navigation li.module { float: none; }
  #bannerArea { display: block; text-align: center; }
  #bannerWrapper img { margin: 0 auto; }
  #pageBodyWrapper { padding-top: 28px; }
}

/* ---------- Responsive: phone ---------- */

@media (max-width: 600px) {
  #canvasWrapper { padding: 0 16px; }

  /* Stack portfolio cards: image above description */
  .portfolio-card .card-thumb {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px auto;
  }
  .portfolio-card .card-body { text-align: center; }

  .document-title { font-size: 18px; }

  /* Larger lightbox touch targets, sized to the viewport */
  .lightbox-overlay { padding: 16px; }
  .lightbox-overlay img { max-width: 94vw; max-height: 74vh; }
  .lightbox-prev, .lightbox-next { font-size: 30px; padding: 16px 14px; }
  .lightbox-close { font-size: 30px; padding: 12px 16px; }
}
