.years-container {
  --min-width: 28rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-width), 1fr));
  gap: var(--op-space-3x-large);
}

.year {
  min-width: 30rem;
  aspect-ratio: 1 / 1;
  position: relative;
  transition: scale 0.3s ease-in-out;
  &:hover {
    scale: 1.05;
    .year-actions {
      opacity: 1;
    }
  }
}

.year-label {
  font-size: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Archivo Black;
  position: absolute;
  color: white;
}

.year-actions {
  opacity: 0;
  display: flex;
  align-items: center;
  transition: opacity 100ms ease-in-out;
  gap: var(--op-space-small);
}

.year-action {
  --size: 5rem;
  width: var(--size);
  height: var(--size);
  display: flex;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--op-space-small);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--op-radius-2x-large);
}

.year-action--open {
  background-color: var(--op-color-alerts-notice-plus-four);
  color: var(--op-color-alerts-notice-minus-four);;
}

.year__current-day-button {
  position: fixed;
  bottom: var(--op-space-x-large);
  right: var(--op-space-x-large);
  z-index: 9;

  box-shadow: var(--op-shadow-large);
  background-image: linear-gradient(to right bottom, #d20000, #cf0057, #a62f8d, #6651a2, #245e96);
  opacity: 0.8;
  border-radius: 24px;

  height: 5.4rem;
  width: 5.4rem;
  min-width: 5.4rem;

  @media (width < 768px) {
    left: calc(50% - 20px);
  }
}

.year-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  width: 100%;
}

.year-highlight-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-highlight-placeholder {
  background-color: var(--op-color-neutral-plus-three);
  opacity: 0.3;
}
