body {
  /* padding: 10px 14px; */
  padding: 0;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #DEDAFD;
  background-color: #363535;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

p,
p a,
span, strong, em {
  color: inherit !important;
}

p a {
  text-decoration: underline;
}

p {
  margin: 0;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  background-color: #363535;
  padding: 14px;
}

main {
  padding: 0 24px;
  margin-bottom: 100px;
}

figure {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

figcaption {
  margin: 0;
  font-size: 70%;
  margin-top: 14px;
}

.content-page main {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 73vw;
  margin-left: -0.7vw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 28px;
}

main.home {
  /* display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between; */
  width: 73vw;
  margin-left: -0.7vw;

  display: inline-grid;
  grid-template-columns: repeat(auto-fill, minmax(20vw, 1fr));
  gap: 1.5rem;
  margin-top: 24px;
}

.entry {
  /* width: 24vw; */
  padding: 0.5vw;
  /* margin-bottom: 48px; */
  break-inside: avoid;
  box-sizing: border-box;
  display: block;
}

.entry a {
  display: block;
}

.entry p{
  color: inherit;
  font-family: 'Times New Roman', Times, serif;
}

main article img,
main img {
  width: 100%;
  height: auto;
  margin-top: 14px;
  display: block;
}

.entry h2 {
  margin: 0;
}

.entry p {
  margin-top: 14px;
}

.page-wrapper {
  display: flex;
  justify-content: space-between;
}


aside {
  width: 24vw;
  position: sticky;
  right: 0;
  padding: 0 1vw;
  top: 150px;
  float: right;
}

aside p {
  line-height: 1.5;
}

.categories {
  margin-top: 5px;
}

.categories span:after {
  content: ',';
}

.categories span:last-child:after {
  content: '';
}

.page .categories {
  text-align: center;
  margin-top: 48px;
  margin-bottom: -48px;
}

.filters {
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 1rem; */
  flex-wrap: wrap;
  margin-top: 24px;
  position: sticky;
  top: 130px;
  padding: 0 24px;
}

.filters button{
  background-color: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  padding: 0;
  margin-right: 24px;
}


.filters div:nth-child(2) button {
  margin-right: 0;
  margin-left: 24px;
}

.filters button.active {
  font-weight: bold;
  border-bottom: 1px solid;
}


h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 80px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  line-height: 1;
}

h2 {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  font-family: "Open Sans", sans-serif;
}

.intro {
  margin: auto;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-top: -24px;
  text-align: center;
  font-weight: 300;
}


.content-wrapper {
  max-width: 900px;
  margin: auto;
}

.logo {
  margin-bottom: 30px;
  display: block;
  font-size: 30px;
  width: fit-content;
}

nav a {
  border: 1px solid;
  border-radius: 7px;
  padding: 5px 25px;
  margin-right: 24px;
  margin-top: 10px;
}

.language-switcher{
  float: right;
  position: sticky;
  top: 20px;
  width: fit-content;
  margin-top: -100px;
  font-size: 30px;
  font-weight: 300;
}

.pixel-slider {
  float: right;
  width: calc(100% - 428px);
  margin-top: 20px;
  margin-right: 120px;
  position: sticky;
  top: 35px;
  padding-right: 14px;
  z-index: 777;
}

.pixel-slider p {
  text-align: right;
  margin-top: 8px;
}

/* RESET */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  display: block;
}

/* TRACK */
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: #DEDAFD;
  /* gray-300 */
  border-radius: 999px;
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: #DEDAFD;
  border-radius: 999px;
}

/* HANDLE */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: #DEDAFD;
  /* near-black */
  border-radius: 50%;
  margin-top: -6px;
  /* center on track */
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type="range"]::-moz-range-thumb {
  height: 14px;
  width: 14px;
  background: #DEDAFD;
  border: none;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}

/* HOVER / ACTIVE */
input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.25);
}

input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.15);
}

input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.25);
}

/* =========================
   Columns block styling
   ========================= */

.columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.column {
  min-width: 0;
}

.column p{
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
}



@media only screen and (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
  }

  main.home {
    width: 100%;
    display: block;
    margin-left: 0;
  }

  .pixel-slider {
    width: calc(100% - 28px);
    float: none;
    top: 70px;
    margin-top: -100px;
    margin-left: auto;
    margin-right: auto;
  }

  .logo {
    top: 0;
    /* margin-top: -100px; */
    margin-bottom: 70px;
  }

  nav a {
    margin-right: 14px;
    font-size: 14px;
    padding: 5px 15px;
  }

  header {
    margin-bottom: 100px;
  }

  .entry {
    width: 100%;
    margin-bottom: 48px;
  }

  .language-switcher{
    font-size: 20px;
  }

  main {
    padding: 0 14px;
  }

  aside {
    width: 100%;
    position: relative;
    top: 0;
    float: none;
    margin-top: 100px;
    display: block;
    padding: 0 14px;
    margin-bottom: 100px;
    z-index: -1;
  }

  .content-page main {
    width: 100%;
    font-size: 24px;
    margin-top: 40px;
  }

  h1 {
    font-size: 52px;
    margin-top: 52px;
  }

  h2 {
    font-size: 28px;
  }

  .content-page header {
    margin-bottom: 0;
  }

  .intro {
    font-size: 20px;
  }


}


.mobile-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 888;
}

.mobile-filter-btn{
  position: fixed;
  right: 14px;
  bottom: 14px;
  padding: 5px 15px;
  border-radius: 7px;
  border: 1px solid;
  background: #DEDAFD;
color: #363535;
display: none;
}

@media (max-width: 900px) {
  .mobile-filter-btn {
    display: block;
  }

  .filters {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: #363535;
    color: #DEDAFD;
    padding: 14px;
    overflow-y: auto;
    border-radius: 7px 7px 0 0;
    display: none;
    z-index: 999;
  }

  .filters div:nth-child(2){
    margin-top: 24px;
    
  }

  .filters button{
    border: 1px solid;
    padding: 5px 15px;
    border-radius: 7px;
    margin-right: 14px;
    font-size: 16px;
  }

  .filters button.active{
    background-color: #DEDAFD;
    color: #363535;
    font-weight: normal;
  }
 
  .filters div:nth-child(2) button{
    margin-left: 0;
    margin-right: 14px;
    margin-bottom: 10px;
    
  }
  .filters.active{
    display: block;
  }
}