html {
  background-color: #fafafa;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva,
    Arial, sans-serif;
  font-size: 13px;
  padding: 0;
  margin: 0;
}

body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
}

main {
  flex-grow: 1;
}

body a {
  color: inherit;
}

a:link {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/** Header */

header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-buttons {
  white-space: nowrap;
}

.header-button {
  margin-left: 10px;
  /* Remove white space around the icon */
  font-size: 0;
}

.avatar {
  border-radius: 2px;
  margin-right: 10px;
}

.page-title {
  margin: 0;
  font-weight: normal;
}

.page-title-inner {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 450px) {
  .page-title {
    font-size: 20px;
  }
}

footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}

header,
footer {
  padding: 16px 0;
}

@media (max-width: 720px) {
  header,
  footer {
    padding: 8px 0;
  }

  header .page-content,
  footer .page-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.page-content {
  width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .page-content {
    width: auto;
    min-width: 320px;
  }
}

* {
  box-sizing: border-box;
}

.photo-post {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  margin: 30px 0;
}

.photo-frame {
  background: #f2f2f2;
  border-radius: 3px;
  position: relative;
  padding: 0;
  margin: 0;
}

.photo-img {
  border-radius: 2px 2px 0 0;
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

@media (max-width: 700px) {
  .photo-post {
    border-left: none;
    border-right: none;
  }

  .photo-post,
  .photo-frame,
  .photo-img {
    border-radius: 0;
  }
}

.photo-footer {
  border-top: 1px solid #e6e6e6;
  padding: 0 16px;
}

.photo-title {
  font-size: 14px;
}

.photo-date {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
}

/** Photo gallery */

.photo-gallery {
  margin: 30px 0;
  display: grid;
  column-gap: 30px;
  row-gap: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.photo-gallery-img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 720px) {
  .photo-gallery {
    margin: 3px 0;
    column-gap: 3px;
    row-gap: 3px;
  }
}

/** Pagination */

.pagination {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.pagination .previous:before {
  content: "« ";
}

.pagination .next:after {
  content: " »";
}

.pagination span.previous,
.pagination span.next {
  visibility: hidden;
}
