.cb_template .galleryHeader .gallerySearchType .select2-selection {
	padding: 0;
}

.cb_template .galleryHeader .gallerySearchType .select2-selection__rendered {
	padding-top: 3px;
}

.cb_template .galleryHeader {
	margin-bottom: 10px;
}

.cb_template .galleryFolderBack {
	margin-top: 10px;
}

.cb_template .galleryFolderHeaderUser,
.cb_template .galleryFolderHeaderDescription {
	word-break: break-all;
	word-wrap: break-word;
}

.cb_template .galleryFolderHeaderMenu,
.cb_template .galleryFolderHeaderDescription {
	margin-top: 5px;
}

.cb_template .folderMenu {
	display: inline-block;
	margin-left: 10px;
}

.cb_template .galleryContainer {
	position: relative;
	display: inline-block;
	padding: 0;
	margin: 0 5px 5px 0;
	vertical-align: top;
	max-width: 100%;
	max-height: 100%;
}

.cb_template .galleryContainer .galleryContainerInner {
	position: relative;
	max-width: 100%;
	max-height: 100%;
}

.cb_template .galleryContainer .galleryContainerMenu,
.cb_template .galleryContainer .galleryContainerBottom {
	opacity: 0;
	transition: opacity 0.2s linear;
	position: absolute;
	z-index: 4;
}

.cb_template .galleryContainer .galleryContainerMenu {
	top: 0;
	right: 0;
	margin-right: -1px;
	margin-top: -1px;
}

.cb_template .galleryContainer .galleryContainerMenu .btn {
	border-top-left-radius: 0;
	border-bottom-right-radius: 0;
}

.cb_template .galleryContainer .galleryContainerTop {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	text-align: center;
	font-size: 0;
	background-color: #dddddd;
}

.cb_template .galleryContainer .galleryContainerBottom {
	left: 0;
	bottom: 0;
	width: 100%;
	text-align: left;
}

.cb_template .galleryContainer .galleryContainerContent {
	height: 100%;
	padding: 5px;
}

.cb_template .galleryContainer .galleryContainerContentRow {
	position: relative;
}

.cb_template .galleryContainer .galleryContainerIcons {
	position: absolute;
	top: 0;
	right: 0;
}

.cb_template .galleryContainer .galleryContainerIcons > span + span {
	margin-left: 5px;
}

.cb_template .galleryContainer .galleryContainerApproval {
	margin: 10px;
}

.cb_template .galleryFolderContainer .galleryContainerBottom,
.cb_template .galleryContainer:hover .galleryContainerMenu,
.cb_template .galleryContainer:hover .galleryContainerBottom {
	opacity: 1;
}

.cb_template .galleryFoldersEmpty,
.cb_template .galleryFoldersNotEmpty {
	font-size: 60px;
}

.cb_template .galleryModalContainer {
	position: relative;
	height: 100%;
	width: 100%;
}

.cb_template .galleryModalType {
	display: inline-block;
	margin-right: 6px;
}

.cb_template .galleryModalDisplay,
.cb_template .galleryModalDetails,
.cb_template .galleryModalLoading {
	position: relative;
	height: 100%;
}

.cb_template .galleryModalDetails {
	padding: 0;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	background: #ffffff;
	color: #000000;
}

.cb_template .galleryModalScrollLeft,
.cb_template .galleryModalScrollRight {
	z-index: 1;
}

.cb_template .galleryMediaFile,
.cb_template .galleryMediaFile > tr,
.cb_template .galleryMediaFile > tr > td,
.cb_template .galleryModalScrollLeft table,
.cb_template .galleryModalScrollLeft table > tr,
.cb_template .galleryModalScrollLeft table > tr > td,
.cb_template .galleryModalScrollRight table,
.cb_template .galleryModalScrollRight table > tr,
.cb_template .galleryModalScrollRight table > tr > td {
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	margin: 0;
}

.cb_template .galleryMediaFile > tr > td,
.cb_template .galleryModalScrollLeft table > tr > td,
.cb_template .galleryModalScrollRight table > tr > td {
	vertical-align: middle;
}

