/*
Theme Name: UČD
Theme URI: http://silencesys.com
Author: Martin van LIb
Author URI: http://silencesys.com
Description: Theme for Ústav českých dějin FF UK, based on Twentyfourteen wordpress theme.
In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
Text Domain: twentyfourteen 

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/**
 * Table of Contents:
 *
 * 1.0 Font initialization
 * 2.0 Reset
 * 3.0 - Repeatable Patterns
 *   3.1 - Article dates, links
 *   3.2 - Horizontal row
 *   3.3 - Iconic links
 *   3.4 - Hidder utility
 *   3.5 - Archive
 *   3.6 - Text styles
 *   3.7 - Lists
 *   3.8 - Titles (h1,h2,h3...)
 *   3.9 - Page specific styles - titles (h1)
 * 4.0 - Basic Structure
 * 5.0 - Header
 *   5.1 - Header sidebar
 * 6.0 Navigation
 *   6.1 - Primary navigation
 *   6.2 - Historie - otázky - problémy navigation
 *   6.3 - Footer navigation
 *   6.4 - Page navigation
 * 7.0 - Content
 *   7.1 - Full width
 *   7.2 - Table
 *   7.3 - Page specific styles
 *     7.3.1 - Personal page
 *     7.3.2 - Page ID54
 *     7.3.3 - Search
 *     7.3.4 - Error 404
 *     7.3.5 - UCD seminaris
 *   7.4 Galleries
 *   7.5 Attachement
 * 8.0 - Primary sidebar; Widgets and menus
 *   8.1 - Image loop
 *   8.2 - Widgets
 *   8.3 - Short links
 * 9.0 - Featured Content
 * 10.0 - Notifications
 * 11.0 - Footer
 * -----------------------------------------------------------------------------
 */


/**
 * 1.0 Font initialization
 *
 * -----------------------------------------------------------------------------
 */

@charset "utf-8";
/* importing fonts */
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibri.ttf);
  font-weight: normal;
  font-stretch: normal;  
  font-style: normal;
}
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibrib.ttf);
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
}
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibrii.ttf);
  font-weight: normal;
  font-stretch: normal;
  font-style: italic;
}
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibriz.ttf);
  font-weight: bold;
  font-stretch: normal;
  font-style: italic;
}
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibril.ttf);
  font-weight: lighter;
  font-stretch: normal;
  font-style: normal;
}
@font-face {
  font-family: "Calibri faculty";
  src: url(font/calibrili.ttf);
  font-weight: lighter;
  font-stretch: normal;
  font-style: italic;
}
@font-face {
  font-family: "Ananheim";
  src: url(font/Anaheim-Regular.ttf);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
}

/**
 * 2.0 Reset
 *
 * -----------------------------------------------------------------------------
 */

* {margin: 0px; padding: 0px;}

.cleaner {
	clear: both;
	border: none;
	height: 1px;
}

/**
 * 3.0 Repeatable Patterns
 *
 * -----------------------------------------------------------------------------
 */

.italic {
	font-style: italic;
}

::selection {
  background: #7f5122;
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: #7f5122;
  color: #fff;
  text-shadow: none;
}

/**
 * 3.1 Article dates, links
 *
 * -----------------------------------------------------------------------------
 */
.date a{
	font-family: "Ananheim", sans-serif;
	color: #656565;
	font-size: 70%;
	display: inline-block;
	text-decoration: none;
}
.edit-link {
	display: inline-block;
	color: #656565;
	font-size: 70%;
	margin-bottom: 10px;
}
.format-aside .date a, .format-aside .edit-link {
	font-family: "Ananheim", sans-serif;
	color: #656565;
	font-size: 70%;
	display: inline-block;
	text-decoration: none;
}
.hentry a, .edit-link a{
	color: #4c4c4c;
	font-family: "Calibri faculty", Calibri, sans-serif;	
}
.hentry a:hover, .edit-link a:hover  {
	color: #7f5122;
	text-decoration: none;
}
.entry-meta {
	font-family: "Ananheim", sans-serif;	
}
.entry-content a {
	color: #4d7781;
	-webkit-transition: color 0.3s, border-bottom 0.3s;
	-moz-transition: color 0.3s, border-bottom 0.3s;
	-ms-transition: color 0.3s, border-bottom 0.3s;
	-o-transition: color 0.3s, border-bottom 0.3s;
	transition: color 0.3s, border-bottom 0.3s;
	text-decoration: none;
	border-bottom: 1px solid #4d7781;
}
.entry-content a:hover {
	color: #137e91;
	border-bottom: 1px solid #ebebeb;
}
/**
 * 3.2 Horizontal row
 *
 * -----------------------------------------------------------------------------
 */
.hentry hr {
	border-top: 1px dotted #c2c2c2;
	border-bottom: none;
	border-left: none;
	border-right: none;
	background: none;
	height: 1px;
	margin-top: 20px;
}
#content .hentry:last-of-type hr {
	display: none;
}
#content .hentry.search-article:last-of-type hr {
	display: block;
}
.singular #content .hentry:last-of-type hr, .page #content .hentry:last-of-type hr{
	display: block;
	margin-top: 15px;
}
.singular #content .hentry:last-of-type hr:last-of-type, .page #content .hentry:last-of-type hr:last-of-type{
	border: none;
}

/**
 * 3.3 Iconic links
 *
 * -----------------------------------------------------------------------------
 */
