/*
	Theme Name: mhs-2013-responsive
	Theme URI: http://www.mhs.ox.ac.uk
	Description: MHS 2013 responsive
	Version: 1
	Author: J Dilkes
	Author URI: http://www.mhs.ox.ac.uk/staff
	Tags: Blank, HTML5, CSS3
	
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	
}
/* html element 62.5%  for REM use */
html {
	font-size:100%;
}
body {
	font:300 11px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color:#232b2b;
	background: #E3DEC1;
	margin-bottom: 1%;

	}

section div article p {
font-size:1.2em;
}

/*p {font-size: 1.1em;}*/
p, li, div.event {font-size: 1.1em;}
section div article#post-5 p {
font-size:1.3em;
}


.inwrap{
background:#fff;
-moz-box-shadow:0px 0px 5px rgba(0, 0, 0, 0.3);
-webkit-box-shadow:0px 0px 5px rgba(0, 0, 0, 0.3);
box-shadow:0px 0px 5px rgba(0, 0, 0, 0.3);
}

div.page {

padding: 0;
/* width: 64%; */
width: 95%;
margin: 0 auto;

}

/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#772b2d;
	text-decoration:none;
}
a:hover {
	color:#4EB1BA;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}
h1 {font-family: arial, sans-serif; font-size: 2em;}
h2 {font-family: arial, sans-serif;font-size:1.6em; font-weight:bold}
h3 {font-family: arial, sans-serif;font-size:1.5em; font-weight:bold}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	max-width:1280px;
	width:100%;
	margin:0 auto;
	position:relative;
	border-radius: 5px;
}
/* header */
.header {
max-width:1280px;
width: 100%;
background: #232b2b;
margin: 0;
margin-top: 1%;
}

p.copyright {
background: #232b2b;
color: #fff;
margin: 0;
padding-left: 10%;
padding-right: 10%;
padding-top: 1%;
padding-bottom: 1%;
text-align: center;
font-size:1em;
}
/* logo */

p.logofooter{
text-align:center;
margin: 0;
padding-left:0;
padding-right:0;
padding-top: 1%;
padding-bottom: 1%;
}

.logo {
padding:5px;
float:left;
}

.logo-img {
/* 
margin-left: 1%;
margin-top: 1%;
margin-bottom: 1%;
width:17%;
*/
width:201px;
height:60px;
}

/* nav */

.nav {
text-align:center;
font-family: arial, sans-serif;
font-size: 1.25em;
width: 100%;
background: #772b2d;
margin: 0 auto;
display: inline-block;
padding: 0;
}

nav ul li {
margin: 0 auto;
list-style-type: none;
display: inline-block;
background: #772b2d;
padding: 0;
padding-left: 1%;
padding-right: 1%;

}

nav ul li a {
margin:0 auto;
font-size: 1em;
text-align: center;
color: #fff;
padding: 0;
padding-left: 1%;
padding-right: 1%;
}

nav ul li a.hover {
color: #fff;
background: green;
}

.current-menu-item a {text-decoration: underline; }


/*footer nav */
/* nav */

.nav-footer {
font-size: 1.5em;
width: 100%;
background: #232b2b;
margin: 0 auto;
display: inline-block;
padding: 0;
}


/* sidebar */
.sidebar {
	
}
/* footer */
.footer {
	
}

