.ari-media-gallery {
	margin: 0 auto;
}

.ari-media-gallery .item-content IMG {
	max-width: 100%;
	max-height: 100%;
	height: auto !important;
	display: inline-block;
	*display: inline;
	zoom: 1;
}

.ari-media-gallery .ari-media-gallery-item .item-title {
	text-align: center;
}

.ari-media-gallery .ari-media-gallery-item {
	text-align: center;	
	max-width: 100%;
	display: inline-block;
	vertical-align: top;
}

.ari-media-gallery .item-outer {
	display: inline-block;
	max-width: 100%;
}

.ari-media-gallery .ari-media-gallery-break {
	clear: both;
}

.ari-media-gallery.ari-media-gallery-loading {
	background: url(images/loading.gif) no-repeat center center;
	min-height: 64px;
	min-width: 70px;
}

.ari-media-gallery.ari-media-gallery-loading * {
	visibility: hidden;
}

.ari-media-gallery .ari-media-gallery-page {
	text-align: justify;
}

.ari-media-gallery .ari-media-gallery-page:after {
	content: "";
	display: inline-block;
	width: 100%;
}

.ari-media-gallery .ari-media-gallery-page.page-hidden {
	display: none;
}

.ari-media-gallery .ari-media-gallery-item IMG.lazyload {
	background: transparent url(images/item-loading.gif) no-repeat center center;
}

.ari-media-gallery .ari-media-gallery-item IMG.lazyload-error {
	background: transparent url(images/item-error.png) no-repeat center center;
}

.ari-media-gallery .ari-media-gallery-hidden-items {
	display: none;
}

.ari-media-gallery-paging {
	text-align: center;
}

.ari-media-gallery .item-content {
	margin: 0;
}

/* Shadow theme */
.ari-media-gallery-theme-shadow .item-shadow {
	position: absolute;
	background: transparent url("images/shadow.png") no-repeat right bottom;
	bottom: -5px;
	right: -5px;
	width: 100%;
	height: 100%;
	z-index: 9;
	padding: 0;
	margin: 0;
}

.ari-media-gallery-theme-shadow .item-inner {
	border: 1px solid #CCC;
	padding: 4px;
	z-index: 10;
}

.ari-media-gallery-theme-shadow .item-outer {
	margin: 5px;
	padding: 0;
	position: relative;
}

.ari-media-gallery-theme-shadow .item-content A,
.ari-media-gallery-theme-shadow .item-content IMG {
	display: block;
	position: relative;
	z-index: 10;
}

.ari-media-gallery-theme-shadow .item-content {
	z-index: 10;
}

/* Pin */
.ari-media-gallery-theme-pin .item-content {
	position: relative;
}

.ari-media-gallery-theme-pin .item-marker {
	position: absolute;
	width: 28px;
	height: 21px;
	top: -18px;
	left: 50%;
	background: transparent url("images/pin.png") no-repeat center center;
	z-index: 11;
}

/* Clip */
.ari-media-gallery-theme-clip .item-content {
	position: relative;
}

.ari-media-gallery-theme-clip .item-marker {
	position: absolute;
	width: 30px;
	height: 61px;
	top: -10px;
	left: -7px;
	background: transparent url("images/paper-clip.png") no-repeat center center;
	z-index: 11;
}

/* Flora */
.ari-media-gallery-theme-flora .item-content {
	position: relative;
}

.ari-media-gallery-theme-flora .item-marker {
	position: absolute;
	width: 122px;
	height: 72px;
	top: -26px;
	left: -21px;
	background: transparent url("images/floral-corner.png") no-repeat center center;
	z-index: 11;
}

/* Fancy */
.ari-media-gallery-theme-fancy .item-content IMG {
	border: 1px solid #ccc;
	padding: 5px;
	display:block;
}

.ari-media-gallery-theme-fancy .item-content A:hover IMG {
	background-color: #e5e5e5;
	border: 1px solid #e5e5e5;
}

/* pagination */
.ari-media-gallery SELECT.page-size {
	border: 1px solid #CCC;
	line-height: 30px;
	height: 30px;
	vertical-align: bottom;
	padding: 4px 6px;
	background: #FFF;
	color: #555;
	border-radius: 4px;
	width: auto;
	margin-bottom: 0;
}