a.download-attachment, .entry-content a.download-attachment, .download-attachment a {
	display: inline-block;
	background: #5e5e5e url(images/download_icon&16.png) no-repeat bottom;
	font-size: 70%;
	font-family: "Calibri faculty", Calibri, sans-serif;	
	position: absolute;
	right: 40px;
	top: 29px;
	width: 16px;
	text-indent: -9999px;
	border-bottom: none;
	color: #4c4c4c;
}
a.sec {
	top: 59px;
}
a.download-attachment:hover, .entry-content a.download-attachment:hover, .download-attachment a:hover {
	color: #7f5122;
	background: #7f5122 url(images/download_icon&16.png) no-repeat bottom;
}
a.download-att, .entry-content a.download-att, .download-att a {
	display: inline-block;
	background: url(images/download.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.download-att:hover, .entry-content a.download-att:hover, .download-att a:hover {
	color: #7f5122;
	background: url(images/download.png) no-repeat left top;
}
a.download-ls-att, .entry-content a.download-ls-att, .download-ls-att a {
	display: inline-block;
	background: url(images/download-b.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 15px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.download-ls-att:hover, .entry-content a.download-ls-att:hover, .download-ls-att a:hover {
	color: #7f5122;
	background: url(images/download-b.png) no-repeat left top;
}
a.mail, .entry-content a.mail, .mail a {
	display: inline-block;
	background: url(images/mail.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.mail:hover, .entry-content a.mail:hover, .mail a:hover {
	color: #7f5122;
	background: url(images/mail.png) no-repeat left top;
}
a.biblio, .entry-content a.biblio, .biblio a {
	display: inline-block;
	background: url(images/biblio.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.biblio:hover, .entry-content a.biblio:hover, .biblio a:hover {
	color: #7f5122;
	background: url(images/biblio.png) no-repeat left top;
}
a.seminar, p.seminar, .entry-content a.seminar, .seminar a {
	display: inline-block;
	background: url(images/seminar.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.seminar:hover, .entry-content a.seminar:hover, .seminar a:hover {
	color: #7f5122;
	background: url(images/seminar.png) no-repeat left top;
}
a.outgoing, .entry-content a.outgoing, .outgoing a {
	display: inline-block;
	background: url(images/outgoing.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.outgoing:hover, .entry-content a.outgoing:hover, .outgoing a:hover {
	color: #7f5122;
	background: url(images/outgoing.png) no-repeat left top;
}
a.phone, .phone, .entry-content a.phone, .phone a {
	display: inline-block;
	background: url(images/phone.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.phone:hover, .entry-content a.phone:hover, .phone a:hover {
	color: #7f5122;
	background: url(images/phone.png) no-repeat left top;
}
.person, .entry-content .person, .person a {
	display: inline-block;
	background: url(images/person.png) no-repeat left bottom;
	font-family: "Calibri faculty", Calibri, sans-serif;
	height: 18px;
	text-indent: 20px;
	border-bottom: none;
	color: #4c4c4c;
}
a.person:hover, .entry-content a.person:hover, .person a:hover {
	color: #7f5122;
	background: url(images/person.png) no-repeat left top;
}

/**
 * 3.4 Hidder utility
 *
 * -----------------------------------------------------------------------------
 */
 .hidden {display: none;}
 .hentry h3.hidder {
 	display: inline-block;
	background: url(images/show-hide-h3.png) no-repeat right bottom;
	font-family: "Ananheim", sans-serif;
	padding-right: 20px;
	cursor: pointer;
	vertical-align: middle;
	margin-bottom: 0px;
 }
.hentry h3.hidder:hover {
	background: url(images/show-hide-h3.png) no-repeat right top;
	color: #7f5122;
}
 .hentry h2.hidder {
 	display: inline-block;
	background: url(images/show-hide-h2.png) no-repeat right top;
	font-family: "Ananheim", sans-serif;
	padding-right: 20px;
	cursor: pointer;
	vertical-align: middle;
	margin-bottom: 0px;
 }
 .hentry h2.hidder:hover {
	background: url(images/show-hide-h2.png) no-repeat right bottom;
	color: #4c4c4c;
}
 .hentry h1.hidder {
 	display: inline-block;
	background: url(images/show-hide-h1.png) no-repeat right bottom;
	font-family: "Ananheim", sans-serif;
	padding-right: 20px;
	cursor: pointer;
	vertical-align: middle;
	margin-bottom: 0px;
 }
 .hentry h1.hidder:hover {
	background: url(images/show-hide-h1.png) no-repeat right top;
	color: #7f5122;
}

/**
 * 3.5 Archive
 *
 * -----------------------------------------------------------------------------
 */
.archive-header {
	padding: 20px 40px 0px 40px;	
}

/**
 * 3.6 Text styles
 *
 * -----------------------------------------------------------------------------
 */
/* Deleted class: .hentry ul h1; */
.hentry p {
	font-size: 90%;
	color: #4c4c4c;
	font-family: "Calibri faculty", Calibri, sans-serif;
	margin-top: 10px;
}
.entry-content .name {
	font-size: 120%;
	font-family: "Ananheim", sans-serif;
	font-weight: bold;
	text-decoration: none;
	border-bottom: none;
	color: #4c4c4c;
}
.entry-content .name:hover {
	border-bottom: none;
	color: #7f5122;
}
.entry-content p.name {	
	margin-bottom: -10px;
	margin-top: 0;
} 
.hentry blockquote {
	font-style: italic;
	margin-left: 30px;
}

/**
 * 3.7 Lists
 *
 * -----------------------------------------------------------------------------
 */
.hentry ul, .hentry ol {
	font-size: 90%;
	color: #4c4c4c;
	font-family: "Calibri faculty", Calibri, sans-serif;
	margin-left: 15px;
	list-style: square;	
	margin-top: 15px;
}
.hentry ul.download-list {
	list-style: none;
	margin-left: -3px;
}
.hentry ol {
	list-style: decimal;
	margin-left: 15px;
}

/**
 * 3.8 Titles (h1,h2,h3...)
 *
 * -----------------------------------------------------------------------------
 */
h1.entry-title {font-size: 150%;}
h1.entry-title, h1.entry-title a {
	font-family: "Ananheim", sans-serif;
	color: #000;
	font-weight: normal;
	text-decoration: none;
	margin-bottom: -8px;
	max-width: 510px;
}
.entry-content h1, .search-article h1.page-title {
	font-family: "Ananheim", sans-serif;
	font-size: 150%;
	font-weight: normal;
	color: #000;
	margin-top: 30px;
	margin-bottom: -10px;
}
.entry-content h2 {
	font-family: "Ananheim", sans-serif;
	font-size: 130%;
	font-weight: normal;
	margin-top: 20px;
	margin-bottom: -10px;
	color: #7f5122;
}
.entry-content h3 {
	font-family: "Ananheim", sans-serif;
	font-size: 120%;
	font-weight: normal;
	color: #4c4c4c;
	margin-top: 15px;
	margin-bottom: -10px;
}
.entry-content h4 {
	font-family: "Ananheim", sans-serif;
	font-size: 95%;
	font-weight: normal;
	margin-bottom: -15px;
	margin-top: 15px;
	color: #4c4c4c;
}
.entry-content h5 {
	font-family: "Ananheim", sans-serif;
	font-size: 95%;
	font-weight: normal;
	margin-bottom: -15px;
	margin-top: 15px;
	color: #4c4c4c;
}
.entry-content h6 {
	font-family: "Ananheim", sans-serif;
	font-size: 90%;
	font-weight: normal;
	color: #4c4c4c;
}

/**
 * 3.9 Page specific styles - titles (h1)
 *
 * -----------------------------------------------------------------------------
 */
.page-template-page-templatesfull-width-php .hentry h1 {
	max-width: 100%;
}
.page h1.entry-title, h1.archive-title, 
.attachment h1.entry-title,
.full-width-publikace h1.entry-title,
.prvoukove-pubs h1.entry-title
{
	font-family: "Ananheim", sans-serif;
	color: #000;
	font-weight: normal;
	font-size: 230%;
	text-transform: uppercase;
	color: #7f5122;
	margin-bottom: 20px;
}
.parent-pageid-17 h1.entry-title, .attachment h1.entry-title {
	text-transform: inherit;
}
.search-article .page h1.entry-title{
	font-size: 130%;
	margin-bottom: 0;
}
.search-article .page h1.entry-title a:hover{
	color: #7f5122;
}
.search-article h1.page-title {
	color: #777;
}

.posttmb {
	max-width: 516px;
	height: auto;
	background-attachment: fixed;
	background-repeat: no-repeat;
	-webkit-background-size: cover !important;
	  -moz-background-size: cover !important;
	  background-size: cover !important;
	margin-bottom: 10px;
	overflow: hidden;
}
.posttmb img {
	border: 2px solid  #d3d3d3;
}
a.thumb {
	top: 239px;
}
a.thumb-sec {
	top: 298px;
}

/**
 * 4.0 Basic structure
 *
 * -----------------------------------------------------------------------------
 */

 body, html {
	height: 100%;
	width: 100%;
	min-width: 900px;
	background: #e1e1e1;
}
#template-wrapper {
	height: auto;
	position: relative;
	z-index: 2;
	margin-top: -495px;
}
#main {
	width: 900px;
	margin: 0px auto;
	height: auto;
	min-height: 500px;
	background: #ebebeb;
	position: relative;
	padding-bottom: 40px;
}
footer {
	background: #d2d2d2;
	font-family: "Ananheim", sans-serif;
}

/**
 * 5.0 Header
 *
 * -----------------------------------------------------------------------------
 */

#header{ 
	height: 795px;	 
	width: 100%; 
	background: #033 url(images/background-main.jpg) 15% center fixed no-repeat; 
	background-size: cover !important;	
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.header-main{ 
	height: 78px; 
	position: absolute; 
	text-align: left; 
	top: 35px; 
	width: 100%; 
}
.header-content {
	width: 900px;
	height: auto;
	margin: 0px auto;
	position: relative;
}
.logo-ff {
	background: url(images/logo-ff.png) no-repeat;
	display: block;
	height: 136px;
	width: 326px;
}
.site-title {
	font-size: 430%;
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	font-weight: normal;
	font-weight: 100;
	margin: 15px 0px 0px 10px;
}
.site-title a {
	text-decoration: none;
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
}


/**
 * 5.1 Header sidebar
 *
 * -----------------------------------------------------------------------------
 */

.sidebar-header {
	position: absolute;
	top: 85px;
	right: 0;
}
.sidebar-header input#searchin{
	width: 200px;
	line-height: 20px;
	height: 21px;
	border-top: 1px solid #6e4220;
	border-bottom: 1px solid #6e4220;
	border-left: 1px solid #6e4220;
	border-right: none;
	text-indent: 5px;
}
.sidebar-header input#searchsubmit {
	width: 23px;
	height: 23px;
	background: #fff url(images/search_button.png) top;
	text-indent: -9999px;
	border-top: 1px solid #6e4220;
	border-bottom: 1px solid #6e4220;
	border-right: 1px solid #6e4220;
	margin-left: -10px; 
	border-left: none;
	cursor: pointer;
}
.sidebar-header input#searchsubmit:hover {
	background: #4e3011 url(images/search_button.png) bottom;
}
.sidebar-header .qtrans_language_chooser {
	list-style: none;
}
.sidebar-header .qtrans_language_chooser li {
	float: right;
	list-style: none;
	margin-left: 5px;
}
.sidebar-header .qtrans_language_chooser li:first-of-type:before {
	content: "|";
	display: inline-block;
	color: #fff;
	margin-left: 5px;
	margin-right: 5px;

}
.sidebar-header .qtrans_language_chooser li a{
	color: #fff;
	text-decoration: none;
	font-family: "Calibri faculty", Calibri, sans-serif;
}
.sidebar-header .qtrans_language_chooser li.active a{
	text-decoration: underline;
}
.sidebar-header .qtrans_language_chooser li a:hover {
	color: #7f5122;
}


/**
 * 6.0 Navigation
 *
 * -----------------------------------------------------------------------------
 *
 * 6.1 Primary navigation
 *
 * -----------------------------------------------------------------------------
 */
#primary-navigation{
	height: 45px;
	width: 900px;
	margin: 0px auto;
	position: relative;
	background: url(images/menu-bg.png) repeat;
}
#primary-navigation li{
	display: inline-block;
}
#primary-navigation li a{
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	font-weight: normal;	
	text-decoration: none;
	font-size: 100%;
	padding-right: 42px;
	padding-left: 42px;
	line-height: 45px;
	vertical-align: middle;
	position: relative;
	display: inline-block;
	-webkit-transition: background 0.3s;
	-moz-transition: background 0.3s;
	-ms-transition: background 0.3s;
	-o-transition: background 0.3s;
	transition: background 0.3s;
}
#primary-navigation li a:hover {
	background: RGBA(127,81,34,0.15);
}
#primary-navigation .sub-menu {
  float: none;
  position: absolute;
  list-style: none;
  margin: 0 0 0 0px;
  padding: 0px 0px 0px 0px;
  z-index: 250;
  display: none;
  width: 300px;
}
#primary-navigation li:hover>.sub-menu {
	display: block;
}
#primary-navigation li .sub-menu li {
  float: none;
  margin: 0px 0px 0 0px;
  background: #f1f1f1;
}
#primary-navigation li .sub-menu li:last-child {
	margin: 0px 0px 0px 0px;
}     
#primary-navigation li .sub-menu li:hover {
  float: none;
  box-shadow: none;
  background: #d8d8d8;
}
#primary-navigation li .sub-menu li a{
  font-family: "Calibri faculty", Calibri, sans-serif;
  color: #7f5122;
  line-height: 16pt;
  padding: 6px 0 6px 55px;
  text-decoration: none;
  display: block;
  width: 245px;
  position: relative;
}
#primary-navigation li .sub-menu li a:hover{
  font-family: "Calibri faculty", Calibri, sans-serif;
  color: #fff;
  text-decoration: none;
  background: #7f5122;
}
#primary-navigation .sub-menu:after {
	background: url(images/shadow-after-menu.png) no-repeat;
	width: 300px;
	height: 20px;
	display: block;
	content: ' ';
}
#primary-navigation li:hover>.sub-menu:hover>.sub-menu {
	display: block;
}
#primary-navigation li .sub-menu li:hover .sub-menu li{
  background: #d8d8d8;
}
#primary-navigation li .sub-menu li:hover .sub-menu li a{
  color: #3e3e3e;
}
#primary-navigation li .sub-menu li:hover .sub-menu li a:hover{
  color: #fff;
}        

