/*
Theme Name: RDT Projects
Author: Kat Happens
Version: 1.0
Text Domain: leos
*/
@media screen and (width > 768px) {
  .desktop-posts{
    row-gap: 1rem;
  }
    :root {
        --width-1: 40%;
        --width-2: 32%;
        --width-3: 23%;
    }
    .review-layout .review-card {
        width: var(--width-3);
    }

    .review-layout .review-card:nth-child(24n + 1),
    .review-layout .review-card:nth-child(24n + 6),
    .review-layout .review-card:nth-child(24n + 8),
    .review-layout .review-card:nth-child(24n + 12),
    .review-layout .review-card:nth-child(24n + 13),
    .review-layout .review-card:nth-child(24n + 18),
    .review-layout .review-card:nth-child(24n + 20),
    .review-layout .review-card:nth-child(24n + 24) {
        width: var(--width-1);
    }

    .review-layout .review-card:nth-child(24n + 3),
    .review-layout .review-card:nth-child(24n + 5),
    .review-layout .review-card:nth-child(24n + 7),
    .review-layout .review-card:nth-child(24n + 11),
    .review-layout .review-card:nth-child(24n + 15),
    .review-layout .review-card:nth-child(24n + 17),
    .review-layout .review-card:nth-child(24n + 19),
    .review-layout .review-card:nth-child(24n + 23) {
        width: var(--width-2);
    }

    .review-layout .review-card:nth-child(24n + 2),
    .review-layout .review-card:nth-child(24n + 4),
    .review-layout .review-card:nth-child(24n + 9),
    .review-layout .review-card:nth-child(24n + 10),
    .review-layout .review-card:nth-child(24n + 14),
    .review-layout .review-card:nth-child(24n + 16),
    .review-layout .review-card:nth-child(24n + 21),
    .review-layout .review-card:nth-child(24n + 22) {
        width: var(--width-3);
    }
}

.gallery-layout .grid-col:nth-child(8n + 1) {
    grid-column: 1 / span 5;
}
.gallery-layout .grid-col:nth-child(8n + 2) {
    grid-column: 6 / span 12;
}
.gallery-layout .grid-col:nth-child(8n + 3) {
    grid-column: 18 / span 7;
}
.gallery-layout .grid-col:nth-child(8n + 4) {
    grid-column: 1 / span 10;
}
.gallery-layout .grid-col:nth-child(8n + 5) {
    grid-column: 11 / span 7;
}
.gallery-layout .grid-col:nth-child(8n + 6) {
    grid-column: 18 / span 7;
}
.gallery-layout .grid-col:nth-child(8n + 7) {
    grid-column: 1 / span 12;
}
.gallery-layout .grid-col:nth-child(8n + 8) {
    grid-column: 13 / span 12;
}
.gallery-layout .grid-col a.grid-item-gallery {
    height: 100%;
    width: 100%;
}
.gallery-layout .grid-col a.grid-item-gallery img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-width: unset;
    max-height: 43dvh;
    max-width: unset;
    min-height: unset;
    transition: transform ease-in-out 0.5s;
}

/* Toast Styles */
#message-toast {
    display: none;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.7);
    max-width: 450px;
    text-align: center;
    color: #505050;
}

.toast-timer {
    height: 8px;
    width: 100%;
    margin: 0;
    border-radius: 4px;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    font-size: clamp(18px, 1.5vw, 28px);
}

.toast-icon {
    margin-inline: 10px;
    font-size: clamp(20px, 1.5vw, 35px);
}

@media screen and (width < 768px) {
    #message-toast {
        max-width: 90%;
    }
      .video-home {
        height: 30vh;
    }
  .video-home video {
    width: 100%;
    height: 100%;
}
}

.socials-share {
    display: none;
}
/* End Toast Styles */

/*new fixes*/

.base-slider-block .slider-content-wrap {
 	padding: 110px 30px;
}
.base-slider-block .slider-content-wrap .base-output.slider-output p{
    line-height: 1.25rem;
  	text-align: justify;
}
.team-slide-ins {
   padding: 35px 30px 50px 40px;
}
.team-slide .team-item-text {
    font-size: 16px;
    line-height: 1.15rem;
}

.post-image-wrap:hover img {
    transform: scale(1.0, 1.0);
}

body.postid-125 .post-body .post-image-wrap img{
  top: -90px;
}
@media screen and (width < 768px) {
  body.postid-125 .post-body .post-image-wrap img{
    top: -45px;
  }
}

@media screen and (width < 768px) {
  .arrow-layer {
    display: none;
  }
}

.review-text {
	scrollbar-width: thin;
	scrollbar-color: #A0542D transparent;
}

.review-text::-webkit-scrollbar {
	width: 2px;
}

.review-text::-webkit-scrollbar-thumb {
	background-color: #A0542D;
	border-radius: 2px;
}

.review-text::-webkit-scrollbar-track {
	background: transparent;
}


#MainNav .menu-item-has-children .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	background-color: #FFF;
	height: max-content;
}

.menu-item-has-children:hover ul {
	display: block !important;
}

#MainNav .menu-item-has-children .sub-menu li a {padding: 16px 0;}


.invisible-table {
	width: 100%;
	border-collapse: collapse;
}
.invisible-table td {
	vertical-align: top;
	width: 50%;
	padding: 10px;
	border: none;
}
.invisible-table h3 {
	margin: 0 0 10px;
}
.invisible-table iframe {
	width: 100%;
	height: 315px;
	border: none;
}

@media screen and (width < 768px) {
	.invisible-table tr {
		display: flex;
		flex-direction: column;
	}

	.invisible-table td {
		width: 100%;
	}
}

header.home-header {
	background-color: rgba(255, 255, 255, 0.5) !important;
}
article > * + *
{
	margin-top: 0.3em;
}
.base-output ol li
{
	margin-bottom: 0.5em;
}
.base-slider-block .slider-content-wrap .base-output.slider-output p
{
	margin-bottom: 1em;
}