body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
  }
  .container {
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 70px; 
  }
  .item {
    position: relative;
    flex: 0 0 calc(33.33% - 20px);
    margin-bottom: 20px;
  }
  .item img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
    display: block;
  }
  .item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    box-sizing: border-box;
  }
  @media screen and (max-width: 768px) {
    .item {
      flex: 0 0 100%; 
    }
  }

  header {
            background-color: rgba(52, 152, 219, 0.7); 
            color: #fff;
            padding: 5px;
            display: flex;
            justify-content: space-between;
            font-family: sans-serif;
            align-items: center;
        }

        nav {
            display: inline-block;
            margin-top: 10px; 
            margin-bottom: 10px; 
            margin-left: 10px;
            margin-right: 10px;
            font-size: 20px;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            padding: 10px;
            position: relative;
        }

        nav a:hover {
            color: #666; 
            text-decoration: none;
        }

          footer {
        background-color: #333;
        color: #fff;
        padding: 10px;
        text-align: center;
        width: 100%;
        flex-shrink: 0;

    }