/*!
Theme Name: Rapid Fence
Theme URI: http://underscores.me/
Author: Digital On Demand
Author URI: http://www.digitalondemand.com.au
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rapidfence
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

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

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

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

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

fieldset{
	padding: 0px;
	border: none
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #E50019;
}

.has-inline-color > a {
    color: inherit;
}

a:hover,
a:focus,
a:active {
	color: inherit;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}


.ginput_container{
	display: flex;
	flex-wrap: wrap;
}

.ginput_container span{
	flex-grow: 1;
	margin-right: 1.6em;
}

.gfield_description textarea{
	flex: 100;
}

/* Forms
--------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: black;
	background: transparent;
	border: 0;
	border-bottom:1px solid black;
	border-radius: 0;
	padding: 10px;
	width:100%;
	    line-height: 1.6em;
    margin-bottom: 0.8em;
	margin-top: 0.4em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
/*  background: linear-gradient(to left, white 30%, rgba(255,255,255,0) 100%); */
	border-color: #E50019;
/* 	outline:0; */
}

.gform-body input[type="text"],
.gform-body input[type="email"],
.gform-body input[type="url"],
.gform-body input[type="password"],
.gform-body input[type="search"],
.gform-body input[type="number"],
.gform-body input[type="tel"],
.gform-body input[type="range"],
.gform-body input[type="date"],
.gform-body input[type="month"],
.gform-body input[type="week"],
.gform-body input[type="time"],
.gform-body input[type="datetime"],
.gform-body input[type="datetime-local"],
.gform-body input[type="color"],
.gform-body textarea{
	background: white;
	margin-right: 1.6em;
}

	.gform_button{
		margin-right: 1.6em;
	}

.ginput_container_fileupload input{
	color: white;
}

.gform-body .address_line_1, .gform-body .ginput_address_line_2{
    width: -webkit-fill-available;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}


/* CUSTOM STYLES BEGIN HERE */

