*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cd__main{
   display: block !important;
}
body {
  font-family: 'Alata';
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  color: #252a32;
  background: #ffffff;

}

.container {
  max-width: 80rem;
  width: 100%;
  padding: 4rem 2rem;
  margin: 0 auto;
}

.main .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  justify-content: center;
  align-items: center;
}
.main .card {
  color: #252a32;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}
.main .card-image {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 70%;
  background: #ffffff;
}
.main .card-image img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 600px) {
  .main .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
}

.job-selection {
  display: flex;
  justify-content: center;
  margin-top: 1rem; /* Adjust margin as needed */
}

.job-selection button {
  margin: 0 0.5rem; /* Adjust button spacing as needed */
}

/* CSS from your original code, with necessary adjustments: */

.container-list {
  display: flex;
  margin-top: 50px;
  margin: 0 auto;
  width: 80%;
  min-width: 280px; /* For small devices */
  max-width: 1200px; /* For large devices */
  box-sizing: border-box; /* Ensures consistent sizing */
}

.item-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap; /* Wraps items onto new lines */
  padding: 10px; /* Adjust as needed */
}

.item {
  padding: 15px;
  margin: 10px; /* Adds spacing between items */
  background-color: #ddd; /* Base background color */
  border: 1px solid #ccc; /* Base border */
  border-radius: 5px; /* Round corners */
  text-align: center; /* Center text within items */
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out; /* Smoother hover effect */
  font-size: 20px;
}

.item:hover {
  background-color: #426E98; /* Hover background color */
  
}

/* Media queries for responsive behavior: */

@media (max-width: 768px) { /* For screens up to 768px wide */
  .item-list {
      flex-direction: column; /* Switch to vertical layout */
  }

  .item {
      margin: 5px; /* Adjust spacing for smaller screens */
  }
}

@media (min-width: 768px) and (max-width: 1024px) { /* For screens between 768px and 1024px */
  .item-list {
      flex-wrap: wrap; /* Wrap items if necessary */
  }

  .item {
      margin: 7px; /* Adjust spacing for medium screens */
  }
}

@media (min-width: 1024px) { /* For screens wider than 1024px */
  .item-list {
      flex-wrap: nowrap; /* Prevent wrapping */
  }

  .item {
      margin: 10px; /* Adjust spacing for large screens */
  }
}


.fancybox-active #scrollUp{
  display: none;
}