/**
* Theme/Project Name
* ==================
* Design: PROJECT NAME
* Author: True Market
* Version 1.0
*
* Table of Contents
* =================
Custom Properties
Mixins
Fonts
Reset
Pages
Typography
Layouts
Components

*/
:root {
  font-size: 62.5%;
  /* Colours */
  --white: #fff;
  --black: #000;
  --grey: rgba(112, 112, 112, 0.05);
  /* Box Shadow */
  --box-shadow: 0 0 40px rgb(0 0 0 / 10%);
  /* Transitions */
  /* Spacing */
  --bottom-spacing: 3rem;
  --padding-inline: 4rem;
}

@media all and (max-width: 1100px) {
  :root {
    font-size: 50%;
  }
}
@media all and (max-width: 800px) {
  :root {
    --padding-inline: 2rem;
  }
}
/* 
==========
Custom Font Families 
==========

Follow these steps to generate @font-face fonts (if .woff files were not provided for you, otherwise, skip to step 5)
1. Go to assets/fonts and delete everything in there.
2. Go to https://transfonter.org/ and upload the fonts that were provided to you
3. Download the kit
4. Extract the zip and copy the files in assets/fonts
5. Now simply change the urls and font names (font-family) in this file to match your new fonts. Remove unnecessary ones
6. Update typography.scss with the new fonts
*/
@font-face {
  font-family: "Mont";
  src: local("Mont Regular"), local("Mont-Regular"), url("../../fonts/Mont-Regular.woff2") format("woff2"), url("../../fonts/Mont-Regular.woff") format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mont Bold";
  src: local("Mont Bold"), local("Mont-Bold"), url("../../fonts/Mont-Bold.woff2") format("woff2"), url("../../fonts/Mont-Bold.woff") format("woff");
  font-style: normal;
  font-display: swap;
}
.large-text {
  font-size: var(--text-45);
  font-family: var(--font-heavy);
  line-height: 1.2;
}

.text-align-center::after {
  margin: 1rem auto;
}

.text-align-right::after {
  margin: 1rem 0;
}

.typography {
  --base: 6vw;
  --text-12: clamp(0.6rem, var(--base), 1.2rem);
  --text-16: clamp(0.8rem, var(--base), 1.6rem);
  --text-20: clamp(1rem, var(--base), 2rem);
  --text-24: clamp(1.2rem, var(--base), 2.4rem);
  --text-30: clamp(1.5rem, var(--base), 3rem);
  --text-40: clamp(2rem, var(--base), 4rem);
  --text-45: clamp(2.25rem, var(--base), 4.5rem);
  --text-50: clamp(3.5rem, var(--base), 5rem);
  --text-90: clamp(4.5rem, var(--base), 9rem);
  --font-regular: "Mont", system-ui, sans-serif;
  --font-heavy: "Mont Bold", system-ui, sans-serif;
  font-family: var(--font-regular);
  font-size: var(--text-20);
  font-weight: normal;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heavy);
  line-height: 1.2;
  display: block;
}

h1 {
  font-size: var(--text-90);
}

h2 {
  font-size: var(--text-50);
}

h3 {
  font-size: var(--text-40);
}

h4 {
  font-size: var(--text-30);
}

h5 {
  font-size: var(--text-24);
}

h6 {
  font-size: var(--text-20);
}

p {
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
  min-width: 300px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 10rem;
}
@media screen and (max-width: 1100px) {
  html,
  body {
    font-size: 87.5%;
  }
}

a:not(header a) {
  text-decoration: none;
  font-family: var(--font-heavy);
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background-color: transparent;
}
button:hover, button:active, button:focus {
  cursor: pointer;
}

input,
button,
textarea,
select {
  font: inherit;
}

img,
picture,
video,
canvas,
iframe,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

#root, #__next {
  isolation: isolate;
}

.home-hero {
  display: grid;
  place-content: center;
  padding-inline: 4rem;
  padding-block: 12rem;
}

.home-hero__container {
  max-width: 900px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
}

.page-404 {
  display: grid;
  place-content: center;
  height: 90vh;
}

.page-404__container {
  text-align: center;
}

.page-404__error {
  font-size: clamp(9rem, 8vw, 12rem);
  font-family: var(--font-heavy);
  margin: 0;
  line-height: 0.8;
}

.page-404__title {
  margin: 0 0 3rem;
  font-family: var(--font-regular);
  font-size: clamp(4rem, 6vw, 6rem);
}

.page-404__text {
  max-width: 600px;
  margin: 0 auto 2rem;
}

