/* Tablet */
@media (min-width: 768px) {
    .region-user-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    .menu--tools .menu {
        grid-template-columns: repeat(4, auto);
        gap: 1rem;
      }
    .menu--account .menu {
        margin-bottom: 0;
    }
}

/* Desktop */
@media (min-width: 960px) {
    .nav-menu .container-xl {
        padding-left: var(--bs-gutter-x);
        padding-right: var(--bs-gutter-x);
    }
    .content {
        grid-area: content;
    }

    .etusivun-kuvalinkit {
            grid-template-columns: repeat(3, auto);

}

table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: var(--gray-light); 
}
th { 
  background: var(--gray-light); 
  color: white; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 1px solid var(--gray-light); 
  text-align: left; 
}

.view-referenssikohteet .view-content {
    grid-template-columns: repeat(3, 1fr);
}

}

/* Extra wide */
@media (min-width: 1800px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1600px;
    }
}

/* mobile */

@media  only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    .hero-title h1 {
        font-size: 2.5rem;
    }

    .etusivun-kuvalinkit {
    height: 50vh;
}

    /* Force table to not be like tables anymore */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    
    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr { border: 1px solid var(--gray-light);  }
    
    td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid var(--gray-light); 
        position: relative;
        padding-left: 50%; 
    }
    
    td:before { 
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
    }
    h1 {
    font-size: 2rem;
    line-height: 3rem;
    margin-top: 0;
  }
  h2 {
    font-size: 1.35rem;
    line-height: 2.5rem;
    margin-top: 3rem;
  }

  h3 {
    font-size: 1.2rem;
  }
  h4 {
    font-size: 1rem;
  }
  h5 {
    font-size: 0.7rem;
  }
  h6 {
    font-size: 0.5rem;
  }


}

/* Only mobile */
@media (max-width: 768px) {
    .linkki {
        height:  170px;
    }

    .etusivun-kuvalinkit {
        height:  510px;
    }

    .etusivun-kuvalinkit h3 {
        margin-top:  0rem;
    }
}
