/*!
Theme Name: Polekatz Chicago 2020
Theme URI: https://pilotdigital.com/themes/chicago-1924
Author: Pilot Digital
Author URI: http://pilotdigital.com
Description: first aerial circumnavigation of the world
Version: 1.0.0
Template: chicago-1924
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: chicago-1924
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Chicago 1924 is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/

:root {
    --primary: #111;
    --accent: #e63222;

    --accent-hover: #f54838;

    --neutral-100: #F0F0F0;
    --neutral-300: gainsboro;
    --neutral-500: #D4D4D4;
    --neutral-700: #777777;
    --neutral-900: #3B3B3B;

    font-size: 1.1rem;
}

body {
  background: var(--primary);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

h1, h2, h3, h4 {
  line-height: 1.2;
}

h1 {
  font-size: calc(1.75rem + .75vw);
  font-weight: 300;
}

h2 {
  font-size: calc(1.25rem + .25vw);
}

h3 {
  font-size: calc(1.1rem + .25vw);
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
}

p {
  line-height: 1.5;
  margin: 1rem 0 1.25rem 0;
}

blockquote {
  quotes: "\201C""\201D""\2018""\2019";
  margin: 1.5rem 0 1.5rem 1rem;
}

blockquote p {
  color: var(--primary);
  font-size: 1rem;
  padding: 2rem 1rem 1rem 1.75rem;
  margin: 0;
  position: relative;
}

blockquote p::before {
  content: open-quote;
  color: var(--accent);
  font-size: 5rem;
  position: absolute;
  top: -.3rem;
  left: -1rem;
}

blockquote cite {
  font-style: normal;
  padding-left: 1.75rem;
}

::selection {
  background: var(--accent);
  color: white;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

/* Links
========================================================================== */

a {
  color: white;
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
}

article a {
  transition: all .2s ease-in-out;
}

a.custom-logo-link,
#primary-menu a,
a.social,
a.post-thumbnail {
  border-bottom: 0;
}

a:hover,
.main-navigation #primary-menu > li:hover {
  background: var(--accent);
}

a:focus,
button:focus {
  outline: 1px dotted var(--neutral-300);
}

a:focus,
a:active {
  text-decoration: none;
}

a:active {
  background: var(--accent);
  color: white;
}

a.custom-logo-link:hover,
a.custom-logo-link:active,
a.post-thumbnail:hover {
  background: none;
}

/* Buttons
========================================================================== */

button,
input[type=submit],
.wp-block-button__link {
  background: var(--accent);
  border: 0;
  border-radius: 0;
  color: white;
  cursor: pointer;
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: normal;
  padding: .75rem 1.25rem;
  margin: 1rem 0;
  transition: all .2s ease-in-out;
}

button:hover,
input[type=submit]:hover,
.wp-block-button__link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.is-style-outline .wp-block-button__link {
  background: none;
  border: 2px solid var(--accent);
  color: white;
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Menus
========================================================================== */

.main-navigation {
  width: auto;
}

.main-navigation #primary-menu > li {
  font-size: .95rem;
  padding: 1.5rem 1rem;
}

.main-navigation #primary-menu > li.menu-item-has-children::after {
  color: white;
  content: '\e313';
  font-family: 'Material Icons';
  font-weight: normal;
  margin-left: 0;
}

.main-navigation #primary-menu > li.menu-item-has-children.menu-open:after {
  transform: rotate(180deg);
}

.main-navigation #primary-menu > li a {
  padding: .25rem .35rem;
}

.main-navigation #primary-menu.noMegaMenu > li > .isVisible {
  background: var(--accent);
}

.main-navigation #primary-menu .sub-menu li:not(.menu-header):hover,
.search-box-wrapper {
  background: none;
}

.main-navigation #primary-menu .sub-menu li:not(.menu-header):hover a {
  color: white;
}

