/* ======================================================================================================================================================
ICONGRID

@since 4.8.8 following rules have been deprecated because buggy but left in case we reactivate them later ( see also icongrid_old.css for media queries )
.avia-icongrid-borders-all
.avia-icongrid-borders-between
====================================================================================================================================================== */

.avia-icongrid{
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    width: 100%;
}

.avia-icongrid-borders-all{
    border-width: 1px;
    border-style: solid;
}

.avia-icongrid li{
    display: block;
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    position: relative;
}


.avia-icongrid-icon{
    font-size: 42px;
    line-height: 1;
    margin-bottom: 0.5em;
    color: initial;
}

.avia-icongrid li .avia-icongrid-wrapper{
    position: relative;
    display: block;
	-webkit-backface-visibility: hidden;   /* new for mobile even to parent container  */
    backface-visibility: hidden;    /* new for mobile even to parent container  */
}

.avia-icongrid-borders-all li .avia-icongrid-wrapper:before,
.avia-icongrid-borders-between li .avia-icongrid-wrapper:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: inherit;
    box-shadow: 1px 0 0 0, 0 1px 0 0;
    z-index: 8;
}

/* 3 items in a row */

/* every third item */
.avia-icongrid-numrow-3.avia-icongrid-borders-all li:nth-child(3n+3) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-3.avia-icongrid-borders-between li:nth-child(3n+3) .avia-icongrid-wrapper:before {
    box-shadow: 0 1px 0 0;
}

/* items in last row */
.avia-icongrid-numrow-3.avia-icongrid-borders-all li:nth-child(3n+1):nth-last-child(-n+3) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-3.avia-icongrid-borders-all li:nth-child(3n+1):nth-last-child(-n+3) ~ li .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-3.avia-icongrid-borders-between li:nth-child(3n+1):nth-last-child(-n+3) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-3.avia-icongrid-borders-between li:nth-child(3n+1):nth-last-child(-n+3) ~ li .avia-icongrid-wrapper:before {
    box-shadow: 1px 0 0 0;
}

/* every third item and in last row */
.avia-icongrid-numrow-3.avia-icongrid-borders-all li:nth-child(3n+1):nth-last-child(-n+3) ~ li:nth-child(3n+3) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-3.avia-icongrid-borders-between li:nth-child(3n+1):nth-last-child(-n+3) ~ li:nth-child(3n+3) .avia-icongrid-wrapper:before {
    box-shadow: none;
}


/* 4 items in a row */

/* every fourth item */
.avia-icongrid-numrow-4.avia-icongrid-borders-all li:nth-child(4n+4) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-4.avia-icongrid-borders-between li:nth-child(4n+4) .avia-icongrid-wrapper:before {
    box-shadow: 0 1px 0 0;
}

/* items in last row */
.avia-icongrid-numrow-4.avia-icongrid-borders-all li:nth-child(4n+1):nth-last-child(-n+4) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-4.avia-icongrid-borders-all li:nth-child(4n+1):nth-last-child(-n+4) ~ li .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-4.avia-icongrid-borders-between li:nth-child(4n+1):nth-last-child(-n+4) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-4.avia-icongrid-borders-between li:nth-child(4n+1):nth-last-child(-n+4) ~ li .avia-icongrid-wrapper:before {
    box-shadow: 1px 0 0 0;
}

/* every fouth item and in last row */
.avia-icongrid-numrow-4.avia-icongrid-borders-all li:nth-child(4n+1):nth-last-child(-n+4) ~ li:nth-child(4n+4) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-4.avia-icongrid-borders-between li:nth-child(4n+1):nth-last-child(-n+4) ~ li:nth-child(4n+4) .avia-icongrid-wrapper:before {
    box-shadow: none;
}


/* 5 items in a row */

/* every fifth item */
.avia-icongrid-numrow-5.avia-icongrid-borders-all li:nth-child(5n+5) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-5.avia-icongrid-borders-between li:nth-child(5n+5) .avia-icongrid-wrapper:before {
    box-shadow: 0 1px 0 0;
}

/* items in last row */
.avia-icongrid-numrow-5.avia-icongrid-borders-all li:nth-child(5n+1):nth-last-child(-n+5) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-5.avia-icongrid-borders-all li:nth-child(5n+1):nth-last-child(-n+5) ~ li .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-5.avia-icongrid-borders-between li:nth-child(5n+1):nth-last-child(-n+5) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-5.avia-icongrid-borders-between li:nth-child(5n+1):nth-last-child(-n+5) ~ li .avia-icongrid-wrapper:before {
    box-shadow: 1px 0 0 0;
}

/* every fifth item and in last row */
.avia-icongrid-numrow-5.avia-icongrid-borders-all li:nth-child(5n+1):nth-last-child(-n+5) ~ li:nth-child(5n+5) .avia-icongrid-wrapper:before,
.avia-icongrid-numrow-5.avia-icongrid-borders-between li:nth-child(5n+1):nth-last-child(-n+5) ~ li:nth-child(5n+5) .avia-icongrid-wrapper:before {
    box-shadow: none;
}



