.cb_template .galleryFolderContainer .cbCanvasLayout,
.cb_template .galleryItemContainer .cbCanvasLayout,
.cb_template .galleryModalInfo,
.cb_template .galleryToggleMedia .galleryToggleMediaPreview,
.cb_template .galleryMediaVideo .galleryVideoPlayer {
	top: 0;
	left: 0;
}

.cb_template .galleryToggleMedia .galleryToggleMediaPlayer {
	left: 0;
	z-index: 5;
}

.cb_template .galleryFolderContainer:before,
.cb_template .galleryItemContainer:before,
.cb_template .galleryMediaVideo:before {
	display: block;
	content: '';
	padding-bottom: 100%;
}

.cb_template .galleryMediaVideo:before {
	padding-bottom: 56.25%;
}

.cb_template .galleryToggleMediaIcon {
	text-shadow: 0 0 0 #343a40; /* fallback */
	text-shadow: 0 0 0 var( --dark, #343a40 );
	opacity: 0.6;
}

.cb_template .galleryToggleMedia:hover .galleryToggleMediaIcon {
	opacity: 0.8;
}

.cb_template .galleryToggleMediaIcon,
.cb_template .galleryImageIcon {
	line-height: 0;
}

.cb_template .galleryShareUploadDropZone,
.cb_template .galleryToggleMedia:not(.galleryToggleMediaOpen) .galleryToggleMediaPreview,
.cb_template .galleryModalLoading,
.cb_template .galleryModalAlert {
	cursor: pointer;
}

.cb_template .galleryToggleMediaPreview {
	z-index: 2;
}

.cb_template .galleryToggleMediaPreview img {
	width: 100% !important;
	max-height: 100% !important;
	z-index: 3;
}

.cb_template .galleryModalItemMusic img {
	width: 100% !important;
	max-height: 100% !important;
	object-fit: cover;
}

.cb_template .galleryModalInfo {
	opacity: 0.8;
}

.cb_template .galleryModalDisplay:hover .galleryModalInfo {
	display: block !important;
}

.cb_template .galleryMediaMetadata {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
		-ms-overflow-style: -ms-autohiding-scrollbar;
}

.cb_template.galleryMetadata {
	max-width: 100%;
	max-height: 100%;
}

.cb_template.galleryModal {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.cb_template .galleryModalContainer .galleryVideoPlayer {
	z-index: 1;
}

.cb_template .galleryModalMenu,
.cb_template .galleryModalClose {
	top: 0;
	right: 0;
}

.cb_template .galleryItemEditMicroActions {
	bottom: 0;
}

.cb_template .galleryModalInfo,
.cb_template .galleryModalMenu {
	z-index: 3;
}

.cb_template .galleryToggleMediaPlay,
.cb_template .galleryItemEditMicroActions,
.cb_template .galleryModalClose {
	z-index: 4;
}

.cb_template .galleryModalActions {
	bottom: 0;
	right: 0;
	z-index: 3;
}

.cb_template .galleryModalClose .cbTooltipClose {
	cursor: pointer;
	opacity: 0.6;
}

.cb_template .galleryModalClose .cbTooltipClose:hover {
	opacity: 1;
}

.cb_template .galleryModalScrollLeft,
.cb_template .galleryModalScrollRight {
	cursor: pointer;
	z-index: 2;
	opacity: 0.6;
}

.cb_template .galleryModalScrollLeft:hover,
.cb_template .galleryModalScrollRight:hover {
	opacity: 1;
}

.cb_template .galleryModalDescription,
.cb_template .galleryModalIntegrations {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
		-ms-overflow-style: -ms-autohiding-scrollbar;
}

.cb_template .galleryModalDescription {
	min-height: 130px;
}

.cb_template .galleryFolderHeader .galleryFolderHeaderAvatar img,
.cb_template .galleryFolderHeader .galleryFolderHeaderAvatar .cbImgPict {
	width: 38px;
	max-width: none;
}

.cb_template .galleryModalHeader .galleryModalHeaderAvatar img,
.cb_template .galleryModalHeader .galleryModalHeaderAvatar .cbImgPict {
	width: 48px;
	max-width: none;
}

.cb_template .galleryModalAlert {
	left: 0;
	bottom: 0;
	z-index: 5;
}

.cb_template .galleryEditLoading {
	top: 0;
	left: 0;
	z-index: 10;
	opacity: 0.5;
}

.cb_template .galleryContainerMore {
	opacity: 0.8;
}

.cb_template .row.galleryItemsRows > .galleryContainer:not([class*="col-"]) {
	flex: 0 0 100%;
	max-width: 100%;
}

.cb_template .galleryContainer .cbCanvasLayout.cbCanvasLayoutHover:focus-within .cbCanvasLayoutHoverHide.active,
.cb_template .galleryContainer .cbCanvasLayout.cbCanvasLayoutHover:focus-within .cbCanvasLayoutHoverHide.show,
.cb_template .galleryContainer .cbCanvasLayout.cbCanvasLayoutHover:focus-within .cbCanvasLayoutHoverHide.open,
.cb_template .galleryContainer .cbCanvasLayout.cbCanvasLayoutHover:focus-within .cbCanvasLayoutHoverShow,
.cb_template .galleryContainer .cbCanvasLayout.cbCanvasLayoutHover:focus-within .cbCanvasLayoutHoverMenu {
    opacity: 1 !important;
}

/* CB ACTIVITY */

.cb_template .galleryModalIntegrations > .commentsStream {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.cb_template .galleryModalIntegrations > .commentsStream > .streamItem {
	flex: 0 0 auto;
}

.cb_template .galleryModalIntegrations > .commentsStream > .streamToolbar {
	flex: 0 0 auto;
}

.cb_template .galleryModalIntegrations > .commentsStream > .streamItems {
	overflow: auto;
	flex: 1 1 auto;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}