/**
 * @file
 * Caption filter default styling for displaying image captions.
 * Taken and modified from caption_filter module.  caption_filter module css is unset in template.php
 */

div.caption,
div.caption-width-container {
  max-width: 100%;
}

div.caption-inner {
  padding: 4px;
  font-size: 0.857em; /* assuming you have a base font size of 14px, this is 12px */
  text-align: center;
  max-width: 100%;
  width: auto;
}

div.caption p.caption-text {
  margin: .25em 0;
}

div.caption img,
div.caption object {
  margin-bottom: 5px;
  display: block;
}

/** aligned captions **/
div.caption-left {
  float: left;
  margin: .5em 1em 1em 0;
}

div.caption-right {
  float: right;
  margin: .5em 0 1em 1em;
}

div.caption-center {
  display: block;
  text-align: center;
}

div.caption-center .caption-width-container {
  display: inline-block;
}
