.mg-album-gallery {
	-webkit-box-sizing: border-box !important;
	   -moz-box-sizing: border-box !important;
			box-sizing: border-box !important;
}
.mg-album-gallery h1,
.mg-album-gallery h2,
.mg-album-gallery h3,
.mg-album-gallery h4,
.mg-album-gallery h5,
.mg-album-gallery h6 {
	margin-top: 5px !important;
	margin-bottom: 10px !important;
	line-height: 1.2em !important;
}
.mg-album-gallery h1 {
	font-size: 2em !important;
}
.mg-album-gallery h2 {
	font-size: 1.5em !important;
}
.mg-album-gallery h3 {
	font-size: 1.17em !important;
}
.mg-album-gallery h4 {
	font-size: 1em !important;
}
.mg-album-gallery h5 {
	font-size: 0.83em !important;
}
.mg-album-gallery h6 {
	font-size: 0.67em !important;
}
.mg-album-gallery .clear {
	clear: both !important;
}
.mg-album-gallery .mg-album-gallery-thumb {
	-webkit-box-sizing: content-box !important;
       -moz-box-sizing: content-box !important;
			box-sizing: content-box !important;
}
.mg-album-gallery .mg-album-gallery-thumb:before,
.mg-album-gallery .mg-album-gallery-thumb:after {
  -webkit-box-sizing: content-box !important;
     -moz-box-sizing: content-box !important;
          box-sizing: content-box !important;
}
.mg-album-gallery .mg-album-gallery-thumb img {
	-webkit-box-sizing: content-box !important;
       -moz-box-sizing: content-box !important;
			box-sizing: content-box !important;
	padding: 5px !important;
	display: block !important;
	-ms-interpolation-mode: bicubic !important;
	-webkit-border-radius: 0px !important;
	   -moz-border-radius: 0px !important;
			border-radius: 0px !important;
}
.mg-album-gallery .mg-album-gallery-thumb img:before,
.mg-album-gallery .mg-album-gallery-thumb img:after {
  -webkit-box-sizing: content-box !important;
     -moz-box-sizing: content-box !important;
          box-sizing: content-box !important;
}
.mg-album-gallery .mg-album-gallery-title {
	word-break: break-all !important;
	word-break: break-word !important; /* Non-standard for webkit */
	-ms-word-break: break-all !important;
	-o-word-break: break-all !important;
	-webkit-hyphens: auto !important;
	-moz-hyphens: auto !important;
	-o-hypens: auto !important;
	hyphens: auto !important;
}

.mg-album-layout-extended-list div.mg-album-gallery-thumb {
	float: left;	
}

.mg-album-layout-extended-list div.mg-album-gallery-text {
	/*float: left;*/
	height: 100%;
	overflow: hidden;
	padding: 0 20px;
}

.mg-album-layout-extended-list {
	margin-bottom: 30px;
}

/*.layered-paper {
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0,0,0,0.15),  The top layer shadow 
        0 10px 0 -5px #fff,  The second layer 
        0 10px 1px 4px rgba(0,0,0,0.15),  The second layer shadow 
        0 20px 0 -10px #fff,  The third layer 
        0 20px 1px 9px rgba(0,0,0,0.15);  The third layer shadow 
}*/

img.attachment-200x200.size-200x200:before {
 content: "";
 background:  #E1BB70;
 position: absolute;
 height: 100%;
 width: 100%;
 z-index: -1;
 transform:rotate(1deg);
 -ms-transform:rotate(1deg);
 -webkit-transform:rotate(1deg);
 -moz-transform: rotate(1deg);
 float: left;
 left: 0%;	
}


img.attachment-200x200.size-200x200:after {
 content: "";
 background:  #E1BB70;
 position: absolute;
 height: 100%;
 width: 100%;
 z-index: -1;
 transform:rotate(1deg);
 -ms-transform:rotate(1deg);
 -webkit-transform:rotate(1deg);
 -moz-transform: rotate(1deg);
 float: left;
 left: 0%;
}
 .paper::after {
 content: "";
 background: #7FAE68;
 position: absolute;
 height: 100%;
 width: 100%;
 z-index: -2;
 transform:rotate(2deg);
 -ms-transform:rotate(2deg);
 -webkit-transform:rotate(2deg);
 -moz-transform: rotate(2deg);
 left: 0%;
 top: 0px;
}

.mg-album .extended-container {
	display: table;
	height: 100%;
	width: 100%;
}