/* Home button - in primary navigation */
#primary-navigation li a[title="home"] {
	display: inline-block;
	background: url(images/home.png) no-repeat left top;
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	text-indent: -999px;
	overflow: hidden;
	width: 45px;
	height: 45px;
	padding: 0;
}
#primary-navigation li.current-menu-item a[title="home"] {
	display: inline-block;
	background: url(images/home.png) no-repeat left bottom;
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	text-indent: -999px;
	overflow: hidden;
	width: 45px;
	height: 45px;
	padding: 0;
	cursor: default;
}
#primary-navigation li.current-menu-item a[title="home"]:hover {
	display: inline-block;
	background: url(images/home.png) no-repeat left bottom;
}
#primary-navigation li a[title="home"]:hover {
	background: RGBA(127,81,34,0.15) url(images/home.png) no-repeat left top;
}

/**
 * 6.2 Historie - Otázky - Problémy navigation
 *
 * -----------------------------------------------------------------------------
 */
.menu-hop, #menu-prvouk {
	background: #fff;
	list-style: none;
 	font-family: "Calibri faculty", Calibri, sans-serif;
 	padding-top: 20px;
 	padding-bottom: 20px;
}
.menu-hop li a, #menu-prvouk li a  {
	display: block;
	color: #4c4c4c;
	padding: 7px 20px;
	text-decoration: none;
	border-bottom: 1px solid #f3f3f3;
	background: url(images/arrow-menu.png) -25px no-repeat;
	-webkit-transition: 0.3s background, 0.3s padding;
	-moz-transition: 0.3s background, 0.3s padding;
	-ms-transition: 0.3s background, 0.3s padding;
	-o-transition: 0.3s background, 0.3s padding;
	transition: 0.3s background, 0.3s padding;
}
.menu-hop li a:hover, #menu-prvouk li a:hover {
	background: url(images/arrow-menu.png) -1px no-repeat;
	color: #000;
	padding-left: 20px;
}
.menu-hop li:last-of-type a, #menu-prvouk>li:last-of-type a {
	border-bottom: none;
}
.menu-hop li .sub-menu, #menu-prvouk li .sub-menu {
	background: #f8f7f7;
	font-size: 100%;
	list-style: none;
	display: none;
}
.menu-hop li:hover .sub-menu, #menu-prvouk li:hover .sub-menu {
	background: #f8f7f7;
	list-style: none;
	display: block;
}
.menu-hop li.current-page-ancestor .sub-menu, 
.menu-hop li.current_page_item .sub-menu, 
#menu-prvouk li.current-page-ancestor .sub-menu, 
#menu-prvouk li.current_page_item .sub-menu
{
	display: block;
}
#menu-prvouk li:hover .sub-menu li .sub-menu {
	display: none;
}
#menu-prvouk li:hover .sub-menu li .sub-menu a {
	padding: 10px 40px;
}
#menu-prvouk li .sub-menu li .sub-menu {
	background: #e8e8e8;
	border-bottom: 1px solid #f8f8f8;
	font-size: 85%;	
}
#menu-prvouk li:hover .sub-menu li:hover .sub-menu {
	display: block;
}
#menu-prvouk li:hover .sub-menu li:hover .sub-menu a:hover {
	background-color: #f8f8f8;
}
.menu-hop li .sub-menu li a, #menu-prvouk li .sub-menu li a  {
	padding-left: 30px;
	-webkit-transition: 0.3s background;
	-moz-transition: 0.3s background;
	-ms-transition: 0.3s background;
	-o-transition: 0.3s background;
	transition: 0.3s background;
}
.menu-hop li .sub-menu li a:hover, #menu-prvouk li .sub-menu li a:hover {
	background-color: #fff;
}
#menu-prvouk li.current-page-ancestor .sub-menu>li.current-page-ancestor a, 
#menu-prvouk li.current_page_item>a
#menu-prvouk li.current-page-ancestor .sub-menu>li.current-page-ancestor a, 
#menu-prvouk li.current_page_item>a{	
	background: url(images/arrow-menu.png) -1px no-repeat;
	color: #000;
	padding-left: 27px;
}
.menu-hop li.current-page-ancestor .sub-menu>li.current-page-ancestor a
#menu-prvouk li.current-page-ancestor .sub-menu>li.current-page-ancestor a{
	padding-left: 40px;
}
.menu-hop li.current-page-ancestor .sub-menu>li.current-page-ancestor a:hover
#menu-prvouk li.current-page-ancestor .sub-menu>li.current-page-ancestor a:hover{
	background-color: #fff;
}
#menu-prvouk #menu-item-2596:hover .sub-menu{
	display: none;
}
#menu-prvouk #menu-item-2596:hover .sub-menu li:hover .sub-menu {
	display: block;
}
/**
 * 6.3 Footer navigation
 *
 * -----------------------------------------------------------------------------
 */
