/*
Theme Name: Blocksy Child
Template: blocksy
Author: Raymond van Kouwen
Description: Een layout aanvulling op het Blocksy thema voor Boeken, Films en Series.
Version: 1.0
*/

.archive-books,
.archive-movies {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.archive-item-card {
    width: 23%;
}

.archive-item-card-text {
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
}

.archive-items-listing {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}        

.archive-items-pagination {
    margin-top: 2rem;
    text-align: center;
}

.book-author,
.movie-author {
    font-style: italic;
    font-weight: bold;
}        

.item-btn {
    display: inline-block;
    background-color: #ee7166;
    font-weight: 500;
    border-radius: 10px 10px 10px 10px;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all 0.3s;
}

.item-btn:hover {
    background-color: #0056b3;
}

.item-poster-container {
    width: 195px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}        

.item-poster-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}        

.item-poster-container:hover img {
    transform: scale(1.2);
}

.single-item-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}                    

.single-item-button {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}    

.single-item-text {
    width: 75%;
    padding: 0 1rem;
}                    

.single-item-text :is(h1, h2, h3, h4, h5, h6) {
    color: black;
}                    

.single-item-thumbnail {
    padding: 1rem;
}                            

.single-item-thumbnail img {
    width: 285px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}                            

.single-movie-trailer {
    margin-top: 2rem;
    text-align: center;
}

.single-movie-trailer .video {
    aspect-ratio: 16 / 9;
    width: 100% !important;
}

/* Tablet */
@media only screen and (max-width: 1024px) {

    .archive-item-card {
        width: 31%;
    }

}

/* Mobile */
@media only screen and (max-width: 768px) {
    
    .archive-item-card {
        display: block;
        margin: auto;
        width: 100%;
    }
    
    .single-item-container {
        flex-direction: column;
        justify-content: initial;
    }

    .single-item-text {
        width: 100%;
        padding: 0;
    }
    
    .single-item-thumbnail img {
        display: block;
        margin: auto;
    }

}