div.address {float: right; margin-top:6px; margin-right: 1%; padding-bottom:5px;}
div.address p {padding: 0; margin: 0; color: #fff; font-size: 1.0em; line-height: 1.2em;}
div.hours {float: right; margin-top:6px; margin-right: 1%; color: #fff; font-size: .9em; }
div.hours p.days {float: right; text-align: right; padding: 0; margin: 0; margin-right: 8px; font-weight: bold;line-height: 120%;}
div.hours p.times {float: right; text-align: left; padding: 0; margin: 0; line-
height: 120%;}
div.hours p.admission {float: right; text-align: left; padding: 0; margin: 2px 40px 5px 0; line-height: 110%; clear: both; font-style: italic;}

/*------------------------------------*\
    PAGES
\*------------------------------------*/

/* In Print pages - added by EB on 22/04/2014 */

p.inprint{
	font-size: 1.6em;
}

p.inprintcaption{
	font-size: 1.4em;
}

h2.inprintcaption{
	text-align: center;
	font-size: 1.5em;
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family:'ostrich-black';
	src:url('/wp-content/themes/mhs-2013-responsive/webfonts/ostrich-black.eot');
	src:url('/wp-content/themes/mhs-2013-responsive/webfonts/ostrich-black.eot?#iefix') format('embedded-opentype'),
		url('/wp-content/themes/mhs-2013-responsive/webfonts/ostrich-black.woff') format('woff'),
		url('/wp-content/themes/mhs-2013-responsive/webfonts/ostrich-black.ttf') format('truetype'),
		url('/wp-content/themes/mhs-2013-responsive/webfonts/ostrich-black.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
   
/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/
   
.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {
	
}
.bypostauthor {
	
}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}

.sidebar-widget1 {
display: block;
float: left;
padding: 1%;

width: 16%;
}
.sidebar-widget2 {
display: block;
padding: 1%;
width: 16%;
height: 100%;
display: block;
float: right;
z-index: 1; 
top:0;
bottom:0;
}

.sidebar-widget3 {
display: block;
float: left;
padding: 1%;

width: 16%;
}

.sidebar-widget4 {
display: block;
padding: 1%;
width: 16%;
height: 100%;
display: block;
float: right;
z-index: 1; 
top:0;
bottom:0;
}


.sidebar-widget5 {
display: block;
padding: 1%;

width: 16%;
height: 100%;
display: block;
float: right;
z-index: 1; 
top:0;
bottom:0;
}
div.oethumb {
  float: left;
  width: 88px;
  border: thin silver solid;
  margin:0 auto;
  padding: 0.5em;
  height: 135px;
  text-align:center;
}

div.oethumb p {
  text-align: center;
  font-style: normal;
  font-size: smaller;
  text-indent: 0;
}


article div.event_details, article a.event_title, article div.event_time
{
 font-size:1.2em;
}

article a.event_title {
font-weight:bold;
}

article div.event {
    border-radius: 10px;
    border: 1px solid #772b2d;
    padding: 10px; 
    margin-bottom: 20px;
}



/* Class selectors for events     */
/* We could also use a list like  */
/* .Table.Talk {color ...         */
.Event {color: #639;}
.Drop {color: #390;}
.Talk {color: #660;}
.Table {color: #930;}
.Gallery {color: #888;}
.Exhibition {color: #fc9;}
.ArtatMHS {color: #660;}
.Conference {color: #9cf;}
.Workshop {color: #990;}
.Lecture {color: #c60;}

div.event {  padding: 5px; margin-bottom: 5px;}


/* Accessibility */

#accessibility
 {
  position: absolute;
  top: 10px;
  margin-left: 910px;
 }

.widget_listcategorypostswidget {padding: 0; margin-bottom: 5px; width: 100%; float: left;  }
.widget_listcategorypostswidget  ul {padding: 0;}
.widget_listcategorypostswidget  ul li {padding: 0; list-style-type: none}

.post {padding: 0;
/* width: 60%; */
width: 100%;
margin: 0 auto;
}

.floating-box
 {
  width: 190px;
  height: 100%;
  background: #fff;
  float: left;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
 }
.floating-box-right
 {
  width: 190px;
  height: 100%;
  background: #fff;
  float: right;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
margin: 10px;
 }

.floating-box-staff-list
 {
  width: 190px;
  height: 100%;
  background: #fff;
  float: left;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
height: 140px;
 }


.itemized-staff-list 
{
  text-align: left;
  padding: 10px 10px 0 10px;
}

.itemized-staff-list  p{
  line-height:0;
  font-size:0;
}


.itemized-staff-list .grid p{
  line-height:0;
  font-size:0;
}


.itemized-staff-list .grid {
  padding: 0 0 15px 0;
  font-size:1.3em;
  line-height:1.5em;
}

.itemized-staff-list .grid div.unit.half{
  padding: 7px 0 0 0;
}

.itemized-staff-list .grid p{
  line-height:0;
  font-size:0;
}



.floating-box-no-height
 {
  width: 190px;
  height: 100%;
  background: #fff;
  float: left;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
 }

.artefact-box
 {
display: block;
  }

/* Accessibility */

#accessibility
 {
display: inline;
  float:right;
position:fixed;
  }
.conservation-box {
width: 50%;
  height: 100%;
  background: #fff;
  float: left;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
}
.conservation-box-right {
width: 50%;
  height: 100%;
  background: #fff;
  float: right;
  text-align: center;
  border: 1px  #232b2b;
  border-top: 0;
padding: 5px;
}
label { display: block; width: 100px; }

.steampunk-box
 {  width: 45%;
  float: left;
 border: 1px  #c0c0c0 solid;
border-radius: 5px;
padding: 10px;
margin:5px;
 }

/* PT additions 2014 */

div.notice {
  padding: 5px 25px 5px 25px;
  margin-left: auto;
  margin-right: auto;
  width:80%;
  border: 1px solid #772b2d;
}


@media only screen and (max-width:568px) {

  header nav.nav ul {
    padding-left:10px;
  }

  div.notice {
    width:100%
  }

   div.hours
  {
    float:left;
    text-align:center;
    margin: 4px 0 4px 80px;
  }

/*
  div.hours p.days
  {
    float:none;
    text-align:center;
  margin: 0 auto;
  }
*/


 div.hours p.days br {
   display:none;
 }

  div.hours p.admission {
 /*   margin-right:8px; */
   margin: 3px auto;
   text-align:center;
   float:none;
 }

  
  div.hours p.days br.newline{
   display: block;
   text-align:center;
   float:none;
 }

}


@media only screen and (max-width:420px) {
  div.logo img.logo-img {
    width:150px;height:45px;
  }

  div.hours{
     margin-left:60px;
  }

}


/* ------------------------------------ */
/*        Plugins                       */
/* ------------------------------------ */

/* .flexipages_widget a { color: #0f0; }  */
 .flexipages_widget h2 { margin-left:0px; padding-bottom: 3px;}
 .flexipages_widget ul { margin-left:0px; padding-left: 3px;  }
 .flexipages_widget ul li { margin-left:0px; padding-left: 3px; padding-bottom: 3px; list-style-type:none; text-transform:uppercase;font-size:medium; }
 .flexipages_widget ul li ul { background-color:#ffffff; }

 .flexipages_widget ul li ul li { border-bottom: 1px dotted;text-transform: none;font-size:14px;}
 .flexipages_widget ul li .current_page_item { font-weight:bold; background-color:#dddddd;}
 .flexipages_widget ul li .current_page_item ul { font-weight:normal}
 .flexipages_widget ul li ul li ul li{ border-bottom: none; }

 /* NextGen Gallery tweaks */
 
 .ngg-albumoverview {
     clear:none !important;
 }
     
 .ngg-galleryoverview {
clear:none !important;
 }


/* manuscripts */
 .mss-summary-list p,  .mss-summary p  {
     margin: 2px 0;
    font-size:120%;    
 }

.mss-summary-list h2,  .mss-summary h2  {
    padding-top: 18px;
    font-size:150%;    
 }

 .mss-summary-list table  {
    font-size:120%;
 }



/* cookie consent */
#catapult-cookie-bar {
   font-size:120%;
}

#catapult-cookie-bar a:hover {
  color:#fff;

}

/* wp-print icon */
 
 .WP-PrintIcon
{
    margin-top:25px;
    margin-right:5px;
    float:right;
}


/* for printing hide anchors */
a:after {
    content: "";
    display:none;
}


.staff-section
{
width:90%;
	background-color:#eee;
	border-bottom:1px solid;
	border-bottom-color:#ccc;
	padding:5px;
        margin-bottom:10px;
        margin-top:30px;
}


/* Contact info, created 31/05/16 */

div.contact-info {
	border:1px solid; 
	border-radius:7px;
	padding:4px;
	margin-top:0;
	border-color:#993b3d;
}

div.contact-info h3{
	margin-top:3px;
	margin-bottom:6px;
}


.contact-info-heading {
	margin-top:0px; 
	font-weight:bold; 
	text-align:center; 
	background-color:#eee; 
	border-bottom: 1px solid #aaa;"
}

/* Collections-related */

label.labelmulti {
    display: block;
    width: 400px;
}


@media only screen and (max-width:480px) {

label.labelmulti {
    display: block;
    width: 280px;
}

}

div.textwidget {
 font-size: 1.2em;
 margin-bottom:6px;
}

aside.sidebar h3 {
 margin-top:9px;
 margin-bottom:6px;
 
}

aside.sidebar div.widget_listcategorypostswidget li a {
 font-size: 1.2em;
 font-weight: bold;
}

aside.sidebar div.widget_listcategorypostswidget {
 margin-bottom:15px;
}



# Back from the Dead 

p.quote_author {
 text-align:right;
 margin-bottom:15px;
}



/* Flex Box for Home Page */
/* http://stackoverflow.com/questions/31830731/div-re-order-with-css  */

.home div.flexcontainer{
  display: -webkit-flex;
  
  
    display:-moz-flex;
    display:-moz-box;
    display:-ms-flexbox;
    
/*  display: -webkit-box;*/

  display:flex;
  flex-flow: row wrap;
  justify-content:space-between;
}

@media screen and (max-width:568px){
  .home div.flexcontainer {
    flex-direction:column
  }
  .home div.sidebar-widget3 {
   -webkit-box-ordinal-group: 2;
     -moz-box-ordinal-group: 2;     
  -ms-flex-order: 2;     
  -webkit-order: 2;  
    order: 2
  }
  .home div.page{
   -webkit-box-ordinal-group: 1;
     -moz-box-ordinal-group: 1;     
  -ms-flex-order: 1;     
  -webkit-order: 1;  
    order: 1;
  }
  .home div.sidebar-widget2{
   -webkit-box-ordinal-group: 3;
     -moz-box-ordinal-group: 3;     
  -ms-flex-order: 3;     
  -webkit-order: 3;  
    order: 3;
  }
}


.video-container {
	position:relative;
	padding-bottom:56.25%;
	padding-top:30px;
	height:0;
	overflow:hidden;
}

.video-container iframe, .video-container object, .video-container embed {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

// home page banner

div.flexcontainer .slideshow_container { 
margin-bottom:30px;
}

div.flexcontainer .slideshow_container .slideshow_pagination ul li {
	margin: 20px 2px 0 2px;
        padding-bottom: 20px;
	width: 21px;
	height: 21px;
	background: url('/wp-content/uploads/circle-grey.gif') no-repeat;
filter: alpha(opacity = 20);
	opacity: 0.2;

        background-size:75%;
}


/* Flipping cards support for two images (front and back) */

div.whiteflip div.flipping-card-image:hover h2 {
        transform: rotateY(0deg);
/*      opacity: 0!important;*/
}

div.whiteflip div.flipping-card-image {
        float: left;
        position: relative;
        background: #333;
}

div.whiteflip div.flipping-card-image img {
    backface-visibility: visible;
    transform: rotateY(0deg);
}

div.whiteflip div.flipping-card-image h2 {
    padding:0;
    width: 100%;
    height: 100%;
}