footer #nav_menu-3 {
	width: auto;
}
.masonry-brick .menu-main-menu-container{
	height: 200px;
	margin-bottom: 30px;
}
.masonry-brick .menu li:first-of-type{
	position: absolute;
}
.masonry-brick .menu li:nth-child(2) {
	margin-top: 30px;
}
.masonry-brick .menu li ul li:first-of-type{
	position: relative;
}
.masonry-brick .menu li ul li:nth-child(2) {
	margin-top: inherit;
}
.masonry-brick .menu li{
	display: inline-block;	
	color: #393939;
	list-style: none;
	display: inline-block;
	vertical-align: top;
	width: 200px;
}
.masonry-brick .menu  li a {
	text-decoration: none;
	color: #393939;
}
.masonry-brick .menu li ul li{
	display: block;
	font-size: 80%;
}
.masonry-brick .menu  li a:hover {
	color: #7f5122;	
}
.masonry-brick .menu>li.menu-item-has-children:last-of-type{
	display: block;
	margin-top: -43px;
}
.masonry-brick .menu li .sub-menu li .sub-menu{
	display: none;
}
.masonry-brick .menu li .sub-menu li .sub-menu li{
	display: none;
}

/**
 * 6.4 Page navigation
 *
 * -----------------------------------------------------------------------------
 */

