/*
Theme Name: GP Developer Child Theme
Template: generatepress
Theme URI: https://addisonhalldesign.com
Author: Addison Hall
Author URI: https://addisonhalldesign.com
Description: This is a child theme for GeneratePress for use in jumpstarting more customized development.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpc
Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, fluid-layout, fixed-layout, responsive-layout, flexible-header, full-width-template, buddypress, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, light, white, dark, black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, yellow
*/

/*

CONTENTS:
1. Defaults
2. Header and Nav
3. Home Page
4. Content
5. Components
6. Widgets
7. Footer
8. Other

*/

/* ==========================================
=! DEFAULTS
------------------------------------------ */

/* --- Foreground colors --- */
.color-black { color: #000; }
.color-white { color: #fff; }

/* --- Background colors --- */
.bg-color-black { background-color: #000; }
.bg-color-white { background-color: #fff; }

/* --- Underline links in content area --- */
.inside-article .entry-content a:not(.no-link-styling):not(.button):not(.button-subtle):not(.wp-block-button__link),
.generate-sections-container:not(.no-link-styling) a:not(.button):not(.button-subtle):not(.wp-block-button__link) {
  border-bottom: 1px dotted;
}

/* --- remove underline in undesirable places --- */
.gpc .inside-article .entry-content .addtoany_content a,
.gpc .inside-article .entry-content .attachment a,
.gpc .inside-article .entry-content .wp-block-image figure > a,
.gpc .inside-article .entry-content .wp-block-gallery figure > a {
    border-bottom: none !important;
}

/* ==========================================
=! HEADER AND NAV
------------------------------------------ */

.generate-back-to-top, .generate-back-to-top:visited {
    border-radius: 7px;
}
.main-navigation .main-nav > ul > li:first-child > a{
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
.main-navigation .main-nav > ul > li:last-child > a {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}
.secondary-navigation .main-nav > ul > li:first-child a {
    border-bottom-left-radius: 7px;
}
.secondary-navigation .main-nav > ul > li:last-child a {
    border-bottom-right-radius: 7px;
}
#site-navigation {
    border-radius: 7px;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}
button.menu-toggle:active, button.menu-toggle:focus, button.menu-toggle:hover {
    background: #ffd503;
    color: #1c1c1c !important;
}
.site-header {
    min-height: 320px;
    border-bottom: 3px solid #ffd503;
}
.home .site-header {
    min-height: 320px;
}
.main-navigation ul li a {
    font-weight: bold;
}

.main-navigation ul ul {
    min-width: 230px;
    width: 230px;
}
.main-navigation .main-nav ul ul li a {
    padding: 15px;
}

/* --- define width of logo in large header --- */
.site-header > .inside-header > .site-logo > a > .header-image {
  max-width: 160px;
}
.site-logo {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.25);
    border-radius: 7px;
}
.secondary-navigation {
    position: absolute;
    width: 100%;
    z-index: 10;
}
.secondary-navigation ul ul {
    min-width: 230px;
    width: 230px;
}
.secondary-navigation .main-nav ul li a, .secondary-navigation .menu-toggle {
    background-color: #00346a;
}
.menu-toggle .mobile-menu {
    font-weight: bold;
}
button.menu-toggle {
    text-align: left;
}
.secondary-navigation .menu-toggle {
    text-align: right;
    width: auto;
    float:right;
}
.secondary-navigation .main-nav ul ul li a {
    padding: 10px;
}

a.wp-show-posts-read-more, a.wp-show-posts-read-more:visited {
    background-color: #00346a;
    color: #fff;
    border: 0;
    border-radius: 7px;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}
a.wp-show-posts-read-more:focus, a.wp-show-posts-read-more:hover {
    /* background-color: #204d7c; */
    background-color: #ffd503;
    color: #1c1c1c;
    border: 0;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}
.inside-article .entry-content a:not(.no-link-styling):not(.button):not(.button-subtle):not(.wp-block-button__link), .generate-sections-container:not(.no-link-styling) a:not(.button):not(.button-subtle):not(.wp-block-button__link) {
    border-bottom: 0;
}

.login form .input, .login input[type="text"] {
    padding: 0.5rem 1rem !important;
}
.usermenu_widget {
    padding-top: 6rem;
}
.usermenu_widget p:empty {
    display: none;
}
.usermenu_widget a {
    background-color: #204d7c;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 5px;
}
.usermenu_widget a:hover, .usermenu_widget a:focus, .usermenu_widget a:active {
    color: #ffd503;
}

button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background) {
    border-radius: 7px;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}
button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover, a.button:focus, a.wp-block-button__link:hover:not(.has-background) {
    background-color: #ffd503;
    color: #1c1c1c;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
    border-radius: 7px;
    color: #1c1c1c;
}
.small {
    font-size: .85rem;
}
input.mailpoet_submit {
    padding: 10px 20px !important;
}

/* ==========================================
=! HOME PAGE
------------------------------------------ */



/* ==========================================
=! CONTENT
------------------------------------------ */

.widget-area .widget {
    padding: 40px 20px;
}
.widget_mailpoet_form .widget-title {
    /* font-size: 1rem; */
}
.sidebar .widget .widget-title {
    color: #1c1c1c;
    margin-bottom: 1rem;
}
input.mailpoet_text {
    font-size: 1rem;
    padding: .25rem .5rem;
}
.mailpoet_text_label {
    font-size: 1rem;
    font-weight: normal !important;
}

.single-post .byline, .single-post .entry-meta .cat-links {
    display: none;
}
.wp-block-button .wp-block-button__link {
    border-radius: 0;
}

.wpcp-carousel-wrapper {
    /* filter: grayscale(1); */
    margin-bottom: 2em;
}
.wpcp-carousel-wrapper:hover {
    /* filter: grayscale(0); */
}

.wpcp-carousel-section.slick-initialized .slick-slide {
    max-height: 100px;
}
.wpcp-carousel-section .wpcp-single-item img {
    max-height: 48px;
    object-fit: scale-down;
}

.wp-show-posts-single.post {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid #00346a;
}
.wp-show-posts-single.post:first-child {
    margin-top: 0;
    border-top: 0;
}

.wp-block-file {
    background-color: #eee;
    padding: .75rem 1rem;
    font-size: .9rem;

}

.wp-block-file * + .wp-block-file__button {
	float:right;
	margin-left:0;
	margin-right: 0;
    margin-top: -.25rem;
}
.wp-block-file .wp-block-file__button {
	background-color: #00346a;
    border-radius: 7px;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3);
}
.wp-block-file .wp-block-file__button:hover {
	background-color: #ffd503;
    color: #1c1c1c !important;
    box-shadow: 1px 2px 7px rgba(0,0,0,.3) !important;
}
@media (max-width:768px) {
	.wp-block-file * + .wp-block-file__button {
		display:block;
		float:none;
		margin-top: .5rem;
		margin-right: 0;
		margin-left: 0;
	}
}

/* --- help container width line up with footer --- */
/* .gpc .site.container {
  max-width: 1180px;
} */

/* ==========================================
=! COMPONENTS
------------------------------------------ */

/* --- WordPress gallery --- */
.gallery-columns-2 .gallery-item,
.gallery-columns-3 .gallery-item,
.gallery-columns-4 .gallery-item,
.gallery-columns-5 .gallery-item,
.gallery-columns-6 .gallery-item,
.gallery-columns-7 .gallery-item,
.gallery-columns-8 .gallery-item,
.gallery-columns-9 .gallery-item {
  max-width: 50%;
}
@media screen and (min-width: 640px) {
  .gallery-columns-3 .gallery-item,
  .gallery-columns-4 .gallery-item,
  .gallery-columns-5 .gallery-item,
  .gallery-columns-6 .gallery-item,
  .gallery-columns-7 .gallery-item,
  .gallery-columns-8 .gallery-item,
  .gallery-columns-9 .gallery-item {
    max-width: 33.33%;
  }
}
@media screen and (min-width: 992px) {
  .gallery-columns-4 .gallery-item {
    max-width: 25%;
  }
  .gallery-columns-5 .gallery-item {
    max-width: 20%;
  }
  .gallery-columns-6 .gallery-item {
    max-width: 16.66%;
  }
  .gallery-columns-7 .gallery-item {
    max-width: 14.28%;
  }
  .gallery-columns-8 .gallery-item {
    max-width: 12.5%;
  }
  .gallery-columns-9 .gallery-item {
    max-width: 11.11%;
  }
}

/* --- size of ACF Google map --- */
.acf-map {
  width: 100%;
  height: 400px;
  border: #ccc solid 1px;
  margin: 20px 0;
}

/* --- fixes potential theme css conflict --- */
.acf-map img {
  max-width: inherit !important;
}

/* --- responsive video --- */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe, .video-container object, .video-container embed, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- breadcrumbs --- */
.breadcrumbs {
  font-size: 14px;
  margin-bottom: 10px;
  /* display: none; */
}

.wp-block-separator {
    width: 33%;
}

/* ==========================================
=! WIDGETS
------------------------------------------ */

/* --- GPC Sub Menu Widget --- */
.widget_gpc_sub_menu_widget .dropdown-menu-toggle { display: none; }
.widget_gpc_sub_menu_widget .menu-item-has-children .sub-menu { margin-left: 1.2em; }
.widget_gpc_sub_menu_widget .menu-item-has-children .sub-menu li { list-style: disc; }
.widget_gpc_sub_menu_widget .current-menu-item > a { font-weight: bold; }

/* ==========================================
=! FOOTER
------------------------------------------ */



/* ==========================================
=! OTHER
------------------------------------------ */

/* --- Plugin: Lightweight Grid Columns spacing fix --- */
.has-js .lgc-column { visibility: hidden; }
.lgc-row .lgc-column { visibility: visible; }
@media (min-width: 768px) {
  .lgc-row {
    margin-left: -20px;
    margin-right: -20px;
  }
}
.lgc-row .inside-grid-column {
  padding: 0 20px;
}

@media screen and (min-width: 769px) {
    #site-navigation {
        margin-top: 2rem;
        border-radius: 7px;
    }
}

