/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

.kroniek-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ensures it fills nicely without stretching */
    aspect-ratio: 66 / 101;    /* <--- magic line */
}

/* === Kroniek Table Styling === */
.kroniek-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kroniek-table thead {
    background: var(--the7-accent-color, #005b9f);
    color: #fff;
    text-align: left;
}

.kroniek-table th,
.kroniek-table td {
    padding: 0.75em 1em;
    vertical-align: top;
}

.kroniek-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.03);
}

.kroniek-table tbody tr:hover {
    background-color: rgba(0,0,0,0.06);
    transition: background-color 0.2s;
}

.kroniek-table th {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.kroniek-table td {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.kroniek-table td:first-child {
    width: 55%;
}

.kroniek-table td:nth-child(2) {
    width: 30%;
}

.kroniek-table td:last-child {
    text-align: right;
    width: 15%;
}

@media (max-width: 700px) {
    .kroniek-table,
    .kroniek-table thead,
    .kroniek-table tbody,
    .kroniek-table th,
    .kroniek-table td,
    .kroniek-table tr {
        display: block;
        width: 100%;
    }

    .kroniek-table thead {
        display: none;
    }

    .kroniek-table tr {
        margin-bottom: 1em;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 0.5em;
    }

    .kroniek-table td {
        padding: 0.5em 0;
        text-align: left !important;
    }

    .kroniek-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25em;
        color: var(--the7-accent-color, #005b9f);
    }
}

/* === Kroniek Header Layout === */
.kroniek-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* ensures it stacks on smaller screens */
}

.kroniek-content {
    flex: 1 1 60%;
    min-width: 300px;
}

.kroniek-thumbnail {
    flex: 1 1 35%;
    padding-top: 20px;
}

.kroniek-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Stack layout on narrow screens */
@media (max-width: 768px) {
    .kroniek-header {
        flex-direction: column-reverse;
    }

    .kroniek-thumbnail {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .kroniek-content {
        flex: 1 1 100%;
    }
}

.custom-kroniek-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ccc;
}
.custom-kroniek-header .entry-title {
    margin-bottom: 10px;
}
.kroniek-meta > div {
    margin: 4px 0;
    color: #444;
    font-size: 0.95em;
}
.kroniek-laureaat {
    font-style: italic;
}
.laureaat-beschrijving {
    color: #666;
}


/* === DataTables layout tweaks for Kroniek tables === */
/* Ensure search is above, info+pagination under the table, and length selector at the very bottom */
.dataTables_wrapper .dt-top {
    margin-bottom: 10px;
}

.dataTables_wrapper .dt-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* Place the length menu in its own row below everything with spacing */
.dataTables_wrapper .dt-length-bottom {
    margin-top: 12px;
}

/* Improve pagination readability so it doesn't render like "Previous12345…17Next" */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 4px;
}
.paginate_button {
    margin: 0.4px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0,0,0,0.04);
}

/* Align info text spacing */
.dataTables_wrapper .dataTables_info {
    margin-top: 4px;
}

#onderwerpen-filter option {
    color: #000000
}

/* Force dark text for DataTables controls and filters for readability */
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_filter input[type="search"],
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_length select,
.kroniek-filters label,
#onderwerpen-filter,
#onderwerpen-filter option {
    color: #000 !important;
}

.laureaat_kroniek_beschrijving {
    font-style: italic;
}

.laureaat_kroniek_title {
    margin-bottom: 0 !important;
}

.laureaat_kroniek_jaar {
    font-weight: bold;
    font-size: 1.2em;
}