footer .navigation {	
	background: #7f5122;
	min-height: 10px;
	width: 100%;
	padding: 0;
}
footer .navigation .pagination {
	padding: 0px;
	width: 900px;
	margin: 0px auto;
}
footer .navigation a {
	color: #fff;
	text-decoration: none;
	background: #653f18;
	display: inline-block;
	padding: 0px 100px 0px 39px;
	font-size: 85%;
	line-height: 30px;
}
footer .navigation a:hover {background: #7f5122;}


/* 6.5 navigation atta */
.nav-links {
	text-align: center;
 	font-family: "Calibri faculty", Calibri, sans-serif;
 	width: 200px;
 	margin: 0px auto;
}
.nav-links a {
	color: #9b9b9b;
	width: 200px;
	text-decoration: none;
	border-bottom: 1px solid #9b9b9b;
	display: block;
	padding-bottom: 3px;
	padding-top: 5px;
	margin-top: 10px;
}
.nav-links a:hover  {
	background: #f3f3f3;
}


/**
 * 7.0 Content
 *
 * -----------------------------------------------------------------------------
 */

 #main-content, .page #main-content .hentry, .tag-oznameni #primary, .tag-slider #primary, .single #primary {
	width: 600px;
	height: auto;
	position: relative;
	float: left;
	overflow: hidden;
}
#primary-sidebar {
	width: 300px;
	float: left;
	position: relative;
}
.page #main-content .hentry {
	width: 520px;
	padding: 20px 40px 0px 40px;
}
.hentry {
	width: auto;
	height: auto;
	overflow: hidden;
	padding: 20px 40px 0px 40px;
	position: relative;
}

/**
 * 7.1 Full width
 *
 * -----------------------------------------------------------------------------
 */
 .page #main-content {
	width: 100%;
}
.page-template-page-templatesfull-width-php #main-content .hentry {
	width: 820px;
} 
/* Deleted class: .page-template-page-templatesfull-width-php #main-content */

/**
 * 7.2 Tables
 *
 * -----------------------------------------------------------------------------
 */
.hentry th h2 {
	margin-bottom: 0;
}
.hentry table {
	border: none;
	min-width: 100%;
	max-width: 850px;
	color: #4c4c4c;
	font-family: "Calibri faculty", Calibri, sans-serif;
	font-size: 90%;
	border-spacing: 0px;
}
.hentry tr {
	border: none;
}
.hentry th, .hentry td{
	border: none;
	border-bottom: #d3d3d3 1px dashed;
	text-align: left;
	vertical-align: top;
	padding: 10px 0 0 0 ;
	max-width: 50%;
}
.hentry td {
	padding: 10px 10px 0 0 ;
}
.hentry table p, .hentry table ul {
	font-size: 100%;
}
.hentry th {
	font-size: 120%;
	font-family: "Ananheim", sans-serif;
}
/**
 * 7.3 Page specific styles
 *
 * -----------------------------------------------------------------------------
 *
 * 7.3.1 Personal page
 *
 * -----------------------------------------------------------------------------
 */