.ari-media-gallery-paging LABEL {
	line-height: 30px;
	height: 30px;
	vertical-align: bottom;
	padding-right: 5px;
	display: inline-block;
	margin-bottom: 0;
}

.ari-media-gallery .clearfix {
}
.ari-media-gallery .clearfix:before, .ari-media-gallery .clearfix:after {
    content: "";
    display: table;
    line-height: 0;
}
.ari-media-gallery .clearfix:after {
    clear: both;
}
.ari-media-gallery .hide-text {
    background-color: rgba(0, 0, 0, 0);
    border: 0 none;
    color: rgba(0, 0, 0, 0);
    font: 0px/0 a;
    text-shadow: none;
}
.ari-media-gallery .input-block-level {
    box-sizing: border-box;
    display: block;
    min-height: 30px;
    width: 100%;
}
.ari-media-gallery .pagination {
    margin: 20px 0;
}
.ari-media-gallery .pagination ul {
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-bottom: 0;
    margin-left: 0;
    vertical-align: bottom;
}
.ari-media-gallery .pagination ul > li {
    display: inline;
}
.ari-media-gallery .pagination ul > li > a, .ari-media-gallery .pagination ul > li > span {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #FFFFFF;
    border-color: #DDDDDD;
    border-image: none;
    border-style: solid;
    border-width: 1px 1px 1px 0;
    float: left;
    line-height: 20px;
    padding: 4px 12px;
    text-decoration: none;
}
.ari-media-gallery .pagination ul > li > a:hover, .ari-media-gallery .pagination ul > li > a:focus, .ari-media-gallery .pagination ul > .active > a, .ari-media-gallery .pagination ul > .active > span {
    background-color: #F5F5F5;
}
.ari-media-gallery .pagination ul > .active > a, .ari-media-gallery .pagination ul > .active > span {
    color: #999999;
    cursor: default;
}
.ari-media-gallery .pagination ul > .disabled > span, .ari-media-gallery .pagination ul > .disabled > a, .ari-media-gallery .pagination ul > .disabled > a:hover, .ari-media-gallery .pagination ul > .disabled > a:focus {
    background-color: rgba(0, 0, 0, 0);
    color: #999999;
    cursor: default;
}
.ari-media-gallery .pagination ul > li:first-child > a, .ari-media-gallery .pagination ul > li:first-child > span {
    border-bottom-left-radius: 4px;
    border-left-width: 1px;
    border-top-left-radius: 4px;
}
.ari-media-gallery .pagination ul > li:last-child > a, .ari-media-gallery .pagination ul > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}
.ari-media-gallery .pagination-centered {
    text-align: center;
}
.ari-media-gallery .pagination-right {
    text-align: right;
}
.ari-media-gallery .pagination-large ul > li > a, .ari-media-gallery .pagination-large ul > li > span {
    font-size: 17.5px;
    padding: 11px 19px;
}
.ari-media-gallery .pagination-large ul > li:first-child > a, .ari-media-gallery .pagination-large ul > li:first-child > span {
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
}
.ari-media-gallery .pagination-large ul > li:last-child > a, .ari-media-gallery .pagination-large ul > li:last-child > span {
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}
.ari-media-gallery .pagination-mini ul > li:first-child > a, .ari-media-gallery .pagination-small ul > li:first-child > a, .ari-media-gallery .pagination-mini ul > li:first-child > span, .ari-media-gallery .pagination-small ul > li:first-child > span {
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
}
.ari-media-gallery .pagination-mini ul > li:last-child > a, .ari-media-gallery .pagination-small ul > li:last-child > a, .ari-media-gallery .pagination-mini ul > li:last-child > span, .ari-media-gallery .pagination-small ul > li:last-child > span {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}
.ari-media-gallery .pagination-small ul > li > a, .ari-media-gallery .pagination-small ul > li > span {
    font-size: 11.9px;
    padding: 2px 10px;
}
.ari-media-gallery .pagination-mini ul > li > a, .ari-media-gallery .pagination-mini ul > li > span {
    font-size: 10.5px;
    padding: 0 6px;
}