/* MODAL INGREDIENTI */

.ingredient-modal{
    padding-top: 80px
}
.ingredient-modal .modal-dialog {
    max-width: 950px;
}

.ingredient-modal .modal-content {
    background-color: #cad1d5;
    border: 10px solid #f3f3f3;
    border-radius: 18px;
    color: #2f3158;
    position: relative;
    overflow: visible;
    position: relative;
    background-repeat: no-repeat;
    background-position: left top;
}
.amla .modal-content{
    background-image: url(../img/emblica-officinalis-modal-bg.webp);
}
.onion .modal-content{
    background-image: url(../img/allium-cepa-modal-bg.webp);
}
.ghritkumari .modal-content{
    background-image: url(../img/aloe-barbadensis-modal-bg.webp);
}
.reetha .modal-content{
    background-image: url(../img/reetha-modal-bg.webp);
}
.shikakai .modal-content{
    background-image: url(../img/shikakai-modal-bg.webp);
}
.nagarmotha .modal-content{
    background-image: url(../img/nagarmotha-modal-bg.webp);
}
.sugandhbala .modal-content{
    background-image: url(../img/sugandhbala-modal-bg.webp);
}
.methi .modal-content{
    background-image: url(../img/methi-modal-bg.webp);
}
.bahera .modal-content{
    background-image: url(../img/bahera-modal-bg.webp);
}
.harad .modal-content{
    background-image: url(../img/harad-modal-bg.webp);
}
.bhringraj .modal-content{
    background-image: url(../img/bhringraj-modal-bg.webp);
}
.kalaunji .modal-content{
    background-image: url(../img/kalaunji-modal-bg.webp);
}
.bargad .modal-content{
    background-image: url(../img/bargad-modal-bg.webp);
}
.giloe .modal-content{
    background-image: url(../img/giloe-modal-bg.webp);
}
.ingredient-modal .modal-content:before{
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    background: black;
    top: 0;
    bottom: 0;
    z-index: -2;
    box-shadow: 5px 5px 60px #1d1414a1;
}
.ingredient-modal .modal-body {
    padding: 100px 0 0;
}


.custom-close {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
    background-size: 14px;
    opacity: 1;
    box-shadow: none;
    background-color: #f3f3f3;
    padding: 16px;
    border-top-left-radius: 0px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 0px;
}
.custom-close:hover{
    opacity: 1;
}

.ingredient-modal-top {
    text-align: center;
    width: 100%;
    top: -142px;
    border-bottom: 1px solid white;
    padding-bottom: 20px
}

.ingredient-frame{
    height: 200px;
    width: 100%;
    display: flex;
    position: absolute;
    top: -100px;
    align-items: center;
    justify-content: center;
}
.ingredient-white-circle{
    background: #f3f3f3;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: absolute;
    z-index: -1
}

.ingredient-modal-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 6px solid #f33f3;
    background: #ccc;
}

.ingredient-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ingredient-modal-top h3 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2f3158;
    margin-bottom: 0.5rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    max-width: 80%;
    margin: 20px auto;
    line-height: .7;
}
.ingredient-modal-top h3 strong{
    font-family: 'FranklinGothic', Arial, sans-serif;
    font-size: 2rem
}
@media(max-width:813px){
    .ingredient-modal-top h3{
        line-height: 1;
    }
}

.ingredient-modal-subtitle {
    font-family: "Franklin Gothic Book", Arial, sans-serif;
    font-size: 1.4rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1;
    font-weight: 400;
}

.ingredient-modal-content {
    margin-top: 2rem;
    padding: 0 3rem;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding-top: 1rem;
}

.ingredient-row:last-child .ingredient-text{
    border: none
}

.ingredient-label {
    font-family: "Franklin Gothic Book", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2f3158;
    text-transform: uppercase;
    text-align: right
}

.ingredient-text {
    font-family: "Franklin Gothic Book", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: #2f3158;
    border-bottom: 1px solid white;
    padding-bottom: 20px
    
}
.ingredients-cta a{
    text-decoration: none;
    color: #171813;
    background-color: #ad8f69;
    padding: 16px 80px;
    font-size: 2rem;
    border-radius: 24px;
    transition: background-color 1s;
}
.ingredients-cta a:hover{
    background-color: #d8c2a5;
    transition: background-color 1s;
}
@media(max-width:860px){
    .ingredient-modal .modal-content{
        margin-top: 100px;
    }
}
@media(max-width:600px){
    .ingredient-row{
        display: flex !important;
        flex-direction: column;
        padding: 1rem 0 0;
    }
    .ingredient-label{
        text-align: left !important;
        margin-bottom: -20px;
    }

    .ingredient-modal-content{
        margin-top: 1rem 
    }

    .ingredient-modal-top h3 .first-letter{
        font-size: 2rem
    }
}
@media(max-width: 386px){
    .ingredient-modal-content{
        margin-top: 3rem;
    }
}