/*
Theme Name: Outdoor Agencies
Theme URI: https://outdooragencies.au/
Author: the New Best Friend
Requires at least: 6
Tested up to: 6.8.1
Requires PHP: 8.0
Version: 1.0
Text Domain: outdoor-agencies-blocks
*/


/*Futura PT Book*/
.has-font-style-futura {
  font-family: "futura-pt", sans-serif;
}

footer {
  margin-top: 0 !important;
}

html {
  scroll-behavior: smooth;
}

main.wp-block-group {
  margin-top: 0 !important;
}

img {
  display: block;
}

input::placeholder {
  opacity: 0.5;
}

.hide-on-mobile {
  @media (max-width: 781px) {
    & {
      display: none !important;
    }
  }
}
.hide-on-tablet {
  @media (min-width: 782px) and (max-width: 1009px) {
    & {
      display: none !important;
    }
  }
}
.hide-on-desktop {
  @media (min-width: 1010px) {
    & {
      display: none !important;
    }
  }
}
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}

/*
 * CHANGE CONTENT ORDER
 */
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.order-3 {
  order: 3;
}
@media (max-width: 781px) {
  .order-mobile-1 {
    order: 1;
  }
  .order-mobile-2 {
    order: 2;
  }
  .order-mobile-3 {
    order: 3;
  }

  .align-mobile-start {
    justify-content: flex-start;
  }
}

.w-100 {
  width: 100%;
}

@media (max-width: 781px) {
  .mt-0 {
    margin-top: 0 !important;
  }
  .mb-0 {
    margin-bottom: 0 !important;
  }
  .my-0 {
    margin-block: 0 !important;
  }
  .ml-0 {
    margin-left: 0 !important;
  }
  .mr-0 {
    margin-right: 0 !important;
  }
  .mx-0 {
    margin-inline: 0 !important;
  }  
}

.is-position-sticky {
  top: 0;
  z-index: 1;
  &.bottom {
    top: unset !important;
    bottom: 0;
  }
}

.wp-block-embed__wrapper iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;  
}


/* Fix rotated text for mobile */
@media (max-width: 785px) {
  *.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]) {
    rotate: 0deg !important;
    text-align: left !important;
    writing-mode: initial !important;
  }
}

.post-card {  
  position: relative;
  overflow: hidden;
  transition: 0.4s background-color ease-out;
  cursor: pointer;
  &.hide-button {
    & a {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      opacity: 0;
      margin: 0 !important;
      padding: 0 !important;
      z-index: 1;
    }
  }  
  &:hover {
    text-decoration: none !important;
    transition: 0s background-color ease;
    /*background-color: color-mix(in srgb, var(--nbf-base) 95%, black 5%) !important;*/
  }
}

.post-card p:has(> .brand-logo) {
  text-align: center;
  & .brand-logo {
    margin: auto !important;
  }
}

.is-layout-grid {
  > * { /* grid children */
    min-width: 0;
    box-sizing: border-box;
  }  
  @media (max-width: 900px) {
    & {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }   
  }

  @media (max-width: 500px) {
    & {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }   
  }  
}


@media (max-width: 781px) {
  .wp-block-buttons.is-content-justification-center {
    justify-content: flex-start;
  }
  .has-text-align-center {
    text-align: left !important;
  }
}

.gallery-marquee .wp-block-gallery.is-style-marquee {
  box-sizing: border-box;
  margin: 0;
}
.gallery-marquee .gallery-marquee-item .wp-block-image {
  height: unset !important;
  display: block !important;
  margin: 0 !important;
}
.gallery-marquee .gallery-marquee-item .wp-block-image img {
    width: 250px !important;
    height: 150px !important;
    object-fit: contain !important;
}