/*
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;
}


.post-item-content, .card-content-ins {
  width: 100%;
}

/* 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: 60vh;
    }
  .video-home video {
    width: 100%;
    height: 100%;
}
    .fix-link {
        padding: 6px 7px !Important;
    }
  .fix-link img {
    max-width: 35px;
    max-height: 35px;
  }
}

.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;
  }
}
.about-page-body .base-output p,.slider-base-item .base-output p,.base-output p
{
	margin-bottom: 0.7em;
}

.slider-base-item .base-output ul li {
	margin-bottom: 0.3em;
}

.base-link {
  background-color: #4a9410;
}

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

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

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

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

.im-icon-u-fix-me {
  padding-inline-end: 17.5px;
}

#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;}

@media screen and (width > 768px) {
    body.postid-2282 .base-output {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    body.postid-2282 p:has( iframe){
        max-width: 47%;
    }

    body.postid-2282 p:has( iframe) iframe {
        object-fit: contain;
        aspect-ratio: 16/9;
        width: 100%;
    }
}

.fallback-biggest {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


.file-upload-wrap {
  margin-bottom: 10px;
}

.file-upload-btn {
  display: inline-block;
  background: #E8E8E8;
  padding: 5px 15.49px;
  height: 40px;
  line-height: 30px;
  font-size: 18px;
  font-weight: 400;
  color: #303030;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background 0.3s;
}

.file-upload-btn:hover {
  background: #d1d1d1;
}

.file-upload-name {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  color: #8F8F8F;
  vertical-align: middle;
}

.file-upload-input {
  display: none !important;
}
.file-upload-label {
  width: 100%;
}