/*
Theme Name: Twenty Twenty-Five AutoIt
Theme URI: 
Author: Jonathan Bennett
Author URI: 
Description: AutoIt Child Theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twentytwentyfive-autoit
Tags: 
*/

/* Jon: Strong elements not bolding correctly */
strong { font-weight: 600; }

/* pre code changes for wrapping */
pre, code { 
  overflow:auto; 
  font-family: 'Fira Code', Consolas, Menlo, Monaco, 'Courier New', monospace; 
  font-size: 16px; 
  line-height: 1.3;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Featured images scales to entire width by default - looks terrible */
/* Don't make img full width */
/* .wp-block-post-featured-image img { max-width: 100%; width: auto !important; height: auto !important} */

/* Center the parent container */
/* .wp-block-post-featured-image { text-align: center !important; } */

/* Make the header sticky */
/* Prevent content from hiding behind the header with margin-top, adjust to match site header height*/
header {
    position: fixed;
    top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
    width: 100%;
    z-index: 9999;
}

body {
    margin-top: 120px; 
}

/* Remove sticky header on mobile */
/* Position: static Removes the fixed (sticky) positioning */
/* margin-top Adjusts the layout back to normal */
/*
@media (max-width: 600px) {
    header {
        position: static;
        margin-top: 0;
    }
    body {
        margin-top: 0;
    }
}
*/

/* add the "autoit-sidebar-group-sticky" anchor on the group containing the sidebar to make it sticky */
#autoit-sidebar-group-sticky {
    top: calc(112px + var(--wp-admin--admin-bar--height, 0px));
    position: sticky;
    z-index: 10;
}


.autoit-ad {
  border: 1px solid #999; /* Subtle border */
  background-color: #f8f8f8; /* Light background */
  padding: 10px;
  margin-bottom: 15px;
}

.autoit-ad-h6 {
    margin-top: 0px;
    margin-bottom: 8px;
}


hr.advert-top-nomargin {
  margin: 0 0 12px 0;
  border: 0;
  height: 0;
  border-top: 1px solid #eaecef;
}

hr.advert-bottom-nomargin {
  margin: 12px 0 0 0;
  border: 0;
  height: 0;
  border-top: 1px solid #eaecef;
}

hr.advert-top-margin {
  margin: 36px 0 12px 0;
  border: 0;
  height: 0;
  border-top: 1px solid #eaecef;
}

hr.advert-bottom-margin {
  margin: 12px 0 36px 0;
  border: 0;
  height: 0;
  border-top: 1px solid #eaecef;
}

.autoit-center
{
text-align: center;
}

.autoit-footer-ad
{
margin: 20px 15px 40px 15px;
}

/* mobile view has quite large padding, reduce it */
@media screen and (max-width: 600px) {
	.has-global-padding {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* Fix yarrp thumbnails not showing full post title */
/* .yarpp-thumbnails-horizontal .yarpp-thumbnail-title {max-height: none !important;} 
.yarpp-thumbnail {height: auto !important;} */

/* YARPP Customisations */

/* yarp related more space above */
/* .yarpp-related {margin: 2em 0 2em 0 !important;} */

.yarpp-related {
    margin-bottom: 3em;
    margin-top:3em;
    padding-bottom: 1em;
}

.yarpp-related a {
    font-weight: 600;
    text-decoration: none
}

.yarpp-related .yarpp-thumbnail-title {
    font-size: 80%;
    font-weight: 600;
    text-align: left;
    text-decoration: none
}

.yarpp-related h3 {
    font-size: 125%;
    font-weight: 600;
    margin: 0;
    padding: 0 0 5px;
    text-transform: capitalize
}
