/* reset
++++++++++++++++++++++++ */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, input,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  font-size: 1em;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* general
++++++++++++++++++++++++*/

body {
  font: 100% arial, trebuchet ms, sans-serif; /* 16px */
  line-height: 1.2; /* no unit - multiplier is inherited, not absolute value */ 
  background: #fff;
  color: #000;
  -webkit-text-size-adjust: 100%;
}

p {
  margin: 0.6em 0 1.2em;
}

.hide {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
}

.clear {
  clear: both;
  height: 0px;
}

a img {
  border: 0;
} 

body a:link,
body a:visited {
  color: #6F4E00;
}

body a:hover {
  color: #333333;
}

body a:active,
body a.active {
  color: #C23F26;
}

p.no-top-spacing {
  margin-top: 0;
  padding-top: 0;
}


/* page
++++++++++++++++++++++++++++*/

#page {
  position: relative;
  width: 800px;
  margin: 0 auto;
}


/* skip links
++++++++++++++++++++++++++++*/

#skip-to-content a {
  position: absolute;
  z-index: 2;
  left: -9999px;
  top: -9999px;
  height: 1px;
}  

#skip-to-content a:focus {
  top: 0;
  left: 0;
}


/* header
++++++++++++++++++++++++++++*/

#header {
  position: relative;
  height: 226px;
  background: #FFFFFF;
}

#header .mobile-img {
  display: none;
}


/* primary links
++++++++++++++++++++++++++++*/

#menu-primary {
  font-size: 0.750rem; /* 12px */
  padding-left: 20px;
  margin-top: 5px;
}

#menu-primary ul {
  margin: 0;
  padding: 0;
  margin-top: 15px;
  display: inline-block;
}

#menu-primary ul li {
  padding: 0;
  padding-left: 10px;
  padding-right: 10px;
  list-style-image: none;
  border-right: 2px solid #C23F26;  
  display: inline;

}

#menu-primary ul li a {
  text-decoration: none;
  color: #C23F26;
}

#menu-primary ul li a.active {
  color: #000000;
}

#menu-primary ul li a:hover {
  color: #000000;
}

#menu-primary ul li.last {
  border-right: none;
}

/* site name
++++++++++++++++++++++++++++*/

#site-name h1 {
  clear: both;
}

#site-name h1 {
  font-family: verdana, arial, sans-serif;
  font-size: 1.8em; /* 29px */
  font-weight: bold;
}

#site-name h1 a {
  color: #000;
  text-decoration: none;
}

#site-slogan {
  width: 235px;
  font-family: verdana, arial, sans-serif;
  font-size: .875em; /* 14px */
  font-style: italic;
  text-align: right;
}

/* secondary links
++++++++++++++++++++++++++++*/

#menu-secondary {
  margin: 10px 0;
  font-size: .875em; /* 14px */
  padding-left: 30px;
  padding-top: 30px;
}

#menu-secondary span {
  padding-right: 10px;
}

#menu-secondary span,
#menu-secondary .categories {
  display: inline;
}

#menu-secondary span {
  font-weight: bold;
}

#menu-secondary ul.secondary-menu {
  margin: 0;
  padding-top: 10px;
  display: block;
}

#menu-secondary ul li {
  display: inline;
  margin: 0 8px 0 0;
  padding: 0;
  border-left: 2px solid #000000;
  padding-left: 12px;
  text-transform: uppercase;
  font-size: 0.75rem /* 12px */;
}

#menu-secondary ul li.first {
  border-left: none;
  padding-left: 0;
}

#menu-secondary ul li a.active {
  color: #DAB066 !important;
}

#menu-secondary ul li a:link, #menu-secondary ul li a:visited {
  color: #000;
}


/* search box
++++++++++++++++++++++++++++*/

#block-search-form,
#views-exposed-form-exhibitions-page {
  position: absolute;
  top: 215px;
  right: 40px;
  font-size: .875em; /* 14px */
}

#edit-search-block-form-1-wrapper {
  float: left;
  margin: 0;
}