.cb_template .galleryModalScrollLeft {
	position: absolute;
	height: 100%;
	left: 10px;
	top: 0;
}

.cb_template .galleryModalScrollRight {
	position: absolute;
	height: 100%;
	right: 10px;
	top: 0;
}

.cb_template .galleryModalScrollLeftIcon,
.cb_template .galleryModalScrollRightIcon {
	font-size: 40px;
	color: #ffffff;
	text-shadow: 0 1px 0 #000000;
	opacity: 0.4;
	filter: alpha(opacity=40);
}

.cb_template .galleryModalScrollLeftIcon:hover,
.cb_template .galleryModalScrollRightIcon:hover {
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	opacity: 0.8;
	filter: alpha(opacity=80);
}

.cb_template .galleryModalItem {
	height: 100%;
	width: 100%;
	font-size: 0;
}

.cb_template .galleryModalAlert {
	position: absolute;
	top: 5px;
	left: 10px;
	max-width: 90%
}

.cb_template .galleryItemEmbed {
	display: block;
	height: 100%;
	width: 100%;
	background: none;
}

.cb_template .galleryItemEmbed:before {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	height: 100%;
	width: 100%;
	content: "";
	z-index: 1;
}

.cb_template .galleryModalItem img,
.cb_template .galleryItemEmbed img {
	max-height: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

.cb_template .galleryModalInfo {
	position: absolute;
	left: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.70);
	padding: 6px;
	z-index: 2;
}

.cb_template .galleryModalInfo > div {
	position: relative;
}

.cb_template .galleryModalInfo .galleryModalInfoTitle {
	word-break: break-all;
	word-wrap: break-word;
	max-height: 100px;
	overflow: auto;
	margin-right: 45px;
}

.cb_template .galleryModalInfo .galleryModalInfoMenu {
	position: absolute;
	bottom: 0;
	right: 0;
}

.cb_template .galleryFolderHeaderAvatar img,
.cb_template .galleryModalDetailsHeaderAvatar img {
	width: 48px;
	max-width: none;
	max-height: 100%;
}

.cb_template .media.galleryModalDetailsHeader {
	margin: 20px 20px 0 20px;
}

.cb_template .galleryModalDetailsBody {
	margin: 10px 20px 0 20px;
}

.cb_template .galleryModalDetailsFooter {
	margin-top: 10px;
	padding: 10px 10px 0 10px;
	border-top-width: 1px;
	border-top-style: solid;
}

.cb_template .galleryModalClose {
	position: absolute;
	top: 4px;
	cursor: pointer;
	right: 12px;
	opacity: 0.4;
	z-index: 9999;
}

.cb_template .galleryModalClose:hover {
	opacity: 0.8;
}

.qtip.galleryModal {
	border-radius: 0;
	background: #000000;
	color: #ffffff;
}

.qtip.galleryModal,
.qtip.galleryModal > .qtip-content {
	padding: 0;
}

.qtip.galleryModal > .qtip-close {
	display: none !important;
}

@media ( max-width: 991px ) {
	.cb_template .galleryModalInfo {
		position: relative;
	}

	.cb_template .galleryModalDetails {
		height: auto;
		padding-bottom: 20px;
	}

	.qtip.galleryModal {
		width: 95% !important;
		height: 95% !important;
	}
}

.cb_template .galleryImageBackground {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 2;
}

.cb_template .img-thumbnail .galleryImageBackground {
	border-radius: 4px;
}

.cb_template .galleryMediaFile {
	width: 90%;
	margin: 0 auto;
	font-size: 14px;
}

.cb_template .galleryMediaFile td,
.cb_template .galleryMediaFileTable td{
	word-break: break-all;
	vertical-align: middle;
}

