body {
    font-family: iran, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.alt-font {
    font-family: Yekan, yekan !important;
}

.tp-caption,
.tp-caption *,
.NotGeneric-Title,
.NotGeneric-SubTitle {
    font-family: Shabnam, shabnam !important;
}

.product-hero-photo {
    min-height: 520px;
    overflow: hidden;
}

.product-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.portfolio-grid.work-3col,
.blog-grid.blog-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    height: auto !important;
}

.portfolio-grid.work-3col > li,
.blog-grid.blog-3col > li {
    position: static !important;
    float: none !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.portfolio-grid > .grid-sizer,
.blog-grid > .grid-sizer {
    display: none !important;
}

@media (max-width: 991px) {
    .portfolio-grid.work-3col,
    .blog-grid.blog-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid.work-3col,
    .blog-grid.blog-3col {
        grid-template-columns: 1fr;
    }
}

.inline-tag-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.inline-tag-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}

.inline-tag-gallery img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .inline-tag-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Isolated from the theme's .video-wrapper (position:absolute fullscreen). */
.site-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0 30px;
}

@supports not (aspect-ratio: 16 / 9) {
    .site-video {
        height: 0;
        padding-top: 56.25%;
    }
}

.site-video iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    max-width: none !important;
    display: block;
}

.product-downloads,
.page-downloads {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.product-downloads li,
.page-downloads li {
    padding: 9px 0;
}

.product-downloads a,
.page-downloads a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #09b75b;
}

.product-downloads a::before,
.page-downloads a::before {
    content: "\2193";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(9, 183, 91, .12);
    font-size: 12px;
}

/* Revolution needs a LTR stage. Wrapper keeps the first photo so EN/AR is not a white flash. */
.logo-left-farsi,
.logo-left-farsi .rev_slider_wrapper,
.logo-left-farsi .rev_slider {
    direction: ltr !important;
    unicode-bidi: isolate;
}

#rev_slider_1078_1_wrapper {
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center center;
}

/* Homepage featured pages/blogs, stuck under callouts. */
section.parallax:has(+ .home-highlights) {
    padding-bottom: 40px;
}

.home-highlights {
    padding: 30px 0 50px;
    background: #fff;
}

.home-highlights-shell {
    position: relative;
    width: 100%;
    padding: 0 56px;
}

.home-highlights .swiper-container {
    overflow: hidden;
}

.home-highlights .swiper-container[dir="rtl"] {
    direction: rtl;
}

.home-highlights .swiper-container[dir="ltr"] {
    direction: ltr;
}

.home-highlights .swiper-slide {
    padding: 0 12px;
    height: auto;
    box-sizing: border-box;
}

.home-highlight-card {
    text-align: start;
}

.home-highlight-title {
    unicode-bidi: isolate;
    text-align: start;
    line-height: 1.6;
}

.home-highlight-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ececec;
}

.home-highlight-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
}

.home-highlights .swiper-button-prev,
.home-highlights .swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background-size: 12px 22px;
}

.home-highlights .swiper-button-prev {
    left: 8px;
    right: auto;
}

.home-highlights .swiper-container[dir="rtl"] .swiper-button-prev {
    right: 8px;
    left: auto;
}

.home-highlights .swiper-container[dir="rtl"] .swiper-button-next {
    left: 8px;
    right: auto;
}

@media (max-width: 767px) {
    .home-highlights-shell {
        padding: 0 40px;
    }
}

iframe[src*="google.com/maps"],
iframe[src*="maps.google"] {
    display: block;
    width: 100%;
    min-height: 250px;
    border: 0;
}

.site-lead-form textarea.contact-message {
    min-height: 160px;
    height: auto;
    resize: vertical;
}

