﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */


.widget-area .widget_categories ul.menu .sub-menu, .widget-area .widget_categories>ul .sub-menu, .widget-area .widget_nav_menu ul.menu .sub-menu, .widget-area .widget_nav_menu>ul .sub-menu {
    display: block !important;
    background-color: #fff;
}
.widget-area .widget_nav_menu .menu-item-has-children:after {
    display: none;
}


.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px 34px;
    align-items: start;
}

.books-grid__item {
    text-align: center;
}

.books-grid__link {
    text-decoration: none;
    display: block;
}

.books-grid__thumb {
    margin-bottom: 8px;
}

.books-grid__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;      /* вертикальная обложка */
    object-fit: cover;         /* обрезает под вертикальный формат */
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.books-grid__year {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: #2b41ff;
}

@media (max-width: 767px) {
    .books-grid {
	grid-template-columns: repeat(2, minmax(120px, 1fr));
	gap: 20px;
    }

    .books-grid__year {
	font-size: 22px;
    }
}

.book-feature__inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.book-feature__image {
    flex: 0 0 20%;
    max-width: 20%;
}

.book-feature__image img {
    display: block;
    width: 100%;
    height: auto;
}

.book-feature__content {
}

.book-feature__content .heading {
    display: none;
}
.book-feature__content .heading+.bodysmall {
    display: none;
}

.book-feature__title {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.1;
}

.book-feature__year {
    font-size: .6em;
}

.book-feature__text {
    font-size: 20px;
    line-height: 1.5;
}

.book-feature__text > *:first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    .book-feature__inner {
	flex-direction: column;
    }

    .book-feature__image,
    .book-feature__content {
	flex: 0 0 100%;
	max-width: 100%;
    }

    .book-feature__title {
	font-size: 30px;
    }

    .book-feature__text {
	font-size: 18px;
    }
}
