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

File#: _2_article-gallery-v4
Title: Article Gallery v4
Descr: A gallery of blog articles
Usage: codyhouse.co/license

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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}



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

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --an6-color-primary-hsl: 250, 84%, 54%;
  --an6-color-bg-hsl: 0, 0%, 100%;
  --an6-color-contrast-high-hsl: 230, 7%, 23%;
  --an6-color-contrast-higher-hsl: 230, 13%, 9%;

  /* spacing */
  --an6-space-2xs: 0.375rem;
  --an6-space-sm: 0.75rem;
  --an6-space-md: 1.25rem;
  --an6-space-3xl: 5rem;

  /* typography */
  --an6-text-xl: 1.2rem;
  --an6-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --an6-space-2xs: 0.5625rem;
    --an6-space-sm: 1.125rem;
    --an6-space-md: 2rem;
    --an6-space-3xl: 5rem;

    /* typography */
    --an6-text-xl: 1.5rem;
    --an6-text-sm: 1rem;
  }
}

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

.an6-icon--md {
  --an6-size: 32px;
}

.an6-icon--is-spinning {
  animation: an6-icon-spin 1s infinite linear;
}

@keyframes an6-icon-spin {
  0% {
  transform: rotate(0deg);
}
  100% {
  transform: rotate(360deg);
}
}

/* component */
.articles-v4.masonry {
  --masonry-grid-gap: var(--an6-space-sm);
  --masonry-col-auto-size: 320px;
}

/* utility classes */
.an6-margin-top-auto {
  margin-top: auto;
}

.an6-text-xl {
  font-size: var(--an6-text-xl);
}

.an6-margin-bottom-2xs {
  margin-bottom: var(--an6-space-2xs);
}

.an6-color-contrast-higher {
  --an6-color-o: 1;
  color: hsla(var(--an6-color-contrast-higher-hsl), var(--an6-color-o, 1));
}

.an6-text-sm {
  font-size: var(--an6-text-sm);
}

.an6-max-width-2xs {
  max-width: 32rem;
}

.an6-padding-bottom-3xl {
 /* padding-bottom: var(--an6-space-3xl); */
}

.an6-padding-bottom-cxl {
  /* padding-bottom: 3rem; */
}

.an6-padding-md {
  padding: var(--an6-space-md);
}

.an6-radius-md {
  border-radius: 0.25em;
}

.an6-max-width-adaptive-lg {
  max-width: 32rem;
}

@media(min-width: 48rem) {
  .an6-max-width-adaptive-lg {
    max-width: 48rem;
  }
}

@media(min-width: 64rem) {
  .an6-max-width-adaptive-lg {
    max-width: 64rem;
  }
}

@media(min-width: 80rem) {
  .an6-max-width-adaptive-lg {
    max-width: 80rem;
  }
}

.an6-container {
  width: calc(100% - 2*var(--an6-space-md));
  margin-left: auto;
  margin-right: auto;
}

.an6-color-opacity-50\% {
  --an6-color-o: 0.5;
}

.an-margin-bt{
  margin: var(--sp-x) 0;
}



@media (max-width: 767px) {
.an6-container {
  display:flex;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
}