/*
Theme Name:   Astra Child
Theme URI:    https://example.com/astra-child/
Description:  Astra child theme with custom single templates for Book and Photo post types.
Author:       You
Author URI:   https://example.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* =========================================================
   Single Book layout
   ========================================================= */
.single-book .book-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin: 30px 0;
}

.single-book .book-thumb {
    flex: 0 0 40%;
    max-width: 40%;
}

.single-book .book-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.single-book .book-info {
    flex: 1 1 0;
    min-width: 0;
}

.single-book .book-info h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

.single-book .book-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.single-book .book-download-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.single-book .book-download-btn:hover,
.single-book .book-download-btn:focus {
    background-color: #005177;
    color: #fff;
}

/* Stack on mobile */
@media (max-width: 768px) {
    .single-book .book-wrap {
        flex-direction: column;
    }
    .single-book .book-thumb,
    .single-book .book-info {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* =========================================================
   Single Photo layout
   ========================================================= */
.single-photo .photo-wrap {
    margin: 30px 0;
    text-align: center;
}

.single-photo .photo-title {
    margin-bottom: 25px;
}

.single-photo .photo-large {
    width: 100%;
    max-width: 1400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.single-photo .photo-caption {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}
