/*
Theme Name: ICC
Theme URI: https://ideart.com.au
Author: Marcin Urbanski | IDEART
Author URI: https://ideart.com.au
Description: Child theme twentytwentyfour
Requires at least: 7.0
Tested up to: 7.2
Requires PHP: 5.7
Version: 1.4.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: ideart_configurator
Tags:
*/

/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --oa-accent: #eeeeee;
  --oa-white: #ffffff;
  --oa-red: #ed0000;
  --oa-black: #000000;
  --oa-text-dark: #333333;
  --oa-input-bg: #dddddd;
}

/* ==========================================================
   BASE
   ========================================================== */

html,
body {
  overflow-x: hidden;
  touch-action: pan-x pan-y;
  cursor: default;
}

:active,
:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-template-part {
  padding: 0;
  margin: 0;
}

.wp-block-group {
  gap: 5px !important;
  margin: 0 !important;
}

.wp-block-columns {
  padding: 2px 6px;
  margin: 2px 6px;
}

.top_bar {
  align-items: center !important;
}

.mega-menu-wrap {
  border-bottom: 2px solid var(--oa-white) !important;
  box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.3) !important;
  -webkit-box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.3);
}

/* ==========================================================
   GALLERY GRID
   ========================================================== */

.wp-block-post-template.is-layout-grid {
  align-items: stretch;
}

.gallery_tile {
  min-width: 140px;
  height: 100%;
  display: flex;
  border-color: #777 !important;
  text-align: center;
  vertical-align: middle;
  border-radius: 14px !important;
  filter: brightness(0.98);
  transform: scale(1);
  transform-origin: center;
  background: #666 !important;
  background: linear-gradient(
    180deg,
    rgb(160, 160, 160) 0%,
    rgb(190, 190, 190) 40%,
    rgb(110, 110, 110) 100%
  ) !important;

  transition:
    transform 0.25s ease,
    filter 0.3s ease,
    border 0.2s ease;
}

.gallery_tile:hover {
  border-color: var(--oa-white) !important;
  filter: brightness(1.15);
  transform: scale(1.03);
}

.gallery_tile .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.car_image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-top: 20px !important;
  box-sizing: border-box;
}

.car_image img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 auto;
  border-radius: 0 !important;
  object-fit: contain;
  object-position: center;
}

.gallery_tile .wp-block-column h2 {
  font-size: 16px !important;
  background: none !important;
  padding-bottom: 0 !important;
}

.gallery_tile .wp-block-column a:hover {
  text-decoration: none !important;
}

.wp-block-column .wp-block-post-excerpt {
  padding-top: 0 !important;
  font-size: 14px !important;
}

/* ==========================================================
   SEARCH
   ========================================================== */

.wp-block-search__input {
  color: var(--oa-text-dark) !important;
  padding: 2px 6px;
  border: 2px solid var(--oa-white) !important;
  font-size: 13px !important;
  background-color: var(--oa-input-bg) !important;
}

.wp-block-search__button {
  border: 2px solid var(--oa-white) !important;
  transition:
    background-color 0.3s ease,
    border 0.3s ease;
}

.wp-block-search__button:hover {
  background-color: var(--oa-white) !important;
  border: 2px solid var(--oa-black) !important;
}

.wp-block-search__button:hover .search-icon path {
  fill: var(--oa-black) !important;
}

/* ==========================================================
   FOOTER
   ========================================================== */

@media (max-width: 768px) {
  .footer-info-group .footer-columns,
  .footer-info-group .footer-columns.is-layout-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-info-group .footer-columns .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .footer-info-group .footer-columns .wp-block-column p {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.1;
  }
}

/* ==========================================================
   STICKY FOOTER
   ========================================================== */

html,
body {
  min-height: 100%;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
}

.wp-site-blocks > footer {
  margin-top: auto !important;
  flex-shrink: 0;
}

/* ==========================================================
   FOOTER
   ========================================================== */

html,
body {
  min-height: 100%;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
}

.wp-site-blocks > footer {
  margin-top: auto !important;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-info-group .footer-columns,
  .footer-info-group .footer-columns.is-layout-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-info-group .footer-columns .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .footer-info-group .footer-columns .wp-block-column p {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.1;
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  .gallery_tile .wp-block-column h2 {
    font-size: 14px !important;
  }

  .wp-block-column .wp-block-post-excerpt {
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  .wp-block-post-template.is-layout-grid.wp-block-post-template-is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .wp-block-post-template.is-layout-grid {
    gap: 4px;
  }
  .gallery_tile .wp-block-column h2 {
    font-size: 12px !important;
  }

  .wp-block-group {
    padding: 4px 4px !important;
  }

  .wp-block-post {
    margin-bottom: 14px !important;
  }

  .wp-block-query .wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .wp-block-search__input {
    width: 180px;
  }
}

@media (max-width: 500px) {
  .site_title {
    margin-right: 10px !important;
  }
  .wp-block-search__input {
    font-size: 16px !important;
  }

  .gallery_tile .wp-block-column h2 {
    font-size: 11px !important;
    font-weight: 700;
  }

  .wp-block-column .wp-block-post-excerpt {
    font-size: 10px !important;
  }

  .wp-block-group {
    padding: 1px !important;
    margin: 0 !important;
    gap: 2px !important;
  }

  .has-global-padding {
    padding: 1px !important;
  }
}
