:root {
      --gap: 16px;
      --radius: 32px;
      --bg: #f5f5f7;
      --card: #ffffff;
      --text: #222;
    }



    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    a {
      height: 100%;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    /* Search Bar */
    .search-bar {
      display: flex;
      align-items: center;
      position: fixed;
      top: 0;
      width: 100vw;
      z-index: 999;
      padding: 8px 16px 8px 16px ;
      gap: 8px;

      background: rgba(255, 255, 255, 0.2); /* semi-transparent */
      backdrop-filter: blur(10px);          /* blur effect */
      -webkit-backdrop-filter: blur(10px);  /* Safari support */
    }

    .search-bar input {
      width: 100%;
      padding: 14px 18px;
      border-radius: 20px;
      border: none;
      outline: none;
      font-size: 16px;
      background: #eaeaea;
    }

    /* Grid */
    .grid {
      margin-top: 64px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
      padding: var(--gap);
    }


    .column {
      display: flex;
      flex-direction: column;
      gap: var(--gap);
    }

    .column .item {
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--card);
      transition: transform 0.2s ease, opacity 0.3s ease;
      display: block;
    }

    .column .item.hidden {
      opacity: 0;
      transform: scale(0.95);
      pointer-events: none;
    }

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

    /* Heights */
    .small { height: 120px; }
    .medium { height: 140px; }
    .large { height: 160px; }

    .column .item:hover {
      transform: scale(1.03);
    }

    @media (hover: none) {
      .column .item:active {
        transform: scale(0.97);
      }
    }

    











    /*////////////////////////////////////SUBPAGE//////////////////////////////////*/


    * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
  }

html, body { 
  width: 100%; 
  max-width: 100vw;
  overflow-x: hidden; 
  
  
}

  body.modal-open {
    
    position: fixed;
    width: 100%;
  }

  /* Header */
  .header {
    position: fixed;
    top: var(--gap);
    left: var(--gap);
    display: flex;
    padding: 8px;
    align-items: center;
    border-radius: 32px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
  }

  .header .back {
    width: 32px;
    height: 32px;
    text-align: center;
    align-content: center;
  }

  .header img {
    width: 24px;
    height: 32px;
  }

  /* Cover Image */
  .cover {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 40vh;
    z-index: 1;
    overflow: hidden;
  }

  .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps image nicely cropped */
    display: block;
  }

  /* Primary Bottom Sheet */
  .sheet {
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    position: relative;
    margin-top: calc(40vh - 32px);
    width: 100vw; /* prevent overflow */
    min-height: 100vh;
    background: #fff;
    border-radius: 32px 32px 0 0;
    z-index: 10;
    overflow: visible;
    padding: 40px 32px 40px 32px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  }

  h2 {
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .title {
    font-family: "Fraunces", serif;
    color: gray;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 10px;
    margin: 0 auto 16px;
  }

  .info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    margin: 16px 0 32px 0;
  }

  .info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px 6px 6px;
    border-radius: 100px;
    background-color: #efefef;
  }
  .info img {
    width: 24px;
    height: 24px;
  }

  .content {
    margin-top: 24px;
  }

  .content p {
    margin-bottom: 10px;
    color: #555;
  }

  .icon {
    height: 24px;
    width: 24px;
  }

  .recepie-line {
    margin-top: var(--gap);
    margin-bottom: var(--gap);
    display: flex;
    align-items: center;
    gap: var(--gap);
  }

  /* FAB */
  .fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #006874;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 300;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  .fab img {
    width: 24px;
    height: 24px;
  }

  /* Overlay */

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    opacity: 0;
    pointer-events: none; 
    transition: 0.3s;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: auto; 
  }

  /* Modal Sheet */

  .modal {

    font-family: "Lexend", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 75%;
    background: #efefef;
    border-radius: 32px 32px 0 0;
    z-index: 200;
    overflow-y: scroll;  
    -webkit-overflow-scrolling: touch;
    padding: 32px 32px 96px 32px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
    transition: bottom 0.35s ease;
    touch-action: pan-y;
    color: black;
    overscroll-behavior: contain;
  }

  .modal.active {
    bottom: 0;
  }

  .modal .item {
    display: flex;
    justify-content: space-between;
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    margin: 24px 0px 0px 0px;
  }