.avia-icongrid li .avia-icongrid-content{
    opacity: 0;
    visibility: hidden;
    padding: 4em 3em;
}

.avia-icongrid li .avia-icongrid-front{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.avia-icongrid-numrow-1 li{
    width: 100%;
}

.avia-icongrid-numrow-2 li{
    width: 50%;
}

.avia-icongrid-numrow-3 li{
    width: 33.333%;
}

.avia-icongrid-numrow-4 li{
    width: 25%;
}

.avia-icongrid-numrow-5 li{
    width: 20%;
}


/* flipbox */

.avia-icongrid-flipbox li{
    perspective: 1000px;
    cursor: pointer;
}

.avia-icongrid-flipbox li article{
    position: relative;
    display: block;
    z-index: 20;				/* 3, changed 4.8 as links not working */
    min-height: 200px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
	perspective: 1000px;
    transition: transform 10.6s;
}

.avia-icongrid-flipbox li .avia-icongrid-front,
.avia-icongrid-flipbox li .avia-icongrid-flipback {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;
	height: 100%;
    /*width: 100%;*/
}

.avia-msie-9 .avia-icongrid-flipbox li .avia-icongrid-flipback {
    opacity: 0;
    visibility: hidden;
}

.avia-icongrid-flipbox li .avia-icongrid-front{
    z-index: 2;
    transform: rotateY(0deg);
    margin: 1px;
}

.avia-icongrid-flipbox li .avia-icongrid-flipback {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    margin: 1px;
    transform: rotateY(-180deg);
}

.avia-icongrid-flipbox.avia-icongrid-borders-all li .avia-icongrid-front,
.avia-icongrid-flipbox.avia-icongrid-borders-all li .avia-icongrid-flipback,
.avia-icongrid-flipbox.avia-icongrid-borders-between li .avia-icongrid-front,
.avia-icongrid-flipbox.avia-icongrid-borders-between li .avia-icongrid-flipback{
	margin: 0;
}

.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-inner-cell-item .avia-icongrid-front,
.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-inner-cell-item .avia-icongrid-flipback{
	margin-left: 1px;
	width: calc( 100% - 1px );
}

.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-last-cell-item .avia-icongrid-front,
.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-last-cell-item .avia-icongrid-flipback{
	margin-left: 1px;
}

.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-next-cell-row .avia-icongrid-front,
.avia-icongrid-flipbox.avia-icongrid-borders-all li.av-next-cell-row .avia-icongrid-flipback{
	margin-top: 1px;
	height: calc( 100% - 1px );
}

.avia-icongrid-flipbox li .avia-icongrid-front .avia-icongrid-inner,
.avia-icongrid-flipbox li .avia-icongrid-flipback .avia-icongrid-inner {
    position: absolute;
    color: initial;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 4em 3em;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.avia-icongrid-flipbox li:hover .avia-icongrid-front,
.avia-icongrid-flipbox li.avia-hover .avia-icongrid-front,
.avia-icongrid-flipbox li.av-flip .avia-icongrid-front{
    transform: rotateY(180deg);
}


.avia-icongrid-flipbox li:hover .avia-icongrid-flipback,
.avia-icongrid-flipbox li.avia-hover .avia-icongrid-flipback,
.avia-icongrid-flipbox li.av-flip .avia-icongrid-flipback{
    transform: rotateY(0deg);
}

.avia-msie-9 .avia-icongrid-flipbox li:hover .avia-icongrid-front,
.avia-msie-9 .avia-icongrid-flipbox li.avia-hover .avia-icongrid-front,
.avia-msie-9 .avia-icongrid-flipbox li.av-flip .avia-icongrid-front{
    opacity: 0;
    visibility: hidden;
}

.avia-msie-9 .avia-icongrid-flipbox li:hover .avia-icongrid-flipback,
.avia-msie-9 .avia-icongrid-flipbox li.avia-hover .avia-icongrid-flipback,
.avia-msie-9 .avia-icongrid-flipbox li.av-flip .avia-icongrid-flipback {
    opacity: 1;
    visibility: visible;
}


/* tooltip */

.avia-icongrid-tooltip li{
    cursor: pointer;
}

.avia-icongrid-tooltip li article:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.avia-icongrid-tooltip li .avia-icongrid-front{
    position: absolute;
    width: 100%;
    height: auto;
    padding: 2em;
    bottom: 50%;
    top: auto;
    transform: translateY(50%);
    transition: all 0.3s ease-in-out;
}

.avia-icongrid-tooltip li .avia-icongrid-content {
    position: absolute;
    bottom: 4em;
    width: 85%;
    left: 7.5%;
    padding: 1em 2em !important;
    background-color: white;
    color: white;
    z-index: 8;
    border-width: 0.3em;
    border-style: solid;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 2em rgba(0,0,0,0.1);
}

.avia-icongrid-tooltip li .avia-icongrid-content .avia-icongrid-inner {
    color: initial;
}

.avia-icongrid-tooltip li .avia-icongrid-content:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    box-sizing: border-box;
    border-left-width: 0.5em;
    border-right-width: 0.5em;
    border-top-width: 0.5em;
    border-left-style: solid;
    border-right-style: solid;
    border-top-style: solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: inherit;
    transform: translateX(-50%);
    bottom: -0.75em;
    box-shadow: 0 0 2em rgba(0,0,0,0.1);
}

.avia-icongrid-tooltip li:hover .avia-icongrid-content{
    visibility: visible;
    opacity: 1;
    bottom: 40%;
}

.avia-icongrid-tooltip li:hover .avia-icongrid-front {
    bottom: 0.5em;
    transform: translateY(0);
}



/*** Flip Grid x-axis ***/


.avia-flip-x .avia-icongrid-flipbox li .avia-icongrid-front {
    z-index: 2;
    transform: rotateX(0deg);
}

.avia-flip-x .avia-icongrid-flipbox li .avia-icongrid-flipback {
    transform: rotateX(-180deg);
}



/*** now hover style ***/

.avia-flip-x .avia-icongrid-flipbox li:hover .avia-icongrid-front,
.avia-flip-x .avia-icongrid-flipbox li.avia-hover .avia-icongrid-front,
.avia-flip-x .avia-icongrid-flipbox li.av-flip .avia-icongrid-front {
    transform: rotateX(180deg);
}

.avia-flip-x .avia-icongrid-flipbox li:hover .avia-icongrid-flipback,
.avia-flip-x .avia-icongrid-flipbox li.avia-hover .avia-icongrid-flipback,
.avia-flip-x .avia-icongrid-flipbox li.av-flip .avia-icongrid-flipback {
    transform: rotateX(0deg);
}

/****  End Flipbox x-axis  ****/




/****  responsive cases  ****/

@media only screen and (max-width: 989px){

	.avia-icongrid.av-flex-cells.av-break-989 li{
		width: 100%;
	}

	.avia-icongrid.av-flex-cells.avia-icongrid-numrow-3.av-50-break-989 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-4.av-50-break-989 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-5.av-50-break-989 li{
        width: 50%;
    }

	.av-flex-cells.av-break-989.avia-icongrid-borders-all li .avia-icongrid-wrapper,
	.av-flex-cells.av-break-989.avia-icongrid-borders-between li .avia-icongrid-wrapper {
		border-right-width: 0px !important;
		border-right-style: hidden !important;
		border-bottom-width: 1px !important;
		border-bottom-style: solid !important;
	}

	.av-flex-cells.av-break-989.avia-icongrid-borders-all li:nth-child(odd) .avia-icongrid-wrapper,
	.av-flex-cells.av-break-989.avia-icongrid-borders-between li:nth-child(odd) .avia-icongrid-wrapper {
		border-right-width: 0px !important;
		border-right-style: hidden !important;
	}
}

@media only screen and (max-width: 767px) {

	.avia-icongrid.av-flex-cells.avia-icongrid-numrow-3.av-50-break-767 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-4.av-50-break-767 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-5.av-50-break-767 li{
		width: 50%;
	}

	.avia-icongrid.av-flex-cells.av-break-767 li,
	.avia-icongrid.av-flex-cells.avia-icongrid-numrow-3.av-50-break-989 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-4.av-50-break-989 li,
    .avia-icongrid.av-flex-cells.avia-icongrid-numrow-5.av-50-break-989 li{
		width: 100%;
	}

	.av-flex-cells.av-break-767.avia-icongrid-borders-all li .avia-icongrid-wrapper,
	.av-flex-cells.av-break-767.avia-icongrid-borders-between li .avia-icongrid-wrapper {
		border-right-width: 0px !important;
		border-right-style: hidden !important;
		border-bottom-width: 1px !important;
		border-bottom-style: solid !important;
	}

	.av-flex-cells.av-break-767.avia-icongrid-borders-all li:nth-child(odd) .avia-icongrid-wrapper,
	.av-flex-cells.av-break-767.avia-icongrid-borders-between li:nth-child(odd) .avia-icongrid-wrapper {
		border-right-width: 0px !important;
		border-right-style: hidden !important;
	}

	.avia-icongrid-tooltip li article{
		padding: 4em 3em;
	}

	.avia-icongrid-tooltip li:hover .avia-icongrid-front,
	.avia-icongrid-tooltip li .avia-icongrid-front {
		position: relative;
		top: auto;
		bottom: auto;
		transform: none;
	}

	.avia-icongrid-tooltip li:hover .avia-icongrid-front {
		bottom: 0.5em;
		transform: translateY(50%);
	}

	.avia-icongrid-tooltip li .avia-icongrid-content:after{
		bottom: auto;
		top: -0.75em;
		border-top: 0.3em solid rgba(0,0,0,0.07);
		border-left: 0.3em solid rgba(0,0,0,0.07);
		border-bottom: 0;
		border-right: 0;
	}

	.avia-icongrid-tooltip li article:before{
		display: none;
	}
}
