/* The old styles.css had a bazillion different styles. Let's be careful what we let in. */

body {
    font-family: "Arimo", "arial", "helvetica", sans-serif;
}  

@media screen {
    body {
        background-color: #e8e8e8;
    }

    .background {
        background-color: white;
        color: black;
        width: 90%;
        max-width: 800px;
        box-shadow: #d0d0d0 2px 2px;
        display: block;
        padding: 1em;
    }
}

@media (min-width: 450px) {
    .background {
        margin: 1.5em;
        margin-left: auto;
        margin-right: auto;
    }
}

@media print {
    .noprint, .navigation {
        display: none;
    }
}

#title_box {
    overflow: hidden;
    width: 100%;
}

#title_box img {
    border-style: none;
}

#title_logo {
    float: left;
    margin: 0.5em;
    margin-top: 1.5em;
    width: 50px;
    height: 48px;
}

@media (min-width: 450px) {
    #title_logo {
        float: left;
        margin: 0.5em;
        width: 100px;
        height: 96px;
    }
}

#title_caption {
    display: table-cell;
    vertical-align: middle;
    padding-left: 1em;
    padding-right: 1em;
    height: 6em;
}

.picture_gallery {
    margin: 1em 1em 1em 0em;
    float: left;
}

#galleria{ height: 300px; }

#galleria{ width: 100%; }

@media (min-width: 550px) {
    #galleria{ width: 450px; }
}

/* "Toolbar" (horizontal list of links); "compact" (similar but without spacing) */
ul.toolbar, ul.compact {
  width: 100%;
  padding: 0px;
  margin-left: 0px;
}

ul.toolbar li, ul.compact li {
  display: inline;
  list-style-type: none;
  padding: 0px;
  font-style: italic;
}

ul.toolbar li {
  padding-right: 1em;
}

ul.toolbar li:last-child {
  padding-right: 0px;
}

h1 {
  margin-top: 21px;
  margin-bottom: 21px;
  font-family: "Montserrat", "Arimo", "arial", "helvetica", sans-serif;
  font-weight: normal;
  font-size: 28px;
}

h2 {
  margin-top: 19px;
  margin-bottom: 19px;
  font-weight: bold;
  font-family: "Montserrat", "Arimo", "arial", "helvetica", sans-serif;
  font-weight: normal;
  font-size: 21px;
}

h3 {
  font-family: "Montserrat", "Arimo", "arial", "helvetica", sans-serif;
  font-weight: normal;
  font-size: 17px;
}

@media (min-width: 450px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
}

div.social_media_feeds {
    min-height:410px;
}

div.social_media_feeds div {
    display: inline;
    margin-top: 0.5em;
}

p.credits {
  font-style: italic;
  /* Specify size elsewhere? */
  font-size: 80%; 
}

/* TODO: REVIEW THE FOLLOWING. It was taken directly from the old styles.css, and I'm not sure we want it. */

/* For formatting photographs */
div.photos {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    text-align: center;
}

div.photos img {
    margin-left: 4px;
    margin-right: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
    vertical-align: middle;
}

div.photos img, img.photo, div.floating-photo img {
    border: 10px solid #fafafa;
    box-shadow: 2px 2px 0px #a1988d;
    -moz-box-shadow: 2px 2px 0px #a1988d;
    -webkit-box-shadow: 2px 2px 0px #a1988d;
}

img.photo {
    margin: 5px;
}

/* FIXME: This was copied across from the original styles.css. I'm not sure I
 * like it. */
div.floating-photo {
    float:right;  /* Can, of course, be overridden */
    padding-left: 1em;
    padding-bottom: 1em;
    font-size: 90%;
    font-weight: normal;
    max-width: 100%;
}

/* REVIEW THE FOLLOWING ends */

ul.navigation {
    text-align: right;
    padding-top: 1em;
    clear: both;
}

ul.navigation li {
    display: inline;
    list-style-type: none;
    padding: 0px;
    padding-right: 1em;
}

ul.navigation li:last-child {
  padding-right: 0px;
}

/* TODO: REVIEW THE FOLLOWING. It was taken directly from the old styles.css, and I'm not sure we want it. */
/* This is used as a way of breaking up sections. It should be an "hr" - it
 * isn't because of an IE6 bug (can't eliminate the <hr> border). */
div.section-separator {
    text-align: center;
    background:url('resources/section_separator.gif') no-repeat center center;
    width: 100%;
    height: 17px;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border: none;
}
/* REVIEW THE FOLLOWING ends */

ul.multicolumn-list {
    column-rule: thin dotted green; -moz-column-rule: thin dotted green; -webkit-column-rule: thin dotted green;
}

ul.list-3 {
    column-count: 3; -moz-column-count: 3; -webkit-column-count: 3;
    list-style-position: inside;  /* webkit list bug? */
}

ul.list-4 {
    column-count: 4; -moz-column-count: 4; -webkit-column-count: 4;
    list-style-position: inside;  /* webkit list bug? */
}

ul.list-dynamic-columns-3 {
    list-style-position: inside;  /* webkit list bug? */
}

@media (min-width: 675px) {
    ul.list-dynamic-columns-3 {
        column-count: 2; -moz-column-count: 2; -webkit-column-count: 2;
    }
}

@media (min-width: 975px) {
    ul.list-dynamic-columns-3 {
        column-count: 3; -moz-column-count: 3; -webkit-column-count: 3;
    }
}

/* TODO: REVIEW THE FOLLOWING. It was taken directly from the old styles.css, and I'm not sure we want it. */
/* Multi-column list */

/* We sometimes have a list of things which is displayed in multiple columns,
 * going down before going right. It works by having a table with a single row
 * representing the columns. Each cell in the row is an individual list.
 * Depending upon wrapping, the columns can end up being different lengths.
 * When this happens, it looks awkward, although depending upon what we are
 * using it for, it may not matter. Having short items makes this unlikely. */

/* When a table is used as a sort of list (outer table) */
table.multicolumn-list {
    width: auto;
    border: none;
}

table.multicolumn-list td {
    vertical-align:top;
    border: none;
    padding: 1px;
}

/* Dividing the list into columns */
table.multicolumn-list td.separated {
    border-left:thin dotted green;
}

/* Unordered list used within this multi-column set-up */
table.multicolumn-list ul, ul.multicolumn-list {
    padding: 0px 4px;
    margin: 0px;
}

table.multicolumn-list ul li, ul.multicolumn-list li {
    font-weight: bold;
    padding: 4px;
    list-style-type: none;
}

/* For when the multi-column list is itself tabular (but we want it in multiple
 * columns). */
table.multicolumn-list table {
    font-weight: bold;
    width: 100%;
    border: none;
}

table.multicolumn-list table td {
    padding: 5px;
}
/* REVIEW THE FOLLOWING ends */

/* Image (etc.) caption */
p.caption {
  font-size: 90%;
  font-weight: normal;
  margin-top: 0;
  text-align: center;
}

cite {
    font-style: italic;
}

/* Stop the Facebook "like" box from overflowing */
.fb-like-box * {
    max-width: 100%;
}