@media screen and (max-width: 1160px) {
    .main-navigation .main-nav ul li a {
        padding-left: 15px;
        padding-right: 15px;
        font-size: .85rem;
    }
}
@media screen and (max-width: 992px) {
    .site-header > .inside-header > .site-logo > a > .header-image {
      max-width: 120px;
    }
}
@media screen and (max-width: 768px) {
    .wp-block-separator {
        width: 50%;
    }

    .separate-containers .inside-article {
        /* padding: 20px; */
    }
    .inside-header {
        padding: 30px;
    }
    .main-navigation .main-nav ul li a {
        font-size: 1.25rem;
        padding-left: 1rem;
    }
    .main-navigation .main-nav ul ul li a {
        font-size: 1rem;
        padding-left: 2rem;
    }

    .usermenu_widget {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


@media (max-width: 781px) and (min-width: 600px) {
    .wp-block-column:nth-child(2n) {
        margin-left: 0;
    }
}

@media screen and (min-width: 1160px) {
    .separate-containers .inside-article {
        padding-left: 0;
        padding-right: 0;
    }
    .home .site-header {
        min-height: 360px;
    }
}

@media screen and (min-width: 1280px) {
    body .grid-container {
        max-width: 1200px;
    }
}

@media screen and (min-width: 1440px) {
    body .grid-container {
        max-width: 1400px;
    }
}
