/**
 * @name		Page Builder CK
 * @copyright	Copyright (C) 2024. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
 */
 
.flipboxck-front {
	position: relative;
	overflow: hidden;
	height: 100%;
}

.flipboxck-rear {
	position: absolute;
	top:0;
	left:0;
}

.cktype[data-type="flipbox"] {
	z-index: auto;
	overflow: visible;
	background: none;
	perspective: 1000px;
}

.cktype[data-type="flipbox"] .flipboxck-rear {
	box-sizing: border-box;
	z-index: 10;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: rotateY(180deg);
}

.cktype[data-type="flipbox"] > .inner {
	transform-style: preserve-3d;
	transition: transform 0.8s;
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	overflow: visible;
}

.workspaceck .cktype[data-type="flipbox"] > .inner {
	transform-style: initial;
	transition: none;
}

.cktype[data-type="flipbox"] .flipboxck-front {
	opacity: 1;
	z-index: 2;
	transform: rotateY(0deg);
}

.workspaceck .cktype[data-type="flipbox"] .flipboxck-front {
	transform: none;
	overflow: visible;
	z-index: auto;
}

.workspaceck .cktype[data-type="flipbox"] .flipboxck-rear {
	transform: none;
	overflow: visible;
	z-index: auto;
}

.cktype[data-type="flipbox"] .flipboxck-front,
.cktype[data-type="flipbox"] .flipboxck-rear {
	width: 100%;
	min-height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.cktype[data-type="flipbox"] .flipboxck-front-inner > .innercontent ,
.cktype[data-type="flipbox"] .flipboxck-rear-inner > .innercontent {
	padding-bottom: 1px; /* to avoid issue about fusion de marge */
}

[data-type="flipbox"]:hover > .inner {
	transform: rotateY(180deg);
}

.workspaceck [data-type="flipbox"]:hover > .inner {
	transform: none;
}

/* lock the rotation in the workspace */
.workspaceck [data-type="flipbox"]:not(.ckhover):hover > .inner {
	transform: none;
}

.workspaceck [data-type="flipbox"]:not(.ckhover) .flipboxck-rear {
	display: none;
}

.workspaceck [data-type="flipbox"].ckhover .flipboxck-front {
	z-index: -1;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
}

/*.workspaceck [data-type="flipbox"] .flipboxck-front-inner,
.workspaceck [data-type="flipbox"] .flipboxck-rear-inner {
	padding-top: 33px;
	box-sizing: content-box !important;
}*/

.workspaceck .cktype[data-type="flipbox"] {
	perspective: none;
}

.flipboxck-flip-button {
	position: absolute;
	right: 10px;
	width: 30px;
	height: 30px;
	background: chocolate;
	top: 10px;
	border-radius: 50%;
	text-align: center;
	align-content: center;
	line-height: 0;
	z-index: 99;
	cursor: pointer;
	box-shadow: rgba(0,0,0,0.2) 0 0 2px;
	color: #2d3f51;
}

.flipboxck-flip-button svg {
	width: 16px;
	height: 16px;
}

.flipboxck-flip-button:hover {
	color: #000;
}
/*
.flipboxck-front-inner,
.flipboxck-front-inner > .innercontent,
.flipboxck-rear-inner,
.flipboxck-rear-inner > .innercontent {
	height: 100%;
}

.workspaceck [data-type="flipbox"] .flipboxck-front-inner,
.workspaceck [data-type="flipbox"] .flipboxck-front-inner > .innercontent,
.workspaceck [data-type="flipbox"] .flipboxck-rear-inner,
.workspaceck [data-type="flipbox"] .flipboxck-rear-inner > .innercontent {
	height: auto;
}*/