.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    column-gap: 2.5rem;
    row-gap: 10rem;
    max-width: 80%;
    margin-top: 3rem;

}

.layout-grid__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;

}

.layout-grid__img {
    border: 0.0625rem solid #333;
    background-color: #111;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 5/8;
}

.layout-grid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-grid__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    flex-grow: 1;
}

.layout-grid__title {
    font-size: 2.2rem;
    color: #fffff8;
    font-weight: 300;
    line-height: 1.3;
    padding-top: 2.1rem
}

.layout-grid__txt {
    font-size: 1.7rem;
    color: #9e9e9e;
    margin-top: 0;
    flex-grow: 1;
}

.layout-grid__skills {
    font-size: 1.3rem;
    color: #d0c59b;
    padding-top: 4.1rem;
    justify-self: end;
}

.layout-grid__btn-box {
    padding-top: 2rem;
}

.layout-grid__btn-buy {
    display: inline-block;
    color: #000000;
    background-color: #fffff8;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.125rem;
    text-align: center;
    font-weight: 700;
    width: 100%;
}

a.layout-grid__btn-buy:hover {
    color: #000000;
}

.layout-grid__btn-buy.disabled {
    display: inline-block;
    background-color: #8d8d8d;
    color: #6e6e6e;
    cursor: default;
}

.layout-grid__btn-buy.disabled:hover {
    color: #6e6e6e;
    cursor: default;
}

/*MODAL*/
.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000E;
    padding: 4rem 0;
}

.modal__frame {
    max-height: 100%;
    overflow: auto;
    max-width: 50%;
    border: 0.0625rem solid #333;
    width: 100%;
}
.modal__close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 80rem) {

    .layout-grid {

        max-width: 100%;

    }
}