.main-navigation li .sub-menu li {
  line-height: 2;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* Wrapper class widths */

.content-width,
.single .entry-content,
.single .post-thumbnail,
.single .entry-footer {
  max-width: var(--contentWidth);
}

.main-width,
.wall-to-wall .wp-block-group__inner-container,
.progressive-grid.wrapper,
.entry-content.wrapper,
.entry-footer.wrapper,
.site-info-block.wrapper,
.site-info.wrapper {
  max-width: var(--mainWidth);
}

.content-width,
.main-width,
.wall-to-wall .wp-block-group__inner-container,
.site-info-block,
.single .entry-content,
.single .post-thumbnail,
.single .entry-footer {
  margin: auto;
  padding: 0 1.5rem;
}

/* Flex
========================================================================== */

.flex,
.site-header .wrapper,
#primary-menu {
  display: flex;
  flex-flow: row wrap;
}

.site-branding,
.site-search {
  flex: 0 1 auto;
}

.main-navigation {
  flex: 1 1 auto;
}

/* Flex Alignment */

.site-header .wrapper,
.main-navigation {
  align-items: center;
}

/* CSS Grid
========================================================================== */

.site-main > article > .entry-header,
.blog main > header,
.site-main .page-header {
  display: -ms-grid;
  display: grid;
  gap: 0 1.5rem;
}

.site-main > article > .entry-header,
.blog main > header,
.site-main .page-header {
   -ms-grid-columns: (1fr)[8];
   grid-template-columns:
    [full-start] minmax(0, 1fr)
    [main-start] repeat(6, minmax(0, 9.5rem))
    [main-end] minmax(0, 1fr) [full-end];
}

.page .site-main > article.has-post-thumbnail > .entry-header {
   -ms-grid-rows: 1fr 1fr 1fr;
  grid-template-rows: 1fr max-content 1fr;
}

/* CSS Grid Column Placement */

.site-main > article .entry-header h1,
.site-main > article .entry-header .h-intro-txt,
.site-main > article .entry-header .entry-sub-title,
.site-main > article .entry-header #breadcrumbs,
.blog main > header h1,
.site-main .page-header h1 {
  -ms-grid-column-span: 3;
  -ms-grid-column: 2;
  grid-column: 2 / span 3;
}

.page .site-main > article > .entry-header img.headerImage {
  -ms-grid-column-span: 4;
  -ms-grid-column: 4;
  grid-column: 4 / span 4;
}

.single .site-main > article .entry-header h1 {
  -ms-grid-column-span: 6;
  -ms-grid-column: 2;
  grid-column: 2 / span 6;
  text-align: center;
}

/* CSS Row Column Placement */

.page .site-main > article > .entry-header img.headerImage {
  -ms-grid-row-span: 3;
  -ms-grid-row: 1;
  grid-row: 1 / span 3;
}

.site-main > article .entry-header h1 {
  -ms-grid-row-span: 1;
  -ms-grid-row: 1;
  grid-row: 1;
}

.site-main > article .entry-header .entry-sub-title {
  -ms-grid-row-span: 1;
  -ms-grid-row: 2;
  grid-row: 2;
}

.site-main > article .entry-header .h-intro-txt {
  -ms-grid-row-span: 1;
  -ms-grid-row: 3;
  grid-row: 3;
}

/* CSS Grid Alignment */

