/*Tab styling for gallery sidenav on larger screens*/

#gallery-sidenav-1 ul li {
    position: relative;
    padding: 0;
    margin: 0;
    min-width: 85px;
}

#gallery-sidenav-1 ul li a {
    display: inline-block;
    text-decoration: none;
    font-variant: small-caps;
    overflow: visible;
    padding: 1em 0;
    color: #d5d5d5 !important;
    background-color: #333333 !important;
    line-height: 1;
    -webkit-transition: color 0.2s cubic-bezier(0.7,0,0.3,1);
    transition: color 0.2s cubic-bezier(0.7,0,0.3,1);
}

#gallery-sidenav-1 ul li a i {
    padding-right: 5px;
}

#gallery-sidenav-1 ul li a:hover,
#gallery-sidenav-1 ul li a:focus,
#gallery-sidenav-1 ul li.active a {
    color: #D4AF37 !important;
}

#gallery-sidenav-1 ul li a::before {
    position: absolute;
    right: -20%;
    top: 15%;
    width: 3px;
    height: 70%;
    background: #D4AF37;
    content: '';
    opacity: 0;
    -webkit-transition: -webkit-transform 0.2s ease-in;
    transition: transform 0.2s ease-in;
    -webkit-transform: scale3d(1,0,1);
    transform: scale3d(1,0,1);
}

#gallery-sidenav-1 ul li.active a::before {
    opacity: 1;
    -webkit-transform: scale3d(1,1,1);
    transform: scale3d(1,1,1);
}

#gallery-sidenav-1 .icon::before {
    display: block;
    opacity: 0;
    -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
    transition: transform 0.2s, opacity 0.2s;
    -webkit-transform: translate3d(-100px,0,0);
    transform: translate3d(-100px,0,0);
    pointer-events: none;
}

#gallery-sidenav-1 ul li.active .icon::before {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/*Tab styling for gallery sidenav on smaller screens*/

.tabs-style-iconfall {
	overflow: visible;
}

#gallery-sidenav-2 ul {
    margin-bottom: 10px;
}

#gallery-sidenav-2 ul li {
    position: relative;
    padding: 0;
    margin: 0;
}

#gallery-sidenav-2 ul li a {
	display: inline-block;
    font-variant: small-caps;
	overflow: visible;
	padding: 1em 0;
    color: #d5d5d5 !important;
    background-color: #333333 !important;
	line-height: 1;
	-webkit-transition: color 0.3s cubic-bezier(0.7,0,0.3,1);
	transition: color 0.3s cubic-bezier(0.7,0,0.3,1);
}

#gallery-sidenav-2 ul li a:hover,
#gallery-sidenav-2 ul li a:focus,
#gallery-sidenav-2 ul li.active a {
	color: #D4AF37 !important;
}

#gallery-sidenav-2 ul li a::before {
	position: absolute;
	bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
	width: 50%;
	height: 3px;
	background: #D4AF37;
	content: '';
	opacity: 0;
	-webkit-transition: -webkit-transform 0.2s ease-in;
	transition: transform 0.2s ease-in;
	-webkit-transform: scale3d(0,1,1);
	transform: scale3d(0,1,1);
}

#gallery-sidenav-2 ul li.active a::before {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

#gallery-sidenav-2 .icon::before {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    margin: auto;
	display: block;
	opacity: 0;
	-webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
	transition: transform 0.2s, opacity 0.2s;
	-webkit-transform: translate3d(0,-100px,0);
	transform: translate3d(0,-100px,0);
	pointer-events: none;
}

#gallery-sidenav-2 ul li.active .icon::before {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}