
main {
  margin: 0 auto;
  width: 80%;
  color: white;
}

/* Catalog Group */

.catalog-year {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

@media screen and (min-width: 640px) {
  .catalog-year {
    text-align: left;
  }
}

@media screen and (min-width: 768px) {
  .catalog-year {
    font-size: 40px;
  }
}

@media screen and (min-width: 1440px) {
  .catalog-year {
    font-size: 60px;
  }
}

.catalog-group {
  display: grid;
  grid-template-columns: repeat(2, 50fr);
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-group:last-child {
  margin-bottom: 70px;
}

@media screen and (min-width: 640px) {
  .catalog-group {
    grid-template-columns: repeat(3, 33.33fr);
  }
}

@media screen and (min-width: 1024px) {
  .catalog-group {
    grid-template-columns: repeat(4, 25fr);
  }
}

.catalog-group a {
  &:active {
    text-decoration: none;
  }
  &:link {
    text-decoration: none;
  }
  &:visited {
    text-decoration: none;
  }
}

.catalog-item {
  display: flex;
  align-items: end;
  position: relative;
  background-color: black;
  border-width: 2px;
  border-style: solid;
  border-color: #ffffff80;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
  &:hover {
    transform: rotateZ(1deg);
  }
}

@media screen and (min-width: 768px) {
  .catalog-item {
    border-width: 3px;
  }
}

@media screen and (min-width: 1440px) {
  .catalog-item {
    border-width: 6px;
  }
}

.catalog-item img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-item .details {
  z-index: 10;
  height: 37%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 25%,
    rgba(0, 0, 0, 1) 100%
  );
  padding: 25px 25px 0 14px;
  overflow: clip;
}

.details .title {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 4px 4px 4px 0px #000000cc;
}

@media screen and (min-width: 640px) {
  .details .title {
    font-size: 18px;
  }
}

@media screen and (min-width: 1440px) {
  .details .title {
    font-size: 28px;
  }
}

.details .desc {
  font-size: 7px;
  font-weight: 500;
  text-shadow: 4px 4px 4px 0px #000000cc;
}

@media screen and (min-width: 640px) {
  .details .desc {
    font-size: 10px;
  }
}

@media screen and (min-width: 1440px) {
  .details .desc {
    font-size: 16px;
  }
}

