[dir="rtl"] .gallery-list
{
	font-family: "IRANSans","byekan";
	font-size: 15px;
}

[dir="ltr"] .gallery-list
{
	font-family: "calibri";
	font-size: 14px;
}

.gallery-list .description
{
	color: #555;
	line-height: 1.5;
	margin-top: 5px;
	margin-bottom: 5px;
	border: 1px solid #eee;
	min-height: 75px;
	padding: 5px;
}

.gallery-list .pagination
{
    direction: ltr;
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

[dir="ltr"] .gallery-list .pull-right
{
    float: left !important;
}

[dir="ltr"] .gallery-list .pull-left
{
    float: right !important;
}

.gallery-list .switch-title
{
    display: inline-block;
}

.gallery-item > a
{
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.gallery-item
{
    margin-top: 10px;
    padding: 6px;
}


.gallery-item span
{
    color: #222;
}

.gallery-item.grid .image-container
{
    width: 100%;
    height: 164px;
}

.gallery-item.grid .image-container .visit-count
{
    display: none;
}

.gallery-item.list .image-container .visit-count
{
    display: block;
    margin-top:10px;
}

.gallery-item.list .attribute
{
    padding:0 5px;
    margin: 0;
}

.gallery-item.list .attribute span
{
    color: #555;
}

[dir="rtl"] .gallery-item.list .image-container
{
    max-width: 30%;
    text-align: center;
    float: right;
}

[dir="ltr"] .gallery-item.list .image-container
{
    max-width: 30%;
    text-align: center;
    float: left;
}

.gallery-item.grid .thumbnail
{
    max-width: 90%;
    max-height: 160px;
    margin: 0 auto;
}

.gallery-item.list .thumbnail
{
    max-width: 100%;
    max-height: 160px;
}

.gallery-item.list > a > .title , .gallery-item.list > a > .visit-count
{
    display: none;
}

.gallery-item.list  .title
{
    font-weight: bold;
    color: #222;
}

.gallery-item.grid  .title
{
    font-weight: bold;
    color: #222;
}

.gallery-item .detail-container p:nth-child(odd)	
{
	background: #eee;
}

.gallery-item .detail-container p:nth-child(even)	
{
	background: #f7f7f7;
}

.gallery-item > a > span
{
    display: block;
    max-width: 70%;
    max-height: 128px;
    margin: 0 auto;
}

[dir="rtl"] .gallery-item .lang-ltr
{
    display: none;
}

[dir="ltr"] .gallery-item .lang-rtl
{
    display: none;
}

[dir="ltr"] .gallery-item .pull-right
{
    float: left !important;
}

.gallery-item.grid .detail-container
{
    display: none;
}

.gallery-item.list .detail-container
{
    float: left;
    width: 69%;
}

[dir="ltr"] .gallery-item.list .detail-container
{
    float: right;
    width: 69%;
}
/* begin rank */
.gallery-item.grid .rank
{
    display: block;
    clear: both;
    float: none;
    background: none;
    height: auto;
    text-align: right;
    position: absolute;
    left: 89%;
    width: 16px;
    z-index: 2;
    top: 20px;
}

.gallery-item.grid .image-container .rank
{
    display: none;
}

.gallery-item.list > a > .rank
{
    display: none;
}

[dir="ltr"] .gallery-item.grid .rank
{
    right: 91%;
    left: auto;
}

.gallery-item.grid .rank .stars
{
    direction: ltr;
    display: inline-block;
    margin: auto 0;
}

.gallery-item.grid .rank i, .gallery-item.list .rank i
{
    color: #C4C4C4;
    font-size: 11px;
    margin: 2px 1px;
}

.gallery-item.list .rank
{
    margin: 0 auto;
}

.gallery-item.grid .rank i.middledeactive, .gallery-item.list .rank i.middledeactive
{
    color: #777 !important;
}

.gallery-item.grid .rank i.active, .gallery-item.list .rank i.active
{
    color: rgb(0, 0, 0);
    text-shadow: #999 1px 1px 0;
}

.gallery-item.grid .rank i.middleactive, .gallery-item.list .rank i.middleactive
{
    color:rgb(180,200,0);
    text-shadow: #999 1px 1px 0;
}
/* end rank */