/*!
Theme Name: CBD
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Creative Brand Design
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 28.06.24
Text Domain: cbd
*/

/* Leadership */

@media (max-width: 599px) {
	.leadership__section .img-wrapper {
		width: 100%;
		height: 0;
		margin-bottom: 1rem;
		opacity: 1;
		max-height: 80vw;
	}
}
@media (min-width: 1024px) {
    .leadership__section.active > .container + div {
        display: block;
    }
}
.meet-team__section [data-imglink]:not(.active) .img-wrapper,
.meet-team__section [data-imglink]:not(.active) .img-wrapper + div {
    display: none;
}

.leadership__section .hidden [data-imgoverlay], .leadership__section .hidden [data-imgholder] {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.leadership__section.active .hidden [data-imgoverlay], .leadership__section.active .hidden [data-imgholder] {
    opacity: 1;
    visibility: visible;
}
    
/* Private Pages */
.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form > p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}

/* Admin Bar */
.admin-bar > main {
    margin-top: 32px;
}

.admin-bar .header {
    top: 32px;
}

@media (max-width: 1024px) {
    .admin-bar .header__nav {
        top: 32px;
    }
}

@media (max-width: 782px) {
    .admin-bar > main {
        margin-top: 46px;
    }

    .admin-bar .header {
        top: 46px;
    }

    .admin-bar .header__nav {
        top: 46px;
    }
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

/* Content */
.content > *:not(h1, h2, h3, h4, h5, h6 :last-child) {
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .content > *:not(h1, h2, h3, h4, h5, h6 :last-child) {
        margin-bottom: 1.5rem;
    }
}

.content > h1,
.content > h2,
.content > h3,
.content > h4,
.content > h5,
.content > h6 {
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .content > h1,
    .content > h2,
    .content > h3,
    .content > h4,
    .content > h5,
    .content > h6 {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .content > h1,
    .content > h2,
    .content > h3,
    .content > h4,
    .content > h5,
    .content > h6 {
        margin-bottom: 3.5rem;
    }
}

.content > h1,
.content > h2,
.content > h3,
.content > h4,
.content > h5,
.content > h6 {
    font-family: Cambria, serif;
    line-height: 2.5rem;
}

.content > h2 {
    font-size: 2.25rem;
}

@media (min-width: 1024px) {
    .content > h2 {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1536px) {
    .content > h2 {
        font-size: 58px;
        line-height: 1;
        letter-spacing: 0;
        font-weight: 400;
    }
}

.content > p {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

@media (min-width: 1024px) {
    .content > p {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

@media (min-width: 1280px) {
    .content > p {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.content > ul {
    list-style-type: disc;
}

.content > ol {
    list-style-type: decimal;
}

.content > ul,
.content > ol {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.5rem;
}

@media (min-width: 1280px) {
    .content > ul {
        padding-left: 1.75rem;
    }
}

/* Gravity Form */
.form .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 2rem;
}

@media (min-width: 641px) {
    .form .gform_wrapper.gravity-theme .gform_fields {
        grid-column-gap: 2rem;
    }
}

.form .gform_wrapper.gravity-theme .gform_required_legend {
    display: none;
}

.form .gform_wrapper.gravity-theme .gfield_required_text {
    display: none;
}

.form .gform_wrapper.gravity-theme .gfield_label {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: rgb(4 32 96 / 0.5);
    margin-bottom: 0.25rem;
}

.form .gform_wrapper.gravity-theme .gfield input,
.form .gform_wrapper.gravity-theme .gfield select,
.form .gform_wrapper.gravity-theme .gfield textarea {
    background: transparent;
    border: none;
    border-bottom: 0.5px solid #042060;
    box-shadow: none;
    border-radius: 0;
    color: rgba(0, 0, 0, 0.8);
    font: 500 18px / 20px "DM Sans", "Arial", sans-serif;
    outline: none;
    padding: 5px 20px 20px;
    text-align: right;
    transition: 0.3s;
    width: 100%;
}

@media only screen and (max-width: 641px) {
    .form .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        line-height: 20px;
        min-height: auto;
    }
}

.form .gform_wrapper.gravity-theme .gfield input::placeholder,
.form .gform_wrapper.gravity-theme .gfield select::placeholder,
.form .gform_wrapper.gravity-theme .gfield textarea::placeholder {
    color: rgba(0 0 0 / 0.6);
}

.form .gform_wrapper.gravity-theme .gfield input:hover,
.form .gform_wrapper.gravity-theme .gfield select:hover,
.form .gform_wrapper.gravity-theme .gfield textarea:hover {
    box-shadow: inset 0 -1px 0 #042060;
}

.form .gform_wrapper.gravity-theme .gfield input:focus,
.form .gform_wrapper.gravity-theme .gfield select:focus,
.form .gform_wrapper.gravity-theme .gfield textarea:focus {
    border-bottom-color: #000;
    box-shadow: inset 0 -1px 0 #000;
}

.form .gform_wrapper.gravity-theme .gfield--type-textarea {
    position: relative;
}

.form .gform_wrapper.gravity-theme .gfield--type-textarea label {
    position: absolute;
    top: -4px;
}

.form .gform_wrapper.gravity-theme .gfield textarea {
    padding: 0 20px 20px 105px;
    resize: vertical;
    text-align: left;
    min-height: 150px;
}

.form .gform_wrapper.gravity-theme .gfield textarea.medium {
    height: 150px;
}

@media (min-width: 1024px) {
    .form .gform_wrapper.gravity-theme .gfield textarea.medium {
        height: 160px;
    }
}

.form .gform_wrapper.gravity-theme .gchoice input {
    display: none;
}

.form .gform_wrapper.gravity-theme .gchoice label {
    position: relative;
    max-width: 100%;
    cursor: pointer;
    padding-left: 1.75rem;
    font-size: inherit;
    line-height: inherit;
}

.form .gform_wrapper.gravity-theme .gchoice label:before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-width: 1px;
    border-color: #042060;
    position: absolute;
    top: 0.1rem;
    left: 0;
    transition: 0.3s;
}

.form .gform_wrapper.gravity-theme .gfield_radio label:before {
    border-radius: 50%;
}

.form .gform_wrapper.gravity-theme .gchoice label:after {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #042060;
    position: absolute;
    top: 0.35rem;
    left: 0.25rem;
    opacity: 0;
    transition: 0.3s;
}

.form .gform_wrapper.gravity-theme .gfield_radio label:after {
    border-radius: 50%;
}

.form .gform_wrapper.gravity-theme .gchoice input:checked + label:after {
    opacity: 1;
}

.form .gform_wrapper.gravity-theme .gform_footer {
    justify-content: flex-end;
    margin: 2rem 0 0;
    padding: 0;
}

.form .gform_wrapper.gravity-theme .gform_footer button {
    margin-bottom: 0;
}

.form .gform_confirmation_message {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

@media (min-width: 1024px) {
    .form .gform_confirmation_message {
        font-size: 1.5rem;
    }
}

/* Ajax Loader */
.ajax_loader {
    width: 100%;
    height: 8rem;
    margin: 0 auto;
    background: url(img/loader.gif) center/contain no-repeat;
}