:root {
  --max-width: 1400px;
}

.tm-container {
  max-width: var(--max-width);
  padding-inline: var(--padding-inline);
}

.tm-container--center {
  margin: 0 auto;
}

.page-wrapper {
  padding-block: var(--padding-inline);
}

.has-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4rem;
}

.page-content {
  grid-column: span 2;
}

@media screen and (max-width: 800px) {
  .sidebar {
    grid-column: span 3;
  }
  .page-content {
    grid-column: span 3;
  }
}
.block-wrapper {
  margin: 0 0 3rem;
  position: relative;
  z-index: 1;
}

.dropdown {
  --padding: 3rem;
  margin-block-end: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.dropdown:last-child {
  margin-block-end: 0;
}
.dropdown::marker {
  content: none;
}
.dropdown[open] .dropdown__icon {
  transform: rotate(180deg);
}

.dropdown::details-content {
  display: block;
  block-size: 0;
  overflow: hidden;
  transition-timing-function: ease;
  transition-property: block-size, content-visibility, opacity;
  transition-duration: 0.3s;
  transition-behavior: allow-discrete;
  opacity: 0;
}

.dropdown[open]::details-content {
  block-size: auto;
  block-size: calc-size(auto, size);
  opacity: 1;
}

.dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  cursor: pointer;
  outline: thin;
  padding-inline: 3rem;
  padding-block: 2rem;
  font-family: var(--font-heavy);
}

.dropdown__icon {
  display: block;
  width: 20px;
  stroke: var(--black);
  stroke-width: 2px;
  transition: transform 0.2s ease;
}

.dropdown__content {
  transition: all 0.3s ease;
  padding: 1rem 10rem 3rem 3rem;
}
.dropdown__content p {
  margin: 0 0 1rem;
}
.dropdown__content p:last-child {
  margin: 0;
}

.dropdown__inner {
  border-left: 2px solid var(--grey);
  padding-inline-start: 3rem;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-block-end: var(--bottom-spacing);
}

.embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: unset;
}

.quote {
  position: relative;
  background-color: var(--white);
  color: var(--color-body-text);
  box-shadow: var(--box-shadow);
  border-radius: 1rem;
  padding: 4rem;
  clear: both;
  margin: 0;
  margin-block-end: var(--bottom-spacing);
}

.quote__icon {
  position: absolute;
  width: 100px;
  top: 1.5rem;
  left: 2rem;
  opacity: 0.2;
}
.quote__icon svg {
  fill: var(--black);
}

/**  List Styles **/
.text-block {
  clear: both;
}
.text-block ul,
.text-block ol {
  list-style: none;
  padding: 0;
  padding-left: 3.5rem;
  clear: both;
  margin: 0;
  margin-block-end: var(--bottom-spacing);
}
.text-block ul ul,
.text-block ul ol,
.text-block ol ul,
.text-block ol ol {
  margin-top: 1rem;
  padding-left: 2.5rem;
}
.text-block ul li,
.text-block ol li {
  position: relative;
  margin: 2rem 0 0;
}
.text-block ul li::before {
  content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.87 17.8"><g data-name="Layer 2"><path style="fill:%23000" d="m0 2.12 6.59 6.91-6.51 6.61 2.19 2.16 8.6-8.73L2.22 0 0 2.12z" data-name="Layer 1"/></g></svg>');
  display: block;
  position: absolute;
  left: -2rem;
  width: 8px;
}
.text-block ul li ul {
  margin: 0;
  list-style: disc;
}
.text-block ul li ul li::before {
  display: none;
}
.text-block ul li ul ul {
  list-style: circle;
}
.text-block ol {
  counter-reset: item;
}
.text-block ol li {
  counter-increment: item;
  padding-left: 0.5rem;
}
.text-block ol li::before {
  content: counter(item, decimal-leading-zero);
  display: block;
  position: absolute;
  left: -3rem;
  top: 0;
  padding-top: 0.25rem;
  padding-right: 1rem;
  line-height: 0.8;
}
.text-block ol ol {
  margin: 0;
  list-style: lower-latin;
}
.text-block ol ol li::before {
  display: none;
}
.text-block ol ol ol {
  list-style: lower-roman;
}

/**  Text Styles **/
.text-block h2,
.text-block h3,
.text-block h4,
.text-block h5 {
  margin: 0;
  margin-block-end: var(--bottom-spacing);
  margin-block-start: 4rem;
}

