[anim="ripple"] {
    --ripple-background: white;
    --ripple-opacity: 0.3;
    --ripple-duration: 600ms;
    --ripple-easing: linear;
    --x: 1px;
    --y: 1px;
    --d: 1px;
    --o: 1;
    --t: 0;
    --s: 1;
    position: relative;
    overflow: hidden;
}
[anim="ripple"]:before {
    content: "";
    position: absolute;
    display: block;
    background: var(--ripple-background);
    border-radius: 50%;
    pointer-events: none;
    top: calc(var(--y) * 1px);
    left: calc(var(--x) * 1px);
    width: calc(var(--d) * 1px);
    height: calc(var(--d) * 1px);
    opacity: calc(var(--o) * var(--ripple-opacity));
    transition: calc(var(--t) * var(--ripple-duration)) var(--ripple-easing);
    transform: translate(-50%, -50%) scale(var(--s));
    transform-origin: center;
}

.card {
    border: none;
    background-color: unset;
}

.nav-tabs.nav-tabs-material {
    --bs-nav-tabs-border-width: 1px;
    --bs-nav-tabs-border-radius: 0;
    --bs-nav-tabs-border-color: #dee2e6;
    --bs-nav-tabs-link-active-color: #db2128;
    --bs-nav-tabs-link-active-border-color: #db2128;
    width: fit-content;
    border: none;
}
.nav-tabs.nav-tabs-material .nav-item {
    --ripple-background: black;
    --ripple-opacity: 0.15;
}

.nav-tabs.nav-tabs-material .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    letter-spacing: 0.01rem;
    color: rgba(0, 0, 0, 0.75);
    font-size: 18px;
    font-weight: 500;
    line-height: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding-top: 0.75rem;
}

.nav-tabs.nav-tabs-material .nav-link:hover {
    /*background-color: hsl(0, 0%, 91%, 0.75);*/
    color: var(--company-color);
    border-color: white;
}
.nav-tabs.nav-tabs-material .nav-link.active {
    /*background-color: transparent;*/
    /*border-width: 2px;*/
    color: var(--company-color);
    /*border-color: var(--company-color);*/
    /*margin-bottom: 0;*/
    position: relative;
    padding-bottom: 10px;
}

.nav-tabs.nav-tabs-material .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;           /* خط در پایین تب */
    left: 0;
    width: 100%;
    height: 2px;         /* ضخامت خط */
    background-color: var(--company-color); /* رنگ خط */
    transition: all 0.3s ease-in-out;
}

/*.nav-tabs.nav-tabs-material .nav-link:hover::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 3px;*/
/*    background-color: rgba(0,0,0,0.2); !* رنگ کم‌رنگ هنگام hover *!*/
/*}*/

.nav-tabs.nav-tabs-material.nav-tabs-material--narrow .nav-link {
    min-height: 2rem;
    padding: 0.25rem 0.85rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 15px;
    max-width: 1100px;
    padding: 15px;
    margin: 0 auto;
    box-sizing: border-box;
    /*direction: ltr;*/
}

.project-gallery .gallery-item {
    position: relative;
    height: 300px;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    direction: ltr;
}

.project-gallery .gallery-item img {
    position: relative;
    display: block;
    width: 115%;
    height: 300px;
    object-fit: cover;
    /*opacity: .5;*/
    /*transition: opacity .35s, transform .35s;*/
    transition: all 350ms ease-in-out;
    transform: translate3d(-23px, 0, 0);
    /*backface-visibility: hidden;*/
}

.north-cascades-img {
    object-position: 50% 30%;
}

.project-gallery .gallery-item .gallery-item-caption {
    padding: 32px;
    font-size: 1em;
    color: #fff;
    /*text-transform: uppercase;*/
}

.project-gallery .gallery-item .gallery-item-caption,
.project-gallery .gallery-item .gallery-item-caption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-gallery .gallery-item h2 {
    font-weight: 300;
    overflow: hidden;
    padding: 12px 0;
}

