/**
 * The following CSS is the default to display MyClub groups news.
 */

.myclub-groups-news {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;

  .myclub-groups-news-container {
    width: 100%;

    .myclub-groups-news-list {
      display: flex;
      flex-flow: row wrap;

      .myclub-news-item {
        box-sizing: border-box;
        margin: 0.5rem;
        flex: 0 1 calc(100% - 1rem);
        padding: 0.5rem;

        a {
          text-decoration: none;

          &:hover {
            text-decoration: underline;
          }

          .myclub-news-image {
            aspect-ratio: 16 / 9;
            overflow: hidden;
            background: #f2f2f2;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
              display: block;
            }
          }

          .myclub-news-author {
            font-size: small;
            margin-bottom: 0.25rem;
          }

          .myclub-news-image-caption {
            font-size: small;
            margin-top: 0.25rem;
          }
        }
      }

      .myclub-more-news {
        padding: 1rem;
        text-align: center;
        width: 100%;
      }
    }

    .no-news {
      padding: 1rem;
      text-align: center;
    }
  }
}

@media(min-width: 996px) {
  .myclub-groups-news {
    .myclub-groups-news-container {
      max-width: 996px;

      .myclub-groups-news-list {
        .myclub-news-item {
          flex: 0 1 calc(33% - 1rem);
        }
      }
    }
  }
}

@media(min-width: 1200px) {
  .myclub-groups-news {
    .myclub-groups-news-container {
      max-width: 1200px;
    }
  }
}