#block-search-form label,
#views-exposed-form-exhibitions-page label {
  display: inline;
  font-weight: normal;
}

#search-block-form .form-type-textfield {
  float: left;
  margin: 0;
}

#search-block-form .form-text,
#views-exposed-form-exhibitions-page .form-text {
  height: 18px;
  width: 150px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  margin: 0;
}

#views-exposed-form-exhibitions-page .form-text {
  width: 180px;
}

.content #search-form #edit-keys {
  max-width: 75%;
 }

.advanced-search {
  text-align: right;
  font-size: 0.8rem /* 13px */;
}

.node-type-exhibition #block-search-form,
.page-exhibitions #block-search-form,
.node-type-exhibition .advanced-search,
.page-exhibitions .advanced-search {
  display: none;
}

#views-exposed-form-exhibitions-page .views-submit-button,
#views-exposed-form-exhibitions-page #edit-title-wrapper {
  padding: 0;
}

#views-exposed-form-exhibitions-page .views-exposed-form .views-exposed-widget .form-submit {
  margin-top: 17px;
}

#views-exposed-form-exhibitions-page .views-exposed-widget {
  float: left;
}


/* Search page
++++++++++++++++++++++++++++*/

/* Advanced search can't be turned off for user 1, so hide it instead */
#search-form #edit-advanced {
  display: none;
}

#search-form #edit-basic {
  margin: 1em 0;
  display: block;
}

#search-form .form-item label {
  display: block;
}

.advanced-search-explanation {
  display: none;
}

#block-views-exp-exhibitions-page {
  display: none;
}


/* content
++++++++++++++++++++++++++++*/

#content {
  font-size: .8em; /* 13px */
  padding: 50px 30px 10px;
  background: #fff;
}

#content h1 {
  color: #000000;
  font-family: arial, sans-serif;
  font-size: 1.125em;
  margin: 0 0 1em 0;
}

.front #content h1 {
  font-size: 19px;
}

#content div.links,
#content #comments {
  margin: 20px 0 0 0;
}

#content .right-offset {
  float: right;
  max-width: 200px;
  padding: 0 0 20px 20px;
}

#content .right-offset img {
  border-top: 7px solid #0e0e0e;
  border-bottom: 7px solid #0e0e0e;
}


/* home page
++++++++++++++++++++++++++++*/

.front #content h1 {
  margin: 0 0 5px;
}

.front .node > .content {
  padding-bottom: 20px;
}

.front .random-image {
  float: left;
  text-align: center;
}

.front .random-image .flexslider ul.slides li img {
  margin: 0 auto;
}

.front .random-image {
  width: 380px;
  height: 310px;
  
  float: left;
}

.front .random-image .outer {
  border: 1px solid #ccc;
  width: 100%;
  height: 300px;
}

.front .flex-nav-container {
  margin-bottom: 0;
}

/* Painting nodes
++++++++++++++++++++++++++++*/

.node-type-painting .content .left {
  margin-top: 6px;
}

.node-type-painting .left > div {
  padding-top: 10px;
  padding-bottom: 5px;
}

.node-type-painting .label {
  width: 145px;
  font-weight: bold;
}

.node-type-painting .content p {
  margin-top: 0;
}

div.painting ul {
  margin: 0;
  padding: 0;
}

div.painting ul li {
  margin: 0;
  padding: 0;
  list-style: circle inside;
}

div.painting div.right {
  float: right;
  text-align: center;
  padding: 5px 5px 20px 5px;
  margin: 0 0 10px 10px;
  border: 1px solid #cccccc;
  background-color: #eeeeee;
}

div.right img {
  margin-bottom: 5px;
}

#mccahon-painting-tagform #edit-tag {
  float: left;
  margin-right: 10px;
}

div.painting  div.right fieldset {
  padding: 5px;
}


/* Exhibition nodes
++++++++++++++++++++++++++++*/

.node-type-exhibition .left .field {
  margin-bottom: 10px;
}

.view-exhibitions table {
  width: 100%;
}

.view-exhibitions table tr.even {
  background-color: #ffffff;
}