.image-block {
  margin-block-end: var(--bottom-spacing);
  position: relative;
  z-index: 1;
}
.image-block a {
  display: inline-block;
}
.image-block img {
  -o-object-fit: cover;
     object-fit: cover;
}

.image-block--ratio-default img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-block--ratio-landscape img {
  aspect-ratio: 4/3;
}

.image-block--ratio-wide-landscape img {
  aspect-ratio: 16/9;
}

.image-block--ratio-square img {
  aspect-ratio: 1/1;
}

.spacer {
  display: block;
  clear: both;
}

.button-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block-end: var(--bottom-spacing);
}

.button-group--align-center {
  justify-content: center;
}

.button-group--align-right {
  justify-content: flex-end;
}

.media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  background-color: var(--grey);
  padding: 4rem 3rem;
  border-radius: 2rem;
  cursor: pointer;
}
@media screen and (max-width: 500px) {
  .media {
    padding: 3rem;
    gap: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
.media:hover .media__icon {
  transform: scale(1.05);
}
.media a {
  color: inherit;
  flex: 50;
}

.media__icon {
  transition: all 0.3s ease;
}

.media--pdf .media__icon {
  width: 75px;
}
@media screen and (max-width: 500px) {
  .media--pdf .media__icon {
    width: 50px;
  }
}

.media--video .media__icon {
  width: 90px;
}
@media screen and (max-width: 500px) {
  .media--video .media__icon {
    width: 60px;
  }
}
@media screen and (max-width: 360px) {
  .media--video .media__icon {
    width: 40px;
  }
}

.media__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.media__pretitle {
  margin-block-end: 1rem;
  text-transform: uppercase;
  font-family: var(--font-regular);
  font-weight: 700;
  font-size: var(--text-16);
  letter-spacing: 2.4px;
}
@media screen and (max-width: 500px) {
  .media__pretitle {
    display: none;
  }
}

.media__pretitle--mobile {
  display: none;
  margin-block-end: 0;
}
@media screen and (max-width: 500px) {
  .media__pretitle--mobile {
    display: block;
  }
}

.media__title {
  margin: 0;
  font-size: var(--text-30);
}

.button {
  display: inline-block;
  border: 2px solid var(--black);
  padding: 1rem 2rem;
  clear: both;
}

.article {
  background-color: var(--white);
  color: var(--color-body-text);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 620px;
}

.article--sidebar {
  margin: 0 0 2rem;
}

.article__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.article__body {
  padding: 4rem;
}

.article__title {
  margin: 0 0 2rem;
}
.article__title a {
  color: var(--black);
}

.article__subtext {
  display: inline-block;
}

.article__category::after {
  content: ", ";
}
.article__category:last-child::after {
  display: none;
}

.article__excerpt {
  margin: 2rem 0 0;
}
.article__excerpt p {
  margin: 0;
}

.article__button {
  display: inline-block;
  margin: 2rem 0 0;
}

.footer {
  text-align: center;
  font-size: var(--text-16);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__truemarket {
  font-family: var(--font-regular);
  font-size: var(--text-16);
}
.footer__truemarket a {
  font-family: var(--font-heavy);
}

form input,
form textarea,
form select {
  display: block;
  padding: 1rem;
  width: 100%;
  font-size: inherit;
  color: inherit;
  margin-block-end: 1rem;
  border: none;
  background-color: var(--grey);
}
form input::-moz-placeholder, form textarea::-moz-placeholder, form select::-moz-placeholder {
  -moz-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  font-size: inherit;
}
form input::placeholder,
form textarea::placeholder,
form select::placeholder {
  transition: opacity 0.3s ease;
  font-size: inherit;
}
form input:focus::-moz-placeholder, form textarea:focus::-moz-placeholder, form select:focus::-moz-placeholder {
  opacity: 0;
}
form input:focus::placeholder,
form textarea:focus::placeholder,
form select:focus::placeholder {
  opacity: 0;
}
form textarea {
  resize: none;
}
form label {
  font-size: inherit;
  font-family: var(--font-regular);
}
form input[type=checkbox] {
  display: inline;
  width: auto;
}

.asterisk {
  color: red;
}

/* Visually hide the labels */
.forminator-label {
  clip-path: inset(100%);
  clip: rect(1px 1px 1px 1px); /* IE 6/7 */
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; /* added line */
  width: 1px;
}

.forminator-grouped-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 1.5rem;
}
@media screen and (max-width: 800px) {
  .forminator-grouped-fields {
    grid-template-columns: 1fr;
    grid-gap: 0;
  }
}

.forminator-row,
.forminator-col {
  margin: 0 !important;
  padding: 0 !important;
}

.forminator-error-message {
  display: block;
  color: #f94e5f;
  font-size: 70%;
  margin-block-end: 1rem;
}

@media all and (max-width: 800px) {
  .forminator-2-col .forminator-grouped-fields {
    grid-template-columns: 1fr;
  }
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 4rem 0;
  transition: all 0.3s ease;
  z-index: 999;
}
.header a {
  text-decoration: none;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
}

.header__navigation {
  display: flex;
  align-items: center;
}

.header__logo {
  position: relative;
  z-index: 999;
  color: var(--black);
}
.header__logo h3 {
  margin: 0;
}

.is-header-scrolled .header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1019607843);
  padding: 1rem 0;
}

