.year-archive {
  max-width: 800px;
  margin: 40px auto;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tab {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background: #ffbfbf2b;
  cursor: pointer;
  font-weight:700;
}

.tab[aria-selected="true"] {
  background: rgb(255, 0, 0);
  color: #fff;
}

.tab:focus {
  outline: 3px solid rgb(255, 0, 0);
  outline-offset: 2px;
}

.tab-content {
}

@media (max-width: 600px) {
  .tabs {
	     flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
	width:120px;
	height:80px;
  }


  .tabs::after {
    content: "";
    position: sticky;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0),
      rgba(255,255,255,1)
    );
  }

  .tabs::before {
    content: "";
    position: sticky;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to left,
      rgba(255,255,255,0),
      rgba(255,255,255,1)
    );
  }
}
