.timefree {
  .timefree_list {
    margin: 0 0 50px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
  }
  .timefree_item {
    animation: fadeIn .4s ease;

    a {
      display: flex;
      flex-direction: column;
      height: 100%;
      background: var(--color-white);
    }
  }
  .thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-gray-light);
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      transition: transform 0.5s ease;
    }
  }
  .timefree_item a:hover img {
    transform: scale(1.15);
  }
  .info {
    padding: 10px;

    .title{
      margin: 0 0 5px 0;
      font-weight: 600;
      display: -webkit-box;
      line-clamp: 2;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .text {
      margin: 0 0 5px 0;
      font-size: 12px;
      display: -webkit-box;
      line-clamp: 2;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .date {
      font-size: 12px;
      color: var(--color-gray-dark);
      text-align: right;
    }
  }

  .button-more {
    text-align: center;

    button {
      min-width: 220px;
      padding: 10px 20px;
      color: var(--color-white);
      border: 1px solid var(--color-gray-dark);
      border-radius: 50vh;
      background: var(--color-gray-dark);
      cursor: pointer;
      transition: background 0.3s ease, color 0.3s ease;
    }

    button:hover {
      color: var(--text-color);
      background: var(--color-white);
    }
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1280px) {
  .timferee {
    .timefree_list {
      grid-template-columns: repeat(3, 1fr);
      gap: 40px 16px;
    }
  }
}
@media screen and (max-width: 1024px) {
  .timefree {
    .timefree_list {
      grid-template-columns: repeat(2, 1fr);
      gap: 40px 10px;
    }
  }
}

@media screen and (max-width: 800px) {
  .timefree {
    .timefree_list {
      grid-template-columns: repeat(1, 1fr);
      gap: 20px 0;
    }
    .timefree_item {
      a {
        flex-direction: row;
      }
    }
    .thumbnail {
      width: 110px;
      flex-shrink: 0;
    }
    .info {
      width: calc(100% - 110px);
      .title {
        font-size: 12px;
      }
    }
  }
}