.site-main > article .entry-header h1 {
  -ms-grid-row-align: center;
  align-self: center;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

hr {
  background: var(--neutral-300);
  border: none;
  height: 1px;
}

.is-style-default {
  max-width: 50%;
}

time {
  margin-top: .5rem;
}

/* Lists
========================================================================== */

ul,
ol {
  list-style: none;
  margin: 0 0 1.5rem 0;
}

article ul {
  list-style-type: disc;
}

article ul ul {
  list-style-type: circle;
}

article ol {
  list-style-type: decimal;
}

article ol ol {
  list-style-type: lower-alpha;
}

ul li,
ol li {
  line-height: 1.3;
  margin: .75rem 0;
}

li::marker {
  color: var(--accent);
}

/* Tables
========================================================================== */

table {
  border-collapse: collapse;
  margin: 1em 0 3rem;
  width: 100%;
}

thead th {
  background: var(--accent);
  color: white;
}

tr {
  border-bottom: 1px solid var(--neutral-300);
  line-height: 2;
}

th,
td {
  line-height: 1.5;
  padding: .5em;
  text-align: left;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: var(--neutral-100);
}

/* Forms
========================================================================== */

form {
  margin-bottom: 1.5rem;
}

form ul {
  padding: 0;
}

form ul li::before {
  display: none;
}

.form-label {
  display: block;
  line-height: 2;
  font-size: .9rem;
  font-weight: 700;
}

input,
textarea,
select {
  font-size: .95rem;
  padding: .5rem;
  border: 1px solid var(--neutral-900);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

::placeholder {
  color: var(--neutral-700);
  font-weight: normal;
}

/* Custom select arrow */

select {
  background-image: url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJjYXJldC1kb3duIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtY2FyZXQtZG93biBmYS13LTEwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0zMS4zIDE5MmgyNTcuM2MxNy44IDAgMjYuNyAyMS41IDE0LjEgMzQuMUwxNzQuMSAzNTQuOGMtNy44IDcuOC0yMC41IDcuOC0yOC4zIDBMMTcuMiAyMjYuMUM0LjYgMjEzLjUgMTMuNSAxOTIgMzEuMyAxOTJ6Ii8+PC9zdmc+);
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  background-size: .5rem;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
}

select option {
  font-size: .85rem;
}

/* Gravity Forms */

.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]) {
  border-color: var(--neutral-500) !important;
}

.gform_wrapper .gfield_required {
  color: var(--accent-hover) !important;
}

#input_2_5 {
  background: var(--neutral-900);
  color: white;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.page,
.post {
  margin: 0;
}

.edit-link {
  display: block;
}


/* Headers
========================================================================== */

a.custom-logo-link {
  padding-top: 1rem;
}