.hentry .personal td { 
	vertical-align: top;
	padding-bottom: 5px;
	padding-top: 10px;
}

/**
 * 7.3.2 Page ID54 
 * It's publications page - change it if needed.
 *
 * -----------------------------------------------------------------------------
 */
.page-id-54 .hentry td {
	padding: 20px 0px;
	text-align: center;
	width: 33%;
}
.page-id-54 .hentry img {
	margin: 0;
	padding: 0;
}
.page-id-54 .hentry a img {
	box-shadow: RGBA(0,0,0,0.5) 0px 0px 5px;
	overflow: hidden;
	line-height: inherit;
	display: inline-block;
}
.page-id-54 .hentry a:hover img {
	box-shadow: none;
}

/**
 * 7.3.3 Search
 *
 * -----------------------------------------------------------------------------
 */
.search-article {
	padding: 20px 0;
}
.search-article>header {
	margin-left: 40px;
}

.search-article .post-thumbnail {
	display: none;
}

/**
 * 7.3.4 Error 404
 *
 * -----------------------------------------------------------------------------
 */
.error404 .search-article .search-article {
	padding: 20px 40px;
}
.error404 .search-article .search-article>header {
	margin-left: 0;
	margin-bottom: 20px;
}

/**
 * 7.3.5 UCD seminaris
 *
 * -----------------------------------------------------------------------------
 */

ul.seminairs {
	list-style: none;
	margin-left: 0px;
}
ul.seminairs li {
	color: #fff;
	display: inline-block;
	width: 400px;
	margin-left: 0;
}
ul.seminairs li:nth-child(2n) {
	margin-left: 15px;
}
ul.seminairs li img {
	border: 2px solid #b8b8b8;
}
ul.seminairs li a {
	text-decoration: none;
	-webkit-transition: opacity 0.3s;
	-moz-transition: opacity 0.3s;
	-ms-transition: opacity 0.3s;
	-o-transition: opacity 0.3s;
	transition: opacity 0.3s;
	border-bottom: none;
}
ul.seminairs li a h2{
	margin-top: 0;
	font-size: 160%;
	color: #000;
}
ul.seminairs li a:hover {
	opacity: 0.7;
}
ul.seminairs li a:hover h2 {
	color: #7f5122;
}

/**
 * 7.3.6 PRVOUK
 *
 * -----------------------------------------------------------------------------
 */
.prvouk #primary {
	width: 600px;
	float: left;
	position: relative;
	overflow: hidden;
}
.prvouk .site-header {
	background: #2c190a;
	font-family: "Ananheim", sans-serif;
	color: #fff;
	padding: 30px 0 25px 0;
}
.prvouk h1.site-title {
	font-size: 28pt;
	margin-left: 30px;
	text-transform: uppercase;
}
.up-title {
	font-size: 11pt;
	display: block;
	margin-left: 33px;
	margin-bottom: -20px;
	position: relative;
}
.sub-title {
	margin: 0 0 0 32px;
	font-size: 14pt;
	color: #644e39;
}
.prvouk-tmb {
	display: block;
	width: 600px;
	height: 255px;
	margin: -20px 0px 0px -40px;
	border: none;
	position: relative;
}
.prvouk-styles {
	padding: 15px 20px 15px 20px;
	color: #fff;
	background: #3e332b;
	position: absolute;
	bottom: 10px;
	left: 20px;
	width: 510px;
}
.prvouk-styles h1.entry-title {
	color: #fff;
	padding-bottom: 10px;
}
.prvouk-styles .subtitle {
	font-family: "Calibri faculty", Calibri, sans-serif;
	font-size: 12pt;
}
ul.small-menu-prvouk,
ul.small-menu-prvouk-single {
	background: #d9d9d9;
	list-style: none;
	margin: 0px 0px 30px -40px;
	padding: 0 40px 0 30px;
	width: 600px;
}
ul.small-menu-prvouk {
	margin: 0;
	padding: 0;
	width: auto;
}
.small-menu-prvouk li,
.small-menu-prvouk-single li{
	list-style: none;
	display: inline-block;
	border-right: 1px solid #ebebeb;
	margin-left: -3px;
}
.small-menu-prvouk li:last-of-type,
.small-menu-prvouk-single li:last-of-type{
	border-right: none;
}
.small-menu-prvouk li a,
.small-menu-prvouk-single li a{
	text-decoration: none;
	display: block;
	padding: 10px 20px 10px 20px;
}
.small-menu-prvouk li a:hover,
.small-menu-prvouk-single li a:hover{
	background: #ebebeb;
	color: #840000;
}
.prvouk .gallery {
	text-align: left;
	margin-top: 20px;
	margin-left: -15px;
}
.gallery a {
	border: none;
	text-decoration: none;
}
.gallery a:hover {
	border: none;
	text-decoration: none;
}
/**
 * 7.4 Publikace v2
 *
 * -----------------------------------------------------------------------------
 */
