/**
 * ------------------------------------------------------------------------
 * JA Thumbnail Plugin for J25 & J30
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
.ja-thumbnailwrap {
	margin-bottom: 10px;
}

.thumb-left {
	float: left;
	margin-right: 15px;
}

.thumb-right {
	float: right;
	margin-left: 15px;
}

.ja-thumbnail {
	position: relative;
	width: 100%;
}

.thumbnail {
	position: relative;
	/*top: 0;
	left: 0;*/
	z-index: 1;
	width:100%;
	padding:100% 0 0 0;
	height:0;
}

.thumbnail * {
	float: none !important;
	/*margin: 0 !important;*/
}
.thumbnail img{
    position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	height: auto;
	width: auto;
	max-height:100%;
	max-width:100%;
	margin:0px auto;
}
.thumbnail p.img_caption{
    position: absolute;
	bottom: 0;
	margin: 0;
	padding: 20px 5px 5px 5px;
	font-size: 1em;
	line-height: 1.1em;
	color: #fff;
	font-style: italic;
	visibility: hidden;
	background: -webkit-linear-gradient(top,rgba(22,24,27,0),rgba(22,24,27,0.7) 48px,rgba(22,24,27,0.9));
    background: -moz-linear-gradient(center top , rgba(22, 24, 27, 0), rgba(22, 24, 27, 0.7) 48px, rgba(22, 24, 27, 0.9)) repeat scroll 0% 0% transparent;
}
.thumbnail .img_caption:hover p{
    visibility: visible;
}
/* img navigation ---*/
.ja-thumbnailwrap ul.nav {
	font-size: 92%;
	text-transform: uppercase;
	margin: 1px 0 0;
	background: #f7f7f7;
	color: #999;
	position: relative;
	text-align: center;
}

.ja-thumbnailwrap ul.nav li {
	margin: 0;
	padding: 0 5px;
	background: none;
	cursor: pointer;
	display: inline;
	line-height: 1.8;
}

.ja-thumbnailwrap ul.nav li.next {
	position: absolute;
	right: 0;
	top: 0;
	text-align: right;
}

.ja-thumbnailwrap ul.nav li.prev {
	position: absolute;
	left: 0;
	top: 0;
}

.ja-thumbnailwrap ul.nav li.counter {
	margin: 0 !important;
	float: none;
	text-align: center;
	text-transform: lowercase;
	display: inline;
}

.ja-thumbnailwrap ul.nav li.counter span {
	background: none;
	border: none;
	padding: 0;
	color: #666;
	float: none;
}

.ja-thumbnailwrap ul.nav li.next:hover,.ja-thumbnailwrap ul.nav li.prev:hover
	{
	color: #000;
}