.view-exhibitions table th,
.view-exhibitions table td {
  padding: 10px;
}

.view-exhibitions table td.active {
  background-color: inherit;
}

.view-exhibitions table .active img {
  padding-left: 5px;
}

.view-exhibitions .bottom-pager {
  text-align: right;
  margin-top: 0.75em;;
}

.view-exhibitions table .views-field-title {
  width: 40%;
}

.view-exhibitions table .views-field-field-venue {
  width: 30%;
}

.view-exhibitions table .views-field-field-city,
.view-exhibitions table .views-field-field-start-year {
  width: 15%;
}

.page-exhibitions #block-views-exp-exhibitions-page,
.node-type-exhibition #block-views-exp-exhibitions-page {
  display: block;
}


/* general page
++++++++++++++++++++++++++++*/

.tableconditions br {
  line-height: 0;
}
.tableconditions table.conditions th {
  background-color: #999;
  border-bottom: none;
}
.tableconditions table.conditions td {
  padding-bottom: 10px;
  vertical-align: top;
}
.smaller_font {
  font-size: 8pt;
}

/* tags
++++++++++++++++++++++++++++*/

#block-views-tag_cloud {
  width: 300px;
  float: left;
  margin: 0 20px 0 0;
}

#block-mccahon_painting-tags .content {
  border: 1px solid #ccc;
  width: 200px;
  height: 200px;
  overflow: auto;
}


/* search
++++++++++++++++++++++++++++*/

.easy-search {
  width: 400px;
  float: left;
  clear: both;
}

/* Views header
++++++++++++++++++++++++++++*/
.view .view-header {
  padding-bottom: 10px;
}

.view .view-header p:last-child {
  margin-bottom: 0;
}

.view .view-header ul li {
  display: inline;
}

/* views
++++++++++++++++++++++++++++*/

.view-header em,
.view-empty em {
  font-weight: bold;
  font-style: normal;
}

.pager a:link,
.pager a:visited {
  color: #c23f26;
}

#views-filters table th {
  border: 0;
}

#views-filters table tbody {
  border: 0;
}

#views-filters table tr.odd, #views-filters table tr.even {
  border: 0;
  background: transparent;
  padding: 0;
}

#views-filters table td {
  padding: 0 10px 0 0;
}

.search-results {
  clear: both;
}

.not-front .view div.node,
.not-front .view-view-eh .item-list ul li,
.search-results div.node {
  float: left;
  clear: none;
  width: 150px; /* max image size 120x120 */
  height: 240px;
  margin: 0 32px 0 0;
  margin-bottom: 20px;
}

#content .node .content  p
{
  margin-bottom: 1em;
  line-height: 150%;
}

.view .p-image,
.view-view-eh .item-list .view-data-content-type-painting-rel-p-image,
.search-results .p-image {
  width: 140px;
  height: 200px;
  border: 1px solid #000;
}

.top-pager {
  float: right;
}

.outer {
  display: table; 
  height: 158px; 
  overflow: hidden;
  border: 1px solid #111111;
  background-color: #ffffff;	
  width: 120px;
  padding: 5px 10px;  
  margin-bottom: 10px;
}

.carousel-image-outer {
  display: table; 
  height: 90px; 
  overflow: hidden;
  border: 2px solid #ccc;
  background-color: #fff;	
  width: 120px;
  padding: 0px 10px;
}

.middle {
  display: table-cell;
  vertical-align: middle;
}

.not-front .inner .imageContainer {
  text-align: center;
  width: 120px;
}

td.field,
td.value {
  vertical-align: top;
  padding-bottom: 10px;
}

.view .p-title a,
.view-view-eh .view-data-content-type-painting-rel-p-title a,
.search-results .p-title a,
.value a {
  text-decoration: none;
  color: #6F4E00;
}

.view .p-title a:hover,
.view-view-eh .view-data-content-type-painting-rel-p-title a:hover,
.search-results .p-title a:hover,
.value a:hover{
  text-decoration: none;
  color: #000;
}

