/* Style customisations for Timsbury's Wordpress site.
 * At the timeo of writing the website uses the LifeStylePro child of the Genesis theme.
 * So many of these customisations are LifestylePro/Genesis-dependent and switching 
 * to another theme will likely require extensive changes here.
 */
/* Colour contrast changes for WCAG 2.2 compliance */
body.lifestyle-pro-blue .button,
body.lifestyle-pro-blue .entry-content .button,
body.lifestyle-pro-blue .site-footer,
body.lifestyle-pro-blue .site-header,
body.lifestyle-pro-blue button,
body.lifestyle-pro-blue input[type = "button"],
body.lifestyle-pro-blue input[type = "reset"],
body.lifestyle-pro-blue input[type = "submit"],
body.lifestyle-pro-blue.lifestyle-pro-home .content .widget-title {
    background-color: #368093;
}

p.entry-meta {
    color: #797676;
}

body.lifestyle-pro-blue .entry-title a,
body.lifestyle-pro-blue .sidebar .widget-title a,
body.lifestyle-pro-blue .site-footer a:hover,
body.lifestyle-pro-blue a:hover {
    color: #cd4760;
}

nav .genesis-nav-menu > li:hover .sub-menu a,
nav .genesis-nav-menu .sub-menu a {
    background-color: #CD4760;
}

body.lifestyle-pro-blue .nav-secondary {
    background-color: #368093;
}

/* End of colour contrast changes for WCAG 2.2 compliance */
/* Indent blockquotes */
blockquote {
    margin: 20px 20px 24px !important;
}
/* Add a quote at the end of blockquotes to complement the starting quote that Wordpress already puts in */
blockquote p:last-of-type::after {
    content: "”";
    font-size: 30px;
    vertical-align: bottom;
    display: inline-block;
    margin-inline-start: 10px;
}
/* Align center on images with class aligncenter */
.wp-block-image .aligncenter {
    text-align: center;
}

/* Align right on images with class alignright */
.wp-block-image .alignright {
    text-align: right;
}

/* Align left on images with class alignleft */
.wp-block-image .alignleft {
    text-align: left;
}

/* Increase text size on images in the prettyphoto lightbox used in Responsive Lightbox & Gallery */
div.pp_default .pp_description {
    font-size: 16px;
    line-height: 15px;
    font-weight: 500;
}

/* If there is no featured post then hide the featured post section on the home page */
.home section#featured-post-5:not(:has(article)) {
    display: none;
}

/* Tweak the width of the council members table */
.wp-block-table.aligncenter.councilmembers {
    width: 60%;
}

/* On wide screens, move the Search button to the right of the navigation menu */
@media only screen and (min-width : 767px) {
    ul#menu-primary-menu > li:last-child {
        float: right;
    }
}