.cb_template .galleryMediaPhoto {
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.cb_template .galleryRotate90 {
	-webkit-transform: rotate(90deg);
		-moz-transform: rotate(90deg);
			-ms-transform: rotate(90deg);
				-o-transform: rotate(90deg);
					transform: rotate(90deg);
}

.cb_template .galleryRotate180 {
	-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
			-ms-transform: rotate(180deg);
				-o-transform: rotate(180deg);
					transform: rotate(180deg);
}

.cb_template .galleryRotate270 {
	-webkit-transform: rotate(270deg);
		-moz-transform: rotate(270deg);
			-ms-transform: rotate(270deg);
				-o-transform: rotate(270deg);
					transform: rotate(270deg);
}

.cb_template .galleryMediaVideo {
	height: 100%;
	width: 90%;
	margin: 0 auto;
	padding-bottom: 5%;
	padding-top: 5%;
}

.cb_template .galleryMediaMusic {
	height: 100%;
	width: 90%;
	margin: 0 auto;
	padding-top: 1%;
}

.galleryModalOpen {
	overflow: hidden !important;
}

.cb_template .galleryItemsNewUploadFile .progress {
	margin: 0;
}

.cb_template .galleryItemsNewUploadArea {
	margin-bottom: 0;
	box-shadow: none;
	background-image: none;
	cursor: pointer;
	-webkit-user-select: none;
		-moz-user-select: none;
			-ms-user-select: none;
				user-select: none;
}

.cb_template .galleryItemsNewUploadArea +  .galleryItemsNewUploadFiles:not(.hidden) {
	margin-top: 15px;
}

.cb_template .galleryItemEdit .galleryContainer,
.cb_template .galleryItemEditMini .galleryContainer,
.cb_template .galleryFolderEdit .galleryContainer,
.cb_template .galleryItemsNewUploadFiles .table {
	margin: 0;
}

.cb_template .galleryShareLinkLoading {
	position: absolute;
	left: -30px;
	top: 8px;
	z-index: 3;
	color: black;
	font-size: 18px;
}

.cb_template .galleryItemsNewOr {
	padding-top: 10px;
	padding-bottom: 10px;
}

.cb_template .galleryItemsNewOrLine {
	display: inline-block;
	width: 25%;
	height: 3px;
	margin-left: 15px;
	margin-right: 15px;
	vertical-align: middle;
}

.cb_template .galleryItemsNewEdit,
.cb_template .galleryItemsNewButtons {
	margin-top: 15px;
}

.cb_template .galleryItemEditMini {
	position: relative;
}

.cb_template .galleryItemEditMini .galleryContainer .galleryContainerInner,
.cb_template .galleryItemEditMini .form-control {
	width: 100%;
}

.cb_template .galleryItemEditMini .alert {
	padding: 10px;
}

.cb_template .galleryItemEditMini .panel {
	margin-bottom: 10px;
}

.cb_template .galleryItemEditMini .panel-body {
	padding: 5px 0 5px 0;
}

.cb_template .galleryItemEditMiniRows .row + .row {
	margin-top: 10px;
}

.cb_template .galleryEditLoading {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.05);
	line-height: 250px;
}

@media ( max-width: 767px ) {
	.cb_template .galleryItemEditMini .galleryItemEditMiniPreview {
		text-align: center;
	}

	.cb_template .galleryItemEditMini .galleryItemEditMiniRows,
	.cb_template .galleryItemEditMini .galleryItemEditMiniAlbum {
		margin-top: 10px;
	}
}

.cb_template .galleryMenuItem.divider {
	border: 0;
}

.cb_template .galleryActivity {
	padding: 10px;
}

.cb_template .galleryActivity .galleryContainer,
.cb_template .galleryActivity .galleryMediaFileTable {
	margin: 0;
}

.cb_template .galleryActivity .galleryContainer {
	float: left;
}

.cb_template .galleryActivity .galleryContainer .galleryContainerTop {
	border-right: 1px solid #ffffff;
	border-bottom: 1px solid #ffffff;
}

.cb_template .galleryActivity .galleryContainerMore {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	color: #eeeeee;
	text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
	background-color: rgba(0, 0, 0, 0.05);
	z-index: 3;
}