.view .p-image img,
.view-view-eh .view-data-content-type-painting-rel-p-image img,
.search-results .p-image img {
  position: absolute;
  bottom: 0;
  left: 0;
  vertical-align: middle;
}

.view-by-exhibition .item-list ul {
  padding: 0;
  margin: 0;
}

.view-by-exhibition .item-list li {
  clear: both;
  list-style: none;
  padding: 0;
  margin: 0;
}

.view-by-exhibition .view-data-image-attach-iid {
  margin: 10px 0 10px 0;
}

.view-view-eh .item-list ul {
  margin: 0;
  padding: 0;
}

.view-view-eh .item-list ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jcarousel-item img {
  width: 75px;
  height: auto;
}

.bottom-pager,
.top-pager {
  clear: both;
  text-align: center;
}

.top-pager .item-list,
.bottom-pager .item-list,
.item-list .pager.forward,
.item-list .pager.back {
  display: inline-block;
}

.bottom-pager .item-list:first-child {
  display: block;
}

.item-list .pager li {
  margin: 0;
}

.item-list  ul li {
  list-style-type: square;
  padding-left: 10px;
  line-height: 200%;
}

/* Advanced Search view
++++++++++++++++++++++++++++*/

.view-advanced-search .views-exposed-form label {
  float: left;
  width: 200px;
}

.view-advanced-search .views-exposed-widget {
  float: none;
  clear: left;
}

.view-advanced-search .views-exposed-widget select,
.view-advanced-search .views-exposed-widget input {
  width: 330px;
}

.view-advanced-search #edit-submit {
  width: auto;
}

.view-advanced-search .views-exposed-form .views-exposed-widget .form-submit {
  margin: 0;
}

.views-exposed-form .views-exposed-widget .form-submit {
  margin-top: 1.2em;
}

#edit-submit-advanced-search {
  width: auto;
}

#exposed_dates .views-exposed-widget label {
  width: auto;
  float: left;
  margin-right: 10px;
}

#exposed_dates .views-exposed-widget .views-widget {
  width: auto;
  float: left;
}

#exposed_dates .views-exposed-widget {
  float: left;
  clear: none;
}

#edit-field-year-started-and-finished-value-1-wrapper {
  display: none;
}

#exposed_dates select {
  width: auto;
}


/* footer
++++++++++++++++++++++++++++*/

#footer {
  background: #ffffff;
  font-size: .7em; /* 11px */
  padding: 0px 30px;  
  margin-top: 10px;
}

#footer .content {
  padding: 20px 0;
  border-top: 5px solid #B8AE94;
  border-bottom: 5px solid #B8AE94;  
}

#footer .block-menu {
  text-align: right;
}

#footer .block-menu ul {
  margin: 0;
  padding: 0;
  display: inline;
}

#footer .block-menu ul li {
  display: inline;
  margin: 0;
  padding: 0 7px;
  list-style: none;
  border-right: 1px solid #B8AE94;
}

#footer .block-menu ul li.last {
  border-right: 0;
  padding-right: 0;
}


/* other modules
++++++++++++++++++++++++++++*/

#header img {
  background: #A59A7C;
}

a {  
  text-decoration: none;
}

/* Home page icons */

#HomePageIcons {
  max-width: 310px;
  margin-left: 10px;
  position: absolute;
  right: 30px;
  line-height: 1.4;
}

#HomePageIcons ul li {
  padding: 5px;	
  padding-top: 10px;
  font-size: 0.75rem; /* 12px */
}

#HomePageIcons ul li img {
  float: left;
  clear: left;
  margin-right: 5px;
  margin-bottom: 5px;
}	


/* Picture rotator
++++++++++++++++++++++++++++*/

.floatleft {
  float: left;
}

.floatright {
  float: right;
}

#RotatePictures {
  width: 380px;
  height: 310px;
  border: solid 1px #ccc;
  padding: 10px;
}

#RotatePictures ul {
  list-style: none;
}

#RotatePictures div {
  text-align: center;
  height: 345px;
}

#RotatePictures .RandomImageDiv strong {
  font-weight: normal;
  height: 345px;
}