.site-main > article .entry-header,
.site-main .page-header,
.site-main > header {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.h-intro-txt a.wp-block-button__link {
  display: inline-block;
}

.site-main > article > .entry-header img.headerImage {
  object-fit: cover;
  height: 100%;
}

.page .site-main > article.has-post-thumbnail > .entry-header {
  height: 500px;
}

/* Pages
========================================================================== */

.entry-content > .wp-block-columns:first-of-type .wp-block-column:first-child > .wp-block-image img {
  min-height: 400px;
  object-fit: cover;
}

/* Search */

/* .search .flex article {
  flex: 0 1 30%;
  margin: 1.5%;
  margin-bottom: 1.5%;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--primary);
} */

/* Posts
========================================================================== */

/* Archives */

.archive .flex article {
  flex: 1 1 30%;
  margin: 1%;
  display: flex;
  flex-direction: column;
}

.archive .flex article .entry-footer {
  margin: 0;
}

@supports (display: grid) {

  .archive .progressive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

.blog .progressive-grid > article {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--neutral-100);
}

/* Widget areas and custom blocks
	 ========================================================================== */

.wp-block-latest-posts {
  margin-top: 4rem;

}

.wp-block-latest-posts__featured-image img {
  object-fit: cover;
  height: 225px;
  width: 100%;
}

.blocks-gallery-grid .blocks-gallery-image,
.blocks-gallery-grid .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-image,
.wp-block-gallery .blocks-gallery-item {
  flex-grow: 0;
}

/* Slick Slider */

.carousel .slick-slider {
  -ms-grid-columns: 2rem 1fr 2rem;
  grid-template-columns: 2rem 1fr 2rem;
  gap: 0 1rem;
}

.carousel .slick-slider div.slick-list {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 2 / 3;
}

.carousel .slick-slider ul.slick-dots {
  grid-row: 2;
  padding: 0;
}

.carousel .slick-slider ul.slick-dots > li > button {
  border-color: var(--neutral-100);
  width: 16px;
  height: 16px;
}

.carousel .slick-slider ul.slick-dots > li.slick-active > button {
  background: var(--accent);
}

.carousel .slick-slider button {
  align-self: center;
  position: relative;
  height: 2rem;
  width: 2rem;
}

.slick-slider .slick-prev,
.slick-slider .slick-next {
  text-indent: -10rem;
}

.slick-slider .slick-prev::after,
.slick-slider .slick-next::after {
  font-size: 1rem;
  background: var(--accent);
  padding: .5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  vertical-align: middle;
}

/* Footer
	 ========================================================================== */

.site-footer {
  background: black;
  font-size: .95rem;
  padding-top: 2rem;
  margin-top: 4rem;
}

.site-footer h3 {
  font-size: 1.1rem;
}

.site-info > p {
  font-size: .85rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

.widget_wpb_widget_chicago_socail a.social:first-of-type {
  margin-left: 0;
}

.social::after {
  font-size: 1.5rem;
  padding: .25rem;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

@media screen and (max-width: 1180px) {
  .main-navigation #primary-menu > li {
    font-size: .9rem;
    padding: 1rem .5rem;
  }
}

@media screen and (max-width: 1048px) {

  .main-navigation {
    flex: 1 1 95%;
  }

  .site-header.menu-right .main-navigation > div > ul {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 768px) {

/* Begin parent mobile menu css */
  .main-navigation button.menu-toggle {
    display: block;
    padding: .5rem;
    margin-left: auto;
    text-indent: -10rem;
    width: 2rem;
    float: right;
    overflow: hidden;
    line-height: 0;
  }

  .main-navigation.isFixed button.menu-toggle {
    float: none;
  }

  #nav-icon {
    margin: 0;
  }

  .menu-primary-container {
    display: none;
    visibility: hidden;
  }

  .main-navigation.toggled .menu-primary-container {
    display: block;
    visibility: visible;
    margin-top: 1rem;
    padding-top: 2rem;
  }

  .noThumbMenu .main-navigation.toggled.isFixed.tallerThanScreen .menu-primary-container {
    height: 100vh;
  }

  .noThumbMenu .main-navigation.toggled {
    background: var(--primary);
    height: 100%;
    padding: 0 1.5rem 1.5rem;
  }

  .main-navigation #primary-menu > li.menu-item-has-children.menu-open::after {
    background: none;
  }

  #primary-menu {
    flex-direction: column;
  }

  .main-navigation #primary-menu li .sub-menu {
    margin-top: .5rem;
  }

  .main-navigation #primary-menu li .sub-menu li {
    padding: 0 .5rem;
  }

  .search-in-menu.search-box-wrapper {
    position: relative;
    bottom: 0;
    background: 0 0;
    padding: 1rem 0;
  }

  .search-in-menu.search-box-wrapper .search-box {
    padding: 0;
  }

  .search-form {
    width: 100%;
  }

/* End parent mobile menu css */

  .site-branding,
  .main-navigation {
    flex: 1 1 auto;
  }

  .custom-logo {
    max-width: 250px;
  }
}

@media screen and (max-width: 600px) {

  .site-main > article .entry-header h1,
  .site-main > article .entry-header .h-intro-txt,
  .site-main > article .entry-header .entry-sub-title,
  .site-main > article .entry-header #breadcrumbs,
  .blog main > header h1,
  .site-main .page-header h1 {
    -ms-grid-column-span: 6;
    -ms-grid-column: 2;
    grid-column: 2 / span 6;
  }

  .page .site-main > article > .entry-header img.headerImage {
    -ms-grid-column-span: 5;
    -ms-grid-column: 3;
    grid-column: 3 / span 5;
    opacity: .75;
  }

  .site-main > article .entry-header,
  .site-main .page-header,
  .site-main > header {
    margin-bottom: 1rem;
  }

  .entry-content > .wp-block-columns:first-of-type .wp-block-column:first-child > .wp-block-image {
    margin-top: 0;
  }
}

@media screen and (max-width: 480px) {

  .entry-content > .wp-block-columns:first-of-type .wp-block-column:last-child {
    order: 1;
  }

  .entry-content > .wp-block-columns:first-of-type .wp-block-column:first-child {
    order: 2;
  }

  .entry-content > .wp-block-columns:first-of-type .wp-block-column:first-child > .wp-block-image img {
    min-height: auto;
    width: 100%;
  }
}

/* Parent Theme Overrides */

.wrapper,
.entry-content,
.entry-footer {
  border-left: 0 !important;
  border-right: 0 !important;
}
