/*
Theme Name: rts-kadence-child
Theme URI: https://juvoweb.com
Version: 1.0
Description: Child theme for custom development.
Author: JuvoWeb
Author URI: https://juvoweb.com
template: kadence
*/

/* Add your custom styles here... */ 

:root {
	--global-content-edge-padding: 1rem;
}

.header-navigation {
    align-self: stretch;

    .menu {
        align-items: stretch;
    }
}

.main-navigation .primary-menu-container > ul > li.menu-item {
    > a {
	display: flex;
	height: 100%;
	align-items: center;

        &::before {
	    content: '';
	    position: absolute;
	    height: 8px;
	    width: 100%;
	    background: var(--global-palette1, #8d1d1d);
	    margin-left: -15px;
	    opacity: 0;
	    bottom: 0;
	}
    }

    &.current-menu-item > a::before,
    &:hover > a::before,
    > a:focus::before {
        opacity: 1;
    }
}

.site-footer a {
	color: rgba(255, 255, 255, 0.6);
	&:hover {
		color: #fff;
	}
}


.kb-gallery-image-contain {
	min-height: 300px;
}

.kb-slide-item {
	img {
		animation-timing-function: ease-in-out;
		animation-fill-mode: forwards;
		transition: opacity 400ms ease-in-out;
	}
	&.is-next img { opacity: 0; }
	&.is-active img { animation-name: redtown-kenburns; opacity: 1; }
	&.is-prev img { transform: scale(1.2); }
}

#splide01-slide01 img { animation-duration: 16000ms; transform-origin: 0 50%; }
#splide01-slide02 img { animation-duration: 15500ms; transform-origin: 100% 0; }
#splide01-slide03 img { animation-duration: 17000ms; transform-origin: 0 100%; }
#splide01-slide04 img { animation-duration: 14500ms; transform-origin: 50% 0; }
#splide01-slide05 img { animation-duration: 16000ms; transform-origin: 0 50%; }

@keyframes redtown-kenburns {
	0% { transform: scale(1); }
	100% { transform: scale(1.2); }
}


/* Caption Fade + Slide Up */
.kb-gallery-wrap-id-20_f5fb2e-20 .kadence-blocks-gallery-item__caption {
    opacity: 0;
    transform: translateY(100%);
	transition: all 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
    font-size: 2.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
	text-align: left !important;
	background: rgba(113, 19, 19, 0.5) none repeat scroll 0 0 !important;
	padding: 50px 60px !important;
	margin: 0;
	@media (max-width: 767px) {
		padding: 30px 50px !important;
	}
}

/* Active slide caption animation */
.kb-gallery-wrap-id-20_f5fb2e-20 .splide__slide.is-active .kadence-blocks-gallery-item__caption,
.kb-gallery-wrap-id-20_f5fb2e-20 .splide__slide.is-visible .kadence-blocks-gallery-item__caption {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
	.capabilities-row > .kt-row-column-wrap {
		grid-template-columns: calc(50% - 1rem) calc(50% - 1rem);
	}
}
@media (max-width: 767px) {
	.customers-info-box > span {
		flex-direction: column;
		text-align: center;
		text-wrap: pretty;

		.kadence-info-box-image-inner-intrisic-container {
			max-width: 230px;
		}

		.divider {
			margin-left: auto;
			margin-right: auto;
		}
	}
}

.customers-info-box + .customers-info-box {
	border-top: 1px solid #ddd;
	margin-top: 3rem;
	padding-top: 1rem;
}

.customers-info-box .divider {
	display: block;
	height: 1px;
	width: 100px;
	background: #ddd;
	margin: 5px 0;
}


.site-main .page .single-content > .wp-block-kadence-column:first-child:has(.size-full) {
	position: relative;
	&::after {
		content: '';
		position: absolute;
		bottom: -5px;
		width: 100%;
		height: 10px;
		background: #a19a9a linear-gradient(to right, #a19191 10%, #8d1e1e 60%, #9a6d6d 100%) repeat scroll 0 0;
		z-index: 2;
	}
}

.single-content ul.list-line {
	list-style: none;
	padding: 0;
	margin: 0 0 25px;

	> li + li {
		border-top: 1px solid #ddd;
		margin-top: 5px;
		padding-top: 5px;
	}
}