.hero {
  background-color: var(--grey);
  padding: 14rem 0 6rem;
}

.hero__title {
  margin: 0;
  max-width: 800px;
}

@media screen and (max-width: 1100px) {
  .desktop-navigation {
    display: none;
  }
}
.desktop-navigation .menu-item {
  margin-left: 2rem;
  position: relative;
  cursor: pointer;
}
.desktop-navigation .menu-item a {
  position: relative;
}
.desktop-navigation .menu-item-has-children {
  position: relative;
}
.desktop-navigation .menu-item-has-children::before {
  content: "";
  display: block;
  height: 40px;
  width: 100%;
  position: absolute;
  top: 1rem;
}
.desktop-navigation .menu-item-has-children a::after {
  bottom: 0.35rem;
}
.desktop-navigation .menu-item-has-children:hover a::after {
  transform: rotate(180deg) translateY(-0.6rem);
}
.desktop-navigation .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.desktop-navigation .sub-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 3rem;
  left: 0;
  padding: 2rem;
  width: 255px;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0px 1px 20px 10px rgba(0, 0, 0, 0.15);
  z-index: 990;
  list-style: none;
}
.desktop-navigation .sub-menu .sub-menu {
  position: relative;
  box-shadow: none;
  top: 0;
  width: 100%;
  padding: 1.5rem 0 0 1.5rem;
}

.menu-item-has-children a {
  padding-right: 2.5rem;
}
.menu-item-has-children a::after {
  content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.06 6.59"><path d="m10.53.53-5 5-5-5" style="fill:none;stroke:%23222;stroke-miterlimit:10;stroke-width:1.5px"/></svg>');
  display: block;
  width: 12px;
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  transition: 0.2s ease all;
}
@media screen and (max-width: 1100px) {
  .menu-item-has-children a::after {
    right: -1rem;
  }
}
.menu-item-has-children a:not(.sub-menu a) {
  pointer-events: none;
  position: relative;
}

.navigation {
  margin: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}
.navigation .menu-item {
  margin: 0;
}

.sub-menu .menu-item {
  margin: 0 0 1rem;
}
.sub-menu .menu-item:last-child {
  margin: 0;
}
.sub-menu .menu-item::before {
  display: none;
}
.sub-menu .menu-item a::after {
  display: none;
}

.mobile-navigation {
  display: none;
  position: absolute;
  z-index: 995;
  top: -5rem;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 15rem 0 4rem 0;
  background: var(--white);
  box-shadow: var(--box-shadow);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.5s ease, opacity 0.4s ease;
}
@media screen and (max-width: 1100px) {
  .mobile-navigation {
    display: block;
  }
}
@media screen and (max-width: 500px) {
  .mobile-navigation {
    padding-top: 13rem;
  }
}
@media screen and (max-width: 375px) {
  .mobile-navigation {
    padding-top: 12rem;
  }
}
.mobile-navigation .menu-item {
  position: relative;
  flex-direction: column;
  text-align: center;
  font-size: var(--text-30);
  margin: 0 0 4rem;
}
.mobile-navigation .menu-item a {
  color: var(--color-body-text);
}
.mobile-navigation .sub-menu {
  opacity: 0;
  max-height: 0;
  visibility: hidden;
  width: 100%;
  transition: all 0.4s ease;
  list-style: none;
  padding-left: 0;
  padding-top: 1rem;
}
.mobile-navigation .sub-menu .menu-item {
  margin: 0 0 1rem;
}
.mobile-navigation .sub-menu .menu-item a {
  font-size: var(--text-20);
  margin-left: 1rem;
}

.menu {
  list-style: none;
}
.menu li::before {
  display: none;
}

