/* Ehrlich Steinberg: shared styles for exhibition, artist, press and event pages.
   Change something here and it changes on every one of those pages. */

* { box-sizing: border-box; }

html {
  width: 100%;
  height: 100%;
}

body {
  background: #FFFDD0;
  color: black;
  font-family: 'Times New Roman';
  font-size: 0.9em;
  margin-left: 40px;
  margin-top: 40px;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  color: blue;
  text-decoration: underline;
}

img {
  border: 1px solid black;
  vertical-align: middle;
}
img.resize {
  max-width: 60%;
  max-height: 60%;
}

/* The text column on exhibition pages */
table {
  border-collapse: collapse;
  width: 30em;
  text-align: left;
}
table, td, th {
  border: 0;
}
th {
  width: 10em;
  vertical-align: top;
  font-weight: normal;
}

p {
  padding-bottom: 20px;
}

/* Phones: fit everything to the screen width. Desktop is unaffected. */
@media only screen and (max-width: 600px) {
  body {
    width: auto;
    margin: 24px 16px;
  }
  table, th {
    width: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  img.resize {
    max-width: 100%;
    max-height: none;
  }
}