.RotatePictureButtons {
  width: 210px;
}

.nextClass {
  float: right;
}

.prevClass {
  float: left;
}


@media only screen and (max-width: 799px) {
  #page {
    width: 100%;
    padding: 0;
  }

  #header {
    height: auto;
  }

  #header img {
    height: auto;
    width: 100%;
    display: block;
  }

    /* home page
  ++++++++++++++++++++++++*/
  .front .random-image .outer {
    padding: 0;
  }
}


@media only screen and (max-width: 767px) {

  /* general
  ++++++++++++++++++++++++*/


  #header .mobile-img {
    display: block;
  }

  #header .desktop-img {
    display: none;
  }

  #content {
    padding-top: 10px;
  }

  #footer .block-menu {
    text-align: center;
  }

  /* navigation
  ++++++++++++++++++++++++*/
  #menu-primary {
    padding: 0 20px;
  }
  
  #menu-primary ul {
    margin: 0;
  }

  #menu-primary ul li {
    display: block;
    padding: 5px 10px;
    width: auto;
    border-bottom: 1px solid #b8ae94;
    border-right: none;
  }

  #block-search-form, 
  #views-exposed-form-exhibitions-page {
    position: static;
    padding: 40px 30px 10px;
  }

  #search-block-form .form-item-search-block-form {
    display: table;
    width: 100%;
  }

  #search-block-form .form-item-search-block-form label {
    display: table-cell; 
    width: 55px;
  }

  #search-block-form .form-item-search-block-form input {
    display: table-cell;
    width: 99%;
  }


  #search-block-form #edit-actions {
    position: absolute;
    right: 29px;
  }

  .advanced-search {
    display: none;
  }

  .advanced-search-explanation {
    display: inline;
  }

  .nav-toggle {
    background-image: url("/sites/all/themes/mccahon/images/menu-toggle.png");
    background-position: right 2px;
    background-repeat: no-repeat;
    height: 25px;
    position: absolute;
    right: 30px;
    margin-top: 8px;
    text-indent: -35px;
    white-space: nowrap;
    width: 35px;
    z-index: 10;
  }

  #menu-secondary {
    padding-top: 0;
  }

  /* home page
  ++++++++++++++++++++++++*/
  #HomePageIcons {
    position: relative;
    margin-left: 26px;
    max-width: none;
    clear: both;
  }

  .front .random-image {
    width: 100%;
  }

  .front .random-image .outer {
    padding: 0;
  }

  .front .random-image .outer img {
    width: 85%;
    max-height: 290px;
    max-width: 380px;
  }

  #HomePageIcons {
    clear:both;
    position: relative;
  }

  /* page nodes
  ++++++++++++++++++++++++*/

  .node-type-page .content img {
    max-width: 100%;
    height: auto;
    width: auto;
  }

  /* painting nodes
  ++++++++++++++++++++++++*/

  div.painting div.right {
    float: none;
    margin: 0 auto 10px;
  }

  div.painting table td.field {
    width: 25%;
    font-weight: bold;
  }

  div.painting table td.value {
    padding-left: 8px;
  }

  body.carousel div.painting div.right {
    margin: 0 auto;
  }

  /* painting view
  */
  .not-front .view div.node,
  .not-front .view-view-eh .item-list ul li,
  .search-results div.node {
    margin-right: 5px;
  }
}

@media only screen and (max-width: 460px) {

  /* painting nodes
  ++++++++++++++++++++++++*/

  body.carousel div.painting div.right {
    width: 245px;
  }
  
  body.carousel .jcarousel-skin-tango .jcarousel-container-horizontal {
    padding: 20px 0;
  }
}

@media only screen and (max-width: 385px) {

  .not-front .view div.node {
    margin: 0;
    width: 100%;
  }
  
  .outer {
    padding: 0;
    width: 100%;
  }
  
  .not-front .inner .imageContainer {
    width: 100%;
  }

  /* about mccahon page
  ++++++++++++++++++++++++*/
  
  #content .right-offset {
    float: none;
    padding: 0;
  }
}