/* CSS for the content of the page */

/* Main content container: gallery and comments side by side, equal height */
.content-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

/* Gallery and comment-container share available height equally */
.gallery,
.comment-container {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 4px solid #ccc;
}

.gallery {
  padding: 0;
  height: 100%;
  margin: 0 0.5em;
}

.gallery-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  border-bottom: 2px solid #ccc;
  background: #fff;
}

.gallery-details {
  font-size: 24px;
  font-weight: bold;
  text-align: left;
}

.gallery-image {
  object-fit: contain;
  display: block;
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  background-color: #888;
}

.gallery-image img {
  max-width: 75%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 2px solid #888;
  border-radius: 6px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px;
}

.gallery-author {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

.gallery-controls {
  margin-top: auto;
}

.comment-container {
  min-height: 0;
}

.comment-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  border-bottom: 2px solid #ccc;
}

.comment {
  margin: 0.25em 0;
  padding: 0.25em;
  border: 1px solid grey;
  display: flex;
  flex-direction: column;
}

.comment-metadata {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

.comment-author {
  font-weight: bold;
  font-size: 16px;
  margin: 5px;
}

.comment-text {
  font-size: 12px;
  margin: 2px;
}

.comment-date {
  font-size: 16px;
  color: #999;
}

.nav {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  margin: 0;
  border-top: 2px solid #ccc;
  background: #fff;
}

.comment-container > .nav {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}
