@charset "utf-8";

@import "global.css";

main section.portfolio {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
  background-color: #ffffff;
}

main section.portfolio div.box-wrapper {
  width: 100%;
  padding: 150px 0 60px;
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.box-wrapper {
    width: var(--desktop-max-width);
    padding: 200px 0 120px;
  }
}

main section.portfolio div.title {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 39px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.title {
    gap: 100px;
    padding: 0;
  }
}

main section.portfolio div.title h1 {
  font-size: 36px;
  font-weight: 900;
  color: #6c68df;
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.title h1 {
    font-size: 48px;
  }
}

main section.portfolio div.title p {
  font-size: 14px;
  font-weight: 400;
  color: #404040;
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.title p {
    font-size: 16px;
  }
}

main section.portfolio div.tabs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.tabs {
    gap: 21px;
    padding: 0;
  }
}

main section.portfolio div.tabs p {
  padding: 5px 12px;
  border: 2px solid #404040;
  border-radius: 20px;
  font-size: 16px;
  background-color: #f8f8f8;
  color: #404040;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

main section.portfolio div.tabs p.is-selected {
  background-color: #404040;
  color: #ffffff;
  font-weight: 700;
}

main section.portfolio div.items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding: 0 var(--mobile-padding);
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }
}

main section.portfolio div.items[hidden] {
  display: none !important;
}

main section.portfolio div.items .item {
  width: 100%;
  height: 346px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 11px;
  border-radius: 20px;
  background-color: #404040;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

main section.portfolio div.items .item h1 {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.items .item h1 {
    font-size: 48px;
  }
}

main section.portfolio div.items .item p {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
}

/* 50% black overlay over thumbnail backgrounds */
main section.portfolio div.items .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Ensure text/content sits above the overlay */
main section.portfolio div.items .item > * {
  position: relative;
  z-index: 1;
}

@media only screen and (min-width: 1280px) {
  main section.portfolio div.items .item p {
    font-size: 16px;
  }
}
