/*
 Theme Name:   Workshop 6 Theme
 Theme URI:    https://workshp6.co.nz
 Description:  Workshop 6 Theme
 Author:       Dane Mitchell
 Author URI:   https://onoff.co.nz
 Template:     generatepress
 Version:      0.1
*/

:root {
  --swiper-theme-color: #ffffff !important;
  --sc-font-sans: sharp_grotesk_book20;
}

body {
  --wp--preset--spacing--70: 30px;
}

html {
  scroll-behavior: smooth;
}

/* Fonts */
@font-face {
  font-family: 'sharp_grotesk_book20';
  src: url('fonts/Book20.woff2') format('woff2'),
       url('fonts/Book20.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'sharp_grotesk_book22';
  src: url('fonts/Book22.woff2') format('woff2'),
       url('fonts/Book22.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'sharp_grotesk_book_itl20';
  src: url('fonts/Italic20.woff2') format('woff2'),
       url('fonts/Italic20.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

.statement_span {
  font-family: 'sharp_grotesk_book22';
  text-transform: uppercase;
  font-size: 150%;
}

.white {
  color: var(--white);
}

.overflow-hidden > .gb-grid-column {
  overflow-y: hidden;
  overflow-x: hidden;
}

/* Mega Menu */
.menu-link {
  font-size: 24px;
  margin-right: 10px;
}

.megamenu_link {
  text-align: left;
  margin-bottom: 1em;
}

.megamenu_link a {
  font-size: 14px;
  text-align: left !important;
  margin-bottom: 0.6em;
}

.megamenu_link a:active,
.megamenu_link a:hover {
  color: var(--black);
  margin-left: 15px;
}

.megamenu_link a:hover::before,
.megamenu_link a:active::before {
  content: "→";
  font-size: 14px;
  position: absolute;
  color: var(--black);
  margin-left: -15px;
  line-height: 32px;
}

.main-navigation.offside {
  position: absolute !important;
  height: auto !important;
  top: 103px !important;
}

.main-navigation a {
  display: inline-block;
}

.slideout-navigation.do-overlay .slideout-exit {
  display: none !important;
}

.slideout-navigation.do-overlay .inside-navigation {
  max-width: 1200px !important;
  padding: 0 0 !important;
}

.menu-divider hr {
  margin-top: 30px;
}

@media (min-width: 768px) {

  .megamenu_link {
    margin-bottom: 0.6em;
  }

  .megamenu_link a {
    font-size: 21px;
  }
  
  .megamenu_link a:active,
  .megamenu_link a:hover {
    margin-left: 30px;
  }
  
  .megamenu_link a:hover::before,
  .megamenu_link a:active::before {
    font-size: 21px;
    margin-left: -30px;
    line-height: 38px;
  }
  
  .main-navigation.offside {
    top: 140px !important;
  }
  
  #megamenu_divider {
    width: 150px;
  }
}

/* Set the main content area to a minimum of 35vh */
#main {
	min-height: 35vh;
}

body {
	background-color: var(--white);
  transition: all 0.5s ease;
}

a {
  text-decoration-thickness: .125em;
  text-underline-offset: .6em;
}

.statement_span a {
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

/* Blog Post edits */

.inside-article div.featured-image, .post-image-above-header .inside-article div.post-image {
  margin-bottom: 25px !important;
}

.inside-article > .entry-content p a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.entry-meta {
  font-size: 14px;
  text-transform: uppercase;
  padding: 20px 0;
  margin: 0;
}

.link_arrow a {
  text-decoration: none !important;
}


/* Site Wrapper to set overall site max width */
.site-wrapper {
	width: 100%;
	max-width: 100%;
	background-color: var(--white);
} 

body {
	background-color: var(--white);
}

.hide:hover {
  display: none;
}

/* Surecart */

/* Buttons */
.sc-button__link {
  color: var(--black) !important;
  min-width: 150px;
}

.sc-button__link:hover,
.sc-button__link:focus {
  color: var(--white) !important;
}

/* Grid fix */
.wp-container-surecart-product-list-is-layout-1 > * {
  display: grid;
}

/* Product */
.wp-block-surecart-product-page {
  padding: 20px !important;
}

/* Filter center fix */
.contained-width {
  max-width: 1200px;
  display: flex;
  align-items: center;
}

.filter-flex {
  display: flex;
}

.wp-block-surecart-product-image:hover img {
  transform: none;
}

.surecart-product-container {
  align-items: flex-end;
}

.surecart-product-info-container {
  position: absolute;
  padding-left: 30px;
  z-index: 10000;
  padding-bottom: 30px;
}

.wp-block-surecart-cart-menu-icon-button .sc-cart-icon svg {
  height: 21px;
  width: 21px;
  margin: 2px 8px 0 0;
}
.wp-block-surecart-cart-menu-icon-button .sc-cart-count {
  inset: -12px -8px auto auto;
}

.cart_padding {
  padding: 0;
}

.cart_container {
  margin: 0 0 50px 0;
}

@media (min-width: 768px) {
  .surecart-product-info-container {
    padding-left: 50px;
    padding-bottom: 30px;
  }

  .wp-block-surecart-product-page {
    padding: 0 50px !important;
  }

  .cart_padding {
    padding: 0 50px;
  }

  .cart_container {
    margin: 50px 0;
  }
}

/* Price block fix */
.shop_priceblock >div.wp-block-group__inner-container {
  padding: 20px 0 !important;
}

.wp-block-surecart-product-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.alignwide.wp-block-group:has(+.wp-block-surecart-product-list), .alignwide.wp-block-group:has(.wp-block-surecart-product-list), .alignwide.wp-block-surecart-product-list {
  margin-left: auto;
  margin-right: auto;
  max-width: 100% !important;
}


/* HELPER CLASSES */

/* Standard Shadow(s) */

.shadow-standard {
	box-shadow: 0px 5px 16px -5px rgba(33, 33, 33, 0.2);
	transition: all .2s ease-in;
}

.shadow-standard:hover {
	box-shadow: 0px 8px 32px 0px rgba(33, 33, 33, 0.1);
}

/* Max Width(s) */

.max-width-1024 {
	max-width: 1024px;
}

.max-width-768 {
	max-width: 768px;
}

.max-width-640 {
	max-width: 640px;
}

.max-width-480 {
	max-width: 480px;
}

/* Margin Auto */

.margin-auto{
	margin-left: auto;
	margin-right: auto;
}

/* Position Properties */

.relative{
	position: relative;
}

.absolute{
	position:absolute;
	top: 0px;
	left: 0px;
}

.sticky,
.inside-right-sidebar{
	position: sticky;
	top: 100px;
}

/* Image Aspect Ratios */

.square {
  aspect-ratio: 1;
}

.aspect-1-1 img{
    aspect-ratio: 1/1;
	object-fit: cover;
}

.aspect-3-2 img{
    aspect-ratio: 3/2;
	object-fit: cover;
}

.aspect-2-3 img{
    aspect-ratio: 2/3;
	object-fit: cover;
}

.aspect-4-3 img{
    aspect-ratio: 4/3;
	object-fit: cover;
}

.aspect-3-4 img{
    aspect-ratio: 3/4;
	object-fit: cover;
}

.aspect-16-9 img{
    aspect-ratio: 16/9;
	object-fit: cover;
}

.aspect-9-16 img{
    aspect-ratio: 9/16;
	object-fit: cover;
} 
/* Turned off for Sure card grid
.alignwide {
  max-width: 1100px !important;
}
*/

/* Grid containers */
.news_container > div > div {
  margin: 50px 25px 0 25px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 50px;
}

.cta_container {
  margin-bottom: 0px;
}

.cta_container > div > div {
  margin: 0 25px 50px 25px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 25px;
}

.news_container > div > div:last-child,
.cta_container > div > div:last-child {
  border-bottom: none;
  margin-bottom: 0px;
}

/* Scrollers */

/* WP Swiper */

.swiper-button-prev {
  left: 30px !important;
  right: auto;
}

.swiper-button-next {
  right: 30px !important;
  left: auto;
}

.news_slider .swiper-button-next {
  color: var(--black) !important;
}

.wp-swiper__wrapper {
  margin-bottom: 0px !important;
}

/* Timeline slider */

.timeline_container {
  padding: 150px 0;
}

.eedee-gutenslider-prev {
  left: -30px !important;
}

.eedee-gutenslider-next {
  right: -30px !important;
}

.timeline_frame {
  min-width: 100%;
}

.slide-content {
  min-width: 100% !important;
  text-align: center;
}

/* Banner scroller */
.scroller {
  animation: slideleft 25s infinite linear;
  white-space: nowrap;
  }
  
  @keyframes slideleft {
  0% {transform:translate(-100%)}
  100% {transform:translate(100%)}
  }

/* A11y Slider 
	.slider { display:flex; }
	.slider>*{ width: 28%; flex: 0 0 auto;	}
	.slider { margin-top: .25em; }
	.a11y-slider-autoplay {	margin-left: 1em;	}
	.a11y-slider-next {float: right;}
	.a11y-slider-prev::before,.a11y-slider-next::after { display:  inline-block;	width: 25px; }
	.a11y-slider-prev::before { content: "\2190"; }
	.a11y-slider-next::after { content: "\2192"; }
  .a11y-slider-prev,.a11y-slider-next {
    background-color: unset;
    color: var(--black)
  }
*/
/* Responsive Typography and Logo */

@media (min-width: 450px) {

  .news_container > div > div {
    border-right: 2px solid var(--black);
    padding: 0 25px 50px 25px;
    padding-bottom: none;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
  }

  .cta_container > div > div {
    border-right: 2px solid var(--black);
    padding: 0 50px;
    padding-bottom: none;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
  }

  .timeline_container > div > div > div,
  .slide-content {
    border-right: 2px solid var(--black);
    padding: 0 26px;
    padding-bottom: none;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
  }

  .slide-content {
    max-height: fit-content;
    display: flex;
    align-self: center;
    max-width: 300px;
    text-align: center;
    padding: 0 26px;
  }

  .wp-block-eedee-block-gutenslider .wp-block-eedee-block-gutenslide.is-position-center-center .slide-content {
    justify-content: flex-start;
    min-height: 150px;
  }

  .timeline_container > div > div > div p {
    margin-bottom: 0;
  }

  .eedee-gutenslider-prev {
    left: -50px;
  }
  
  .news_container > div > div:first-child,
  .cta_container > div > div:first-child {
    padding-left: none;
  }
  
  .news_container > div > div:last-child,
  .timeline_container > div > div > div:last-child {
    border-right: none;
  }
}



@media (min-width: 768px) {
  .intro {
    font-size: 2.2rem;
  } 

  main h2 {
      font-size: 21px; /* Increase for tablets */
    }

  #notifications {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .intro {
    font-size: 2rem;
  }   
  
  main h2 {
    font-size: 21px; /* Increase for desktops */
  }
 
  .workshop_container {
    padding: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1220px) {
  .workshop_container {
    padding: 0 50px;
  }
}

@media (min-width: 1440px) {
    main h2 {
        font-size: 21px; /* Increase for large desktops */
    }
}

/* Border control */
.subhead_border__top {
  border-top: 2px solid var(--black);
}

.subhead_border__bottom {
  border-bottom: 2px solid var(--black);
}

/* Buttons */
.button_arrow {
  padding: 20px 0;
  text-transform: uppercase;
  font-size: 16px;
}

.button_arrow a {
  text-decoration: none !important;
}

.button_arrow::after {
  content: "→";
  margin-left: 8px;
  font-size: 21px;
  position: absolute;
}

/* Form styling */
.site-footer input[type="text"], 
.site-footer input[type="email"]  {
  border: 2px solid;
  border-radius: 50px;
  padding: 10px 15px;
  max-width: 100%;
  margin-bottom: 20px;
}

.site-footer input[type="text"],
.site-footer input[type="text"]:focus,
.site-footer input[type="email"],
.site-footer input[type="email"]:focus,
.site-footer input[type="submit"] {
  background-color: var(--black);
}

.site-footer input[type="submit"] {
  color: #ffffff;
  border: 2px solid;
  border-radius: 30px;
  width: 80%;
  max-width: 210px;
  text-align: left;
}

.site-footer input[type="submit"]:hover {
  color: var(--black);
  background-color: var(--white)
}

.response {
  margin: 0 0 20px 20px;
}

.gform_button {
  border: 2px solid black !important;
  border-radius: 50px;
}

body .gform_wrapper .gform_footer input:hover[type=submit] {
	color: var(--white) !important;
}

/* Smash Balloon feed */
.sbi_info_wrapper {
  padding-top: 50px;
}

.sbi_info {
  border-right: 2px solid var(--black);
}

#sbi_images {
  padding: 0 !important;
}

#sb_instagram .sbi_info p {
  text-align: left;
  line-height: 1.875em;
  padding: 0 50px;
}

.smash_container{
  background-color: var(--silver);
  padding-bottom: 50px;
}

.sbi-owl-dots {
  display: none;
}

.sbi-owl-prev {
  left: 40px !important;
}

.sbi-owl-next {
  right: 40px !important;
}

.w6-button_dark {
  color: var(--black);
  border: 2px solid var(--black);
}

.w6-button_dark:hover {
  color: var(--white) !important;
  background-color: var(--black) !important;
}