.prvoukove-pubs {
	padding: 20px 40px;
}
.publikace {
	width: 240px;
	height: auto;
	display: inline-block;
	overflow: hidden;
	margin: 0 0px 50px -4px;
	padding: 0 10px 0 10px;
	border: none;
	box-shadow: none;
	vertical-align: top;
	text-align: center;
	border-bottom: 1px dashed #d3d3d3;
	min-height: 600px;
}
.publikace img {
	margin-bottom: 20px;
	height: 300px;
	width: auto;
	max-height: 300px !important;
	max-width: 220px !important;
	box-shadow: RGBA(0,0,0,0.5) 0px 0px 5px;
	position: relative;
}
.publikace:nth-child(3n) {
	margin-right: 0;
	border-right: none;
}
.publikacni-shop {
	width: 220px;
	background: #f8f8f8;
	position: relative;
	padding: 4px 10px;
	display: block;
	margin: -30px 0 10px 0;
	z-index: 10;
	color: #101010 !important;
	text-decoration: none;
	border-bottom: 4px solid #d9d9d9;
	border-radius: 2px 2px 3px 3px;
	border-top: 1px solid #fff;
}
.publikacni-shop:hover {
	border-bottom: 2px solid #d9d9d9;
	border-top: 3px solid #fff;
}
.full-width-publikace {
	width: 900px !important;
}
.full-width-publikace #content {
	padding: 20px 40px;
}
h1.publikace-title {
	font-size: 16pt;	
	font-family: "Ananheim", sans-serif;
	font-weight: normal;
	padding: 0 0 10px 0;
}
.publikace-podtitul, .publikace-autor {
	font-family: "Calibri faculty", Calibri, sans-serif;	
	font-size: 13pt;
	color: #636363;
}
.publikace-podtitul {
	margin: -10px 0 10px 0;
	font-style: italic;
}
/**
 * 7.4 Galleries
 *
 * -----------------------------------------------------------------------------
 */
 .gallery {
 	text-align: center;
 }

.gallery-item {
	display: inline-block;
	vertical-align: top;
	margin: 10px;
}
.gallery-icon {
}
.gallery-item{
	border: 8px solid #f3f3f3;
}
.gallery-caption {	
	font-size: 90%;
	color: #4c4c4c;
	font-family: "Calibri faculty", Calibri, sans-serif;
}
.hentry p.wp-caption-text {
	margin-top: 0px;
}


/**
 * 7.5 Attachment page
 *
 * -----------------------------------------------------------------------------
 */

.entry-attachment>.attachment {
	text-align: center;
	margin-top: 10px;
}
.entry-attachment>.attachment img {
	border: 8px solid #f3f3f3;
}

/**
 * 8.0 Primary sidebar; Widgets and menus
 *
 * -----------------------------------------------------------------------------
 *
 * 8.1 Image loop
 *
 * -----------------------------------------------------------------------------
 */
#imgviewer {
	position: relative;
	width: 300px;
	height: 379px;	
	overflow: hidden;
	background: #000;
}
#imvimg{
	position:relative;
	margin:0px;
}

#imvimg div{
	z-index: 0;
	position:absolute;
	top:0px;	
}
#imvimg a {
	text-decoration: none;
	padding-right: 10px;
}
.main-new {
	width: 300px;
	height: 379px;
	background: #058;
	position: relative;
}
.black-overlay {
	background: rgba(0,0,0,0.5);
	position: absolute;
	top: 0;
	left: 0;
	width: 270px;
	height: 343px;
	padding: 36px 0px 0px 30px;
}
.main-new p {
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	text-transform: uppercase;
	font-size: 90%;
	line-height: auto;
}
.main-new-title {
	font-size: 180%;
	margin: -5px 0px -5px 0px;
	color: #fff;
	font-family: "Calibri faculty", Calibri, sans-serif;
	text-transform: uppercase;
	line-height: auto;
	padding-left: 5px;
	padding-right: 5px;
}
.main-new-title:hover {
	background: RGBA(0,0,0,0.3);
}

/**
 * 8.2 Widgets - menu (favorite links), Text area (Contact), RSS
 *
 * -----------------------------------------------------------------------------
 */
h1.widget-title, .title h1 {
	color: #7f5122;
	font-family: "Ananheim", sans-serif;
	font-weight: normal;
	font-size: 180%;
	margin-bottom: 10px;
}
#nav_menu-4, #text-3, #rss-3{
	list-style: none;
	padding: 10px 20px 30px 20px;
	background: #fff;
}
#primary-sidebar .post-thumbnail {
	margin-bottom: -5px;
}
#primary-sidebar .post-thumbnail img {
 width: 300px;	
 height: auto;
}
.page-short-info {
	list-style: none;
	padding: 10px 20px 30px 20px;
	background: #fff;
}
#text-3 {
	background: #f3f3f3;
}
#text-3 .textwidget {
	color: #7c7c7c;
	font-family: "Calibri faculty", Calibri, sans-serif;
	margin-top: 10px;
	font-size: 90%;
}
.name {
	color: #565252;
}
#nav_menu-4 a, #rss-3 a, .page-short-info a, .page-short-info p {
	color: #4c4c4c;
	text-decoration: none;
	font-size: 90%;
	font-family: "Calibri faculty", Calibri, sans-serif;
}
#nav_menu-4 a:hover, #rss-3 a:hover, .page-short-info a:hover {
	color: #7f5122;
	text-decoration: none;
}
#rss-3 {background: #ebebeb;}
#rss-3 li a {text-decoration: underline;}
#rss-3 li {
	margin-top: 3px;
}
ul.menu, #rss-3 ul {
	list-style: none;
}

/**
 * 8.3 Short links (Facebook, OBD, IS, eshop...)
 *
 * -----------------------------------------------------------------------------
 */
#nav_menu-5 {
	display: block;
	width: 300px;
	overflow: hidden;
}
a[title="ucd-facebook"] {
	background: url(images/icons-complete.jpg) 0px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;

}
a[title="ucd-facebook"]:hover {
	background: url(images/icons-complete.jpg) 0px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}
