.richtext-image{
    width: 100%;
    height: auto;
}

/* Heading style */
#heading {
    position: relative;
    margin-bottom: 2.125rem;
}

.heading__content {
    display: grid;
    color: white;
    padding: 5.5rem 10rem 4.2rem 0;
    background-blend-mode: multiply;
    background-color: var(--primary-dark);
    background-repeat: no-repeat;
    background-size: cover;
    padding-left: 20rem;
    margin-left: -20rem;
}

#heading div:last-child {
    margin-bottom: 0;
}

#heading .infinite-bg {
    display: grid;
    background: linear-gradient(
        to left,
        #19283d00,
        var(--primary-dark),
        var(--primary-dark) 20rem
    );
    z-index: 2;
}

.heading__back-btn {
    cursor: pointer;
    color: var(--primary-main);
}

.heading__title {
    margin-top: 16.5rem;
    margin-bottom: 0;
}

.heading__theme {
    color: var(--primary-main);
    margin-top: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.heading__description {
    color: var(--secondary-main);
    margin-top: 1.625rem;
    line-height: 1.5rem;
}

#about>h5:nth-child(3) {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.heading__technologies {
    /* margin-top: 1.5rem; */
    margin: 1.8rem 0 5.4rem; 
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    column-gap: 4rem;
}

.heading__technologies img {
    width: auto;
    object-fit: cover;
}

.heading__menu {
    margin-top: 3.5rem;
    display: flex;
    gap: 4.125rem;
}

.heading__menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.heading__menu a:hover {
    text-decoration: underline;
    color: var(--primary-main);
}

.heading__menu i {
    margin-left: 0.5rem;
}

/* About section style */

#about {
    line-height: 1.5rem;
}

.about__content {
    padding-right: 6rem;
}

/* Snapshots Section Style */
#snapshots {
    position: relative;
}

#snapshots .container {
    position: relative;
}

#snapshots .infinite-bg {
    right: 0;
    left: unset;
    width: calc(50vw - 244px);
    background: white;
    z-index: 1;
}

.snapshots__items {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    max-height: 32rem;
    transition: 0.5s;
    transition-timing-function: ease-in-out;
    margin-left: -5rem;
}

.snapshots__items img {
    max-width: 85%;
    visibility: visible;
    height: auto;
    max-height: 100%;
    transition: 0.5s;
}

.snapshots__items img.visible {
    opacity: 1;
}

.snapshots__btn {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    padding-inline: 2.625rem;
    padding-top: 4rem;
}

.snapshots__btn button {
    width: 2.625rem;
    height: 2.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    border-radius: 50%;
    color: white;
    padding: 0;
    z-index: 50;
}

.snapshots__btn button i {
    font-size: 1.7rem;
}

.snapshots__btn.btn-right {
    right: calc(25% + 1.5rem);
    background: linear-gradient(to left, white 20%, transparent);
}

.snapshots__btn.btn-left {
    background: linear-gradient(to right, white 20%, transparent);
}

.forward {
    right: -100%;
    opacity: 0.2;
}

.back {
    left: -100%;
}

.snapshots__gradient {
    position: absolute;
    width: calc(75% - 1.5rem);
    height: 100%;
    left: 0;
    top: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to right, transparent 80%, white 100%);
}

.section__title {
    margin-block: 2.25rem;
}

/* Team Section style */

#team {
    position: relative;
    margin-bottom: 0;
}

.team__content {
    background: var(--secondary-main);
}

#team .section__title {
    padding-top: 7.25rem;
}

.team__background {
    position: absolute;
    width: 50vw;
    height: 100%;
    left: 0;
    z-index: -1;
    background: var(--secondary-main);
}

.team__items {
    padding-bottom: 8.875rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 1.75rem;
    grid-column-gap: 1.5rem;
    padding-right: 10rem;
}

#team .member__picture {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
    object-fit: cover;
}

.team__member {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.member__name {
    font-weight: 700;
}

.member__function {
    font-family: "Roboto-mono", sans-serif;
    font-style: italic;
    line-height: 21px;
    margin-top: 1px;
}

@media screen and (max-width: 1270px) {
    #heading .infinite-bg {
        background-position: left;
        background-size: cover;
    }
}

@media screen and (max-width: 1270px) {
    #heading .infinite-bg {
        width: unset;
    }

    #snapshots .infinite-bg {
        width: 31.5%;
    }
}

@media screen and (max-width: 900px) {
    .about__content {
        padding-right: 0;
    }

    #snapshots .infinite-bg {
        width: 10.3%;
    }

    .snapshots__items img {
        max-width: 80%;
    }

    .snapshots__btn {
        padding-inline: 0;
    }

    .snapshots__btn.btn-right {
        right: 0;
    }

    .heading__content,
    .team__items {
        padding-right: 20rem;
        margin-right: -20rem;
    }

    .heading__title {
        margin-top: 3.25rem;
    }

    .heading__menu {
        grid-gap: 1rem;
    }

    #heading .infinite-bg {
        z-index: 0;
        width: 0;
    }

    .team__background {
        width: 100%;
    }

    .heading__menu {
        margin-top: 1.5rem;
        flex-direction: column;
        justify-content: center;
    }

    #team .section-title {
        padding-top: 3.375rem;
    }

    .team__items {
        grid-template-columns: 1fr;
    }

    .back-top .infinite-bg {
        background: white;
    }

    .back-top__content {
        color: var(--primary-dark);
        background-color: white;
    }

    .back-top a {
        width: unset;
        height: unset;
        background: none;
    }

    .back-top i {
        color: var(--primary-main);
        padding-right: 1rem;
    }

    .back-top h5 {
        display: flex;
        font-size: 1rem;
        font-weight: 500;
    }
}