.is-submenu-open .sub-menu {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
}
.is-submenu-open a::after {
  transform: rotate(180deg) translateY(-0.6rem);
}

.is-menu-open .mobile-navigation {
  opacity: 1;
  transform: translateY(0%);
}

.sidebar__category {
  display: block;
  margin: 0 0 2rem;
}
.sidebar__category:last-child {
  margin: 0;
}

.burger {
  display: none;
  width: 25px;
  height: 25px;
}
@media screen and (max-width: 1100px) {
  .burger {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    transform: translateY(-0.2rem);
    z-index: 999;
  }
}

.burger__line {
  display: block;
  width: 23px;
  height: 2px;
  background-color: var(--black);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  right: 0;
  top: 50%;
}
.burger__line:nth-child(1) {
  transform: translateY(-8px);
}
.burger__line:nth-child(3) {
  transform: translateY(8px);
}

.burger__line--shorter {
  width: 15px;
}

.is-burger-active .burger__line--shorter {
  opacity: 0;
}
.is-burger-active .burger__line:nth-child(1) {
  transform: rotate(43deg);
}
.is-burger-active .burger__line:nth-child(3) {
  transform: rotate(-43deg);
}

.category__item--is-active {
  background-color: var(--grey);
  padding: 1rem;
}

.horizontal-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  -moz-column-gap: 4rem;
       column-gap: 4rem;
  row-gap: 1rem;
  grid-column: span 3;
  margin-block-end: 2rem;
}

.horizontal-categories__title {
  margin: 0;
}

.horizontal-categories__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.modal {
  display: block; /** <-- Required to make the animation work */
  max-width: 1400px;
  width: 90%;
  opacity: 0;
  transform: translateY(15%);
  transition: transform 0.4s ease, opacity 0.2s ease;
  border: none;
  visibility: hidden;
  overflow: visible;
}
@media screen and (max-width: 500px) {
  .modal {
    width: 94%;
  }
}

.modal::backdrop {
  background: rgba(30, 68, 103, 0.8);
  backdrop-filter: blur(2px);
}

.modal[open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 0;
  right: -5rem;
  cursor: pointer;
  width: 25px;
}
@media screen and (max-width: 1100px) {
  .close-modal {
    top: -6rem;
    right: 0;
  }
}
@media screen and (max-width: 800px) {
  .close-modal {
    width: 20px;
    top: -4rem;
  }
}

.modal--video {
  padding: 0;
}
.modal--video .modal__content {
  aspect-ratio: 16/9;
}
.modal--video iframe {
  width: 100%;
  height: 100%;
}

.gallery {
  display: grid;
  gap: 1rem;
  margin-block: 3rem;
}

.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);
}

@media screen and (max-width: 1400px) {
  .gallery-columns-2, .gallery-columns-3, .gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.flexible-layout-wrapper {
  position: relative;
}

.flexible-section {
  --border-radius: 4rem;
  position: relative;
  padding-block: 12rem;
  padding-inline: 4rem;
  max-width: 1620px;
  margin: 0 auto 2rem auto;
  border-radius: var(--border-radius);
  /* Remove bottom margin from last block in a column */
}
@media screen and (max-width: 1100px) {
  .flexible-section {
    padding-block: 8rem;
  }
}
@media screen and (max-width: 800px) {
  .flexible-section {
    padding-block: 6rem;
  }
}
@media screen and (max-width: 500px) {
  .flexible-section {
    padding-inline: 2rem;
    padding-block: 4rem;
    border-radius: 2rem;
  }
}
@media screen and (max-width: 360px) {
  .flexible-section {
    border-radius: 0;
  }
}
.flexible-section .block-wrapper:last-of-type {
  margin-bottom: 0;
}
.flexible-section .post-list {
  margin-block-end: 4rem;
}
.flexible-section .button {
  color: inherit;
}

.edit-section-btn {
  position: absolute;
  top: 3rem;
  right: 4rem;
  color: #000;
  padding: 5px 10px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  transition: all 0.2s ease;
}
.edit-section-btn img {
  width: 20px;
}
.edit-section-btn:hover {
  background: rgb(255, 255, 255);
  opacity: 0.9;
}

/* ============= OPTIONS ============= */
.flexible-section--remove-bottom-spacing {
  margin-block-end: 0;
  padding-block-end: 0;
}

.flexible-section--remove-top-spacing {
  padding-block-start: 0;
  margin-block-start: 0;
}

.flexible-section--reduce-width {
  max-width: 900px;
}
@media screen and (max-width: 1100px) {
  .flexible-section--reduce-width {
    max-width: 100%;
  }
}

.flexible-section__title--align-left {
  text-align: left;
}

.flexible-section__title--align-center {
  text-align: center;
}

.flexible-section__title--align-right {
  text-align: right;
}

.flexible-section--full-width {
  max-width: 100%;
  border-radius: 0;
}

.flexible-section--has-divider::before {
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M1000 0H0v52C62.5 28 125 4 250 4c250 0 250 96 500 96 125 0 187.5-24 250-48V0Z" fill="%23FFFFFF"></path></svg>');
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 0;
}

.flexible-section--divider-top::before {
  top: -0.5rem;
}

.flexible-section--divider-bottom::before {
  bottom: 0;
  transform: rotate(180deg);
}

.flexible-section--divider-top-bottom::before {
  top: -0.5rem;
}
.flexible-section--divider-top-bottom::after {
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M1000 0H0v52C62.5 28 125 4 250 4c250 0 250 96 500 96 125 0 187.5-24 250-48V0Z" fill="%23FFFFFF"></path></svg>');
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  z-index: 0;
  transform: rotate(180deg);
}

.flexible-section--has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
.flexible-section--has-bg-image .text-block {
  text-shadow: #000 0px 0px 10px;
}

.flexible-section--parallax {
  background-attachment: fixed;
}

.flexible-section-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
}

