/**
 * Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
 * =============================================================
 * NOTICE OF LICENSE [Single domain license]
 * This source file is subject to the EULA that is
 * available through the world-wide-web at:
 * http://www.magmodules.eu/license-agreement/
 * =============================================================
 * @category    Magmodules
 * @package     Magmodules_Gallery
 * @author      Magmodules <info@magmodules.eu>
 * @copyright   Copyright (c) 2013 (http://www.magmodules.eu)
 * @license     http://www.magmodules.eu/license-agreement/  
 * =============================================================
 */
 
.gallery_wrapper {
	width: 100%;
	margin: 0 auto;
}

.gallery_wrapper h3 {
    font-size: 24px;
    margin-left: 5px;
}

.gallery_title { 
	margin-left: 5px; 
	margin-bottom: 15px;
	margin-top: 5px;
	height: 5px; 
	color: rgb(124, 124, 124);
	font-weight: bold;
        display: none;
}

.gallery_description { 
	margin-left: 5px;  
	color: rgb(124, 124, 124);
}

/** DEFAULT THEME **/

.gallery_wrapper ul.gallery_default {
	list-style-type: none;
	overflow: hidden;
	margin-top: 10px;
}

.gallery_wrapper .gallery_default li {
	float: left;
	margin: 5px;
	position: relative;
}

.gallery_wrapper .gallery_default li  > a,
.gallery_wrapper .gallery_default li  > a img {
  display: inline-block;
  width: 100%;
  height: auto;
  float: left;
}

.gallery_wrapper .gallery_default li  > a {
	position: relative;
	/*border-radius: 3px;
	border: 5px solid #fff;
	box-shadow: 0px 0px 3px #BABABA;
	margin: 5px;*/
}

.gallery_wrapper .gallery_default li   > a:hover {
	box-shadow: 0px 0px 7px #B0B0B0;
	border-radius: 3px;
 	
	opacity: 0.9;  
	/* transition: opacity .15s ease-in-out; */  
	-moz-transition: opacity .15s ease-in-out;  
	/* -webkit-transition: opacity .15s ease-in-out; */
}

/** THEME POLOROID **/

.gallery_wrapper ul.gallery_polaroids li { 
	display: inline; 
	overflow: hidden;
}

.gallery_wrapper ul.gallery_polaroids a { 
	background: #fff; 
	display: inline; 
	float: left; 
	margin: 0 0 27px 30px; 
	width: auto; 
	padding: 10px 10px 15px; 
	text-align: center; 
	font-family: "Marker Felt", sans-serif; 
	text-decoration: none; 
	color: #333; 
	font-size: 13px; 
	-webkit-box-shadow: 0 3px 6px rgba(0,0,0,.25); 
	-moz-box-shadow: 0 3px 6px rgba(0,0,0,.25);
	-webkit-transform: rotate(-2deg); 
	-webkit-transition:
	-webkit-transform .15s linear; 
	-moz-transform: rotate(-2deg); 
}

.gallery_wrapper ul.gallery_polaroids li {
	padding-left: 0;
}

.gallery_wrapper ul.gallery_polaroids img { 
	display: block;  
	margin-bottom: 12px; 
}

.gallery_wrapper ul.gallery_polaroids a:after { 
	content: attr(alt); 
}

.gallery_wrapper ul.gallery_polaroids li:nth-child(even) a { 
	-webkit-transform: rotate(2deg);  
	-moz-transform: rotate(2deg); 
}

.gallery_wrapper ul.gallery_polaroids li:nth-child(3n) a { 
	-webkit-transform: none; 
	position: relative; 
	top: -5px;  
	-moz-transform: none; 
}

.gallery_wrapper ul.gallery_polaroids li:nth-child(5n) a { 
	-webkit-transform: rotate(5deg); 
	position: relative; 
	right: 5px;  
	-moz-transform: rotate(5deg); 
}

.gallery_wrapper ul.gallery_polaroids li:nth-child(8n) a { 
	position: relative; 
	right: 5px; 
	top: 8px; 
}

.gallery_wrapper ul.gallery_polaroids li:nth-child(11n) a { 
	position: relative; 
	left: -5px; 
	top: 3px; 
}

.gallery_wrapper ul.gallery_polaroids li.messy a {
	margin-top: -400px;
	position: relative;
	left: 160px;
}

.gallery_wrapper ul.gallery_polaroids li a:hover { 
	-webkit-transform: scale(1.25); 
	-moz-transform: scale(1.25); 
	-webkit-box-shadow: 0 3px 6px rgba(0,0,0,.5); 
	-moz-box-shadow: 0 3px 6px rgba(0,0,0,.5); 
	position: relative; 
	z-index: 5; 
}

/* new changes for the gallery */
.contain_image {
      margin: 0;
      padding: 0;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 24px;
      font-weight: 600;
      position: relative;
      text-shadow: 1px 1px 2px #666666;
      width: 100%;
      display: inline-block;
      margin-bottom: 20px;
}
.contain_image img {
    width: 100%;
    height: auto;
}
.contain_image h1 {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 12px 0 12px 10px;
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
}
.gallery_wrapper .gallery_default li {
    width: 24%;
    margin: 0;
    margin-right: 1.33%;
    margin-bottom: 1.33%; 
    display: inline-block;
}
.gallery_wrapper .gallery_default li:nth-child(4n) {
    margin-right: 0;
}
.contain_image_description {
    border-bottom: dotted #666666 thin; 
    margin-bottom: 20px;
}
.gallery_wrapper h3 {
    display: none;
}
@media only screen and (min-width: 771px) and (max-width: 1000px) {
    .gallery_wrapper .gallery_default li {
        width: 32%;
        margin: 0;
        margin-right: 2%;
        margin-bottom: 2%; 
    }
    .gallery_wrapper .gallery_default li:nth-child(4n) {
         margin-right: 2%;
         margin-bottom: 2%; 
    }
    .gallery_wrapper .gallery_default li:nth-child(3n) {
        margin-right: 0;
    }
}
@media only screen and (max-width: 771px) {
    .gallery_wrapper .gallery_default li {
        width: 49%;
        margin: 0;
        margin-right: 2%;
        margin-bottom: 2%; 
    }
    .gallery_wrapper .gallery_default li:nth-child(4n) {
         margin-right: 2%;
         margin-bottom: 2%; 
    }
    .gallery_wrapper .gallery_default li:nth-child(2n) {
        margin-right: 0;
    }
}