/* -- Стили для обертки -- */

.main_wrapper {
    grid-column: 1/2;
    grid-row: 2/3;

    justify-self: stretch;
    align-self: stretch;

    display: grid;
    grid-template-columns: 1fr minmax(360px, 1140px) 1fr;
}

main {
    grid-column: 2/3;
    grid-row: 1/2;

    justify-self: center;
    align-self: stretch;

    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-template-rows: repeat(1, auto);
}



/* -- Стили для первой секции -- */

.section_1 {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: stretch;

    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
    grid-row-gap: 20px;

    margin: 80px 80px;
    margin-top: 40px;
}

.section_1 > h2 {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: center;

    text-align: center;

    margin-bottom: 30px;
}

.kids_tile {
    grid-column: 1/2;
    grid-row: 2/3;

    justify-self: stretch;
    align-self: stretch;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    grid-column-gap: 40px;
    grid-row-gap: 20px;
}

.kids_a_item {
    justify-self: stretch;
    align-self: stretch;

    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-template-rows: repeat(3, auto);
}

.kids_a_item > h3 {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: stretch;

    text-align: center;

    padding: 15px 0;
}

.kids_a_item > .kids_a_item_img_wrapper {
    grid-column: 1/2;
    grid-row: 2/3;

    justify-self: stretch;
    align-self: stretch;

    display: grid;
}

.kids_a_item_img {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: stretch;

    width: 300px;
    height: 300px;

    background-color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.kids_a_item_reserved_tile {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: stretch;

    width: 300px;
    height: 300px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.kids_a_item_sold_tile {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: stretch;
    align-self: end;

    width: 300px;
    height: 60px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--overlay_color);

    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-template-rows: repeat(1, auto);

    opacity: 1.0;
}

.kids_a_item_img_wrapper:hover > .kids_a_item_sold_tile {

    opacity: 0.5;
}

.kids_a_item_sold_tile > p {
    grid-column: 1/2;
    grid-row: 1/2;

    justify-self: center;
    align-self: center;

    font-family: marck_script_amd, sans-serif;
    font-size: 1.75em;
    color: var(--footer_color);
}

.more {
    grid-column: 1/2;
    grid-row: 3/4;

    justify-self: stretch;
    align-self: stretch;

    text-align: center;

    padding: 15px 0;
}

.back {
    grid-column: 1/2;

    justify-self: end;
    align-self: center;

    padding: 20px 30px;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-right: 20px;

    border-bottom: 3px solid var(--border_bottom_color);
}

.back:hover {
    border-bottom: 3px solid var(--line_first_color);
}



/* -- Стили для мобильных устройств -- */
/* -- Extra small devices (portrait phones, less than 576px) -- */
@media (max-width: 575.98px) {
    /* -- Стили для обертки -- */

    .main_wrapper {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: auto;
    }

    main {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: center;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(4, auto);
    }



    /* -- Стили для первой секции -- */

    .section_1 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
        grid-row-gap: 20px;

        margin: 40px 20px;
    }

    .section_1 > h2 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        font-size: 2.5em;
    }

    .kids_tile {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 40px;
        grid-row-gap: 20px;
    }

    .back {
        grid-column: 1/2;

        justify-self: center;
        align-self: center;

        margin-right: 0;
    }
}

/* -- Small devices (landscape phones, 576px and up) -- */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* -- Стили для обертки -- */

    .main_wrapper {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: auto;
    }

    main {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: center;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(4, auto);
    }



    /* -- Стили для первой секции -- */

    .section_1 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
        grid-row-gap: 20px;

        margin: 40px 30px;
    }

    .section_1 > h2 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        font-size: 2.5em;
    }

    .kids_tile {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 40px;
        grid-row-gap: 20px;
    }

    .back {
        grid-column: 1/2;

        justify-self: center;
        align-self: center;

        margin-right: 0;
    }
}

/* -- Medium devices (tablets, 768px and up) -- */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* -- Стили для обертки -- */

    .main_wrapper {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: auto;
    }

    main {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: center;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(4, auto);
    }



    /* -- Стили для первой секции -- */

    .section_1 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
        grid-row-gap: 20px;

        margin: 40px 30px;
    }

    .section_1 > h2 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        font-size: 2.5em;
    }

    .kids_tile {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 40px;
        grid-row-gap: 20px;
    }

    .back {
        grid-column: 1/2;

        justify-self: center;
        align-self: center;

        margin-right: 0;
    }
}

/* -- Large devices (desktops, 992px and up) -- */
@media (min-width: 992px) and (max-width: 1139.98px) {
    /* -- Стили для обертки -- */

    .main_wrapper {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: auto;
    }

    main {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: center;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(4, auto);
    }



    /* -- Стили для первой секции -- */

    .section_1 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
        grid-row-gap: 20px;

        margin: 40px 30px;
    }

    .section_1 > h2 {
        grid-column: 1/2;
        grid-row: 1/2;

        justify-self: stretch;
        align-self: stretch;

        font-size: 2.5em;
    }

    .kids_tile {
        grid-column: 1/2;
        grid-row: 2/3;

        justify-self: stretch;
        align-self: stretch;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 40px;
        grid-row-gap: 20px;
    }

    .back {
        grid-column: 1/2;

        justify-self: center;
        align-self: center;

        margin-right: 0;
    }
}

/* -- Extra large devices (large desktops, 1200px and up) -- */
@media (min-width: 1140px) {

}