.project-gallery .gallery-item h2,
.project-gallery .gallery-item p {
    position: relative;
    margin: 0;
    z-index: 1;
    pointer-events: none;
}

.project-gallery .gallery-item p {
    letter-spacing: 1px;
    font-size: 15px;
    padding: 12px 0;
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate3d(10%, 0, 0);
    border-bottom: 1px solid #fff;
}

.project-gallery .gallery-item:hover img {
    opacity: 0.4;
    transform: translate3d(0, 0, 0);
}

.project-gallery .gallery-item h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15%;
    height: 1px;
    background: #fff;
    transition: transform 0.3s;
    transform: translate3d(-100%, 0, 0);
}

.project-gallery .gallery-item:hover h2::after {
    transform: translate3d(0, 0, 0);
}

.project-gallery .gallery-item:hover p {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/*One Project*/

.with-arrow::before {
    position: relative;
    content: "\f104"; /* ← آیکن FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 10px;
}

.font-10 {
    font-size: 10pt !important;
}

.font-10-5 {
    font-size: 10.5pt !important;
}

.font-11 {
    font-size: 11pt !important;
}

.btn-close {
   opacity: 0.2;
}

.modal-content {
    direction: rtl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .modal-content .modal-body .sliderPhotos {
        height: 400px;
    }
}

@media (min-width: 1025px) {
    .modal-content .modal-body .sliderPhotos {
        height: 500px;
    }
}

@media (min-width: 1325px) {
    .modal-content {
        width: 90%;
    }
    .modal-content .modal-body .sliderPhotos {
        height: 670px;
    }
}

.descriptionLi {
    padding: 0;
}

@media(min-width: 768px) {
    .modal-dialog {
        max-width:84.27%;
        margin: 40px auto 30px;
        min-width: 1155px
    }

    .modal-sm {
        max-width: 300px
    }
}

@media(min-width: 1025px) {
    .modal-lg {
        max-width:800px
    }
}

@media(min-width: 1025px) and (max-width:1325px) {
    .modal-dialog {
        min-width:1024px
    }
}

@media(min-width: 768px) and (max-width:1025px) {
    .modal-dialog {
        min-width:767px
    }
}

.fa-building-o::before {
    content: "\f1ad";
    font-weight: 400;
}

.fa-calendar::before {
    content: "\f073";
    font-weight: 400;
}

.projectDescriptionP {
    color: #000;
    text-align: justify;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel .carousel-item {
    min-height: unset;
}

/*.carousel-item img {*/
/*    object-fit: cover;*/
/*}*/


.blurred-wrapper img {
    object-fit: contain !important;
}

.descriptionProject {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.descriptionProject .explainProject {
    overflow-y: scroll;
    max-height: 100px;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .modal-content .modal-body .sliderPhotos {
        height: 600px;
    }
    .descriptionProject .explainProject {
        max-height: 100px;
        margin-bottom: 1rem;
    }
    .descCol {
        height: 600px;
    }
}

@media (min-width: 1025px) {
    .modal-content .modal-body .sliderPhotos {
        height: 600px;
    }
    .descriptionProject .explainProject {
        max-height: 70px;
        margin-bottom: 2rem;
    }
    .descCol {
        height: 600px;
    }
}

@media (min-width: 1325px) {
    .modal-content .modal-body .sliderPhotos {
        height: 670px;
    }
    .descriptionProject .explainProject {
        max-height: 120px;
        margin-bottom: 3rem;
    }
    .descCol {
        height: 670px;
    }
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-body ul {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-body ul li:last-child {
    margin-top: auto;
}

.technical ul {
    list-style: none;
    padding: 0;
}

.technical ul li {
    margin-bottom: 10px;
}

.technical ul a {
    color: #636363;
}

.technical ul a:hover {
    color: #4e4e4e;
}

.blurred-wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blurred-wrapper::before {
    content: "";
    background: var(--bg-url) center center / cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 1;
}

.blurred-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    z-index: 2;
}


