.pictures {
  padding: 0 4px;
}

.pictures-inner {
  column-count: 6;
  column-gap: 0.5em;
  height: max-content;
}

.pictures figure {
  margin: 0;
  margin-bottom: 0.5em;
  vertical-align: middle;
  break-inside: avoid;
}

#photo-grids {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.year {
  margin: 0 1em;
  padding: 0.5em;
  padding-bottom: 1rem;
  transition-duration: 500ms;
  transition-timing-function: ease;
  position: relative;
}

.year::before,
.year::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 0%;
  left: 50%;
  background: linear-gradient(90deg, transparent, black, transparent);
  transition: inherit;
}

.year::before {
  top: 0;
}

.year::after {
  bottom: 0;
}

.year:hover::before,
.year:hover::after,
.year:has(input[type="checkbox"]:checked)::before,
.year:has(input[type="checkbox"]:checked)::after {
  width: 100%;
  left: 0%;
}

.year>label {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bolder;
  cursor: pointer;
  user-select: none;
  transition: inherit;
  transition-duration: 0.5s;
}

.year>label:hover {
  color: #E8BF60;
}

.year>.pictures {
  height: 0;
  overflow-y: scroll;
  transition: inherit;
}

.year>input[type="checkbox"]:checked~.pictures {
  height: 50vh;
}

*:is(#search > .results > div, .year) *:is(figure, img) {
  width: 100%;
  cursor: pointer;
}

::-webkit-scrollbar {
  display: none;
}

*:is(#search > .results > div, .year) figure>img {
  scale: 1;
  transition: var(--transition-time) ease;
}

*:is(#search > .results > div, .year) figure:hover>img {
  scale: 1.1;
}

*:is(#search > .results > div, .year) figure {
  --transition-time: 0.3s;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "stack";
}

*:is(#search > .results > div, .year) figure>.tags {
  display: none;
}

*:is(#search > .results > div, .year) figure>*:is(img, figcaption) {
  grid-area: stack;
}

*:is(#search > .results > div, .year) figure>figcaption {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1em;
  color: white;
  background-color: #000a;
  opacity: 0;
  transition-property: opacity;
  transition-duration: var(--transition-time);
  z-index: 2;
  width: 100%;
}

*:is(#search > .results > div, .year) figure:hover>figcaption {
  opacity: 1;
}

*:is(#search > .results > div, .year) figure .title {
  text-transform: uppercase;
  line-height: 1em;
}

*:is(#search > .results > div, .year) figure .description {
  --line-height: 1.3em;
  font-weight: 400;
  font-size: small;
  line-height: var(--line-height);
  height: var(--line-height);
  overflow: hidden;
  text-overflow: ellipsis;

  background: linear-gradient(90deg, white 0%, white 50%, transparent 100%);
  background-clip: text;
  color: transparent;
}