a[title="ffabula-link"] {
	background: url(images/icons-complete.jpg) -250px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
a[title="ffabula-link"]:hover {
	background: url(images/icons-complete.jpg) -250px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}
a[title="sis"] {
	background: url(images/icons-complete.jpg) -50px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
a[title="sis"]:hover {
	background: url(images/icons-complete.jpg) -50px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}
a[title="obd"] {
	background: url(images/icons-complete.jpg) -100px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
a[title="obd"]:hover {
	background: url(images/icons-complete.jpg) -100px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}
a[title="intr"] {
	background: url(images/icons-complete.jpg) -200px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
a[title="intr"]:hover {
	background: url(images/icons-complete.jpg) -200px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}

a[title="eshop"] {
	background: url(images/icons-complete.jpg) -150px 0px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
	text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
a[title="eshop"]:hover {
	background: url(images/icons-complete.jpg) -150px -40px no-repeat;
	width: 50px;
	height: 40px;
	display: block;
	float: left;
}


/**
 * 9.0 Featured content
 *
 * -----------------------------------------------------------------------------
 */

#featured-content {
	background: #fff;
	min-height: 356px;
	max-height:  356px;
	width: 600px;
	padding-top: 3px;
	padding-bottom: 20px;
}
#featured-content ul {
	list-style: none;
}
#featured-content ul li {
	display: inline-block;
	width: 165px;
	vertical-align: top;
	padding: 15px 25px 0px 0px;
}
#featured-content ul li:nth-child(2n+4) {
	margin-left: 194px;
}
#featured-content h2 {
	color: #7f5122;
	font-family: "Ananheim", sans-serif;
	font-size: 160%;
	margin: 0px 0px 0px 55px;
	font-weight: normal;
}
#featured-content p {
	font-size: 100%;
	font-weight: normal;
	font-family: "Calibri faculty", Calibri, sans-serif;
	text-decoration: none;
	color: #000;
}
#featured-content p.date {
	font-size: 100%;
}
#featured-content p.date>a {
	margin-top: 8px;
	color: #7f5122;
	font-size: 110%;
}
#featured-content li p, #featured-content li a.not-link {
	font-size: 85%;
	font-family: "Calibri faculty", Calibri, sans-serif;
}
#featured-content li .more-link, #featured-content li p a, #featured-content li a.not-link {
	color: #000;
}
#featured-content li .more-link:hover, #featured-content li p a:hover, #featured-content li a.not-link:hover {
	color: #704320;
	text-decoration: none;
}


/**
 * 10.0 Notifications
 *
 * -----------------------------------------------------------------------------
 */
.notifications-archive {
	width: 600px;
	height: 40px;
	background: #646464;
	text-align: right;
	list-style: none;
}
.notifications-archive li {
	float: right;
	margin-left: 1px;

}
.notifications-archive li a {
	color: #fff;
	font-family: "Ananheim", sans-serif;
	font-size: 75%;
	text-decoration: none;
	display: inline-block;
	background: #747474;
	line-height: 40px;
	padding: 0px 10px 0px 10px;
}
.notifications-archive li a:hover {
	color: #fff;
	background: #646464;
}
#breadcrumbs {
	background: #646464;
	list-style: none;
	color: #fff;
	padding-left: 37px;
	font-size: 75%;
	font-family: "Ananheim", sans-serif;
	line-height: 30px;
}
#breadcrumbs li {
	display: inline-block;
}
#breadcrumbs .separator {
	margin-left: 4px;
	margin-right: 3px;
}
#breadcrumbs a {
	color: #fff;
	text-decoration: none;
}
#breadcrumbs a:hover {
	color: #000;
}


/**
 * 11.0 Footer
 *
 * -----------------------------------------------------------------------------
 */
footer .site-info {
	width: 840px;
	height: auto;
	margin: 0px auto;
	padding: 15px 20px 30px 40px;
}

footer h1.widget-title {
	color: #fff;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 200%;
}
footer p {
	color: #7c7c7c;
	font-size: 70%;
	text-align: center;
	margin-top: 20px;
}

/**
 * 6.5 Gallery
 * -----------------------------------------------------------------------------
 */

.gallery {
	margin-bottom: 20px;
}

.gallery-item {
	float: left;
	margin: 0 4px 4px 0;
	overflow: hidden;
	position: relative;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 48%;
	max-width: -webkit-calc(50% - 4px);
	max-width:         calc(50% - 4px);
}

.gallery-columns-3 .gallery-item {
	max-width: 32%;
	max-width: -webkit-calc(33.3% - 4px);
	max-width:         calc(33.3% - 4px);
}

.gallery-columns-4 .gallery-item {
	max-width: 23%;
	max-width: -webkit-calc(25% - 4px);
	max-width:         calc(25% - 4px);
}

.gallery-columns-5 .gallery-item {
	max-width: 19%;
	max-width: -webkit-calc(20% - 4px);
	max-width:         calc(20% - 4px);
}

.gallery-columns-6 .gallery-item {
	max-width: 15%;
	max-width: -webkit-calc(16.7% - 4px);
	max-width:         calc(16.7% - 4px);
}

.gallery-columns-7 .gallery-item {
	max-width: 13%;
	max-width: -webkit-calc(14.28% - 4px);
	max-width:         calc(14.28% - 4px);
}

.gallery-columns-8 .gallery-item {
	max-width: 11%;
	max-width: -webkit-calc(12.5% - 4px);
	max-width:         calc(12.5% - 4px);
}

.gallery-columns-9 .gallery-item {
	max-width: 9%;
	max-width: -webkit-calc(11.1% - 4px);
	max-width:         calc(11.1% - 4px);
}

.gallery-columns-1 .gallery-item:nth-of-type(1n),
.gallery-columns-2 .gallery-item:nth-of-type(2n),
.gallery-columns-3 .gallery-item:nth-of-type(3n),
.gallery-columns-4 .gallery-item:nth-of-type(4n),
.gallery-columns-5 .gallery-item:nth-of-type(5n),
.gallery-columns-6 .gallery-item:nth-of-type(6n),
.gallery-columns-7 .gallery-item:nth-of-type(7n),
.gallery-columns-8 .gallery-item:nth-of-type(8n),
.gallery-columns-9 .gallery-item:nth-of-type(9n) {
	margin-right: 0;
}

.gallery-caption {
	background-color: rgba(0, 0, 0, 0.7);
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
	max-height: 50%;
	opacity: 0;
	padding: 6px 8px;
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: left;
	width: 100%;
}

.gallery-caption:before {
	content: "";
	height: 100%;
	min-height: 49px;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
}

.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}




