/**
 * Shortcodes Styles - Single Posts Only
 * Grid layouts for ACF books and related posts
 * Includes responsive breakpoints for tablet and mobile
 */

/* ===========================================
   ACF BOOKS GRID - DESKTOP
   =========================================== */

body.single .acf-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

body.single .acf-books-grid .acf-book-card {
    padding: 15px 15px 120px;
}

body.single .acf-book-card h4,
body.single .acf-book-card h4 a,
body.single .acf-book-card .book-author,
body.single .acf-book-card .book-author a,
body.single .acf-book-card .book-link {
    color: inherit;
}

body.single .acf-book-card h4 {
    margin-bottom: 3px;
    padding: 0 15px 0 25px;
}

body.single .acf-book-card h4 a {
    font-size: 40px;
    font-family: "Anton", sans-serif;
    text-transform: uppercase;
}

body.single .acf-book-card .book-author {
    font-size: 20px;
    font-family: "Work Sans", sans-serif;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 26px;
    padding: 0 15px 0 25px;
}

body.single .acf-book-card .book-desc {
    font-size: 14px;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 0;
    padding: 0 15px 0 25px;
}

body.single .acf-book-card .book-link {
    font-size: 12px;
    font-family: "Work Sans", sans-serif;
    font-weight: 900;
    line-height: 12px;
    padding: 0 15px 0 25px;
}

body.single .acf-book-card .book-link svg {
    position: relative;
    top: 4px;
    left: 5px;
    width: 12px;
}

body.single .acf-books-grid .acf-book-card .book-price {
    padding: 0 15px 0 25px;
}

body.single .acf-books-grid .acf-book-card .woocommerce-Price-amount.amount {
    font-size: 20px;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    line-height: 30px;
}

body.single .acf-books-grid .acf-book-card .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    padding-left: 7px;
}

body.single .acf-book-card > a:first-of-type {
    display: inline-block;
    height: 65vh;
    height: auto;
}

/* ===========================================
   RELATED POSTS GRID - DESKTOP
   =========================================== */

body.single .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

body.single .related-posts-grid .related-post-card {
    padding: 0 0 82px;
}

body.single .related-posts-grid .related-post-card .post-thumbnail-link img {
    width: 100%;
}

body.single .related-post-card h4,
body.single .related-post-card h4 a,
body.single .related-post-card .book-link {
    color: inherit;
}

body.single .related-post-card .post-category-wrapper {
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    padding: 20px 15px 8px 41px;
}

body.single .related-post-card h4 {
    margin-bottom: 3px;
    padding: 0 15px 0 41px;
}

body.single .related-post-card h4 a {
    font-size: 40px;
    font-family: "Anton", sans-serif;
    text-transform: uppercase;
}

body.single .related-post-card .post-excerpt {
    font-size: 14px;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 0;
    padding: 0 15px 22px 41px;
}

body.single .related-post-card .post-read-more {
    font-size: 12px;
    font-family: "Work Sans", sans-serif;
    font-weight: 900;
    line-height: 12px;
    padding: 0 15px 0 41px;
}

body.single .related-post-card .post-read-more svg {
    position: relative;
    top: 4px;
    left: 5px;
    width: 12px;
}

/* ===========================================
   TABLET BREAKPOINT
   =========================================== */

@media only screen and (max-width: 1024px) {
    body.single .acf-books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.single .acf-book-card h4 {
        padding: 0;
    }

    body.single .acf-book-card .book-author {
        padding: 0;
    }

    body.single .acf-book-card .book-desc {
        padding: 0;
    }

    body.single .acf-book-card .book-link {
        padding: 0;
    }

    body.single .acf-books-grid .acf-book-card .book-price {
        padding: 0;
    }

    body.single .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
    }

    body.single .related-post-card .post-category-wrapper {
        padding: 20px 15px 8px 15px;
    }

    body.single .related-post-card h4 {
        padding: 0 15px 0 15px;
    }

    body.single .related-post-card .post-excerpt {
        padding: 0 15px 22px 15px;
    }

    body.single .related-post-card .post-read-more {
        padding: 0 15px 0 15px;
    }
	body.single .acf-book-card > a:first-of-type {
    display: inline-block;
    height: 314px;
}
}

/* ===========================================
   MOBILE BREAKPOINT
   =========================================== */

@media only screen and (max-width: 767px) {
    body.single .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
	body.single .acf-books-grid {
    display: grid;
		grid-template-columns: repeat(2, 1fr);
			
		}

    body.single .related-post-card h4 a {
        font-size: 30px;
    }

    body.single .acf-book-card > a:first-of-type {
        height: auto;
    }

    body.single .acf-books-grid .acf-book-card {
        padding: 15px 15px 56px;
    }

    body.single .related-posts-grid .related-post-card {
        padding: 0 0 56px;
    }
}