/**
 * Style for post formats
 * Package: WordPress
 * Subpackage: Dinky
 * Version: 1.2.3
 * Since: Dinky 1.2
 * Theme URI: http://wordpress.org/themes/#
 * Github repository URI: http://github.com/misamplus/dinky-template/
 * More information: http://en.misam.ir/projects/dinky-template/
 * License: GNU General Public License v3 or later (Read license.txt)
 * Copyright (C) 2013  Misam Saki, misam.ir
 * Author: Misam Saki
 * Website: http://en.misam.ir/
 * Email: misamplus@gmail.com
 * Twitter: @misamplus
*/
.post.format-aside .entry-header .entry-title:before,
.post.format-audio .entry-header .entry-title:before,
.post.format-chat .entry-header .entry-title:before,
.post.format-gallery .entry-header .entry-title:before,
.post.format-image .entry-header .entry-title:before,
.post.format-link .entry-header .entry-title:before,
.post.format-quote .entry-header .entry-title:before,
.post.format-status .entry-header .entry-title:before,
.post.format-video .entry-header .entry-title:before,
.post.sticky .entry-header .entry-title:before {
	display: inline-block;
	width: 45px;
	height: 0;
	content: "#";
	font-size: 0;
}
.post.format-aside:before,
.post.format-audio:before,
.post.format-chat:before,
.post.format-gallery:before,
.post.format-image:before,
.post.format-link:before,
.post.format-quote:before,
.post.format-status:before,
.post.format-video:before,
.post.sticky:before {
	display: inline-block;
	position: absolute;
	margin: 5px -5px 0;
	width: 56px;
	height: 56px;
	content: "#";
	font-size: 0;
}
.post.format-aside:before {
	background: url('../img/post-format/aside.png') center center no-repeat;
}
.post.format-audio:before {
	background: url('../img/post-format/audio.png') center center no-repeat;
}
.post.format-chat:before {
	background: url('../img/post-format/chat.png') center center no-repeat;
}
.post.format-gallery:before {
	background: url('../img/post-format/gallery.png') center center no-repeat;
}
.post.format-image:before {
	background: url('../img/post-format/image.png') center center no-repeat;
}
.post.format-link:before {
	background: url('../img/post-format/link.png') center center no-repeat;
}
.post.format-quote:before {
	background: url('../img/post-format/quote.png') center center no-repeat;
}
.post.format-status:before {
	background: url('../img/post-format/status.png') center center no-repeat;
}
.post.format-video:before {
	background: url('../img/post-format/video.png') center center no-repeat;
}
.post.sticky:before {
	background: url('../img/post-format/sticky.png') center center no-repeat;
}

/**
 * 5.4 Galleries
 * ----------------------------------------------------------------------------
 */

.gallery {
	margin-bottom: 20px;
	margin-left: -4px;
}

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

.gallery-columns-1.gallery-size-medium,
.gallery-columns-1.gallery-size-thumbnail,
.gallery-columns-2.gallery-size-thumbnail,
.gallery-columns-3.gallery-size-thumbnail {
	display: table;
	margin: 0 auto 20px;
}

.gallery-columns-1 .gallery-item,
.gallery-columns-2 .gallery-item,
.gallery-columns-3 .gallery-item {
	text-align: center;
}

.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);
	box-sizing: border-box;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	margin: 0;
	max-height: 50%;
	opacity: 0;
	padding: 2px 8px;
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: left;
	-webkit-transition: opacity 400ms ease;
	transition:         opacity 400ms ease;
	width: 100%;
}

.gallery-caption:before {
	box-shadow: 0 -10px 15px #000 inset;
	content: "";
	height: 100%;
	min-height: 49px;
	position: absolute;
	left: 0;
	top: 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;
}

#gallery-4 .gallery-item,
#gallery-1 .gallery-item,
#gallery-12 .gallery-item {
	width: 32% !important;
}
#gallery-3 .gallery-item {
	width: 49% !important;
}