.has-red-background-color { background-color: #E50019; }
.has-red-color,
.wp-block-button__link.has-red-color:hover,
.wp-block-button__link.has-red-color:active,
.wp-block-button__link.has-red-color:focus,
.wp-block-button__link.has-red-color:visited { color: #E50019; }
.has-red-border { border: 2px solid #E50019; padding: 15px; }

.has-blue-background-color { background-color: #0054A6; }
.has-blue-color,
.wp-block-button__link.has-blue-color:hover,
.wp-block-button__link.has-blue-color:active,
.wp-block-button__link.has-blue-color:focus,
.wp-block-button__link.has-blue-color:visited { color: #0054A6; }

.has-black-background-color { background-color: #000; }
.has-black-color,
.wp-block-button__link.has-black-color:hover,
.wp-block-button__link.has-black-color:active,
.wp-block-button__link.has-black-color:focus,
.wp-block-button__link.has-black-color:visited { color: #000; }

.has-charcoal-background-color { background-color: #292929; }
.has-charcoal-color,
.wp-block-button__link.has-charcoal-color:hover,
.wp-block-button__link.has-charcoal-color:active,
.wp-block-button__link.has-charcoal-color:focus,
.wp-block-button__link.has-charcoal-color:visited { color: #292929; }

.has-silver-background-color { background-color: #F3F3F3; }
.has-silver-color,
.wp-block-button__link.has-silver-color:hover,
.wp-block-button__link.has-silver-color:active,
.wp-block-button__link.has-silver-color:focus,
.wp-block-button__link.has-silver-color:visited { color: #F3F3F3; }

.has-white-background-color { background-color: #fff; }
.has-white-color,
.wp-block-button__link.has-white-color:hover,
.wp-block-button__link.has-white-color:active,
.wp-block-button__link.has-white-color:focus,
.wp-block-button__link.has-white-color:visited { color: #fff; }

.black-stripes {
    background-color:black;
    background-image: linear-gradient(135deg, black 60%, transparent 100%), repeating-linear-gradient(45deg, black 0px, black 10px, #5b5b5b 10px, #5b5b5b 20px);
}
.charcoal-stripes {
    background-color:#292929;
    background-image: radial-gradient(circle, #292929 50%, transparent 100%), repeating-linear-gradient(45deg, #292929 0px, #292929 10px, #1e1e1e 10px, #1e1e1e 20px);
}

body {
    font-family: "Rubik", sans-serif;
    font-size:16px;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    font-weight:300;
    background:black;
    color:white;
    line-height:1.4;
}

.no-margin {
    margin:0;
}

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

h1 {
    font-size:44px;
    font-weight:400;
    margin:0 0 15px;
}

h2 {
    font-size:30px;
    text-transform:uppercase;
    font-weight:500;
}

h3 {
    font-size:24px;
    font-weight:normal;
}

.site-main {
    width:1360px;
    max-width:100%;
    margin: 0 auto;
    padding: 80px 30px;
}

body.tax-rf-product-category .site,
body.single-rf-product .site,
body.page-template-page-narrow .site,
body.page-template-page-calculator .site,
body.search .site {
    background:white;
    color:black;
}

body.page-template-page-narrow .site-main,
body.search .site-main {
    width:800px;
}

body.page-template-page-narrow h2,
body.page-template-page-narrow h3,
body.page-template-page-narrow h4 {
    font-weight:700;
    text-transform:none;
}

body h3.has-red-background-color,
body h3.has-blue-background-color{
    text-transform:uppercase;
    font-weight:500;
    padding:10px;
    padding-left:25%;
    position:relative;
}

body h3.has-red-background-color em,
body h3.has-blue-background-color em{
    font-style:normal;
    background:#000000;
    display:block;
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    padding:10px 20px;
    width: calc(25% - 15px);
}

body.page-template-page-no-padding .site-main {
    padding-top:0;
    padding-bottom:0;
}

.site-header {
    position:fixed;
    left:0;
    top:0;
    right:0;
    background: rgba(0,0,0,0.77);
    color:white;
    z-index:1000;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
}

.site-header-top {
    background:#E50019;
    padding:0 30px;
    width:100%;
    display:flex;
    justify-content:flex-end;
	align-items:center;
}

.site-header-top .search-form {
    display:flex;
    width:160px;
    max-width:100%;
}

.site-header-top .search-field {
    border:0;
    color:white;
}

.site-header-top .search-submit {
    display:none;
}

.site-header-top input:focus {
    background: rgba(255,255,255,0.3);
}

.site-header-top ::placeholder {
    color:white;
}

.site-header-region-select {
	position:relative;
}

.site-header-region-select button {
	display:flex;
	align-items:center;
	border:0px solid white;
	border-radius:0;
	padding:0;
	background:transparent;
	cursor:pointer;
	white-space:nowrap;
	color:white;
	font-size:14px;
	font-weight:bold;
}

.site-header-region-select button img {
	display:block;
	width:40px;
	margin-right:10px;
}

.site-header-region-select content {
	display:block;
	position:absolute;
	top:100%;
	right:0;
	background:white;
	color:black;
	padding:30px;
	
	transition: all 100ms ease-out;
	transform-origin: 100% 0%;
	transform:scale(0.8);
	opacity:0;
	visibility:hidden;
}

.site-header-region-select.open content {
	transform:scale(1);
	opacity:1;
	visibility:visible;
}

.site-header-region-select content p {
	margin: 0;
}

.site-header-region-select content ul {
	list-style-type:none;
	margin:15px 0 0;;
	padding:0;
	width:250px;
}

.site-header-region-select content ul li a {
	text-decoration:none;
}

.site-header-region-select content ul li img {
	width:32px;
	height:auto;
	vertical-align:middle;
	margin-right:5px;
}

.site-branding {
    max-width:20%;
    flex: 0 1 auto;
    /*margin-left:47px;*/
    margin-left:30px;
	padding:30px;
    background: url('images/brushed-steel.jpg') center no-repeat;
    background-size:cover;
}

.site-branding img {
    display:block;
}

.site-navigation-after {
    margin-left:30px;
    /*margin-right:47px;*/
	margin-right:30px;

}

.site-navigation-after img {
    display: block;
}

ul.menu {
    display:flex;
    justify-content:flex-end;
    list-style-type:none;
    padding:0;
    margin:0;
}

ul.menu a {
    color:inherit;
    text-decoration:none;
    display:block;
}

ul.menu a:hover {
    color:#E50019;
}

.entry-content :first-child {
    margin-top:0;
}

.entry-content :last-child {
    margin-bottom:0;
}

.entry-content p.has-text-align-center,
.entry-content h1.has-text-align-center,
.entry-content h2.has-text-align-center,
.entry-content h3.has-text-align-center,
.entry-content h4.has-text-align-center,
.entry-content h5.has-text-align-center {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

#site-navigation {
    flex: 1 1 auto;
}

#site-navigation .menu a {
    text-transform:uppercase;
    /*padding:25px 25px 10px;*/
    padding:25px 20px 15px;
    font-weight:400;
    transition: 150ms ease-out;
}

#site-navigation .menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 0 0 currentColor;
}

.site-footer {
    color:white;
    background:black;
    display:flex;
    width: 100%;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    padding: 50px 47px;
    line-height: 1.2;
}

.site-footer .menu a {
    margin-left: 30px;
}

.site-footer hr {
    border:0;
    background-color: #C4C4C4;
    width:100%;
    margin: 30px 0 20px;
}

.footer-logo {
    margin-right:30px;
}

.footer-info {
    margin-right:auto;
    margin-top:-4px;
}

.pre-footer {
    display:flex;
    width:100%;
    align-items:stretch;
    color:white;
}

.pre-footer-buttons {
    width:66.66%;
    padding:50px 30px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.pre-footer-buttons ul.menu > li {
    margin: 0 20px;
}

.pre-footer-bunnings {
    width:33.33%;
    padding:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#305C57;
}

.pre-footer-bunnings img {
    transform:scale(1);
    transition: 200ms ease-out;
}

.pre-footer-bunnings:hover img {
    transform:scale(1.1);
}

.wp-block-group.has-background {
    padding: 60px;
}


.alignfull {
    margin-left: calc((-100vw + 100%) / 2);
    width: 100vw;
}

.wp-block-cover.alignfull,
.wp-block-group.alignfull {
    padding-left: 30px;
    padding-right: 30px;
    padding-left: max(30px, calc((100vw - 100%) / 2));
    padding-right: max(30px, calc((100vw - 100%) / 2));
}

.wp-block-cover {
    justify-content:flex-start;
}

.wp-block-cover .wp-block-cover__inner-container {
    width:40%;
}

.wp-block-columns {
    margin-top:60px;
    margin-bottom:60px;
}

.wp-block-image a img {
    opacity:1;
    transition: opacity 200ms ease-out;
}

.wp-block-image a:hover img {
    opacity:0.8;
}

.wp-block-button__link,
.gform_button {
    font-family: "Rubik", sans-serif;
    border-radius:0;
    border:0;
    background:#E50019;
    color:white;
    font-size:16px;
    font-weight:500;
    text-transform:uppercase;
    padding: 3px 15px;
    cursor:pointer;
    transition: all 150ms ease-out;
}

.wp-block-button__link:hover,
.gform_button:hover  {
    background-color:white;
    color:black;
}

.wp-block-button__link.disabled {
    background: #333 !important;
    pointer-events:none;
    opacity:0.8;
}

.return-to-top-button {
    margin: -20px auto 40px;
    display: block;
    width: 300px;
    max-width: 100%;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 80px 30px;
    padding: 80px max(30px, calc(50% - 200px));
}

body.page-template-page-narrow .wp-block-media-text .wp-block-media-text__content {
    padding: 0;
    padding-left: 30px;
}

body.page-template-page-narrow .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0;
    padding-right: 30px;
}

body:not(.page-template-page-narrow) .wp-block-media-text h2,
body:not(.page-template-page-narrow) .wp-block-media-text h3,
body:not(.page-template-page-narrow) .wp-block-media-text h4 {
    color:#E50019;
}

.page-header {
    padding: 220px 30px 30px;
    padding-left: max(30px, calc((100vw - 1360px + 60px) / 2));
    padding-right: max(30px, calc((100vw - 1360px + 60px) / 2));
    
    background-color:black;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    position:relative;
    color:white;
}

body.home .page-header, 
body.page-id-1289 .page-header {
    padding-top:320px;
    padding-bottom:160px;
}

.page-header:before {
    content:'';
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 90%);
    z-index:0;
}

.page-header content {
    width:50%;
    display:block;
    position:relative;
    z-index:1;
}

.tile-row {
    display:flex;
    flex-wrap:wrap;
    margin-left:-50px;
    width: calc(100% + 50px);
}

.product-category-tile {
    margin-left:50px;
    width: calc(100% / 3 - 50px);
    text-align:center;
    margin-bottom:50px;
}

.product-category-tile h3 {
    background:#d4d4d4;
    padding:10px;
    color:black;
    margin:0;
}

.product-category-tile-image {
    display:block;
    margin: 0 0 10px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    height:0px;
    padding-top:41%;
    position:relative;
}

.product-category-tile.coming-soon .product-category-tile-image:before {
    content:'';
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom:0;
    background: rgba(255,255,255,0.6);
    z-index:1;
}

.product-category-tile.coming-soon .product-category-tile-image:after {
    content:'Coming Soon';
    position:absolute;
    display:block;
    color:#898989;
    text-transform:uppercase;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%) rotate(-20deg);
    font-weight:500;
    font-size:30px;
    white-space:nowrap;
    z-index:2;
}

.product-category-tile a {
    display:block;
    padding:10px;
    margin:0;
}

.product-category-pool-safe .wp-block-button__link {
    background-color:#0054A6;
}

.product-category-pool-safe .wp-block-button__link:hover {
    background-color:white;
}

.product-category-pool-safe .product-tile-content h2,
.product-category-pool-safe .has-red-color {
    color:#0054A6;
}

.product-category-pool-safe .product-tile-images a:first-child {
    border-color: #0054A6;
}

.product-category-commercial .product-tile-content h2:before {
    content: "Commercial ";
}

.product-tile {
    background:#F3F3F3;
    padding:60px;
    margin-bottom:50px;
    position:relative;
    display:flex;
    align-items:flex-start;
    overflow:hidden;
}

.product-tile-images {
    width: calc(25% + 10px - 60px);
    margin-left:-10px;
    margin-right:60px;
    display:flex;
    flex-wrap:wrap;
}

.product-tile-images a {
    display:block;
    width: calc(50% - 10px);
    height:auto;
    margin-bottom:10px;
    margin-left:10px;
}

.product-tile-images a:first-child {
    width: calc(100% - 10px);
    border-top:5px solid #E50019;
}

.product-tile-images a img {
    display:block;
    width:100%;
    height:auto;
}

.product-tile-content {
    width: 60%;
    display:block;
}

.product-tile-content h2 {
    color:#E50019;
    font-weight:700;
    margin: 0 0 10px;
    margin-top: -0.2em;
}

.product-tile-content h3 {
    text-transform:none;
    margin: 0 0 10px;
    font-weight:700;
}

.product-tile-content h3 span {
	font-weight:normal;
	font-size:16px;
}

.product-tile-content .entry-content {
	padding:10px 0;
}

.product-tile-details {
    list-style-type:none;
    padding: 0;
    background:white;
    margin: 20px 0;
}

.product-tile-details li {
    display:flex;
    padding: 6px 10px;
}

.product-tile-details li:not(:first-child) {
    border-top:3px solid #F3F3F3;
}

.product-tile-details li strong {
    width:160px;
    display:block;
}

.product-tile-icons {
    position:absolute;
    right:30px;
    top:60px;
    display:flex;
    justify-content:flex-end;
    align-items: flex-start;
}

.product-tile-icons .product-icon {
    width: 200px;
    height:auto;
    margin: -50px -55px;
    flex: 0 0 auto;
}

.rapidfence-social-icons {
    display:flex;
    justify-content:center;
    align-items:center;
    list-style-type:none;
    margin: 30px 0;
    padding:0;
}

.rapidfence-social-icons li a {
    display:block;
    width:62px;
    padding: 0 15px;
}

.rapidfence-social-icons svg {
    display:block;
    width:100%;
    fill:white;
    transform:scale(1);
    transition: transform 150ms ease-out;
}

.rapidfence-social-icons a:hover svg {
    transform:scale(1.2);
    fill:#E50019;
}

.rapidfence-social-icons svg * {
    fill:inherit;
    transition: fill 150ms ease-out;
}

#sb_instagram {
    padding-bottom:0 !important;
}

.product-height-filter {
    display:flex;
    margin-left:-30px;
    width: calc(100% + 30px);
    margin-bottom:80px;
}

.product-height-filter > a {
    display:block;
    width:100%;
    margin-left: 30px;
    text-align:center;
    padding:100px 25px 30px;
    cursor:pointer;
    background-size:cover;
    background-position:center;
    color:black;
    text-decoration:none;
    font-size:24px;
}

.product-height-filter > a span {
    font-weight:500;
    background:#D4D4D4;
    display:block;
    margin:0;
    padding:5px;
    text-transform:uppercase;
}

.product-height-heading {
    display:block;
    padding:30px 0;
    background-size:cover;
    background-position:center;
    font-size:40px;
}

.product-height-heading > span {
    font-weight:700;
    background:black;
    color:white;
    padding: 10px 30px;
}

/* Animatable sections */

.animatable-section {
    visibility:hidden;
    opacity:0;
    transform: translateY(80px);
    transition: none;
}

.animatable-section.scrolledPast {
    visibility:visible;
    opacity:1;
    transform: translateY(0);
    transition: opacity 0.3s linear,
                transform 1s cubic-bezier(0.165, 0.840, 0.440, 1.000);
}

/* Gravity Forms */

.gform_fields {
    list-style-type:none;
    margin: 0;
    padding:30px 0;
}

.gfield {
    position:relative;
    margin: 0 0 15px;
}

.gform-grid-col{
	display: grid;
}

.gfield_label {
    font-weight:700;
/*     position:absolute;
    left:0;
    top:10px;
    width: 100px;  */
}

.gfield.hidden_label .gfield_label {
	display:none;
}

/* .ginput_container input,
.ginput_container textarea {
    padding-left:100px;
} */

.gform_footer {
    text-align:right;
}

.gform_button {
    padding-left:50px;
    padding-right:50px;
}


/* MOBILE NAVIGATION */

.mobile-navigation {
    position:fixed;
    left:0;
    right:0;
    top:0;
    bottom:0;
    padding: 30px 30px 30px;
    z-index:999;
    text-align:center;
    visibility:hidden;
    opacity:0;
    transition: all 100ms ease-in;
    
    transform: translateX(-50px);
    background: rgba(0,0,0,0.921);
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-navigation-toggle {
    position:relative;
    z-index:1001;
    cursor:pointer;
    color:white;
    width:60px;
    height:40px;
    padding: 15px;
	order:3;
}

.mobile-navigation-toggle .hamburger-bar {
    width:30px;
    height:3px;
    background:white;
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-15px;
    margin-top:-3px;
    border-radius:3px;
    transition: transform 350ms ease-in-out;
}

.hamburger-bar:nth-child(1){
    transform:translateY(-10px);
}

.hamburger-bar:nth-child(3){
    transform:translateY(10px);
}

body.mobile-navigation-open .hamburger-bar:nth-child(1) {
    transform: translateY(0) rotate(-135deg);
}
body.mobile-navigation-open .hamburger-bar:nth-child(2) {
    transform: scaleX(0);
}
body.mobile-navigation-open .hamburger-bar:nth-child(3) {
    transform: translateY(0) rotate(135deg);
}

body.mobile-navigation-open .mobile-navigation {
    transition: all 300ms cubic-bezier(0.165, 0.840, 0.440, 1.000);
    visibility:visible;
    opacity:1;
    transform: translateX(0px);
}

.mobile-navigation .menu,
.mobile-navigation .sub-menu {
    list-style-type:none;
    flex-direction:column;
    padding:0;
    margin:0;
}

.mobile-navigation .menu li a {
    font-size:24px;
    color:white;
    text-transform:uppercase;
    text-decoration:none;
    padding: 15px;
    font-weight:500;
    display:block;
    line-height:1.1;
}

.mobile-navigation .menu li.current-menu-item a {
    color: #E50019;
    pointer-events:none;
}

/* Responsive */

@media only screen and (max-width : 1200px) {
    
    .site-branding {
        width: 30%;
        max-width:none;
        margin-left:15px;
    }
    
    .site-navigation-after {
        display:none;
    }
    
    #site-navigation .menu {
        margin-right:15px;
    }
    
    #site-navigation .menu a {
        padding-left:15px;    
        padding-right:15px;    
    }
    
    .product-height-filter {
        margin-left:-10px;
        width: calc(100% + 10px);
    }

    .product-height-filter > a {
        padding-left:10px;
        padding-right:10px;
        font-size:18px;
        margin-left:10px;
    }
    
}

@media only screen and (min-width : 782px) {
    
    .mobile-navigation-toggle {
        display:none;
    }
    
    .hidden-desktop {
        display:none;
    }
    
}



@media only screen and (max-width : 550px) {
	
.gform-body input[type="text"],
.gform-body input[type="email"],
.gform-body input[type="url"],
.gform-body input[type="password"],
.gform-body input[type="search"],
.gform-body input[type="number"],
.gform-body input[type="tel"],
.gform-body input[type="range"],
.gform-body input[type="date"],
.gform-body input[type="month"],
.gform-body input[type="week"],
.gform-body input[type="time"],
.gform-body input[type="datetime"],
.gform-body input[type="datetime-local"],
.gform-body input[type="color"],
.gform-body textarea{
	background: white;
	margin-right: 0em;
}
.ginput_container span{
	flex-grow: 1;
	margin-right: 0em;
}

	.gform_button{
		margin-right: 0em;
	}
}

@media only screen and (max-width : 781px) {
    
    body {
        font-size:14px;
    }
    
    h2 {
        font-size:24px;
    }
    
    h3 {
        font-size:18px;
    }
    
    .animatable-section,
    .animatable-section.scrolledPast {
        visibility:visible;
        opacity:1;
        transform: translateY(0);
        transition: none !important;
    }
    
    .hidden-mobile {
        display:none;
    }
    
    .main-navigation,
    .site-navigation-after {
        display:none;
    }
    
    .site-header {
        background:#E50019;
		flex-wrap:nowrap;
    }
    
    .site-branding {
        margin-left:0;
        width:75%;
        flex: 1 1 auto;
        padding: 16px 30px;
    }
	
	.site-header-top {
		width:52px;
		padding:0;
		order:2;
	}

    .wp-block-cover .wp-block-cover__inner-container {
        width:100%;
    }
    
    .wp-block-column:not(:last-child){
        margin-bottom:50px;
    }
    
    .wp-block-columns.mobile-columns {
        display:flex;
        flex-wrap:nowrap;
    }
    
    .wp-block-columns.mobile-columns .wp-block-column:not(:first-child) {
        margin-left:30px;
    }
    
    .wp-block-media-text .wp-block-media-text__content {
        padding: 40px 40px 60px;
    }
    
    body.page-template-page-narrow .wp-block-media-text .wp-block-media-text__content,
    body.page-template-page-narrow .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
        padding: 30px 0 0;
    }
    
    .wp-block-group.has-background {
        padding:30px;
        margin-left: -30px;
        width: calc(100% + 60px);
    }
    
    .wp-block-cover {
        min-height:0px !important;
        padding-top:100px;
    }
    
    .wp-block-button__link,
    .gform_button {
        font-size:12px;
    }
    
    .entry-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding-top:260px;
        padding-bottom:30px;
        background-size: auto 230px;
        background-position: center top;
        background-color: #292929;
    }
    
    body.home .page-header {
        padding-top:360px;
        padding-bottom:30px;
        background-size: auto 330px;
    }
    
    .page-header content {
        width:100%;
    }
    
    .page-header content h1 {
        font-size:20px;
    }
    
    .page-header content > :last-child {
        margin-bottom:0;
    }
    
    .site-main {
        padding: 30px;
    }
    
    .pre-footer-buttons {
        padding:0;
        background-image:none;
        background-color:#1c1c1c;
    }
    
    .pre-footer-bunnings {
        padding:15px;
    }
    
    .menu-pre-footer-buttons-container {
        width:100%;
    }
    
    .pre-footer ul.menu {
        width:100%;
        flex-direction:column;
    }
    .pre-footer ul.menu li {
        margin:0;
    }
    
    .pre-footer ul.menu a {
        background:transparent;
        width:100%;
        color:white;
        padding:15px 10px;
        font-size:12px;
    }
    
    .pre-footer ul.menu li:not(:first-child) a {
        border-top:1px solid #C4C4C4;
    }
    
    .footer-logo {
        margin-bottom:30px;
    }
    
    .site-footer {
        padding:30px;
    }
    
    .footer-navigation {
        width:100%;
    }
    
    .site-footer .menu {
        flex-direction:column;
    }
    
    .site-footer .menu li {
        margin: 15px 0 0;
    }
    
    .site-footer .menu li a {
        margin: 0;
    }
    
    .product-category-tile {
        width: calc(100% - 50px);
    }
    
    .wp-block-columns:not(.mobile-images-not-full-width) .wp-block-image a img {
        display:block;
        margin-left:-30px;
        width: calc(100% + 60px);
        max-width:none;
    }

    .entry-content p.has-text-align-center {
        width: auto;
    }
    
    .product-category-tile {
        margin-bottom:30px;
    }

    .product-tile {
        margin-left:-30px;
        width: calc(100% + 60px);
        flex-direction:column;
        padding:0;
    }
    
    .product-tile-images {
        width: calc(100% + 10px);
        order:1;
    }
    
    .product-tile-content {
        padding:30px;
        padding-right: 140px;
        width:100%;
        order:3;
    }
    
    .product-tile-icons {
        position:absolute;
        top:auto;
        bottom:30px;
        order:2;
        flex-direction:column;
    }

    .product-tile-icons .product-icon {
        margin-top:-20px;
        margin-bottom:-20px;
    }
    .product-tile .wp-block-button__link {
        margin-top:30px;
    }
    .product-height-filter {
        flex-direction:column;
        margin-left:0;
        width:100%;
    }

    .product-height-filter > a {
        margin-left: 0;
        margin-bottom:5px;
        padding:0;
        color:white;
        font-size:24px;
    }

    .product-height-filter > a span {
        background: rgba(0,0,0,0.5);
        padding:15px;
    }

    .product-height-heading {
        margin-left:-30px;
        width: calc(100% + 60px);
        font-size:28px;
    }
    
    #sb_instagram,
    #sb_instagram.sbi_width_resp {
        margin-left:-30px !important;
        width: calc(100% + 60px) !important;
    }
    
    #sb_instagram #sbi_images {
        padding:0 !important;
    }
}