/* error messages */
.pbg-error {
	background: red;
	color: #fff;
	padding: 20px;
}
.pbg-error ul {
	margin-left: 20px;
}

/* general */
.pbg {
	margin-bottom: 20px;
	text-align: left;
}
.pbg-inner {}
.pbg ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #ccc;
	opacity: 1;
}
.pbg :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color: #ccc;
   opacity: 1;
}
.pbg ::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: #ccc;
   opacity: 1;
}
.pbg :-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #ccc;
   opacity: 1;
}

/* form */
.pbg-intro {}
.pbg-form-input-wrapper {}
input[type="text"].pbg-form-input {
	text-align: center;
	font-size: 3rem;
	line-height: 1;
	padding: 0.7rem;
	font-weight: bold;
	border: 1px solid #aaa;
	border-radius: 4px;
	width: 100%;
	display: block;
	background: #fff;
	color: #333;
	transition: color 0.5s, border 0.3s, background 0.3s;
	box-sizing: border-box;
}
input[type="text"].pbg-form-input:focus {
	border-color: #888;
	background: #f5f5f5;
	color: #222;
}
input[type="text"].pbg-form-input.pbg-invalid {
	color: #a00;
}
input[type="text"].pbg-form-input.pbg-valid {
	color: #0a0;
}

/* controls */
.pbg-media-wrapper {
	position: relative;
}
.pbg-control-btn {
	display: inline-block;
	background: #666;
	padding: 0;
	height: 40px;
	line-height: 40px;
	color: #fff;
	font-size: 100%;
	font-weight: normal;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
	transition: opacity 0.3s !important;
	width: 40px;
}
.pbg-control-btn:hover,
.pbg-control-btn:active,
.pbg-control-btn:focus {
	opacity: 0.8;
	box-shadow: none;
	text-decoration: none;
	border: 0;
	color: #fff !important;
}
.pbg-control-previous,
.pbg-control-next {
	position: absolute;
	top: 50%;
	margin-top: -20px;
	z-index: 1000;
}
.pbg-control-previous {
	left: 0;
}
.pbg-control-next {
	right: 0;
}

/* display */
.pbg-media-display {
	background: #ccc;
	min-height: 100px;
}
.pbg-media-display-inner {}
.pbg-display-image {
	max-width: 100%;
}
.pbg-display-image,
.pbg-display-video {
	width: 100%;
}
.pbg-display-video {
	height: auto;
	margin-bottom: 0 !important;
}
.pbg-media-list {
	margin: 10px -5px 0 -5px;
}
.pbg-media-list-inner {}
.pbg-media-list::after {
	content: " ";
	display: table;
	clear: both;
}
.pbg-media-list-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.pbg-thumbnail-box {
	width: 25%;
	margin-bottom: 10px;
}
.pbg-thumbnail {
	position: relative;
	height: 150px;
	padding: 0 5px;
	margin-bottom: 5px;
	box-sizing: border-box;
}
@media (max-width: 800px) {
	.pbg-thumbnail-box {
		width: 33.333%;
	}
}
@media (max-width: 500px) {
	.pbg-thumbnail-box {
		width: 50%;
	}
}
@media (max-width: 375px) {
	.pbg-thumbnail-box {
		width: 100%;
	}
}
.pbg-thumbnail-inner {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #ccc;
	padding: 10px;
	cursor: pointer;
	transition: background 0.5s;
	box-sizing: border-box;
}
.pbg-thumbnail.pbg-active .pbg-thumbnail-inner {
	background-color: #333;
}
.pbg-thumbnail-inner::after {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transition: background 0.5s;
}
.pbg-thumbnail-inner:hover::after {
	background: rgba(0,0,0,0.3);
}
.pbg-thumbnail-delete {
	position: absolute;
	left: 15px;
	top: 15px;
	z-index: 1000;
}
.pbg-thumbnail-image {
	position: relative;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}
.pbg-thumbnail-video::after {
	content: "▶";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	color: #fff;
	background: #000;
	text-align: center;
	line-height: 130px;
	font-size: 40px;
}
.pbg-thumbnail-label {
	display: block;
	padding: 0 5px;
	font-size: 80%;
}

/* share */
.pbg-share {
	background: #ccc;
	padding: 10px;
}
.pbg-share-title {
	margin-top: 0;
	margin-bottom: 5px;
	font-weight: bold;
}
.pbg-share ul {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 2.3;
}
.pbg-share li {
	display: inline-block;
	margin: 0;
	padding: 0;
}
.pbg-share-link {
	display: inline-block;
	background: #666;
	padding: 8px 12px;
	line-height: 1;
	color: #fff;
	font-size: 100%;
	font-weight: normal;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
	transition: opacity 0.3s !important;
	width: 140px;
}
@media (max-width: 320px) {
	.pbg-share-link {
	padding: 12px 8px;
    font-size: 12px;
    width: 123px;
    margin-bottom: 5px;
}}
.pbg-share-link:hover,
.pbg-share-link:active,
.pbg-share-link:focus {
	opacity: 0.8;
	box-shadow: none;
	text-decoration: none;
	border: 0;
	color: #fff !important;
}
.pbg-share-link .fa {
	width: 20px;
}
.pbg-share-email { background-color: #3490f3 !important; }
.pbg-share-twitter { background-color: #00aced !important; }
.pbg-share-facebook { background-color: #3b5998 !important; }
.pbg-share-google-plus { background-color: #dd4b39 !important; }
.pbg-share-linkedin { background-color: #007bb6 !important; }
.pbg-share-pinterest { background-color: #cb2027 !important; }
.pbg-share-stumbleupon { background-color: #eb4823 !important; }
.pbg-share-whatsapp { background-color: #29a628 !important; }

/* pagination */
.pbg-pagination-wrapper {
	margin-top: 10px;
}
.pbg-pagination {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.pbg-pagination>li {
	display: inline-block;
	width: auto;
	padding: 0;
	margin: 10px 5px 0 5px;
}
.pbg-pagination>li>a {
	display: inline-block;
	padding: 8px 18px;
	margin: 0;
	box-shadow: none !important;
	transition: background 0.3s !important;
	background: #ccc;
	color: #000;
	border: 0;
	text-decoration: none;
	font-weight: normal;
}
.pbg-pagination>li>a:hover,
.pbg-pagination>li>a:active,
.pbg-pagination>li>a:focus,
.pbg-pagination>li.pbg-active>a {
	background-color: #666;
	color: #fff;
}
