.minerals {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
    height: 100%;
    gap: 32px;
}

.mineral {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: center;
    width: min-content;
}

.img-cell{
    position: relative;
}

.mineral__img {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    
    border-radius: 260px;
    background: var(--clr-accent);
}

.mineral__headline {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* SelectedIngredient.php ---------------------------------------------*/
.selected-ingredient{
    display: grid;
    grid-template-columns: 600px min-content;
    row-gap: 70px;
    justify-content: space-between;
}

.selected-ingredient hr{
    margin: 0;
}

.selected-ingredient__row > *:first-child{
    justify-self: start;
}

.selected-ingredient__row > *:nth-child(2){
    justify-self: end;
}

.selected-ingredient__col{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
}
.selected-ingredient__col:not(.img-cell){
    overflow: hidden;
}

.selected-ingredient__props{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 992px) {
    .selected-ingredient__props{
        margin-top: -40px; /* half grid row-gap */
    }

    .selected-ingredient .benefits-row{
        display: grid;
        grid-template-columns: 600px 1fr;
        gap: 70px;
    }

    .selected-ingredient__col.img-cell{
        grid-row: 1 / span 2;
        grid-column: 2;
        align-items: flex-end;
    }

    .selected-ingredient__col__list {
        margin-top: -40px;
    }
}

.selected-ingredient__props__row{
    display: flex;
    flex-direction: column;
    gap: 12px
}
.selected-ingredient__props__row h5 { margin: 0; }
.selected-ingredient__props__row .ms-button {width: min-content;}
.selected-ingredient .benefits{
    width: 100%;
}

.selected-ingredient .benefits__list{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 18px;
}

.selected-ingredient .img-cell{
    height: 380px;
    position: relative;
}

.selected-ingredient .mineral__img {
    width: 380px;
    aspect-ratio: 1/1;
    background: none;
    position: absolute;
    z-index: 1;
    overflow: inherit;
}

.mineral__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefits__list .round-point {
    width:8px;
    height: 8px;
    border:1px solid var(--clr-bluedark);
    border-radius:50%;
}

.selected-ingredient .mineral__img:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--clr-accent);
    animation: moveCircle 1s ease-out;
    animation-iteration-count: 1;
    z-index: -1;
}
    
@keyframes moveCircle {
    0% {
        right: -100vw;
    }
    100% {
        right: 0;
    } 
}

@media (max-width: 992px) {
    .header-line {
        opacity: 0;
    }
    .minerals {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-around;
    }

    .ingredients .mineral__img {
        width: 150px;
    }

    .ingredients .mineral {
        margin: auto;
    }

    .ingrediants-short-list {
        display: flex;          /* one row layout */
        flex-wrap: nowrap;      /* prevent wrapping to new lines */
        gap: 8px;               /* space between items */
        height: 47px;           /* fixed height */
        overflow-x: auto;       /* horizontal scroll if needed */
        overflow-y: hidden;     /* hide vertical overflow */
        -ms-overflow-style: none;     /* IE and Edge */
        scrollbar-width: none;        /* Firefox */
        width: calc(100% + var(--default-padding));
    }

    .ingrediants-short-list > .ms-checkbox-group__item {
        height: 44px;
        flex: 0 0 auto;         /* keep natural width */
        display: flex;          /* center text vertically */
        align-items: center;
        white-space: nowrap;    /* keep text in one line */
    }

    .selected-ingredient{
        grid-template-columns: 1fr;
    }

    .selected-ingredient .benefits-row {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .selected-ingredient .img-cell {
        margin-top: -90px;
        padding: 0;
        z-index: 1;
        margin-bottom: -50px;
        left: 0px;
        display: flex;
        align-items: end;
    }

    .selected-ingredient .header-line {
        width: 75%;
    }

    .selected-ingredient .mineral__img {
        width:370px;
        margin-top:20px;
    }
}