/*--------------------------------------------------------------
# photo2.js injected photos (FishReports <photo> tags)
# Bordered, captioned images embedded inline in the report body.
--------------------------------------------------------------*/
.photo2wrapper {
  padding: 4px;
  border: 1px solid #dddddd;
  height: auto;
  width: auto;
  max-width: 100%;
  display: inline-block;
  background-color: #ffffff;
  border-radius: 4px;
  margin-bottom: 15px;
}

.photo2wrapper img,
.photo2wrapper .img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo2comments {
  font-size: 0.9em;
  text-align: center;
}

.photo2comments.fish-species {
  font-weight: 600;
}

.photo2comments.fish-species a {
  color: var(--accent-color);
  text-decoration: none;
}

.photo2credits {
  font-size: 0.8em;
  font-style: italic;
  text-align: center;
  margin-top: 5px;
}

/* Float variants — applied when a <photo> tag carries an alignment class. */
.photo2wrapper.photo-left {
  max-width: 48%;
  max-width: calc(50% - 20px);
  float: left;
  margin-top: 0px;
  margin-right: 20px;
}

.photo2wrapper.photo-right {
  max-width: 48%;
  max-width: calc(50% - 20px);
  float: right;
  margin-top: 0px;
  margin-left: 20px;
}
