.bg-g-class {
    background-image: url("../images/g-class/web bkgd-01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.g-class__hero {
    display: flex;
    flex-direction: column;
}

.g-class__hero .container {
    position: relative;
    max-width: 1412px;
    padding-left: 30px;
    padding-right: 30px;
}

.g-class__hero__heading {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 80px;
}

.g-class__hero__title {
    font-family: "DaimlerCAC-Regular", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 1;
}

.g-class__hero__subtitle {
    font-size: 24px;
}

.g-class__hero__media-wrapper {
    display: flex;
    align-items: center;
}

.g-class__hero__media {
    box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.5);
}

.g-class__hero__media--tablet {
    display: none;
}

.g-class__hero__media--mobile {
    display: none;
}

.g-class__hero__media--1 {
    width: 50%;
    transform: translateY(12%);
}

.g-class__hero__media--2 {
    width: 24%;
}

.g-class__hero__media--3 {
    width: 26%;
    transform: translateY(-10%);
}

.g-class__select__wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 40px 0 60px;
}

select.g-class__select {
    appearance: none;
    border: 0;
    outline: 0;
    font-size: 24px;
    color: #3d3d3d;
    padding: 12px 20px;
    padding-right: 38px;
    min-width: 11em;
    background-image: url("../images/g-class/select.svg");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 0.5em auto;
    background-color: white;
}

.g-class__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 90px 80px;
}

.g-class__list__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white !important;
    text-decoration: none !important;
}

.g-class__list__img {
    aspect-ratio: 1/1;
    margin-bottom: 10px;
}

.g-class__list__title {
    flex: 1;
    font-family: "DaimlerCAC-Regular", Helvetica, Arial, sans-serif;
    font-size: 32px;
    line-height: 1.125;
    min-height: calc(1.125em * 4);
    margin-bottom: 12px;
}

.g-class__list__desc {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.g-class__list__price {
    align-self: flex-end;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
}

@media screen and (max-width: 1919px) {
    .g-class__hero__heading {
        padding-top: 40px;
    }
}

@media screen and (max-width: 1439px) {
    .g-class__hero__heading {
        gap: 6px;
    }

    .g-class__hero__title {
        font-size: 48px;
    }

    .g-class__hero__subtitle {
        font-size: 18px;
    }

    .g-class__hero__media--desktop {
        display: none;
    }

    .g-class__hero__media--tablet {
        display: block;
    }

    .g-class__hero__media--1 {
        width: 50%;
        transform: translateY(15%);
    }

    .g-class__hero__media--2 {
        width: 32%;
    }

    .g-class__hero__media--3 {
        width: 18%;
        transform: translateY(-15%);
    }
}

@media screen and (max-width: 1279px) {
    .bg-g-class {
        background-image: url("../images/g-class/web bkgd-01_tablet.jpg");
    }

    .g-class__select__wrapper {
        padding: 40px 0;
    }

    select.g-class__select {
        font-size: 18px;
    }

    .g-class__list {
        gap: 50px 20px;
    }

    .g-class__list__title {
        font-size: 24px;
    }

    .g-class__list__price {
        font-size: 24px;
    }
}

@media screen and (max-width: 991px) {
    .g-class__hero__title {
        font-size: 42px;
    }
}

@media screen and (max-width: 767px) {
    .g-class__hero {
        flex-direction: column-reverse;
    }

    .g-class__hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .g-class__hero__heading {
        position: static;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-top: 50px;
    }

    .g-class__hero__title {
        font-size: 48px;
    }

    .g-class__hero__subtitle {
        font-size: 20px;
    }

    .g-class__hero__media-wrapper {
        flex-direction: column-reverse;
    }

    .g-class__hero__media {
        width: 100%;
        transform: none;
    }

    .g-class__hero__media--tablet {
        display: none;
    }

    .g-class__hero__media--mobile {
        display: block;
    }

    .g-class__select__wrapper {
        justify-content: center;
        padding: 20px 0 40px;
    }

    select.g-class__select {
        font-size: 21px;
    }

    .g-class__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }

    .g-class__list__title {
        font-size: 32px;
        min-height: calc(1.125em * 2);
        margin-bottom: 20px;
    }

    .g-class__list__price {
        font-size: 32px;
    }
}

@media screen and (max-width: 450px) {
    .g-class__list {
        grid-template-columns: repeat(1, 1fr);
    }
}
