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

File#: _2_grid-switch
Title: Grid Switch
Descr: A grid/list layout switcher
Usage: codyhouse.co/license

-------------------------------- */
/* variables */
:root {
  /* colors */
  --gt5-color-primary-hsl: 250, 84%, 54%;
  --gt5-color-bg-hsl: 0, 0%, 100%;
  --gt5-color-contrast-high-hsl: 230, 7%, 23%;
  --gt5-color-contrast-higher-hsl: 230, 13%, 9%;
  --gt5-color-contrast-medium-hsl: 225, 4%, 47%;
  --gt5-color-accent-hsl: 342, 89%, 48%;
  --gt5-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --gt5-space-xs: 0.5rem;
  --gt5-space-sm: 0.75rem;
  --gt5-space-md: 1.25rem;

  /* typography */
  --gt5-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --gt5-space-xs: 0.75rem;
    --gt5-space-sm: 1.125rem;
    --gt5-space-md: 2rem;

    /* typography */
    --gt5-text-sm: 1rem;
  }
}

/* icons */
.gt5-icon {
  height: var(--gt5-size, 1em);
  width: var(--gt5-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.gt5-icon--xs {
  --gt5-size: 16px;
}

/* component */
.grid-switch .btns {
  --btns-button-radius: 0.25em;
  --btns-button-padding-x: var(--gt5-space-xs);
  --btns-button-padding-y: var(--gt5-space-xs);
  display: none;
}

.grid-switch {
  opacity: 0;
  transition: opacity 0.5s;
}

.grid-switch--is-visible {
  opacity: 1;
}

/* utility classes */
.gt5-color-contrast-medium {
  --gt5-color-o: 1;
  color: hsla(var(--gt5-color-contrast-medium-hsl), var(--gt5-color-o, 1));
}

.gt5-color-contrast-higher {
  --gt5-color-o: 1;
  color: var(--color-accent-darker);
}

.gt5-text-component :where(h1, h2, h3, h4) {
  line-height: var(--gt5-heading-line-height, 1.2);
  margin-top: calc(var(--gt5-space-md) * var(--gt5-space-multiplier, 1));
  margin-bottom: calc(var(--gt5-space-sm) * var(--gt5-space-multiplier, 1));
}

.gt5-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--gt5-body-line-height, 1.4);
}

.gt5-text-component :where(ul, ol, p, blockquote, .gt5-text-component__block) {
  margin-bottom: calc(var(--gt5-space-sm) * var(--gt5-space-multiplier, 1));
}

.gt5-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.gt5-text-component ul :where(ul, ol), .gt5-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.gt5-text-component ul {
  list-style-type: disc;
}

.gt5-text-component ol {
  list-style-type: decimal;
}

.gt5-text-component img {
  display: block;
  margin: 0 auto;
}

.gt5-text-component figcaption {
  margin-top: calc(var(--gt5-space-xs) * var(--gt5-space-multiplier, 1));
  font-size: var(--gt5-text-sm);
  text-align: center;}

.gt5-text-component em {
  font-style: italic;
}

.gt5-text-component strong {
  font-weight: bold;
}

.gt5-text-component s {
  text-decoration: line-through;
}

.gt5-text-component u {
  text-decoration: underline;
}

.gt5-text-component mark {
  background-color: hsla(var(--gt5-color-accent-hsl), 0.2);
  color: inherit;
}

.gt5-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--gt5-color-contrast-lower-hsl));
  font-style: italic;
}

.gt5-text-component hr {
  margin: calc(var(--gt5-space-md) * var(--gt5-space-multiplier, 1)) auto;
  background: hsl(var(--gt5-color-contrast-lower-hsl));
  height: 1px;
}

.gt5-text-component > *:first-child {
  margin-top: 0;
}

.gt5-text-component > *:last-child {
  margin-bottom: 0;
}

.gt5-text-component.gt5-line-height-xs {
  --gt5-heading-line-height: 1;
  --gt5-body-line-height: 1.1;
}

.gt5-text-component.gt5-line-height-sm {
  --gt5-heading-line-height: 1.1;
  --gt5-body-line-height: 1.2;
}

.gt5-text-component.gt5-line-height-md {
  --gt5-heading-line-height: 1.15;
  --gt5-body-line-height: 1.4;
}

.gt5-text-component.gt5-line-height-lg {
  --gt5-heading-line-height: 1.22;
  --gt5-body-line-height: 1.58;
}

.gt5-text-component.gt5-line-height-xl {
  --gt5-heading-line-height: 1.3;
  --gt5-body-line-height: 1.72;
}

.gt5-letter-spacing-md {
  letter-spacing: 0.05em;
}

.gt5-color-primary {
  --gt5-color-o: 1;
  color: var(--color-accent-darker);
}

.gt5-text-uppercase {
  text-transform: uppercase;
}

.gt5-shadow-lg {
  box-shadow:0 1.2px 1.9px -1px rgba(0, 0, 0, 0.014),0 3.3px 5.3px -1px rgba(0, 0, 0, 0.038),0 8.5px 12.7px -1px rgba(0, 0, 0, 0.085),0 30px 42px -1px rgba(0, 0, 0, 0.15);
}

.gt5-radius-lg {
  border-radius: 0.5em;
}

.gt5-height-100\% {
  height: 100%;
}

.gt5-gap-md {
  gap: var(--gt5-space-md);
}

.gt5-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.gt5-grid > * {
  min-width: 0;
  grid-column-end: span 12;
}

.gt5-inline-flex {
  display: inline-flex;
}

@media not all and (min-width: 64rem) {
  .gt5-display\@md {
    display:none !important;
  }
}

.gt5-text-right {
  text-align: right;
}

.gt5-margin-bottom-sm {
  margin-bottom: var(--gt5-space-sm);
}

.gt5-col-12 {
  grid-column-end: span 12;
}

@media(min-width: 64rem){
  .gt5-col-4\@md {
    grid-column-end: span 4;
  }
}