
/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.row {
  margin: 0 auto;
}

.grid-row {
  margin: 0 auto;
  width: 100%;
}

.grid-container {
  max-width: 100%;
}

.grid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  /* display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
}

.grid-item {
  float: left;
  width: 18.5%;
  /* padding: 1rem 0; */
  margin-bottom: 10px;
}

.company-block-wrapper {
  background-color: #fff;
  /* width: 100%; */
  width: 80%;
  height: 136px;
  position: relative;
  /* margin-bottom: 12px; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.company-block {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  width: 100%;
  height: 122px;
  max-height: 168px;
  text-align: center;
}

.company-block > img {
  max-width: max-content;
  object-fit: contain;
  /* width: 88%; */
  height: auto;
  /* display: inline-block; */
  /* vertical-align: middle; */
}

.ypc-info-box .section__head-entry {
  /* margin-bottom: 40px; */
}

.startup-grid .company-block {
  padding: 10px;
}

.company-search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px 0 60px 0;
}

input#quicksearch.input-search {
  width: 100%;
  background: var(--color-gray1);
  text-align: center;
  max-width: 528px;
}

.company-filter {
  background-color: #fff;
  margin-bottom: 12px;
  padding: 12px;
}

.caption__title {
  padding: 0.5rem 0;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
}

.button-group .button {
  display: block;
  padding: 15px 22px;
  border-radius: 2px;
  margin: 10px;
  background-color: #edf3e6;
  border: 0;
}

.button-group .button.is-checked {
  background-color: #afd57f;
}

@media (max-width: 660px) {
  .grid-item {
    width: 94%;
    left: 0 !important;
  }
  .company-block-wrapper {
    width: 100%;
  }
}
@media (min-width: 661px) and (max-width: 909px) {
  .grid-item {
    width: 39.5%;
  }
  .company-block-wrapper {
    width: 70%;
  }
}
@media (min-width: 910px) and (max-width: 1023px) {
  .grid-item {
    width: 25.5%;
  }
  .company-block-wrapper {
    width: 84%;
  }
}
@media (min-width: 1024px) and (max-width: 1520px) {
  .grid-item {
    width: 18.5%;
  }
  .company-block-wrapper {
    width: 84%;
  }
}
@media (min-width: 1521px) and (max-width: 1920px) {
  .grid {
    max-width: 1560px;
    margin: 0 auto;
  }
  .grid-item {
    width: 15%;
  }
  .company-block-wrapper {
    width: 80%;
  }
}
@media (min-width: 1921px) {
  .grid {
    max-width: 2000px;
    margin: 0 auto;
  }
  .grid-item {
    width: 10%;
  }
  .company-block-wrapper {
    width: 95%;
  }
  .company-block {
    height: 144px;
  }
}