/* ============= COLOURS ============= */
/* LIGHT & DARK --------------------------------------------------------------------------------------------------------------- */
.flexible-section--light .dropdown,
.flexible-section--dark .dropdown {
  background-color: var(--white);
}

/* LIGHT --------------------------------------------------------------------------------------------------------------------- */
.flexible-section--light {
  background-color: var(--grey);
}
.flexible-section--light .media {
  background: var(--white);
}

/* DARK --------------------------------------------------------------------------------------------------------------------- */
.flexible-section--dark {
  background-color: var(--black);
  color: var(--white);
}
.flexible-section--dark .quote,
.flexible-section--dark .media {
  background-color: var(--white);
  color: var(--black);
}
.flexible-section--dark .button:not(.article .button, .dropdown__label, .dropdown__inner) {
  border-color: var(--white);
  color: var(--white);
}
.flexible-section--dark .dropdown__toggle,
.flexible-section--dark .dropdown__inner {
  color: var(--black);
}
.flexible-section--dark .article .article__excerpt,
.flexible-section--dark .article .button {
  color: var(--black);
}

/* ============= COLUMN HANDLING ============= */
.flexible-section__container {
  display: grid;
  gap: clamp(2rem, 4vw, 12rem);
}

.flexible-section__container--center {
  align-items: center;
}

.flexible-section__container--flex-end {
  align-items: flex-end;
}

@media screen and (max-width: 800px) {
  .flexible-section__container--reverse .flexbile-section__column:first-child {
    order: 2;
  }
  .flexible-section__container--reverse .flexbile-section__column:last-child {
    order: 1;
  }
}

.flexible-section__container--2-cols {
  grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 800px) {
  .flexible-section__container--2-cols {
    grid-template-columns: 1fr;
  }
}

.flexible-section__container--3-cols,
.flexible-section__container--2-thirds-1-third,
.flexible-section__container--1-third-2-thirds {
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 800px) {
  .flexible-section__container--3-cols,
  .flexible-section__container--2-thirds-1-third,
  .flexible-section__container--1-third-2-thirds {
    grid-template-columns: 1fr;
  }
}

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

@media screen and (max-width: 1100px) {
  .flexible-section__container--3-cols,
  .flexible-section__container--4-cols,
  .flexible-section__container--2_thirds_1_third,
  .flexible-section__container--1_third_2_thirds {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 960px) {
  .flexible-section__container--3-cols,
  .flexible-section__container--4-cols,
  .flexible-section__container--2_thirds_1_third,
  .flexible-section__container--1_third_2_thirds {
    grid-template-columns: 1fr;
  }
}

.flexible-section__container--2-thirds-1-third .flexbile-section__column:nth-child(1) {
  grid-column: span 2;
}

.flexible-section__container--1-third-2-thirds .flexbile-section__column:nth-child(2) {
  grid-column: span 2;
}

.hidden {
  display: none;
}

.hidden--visually {
  clip-path: inset(100%);
  clip: rect(1px 1px 1px 1px); /* IE 6/7 */
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; /* added line */
  width: 1px;
}

.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}

.aligncenter {
  margin: 3rem auto;
}
