html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, li, nav, header, footer, section { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
body { line-height: 1.6em; font-size: 13px; font-family: 'Crimson Text', Georgia, serif; color: #454545; }
ul { list-style: none; }
a { color: #0085bd; text-decoration: none; }
a:hover { color: #60a5dd; }
*, *:before, *:after { box-sizing: border-box; }

#topBar {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.siteTitle .logo-text {
  font-family: 'Crimson Text', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #454545;
  text-decoration: none;
}

.siteTitle img {
  max-height: 30px;
  width: auto;
}

.main-nav ul {
  font-family: 'Crimson Text', serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
  letter-spacing: .02em;
}

.main-nav ul li {
  display: inline-block;
  position: relative;
  margin-left: 25px;
}

.main-nav ul li a {
  color: #454545;
  text-decoration: none;
  padding-bottom: 4px;
}
.main-nav ul li a:hover {
  color: #000;
}

.main-nav ul li.folder > a:after {
  content: ' \25BE';
  font-size: 10px;
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 0;
  min-width: 140px;
  z-index: 20;
}

.main-nav ul li:hover .subnav {
  display: block;
}

.subnav ul li {
  display: block;
  margin: 0;
}

.subnav ul li a {
  display: block;
  padding: 5px 20px;
  font-size: 12px;
  color: #454545;
}

.subnav ul li a:hover {
  background: #f6f6f6;
}

#container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  min-height: 400px;
}

.page-content h3 {
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid .item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.gallery-grid .meta {
  margin-top: 5px;
  text-align: left;
  font-size: 11px;
  color: #888;
  line-height: 1.4em;
}

.gallery-grid .meta .title {
  font-weight: 700;
  font-size: 12px;
  color: #454545;
}

#bottomBar {
  border-top: 1px solid #eee;
  padding: 25px 30px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  margin: 0 8px;
  color: #888;
}

.social-links .svg-icon {
  width: 20px;
  height: 20px;
  fill: #888;
  transition: fill .2s;
}
.social-links a:hover .svg-icon {
  fill: #454545;
}

a.btt {
  display: block;
  position: fixed;
  z-index: 8000;
  width: 65px;
  height: 65px;
  right: 30px;
  bottom: 2em;
  border-radius: 35px;
  box-shadow: 3px 3px 10px rgba(23,25,25,.2);
  transition: transform .3s ease-in-out;
}
a.btt:hover {
  transform: translateY(-15%);
}
a.btt img {
  border-radius: 35px;
  width: 65px;
  height: 65px;
}

@media (max-width: 830px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 640px) {
  #topBar {
    flex-direction: column;
    padding: 10px 15px;
  }
  .siteTitle { margin-bottom: 10px; }
  .main-nav ul li {
    margin: 0 8px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  #container {
    padding: 15px;
  }
}
