/*
 Theme Name:   Toolbox Team Theme
 Theme URI:    https://thetoolboxteam.com.au
 Description:  Custom theme for The Toolbox Team Site 
 Author:       Andrew Carters
 Author URI:   https://andrewcarters.com
 Template:     generatepress
 Version:      1.0
*/

/* Site Wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

/* Image Classes */
.ar-16-9 {
    aspect-ratio: 16/9;
}

.ar-9-16 {
    aspect-ratio: 9/16;
}

.ar-4-3 {
    aspect-ratio: 4/3;
}

.ar-1-1 {
	aspect-ratio: 1/1;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* No Underline */
.no-ul, .no-ul a {
	text-decoration: none;
}

/* Remove bottom margin on last paragraph */
.gb-container p:last-child:last-of-type {
    margin-bottom: 0px;
}

.block-editor-block-list__layout .gb-container p:nth-last-child(2) {
    margin-bottom: 0px;
}

/* Header */

#site-navigation, #mobile-header {
    border-bottom-color: rgba(0, 0, 0, .05) !important;
    box-shadow: 0 2px 8px 0 rgba(16, 7, 104, .07) !important;
    position: relative;
}

#mobile-header .inside-navigation {
    padding: 10px;
}

/* General Content */

.container-shadow {
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
}

.wp-block-separator {
  	border: none;
    border-left: none;
    border-right: none;
	margin-bottom: 20px;
    margin-top: 20px;
}

/* Audiobook Player */

.ai-wrap .ai-audio-control, .ai-volume-bar.ai-volume-bar-active::before, .ai-track-progress, .ai-track:hover, .ai-track.ai-track-active {
	background-color: var(--accent) !important;
}

/* WP Forms */

.wpforms-form input[type=submit], 
.wpforms-form button[type=submit] {
	font-size: 1em !important;
	padding: 1.5em 1.5em !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    background-color: var(--accent) !important;
    color: #ffffff !important;
}
 
.wpforms-form button[type=submit]:hover, 
.wpforms-form button[type=submit]:active, 
.wpforms-form .wpforms-page-button:hover, 
.wpforms-form .wpforms-page-button:active {
    background-color: #007acc !important;
}

/* Blog Posts */

.wp-block-latest-posts {
	margin: 0;
}

.wp-block-latest-posts__featured-image {
	margin-bottom: 20px;
}

.featured-post-image {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Password Protected Page */

.post-password-required .entry-content {
    max-width: 1200px;
    margin: auto;
    padding: 100px 30px;
    text-align: center;
}
.post-password-form > p {
    margin-bottom: 40px;
}

.post-password-form input[type="submit"] {
    background-color: var(--accent);
    color: #fff;
	margin-left: 10px;
	font-weight: 600;
	border-radius: 8px;
	text-transform: uppercase;
}

.post-password-form input[type="submit"]:hover {
    background-color: #007acc;
}

.post-password-form input[type=password]{
	border-color: rgba(0, 0, 0, 0.25);
	margin-bottom: 20px;
}

