/*
Theme Name: Sandbox
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 16px;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  text-decoration: none;
  list-style: none;
}

::placeholder {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  font-family: Helvetica, Arial, sans-serif;
}

html, body {
  background: #eee;
  color: #333;
}

a {
  display: inline-block;
  cursor: pointer;
  color: #333;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.3rem;
}

h1, h2, h3, h4, h5, h6, ul, ol, li, p {
  margin-top: 1em;
  line-height: 1.5em;
}

p {
  line-height: 1.4em;
}

button {
  background: #333;
  color: #fff !important;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
}

nav *, .breadcrumb * {
  margin-top: 0;
}

nav .grid-container, .breadcrumb .grid-container, header .grid-container, footer .grid-container {
  grid-template-columns: 100%;
}

nav .content > * {
  display: inline-flex;
  vertical-align: middle;
  padding-right: 1rem;
}

nav ul {
  display: inline-block;
}

nav li {
  display: inline-block;
  width: auto;
}

nav input {
  float: left;
  width: 9rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid #333;
  border-radius: 2.5rem 0 0 2.5rem;
  color: #333;
  font-weight: 700;
}

nav button {
  float: left;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0 2.5rem 2.5rem 0;
  color: #fff !important;
  background: #333;
  border: 2px solid #333;
  text-decoration: none;
}

.breadcrumb-item {
  display: inline-block;
}

.breadcrumb-item:not(:first-child):before {
  content: "/";
}

.grid-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  padding-bottom: 0;
}

@media (max-width: 1000px){
  .grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px){
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

article {
  position: relative;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  color: #333;
}

article header a {
  display: block;
}

article img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}

article main {
  padding: 2rem;
}

section article main {
  width: 100%;
  padding: 2rem;
  transition: all 0.2s;
}

article main .content > * {
  margin-top: 1rem;
}

article main .content > *:first-child, article main .content > *:first-child * {
  margin-top: 0rem;
}

article main a {
  color: #333 !important;
}

.the_category, .the_tags {
  display: inline-block;
}

.the_category a, .the_tags a {
  font-size: 0.9em;
  text-decoration: underline;
}

.ajax-loader {
  position: absolute;
  right: 50%;
  transform: translate(-50%,-50%);
  width: 16px;
  height: 16px;
  display: none;
}

footer .grid-container {
  padding-bottom: 2rem;
}

.single header article img {
  aspect-ratio: 21/9;
}

.flex-container {
  display: flex;
  height: 100%;
}

.flex-content {
  margin: auto auto auto 0;
}