@media print {
  .portfolio {
    width: 90% !important;
  }
}

.portfolio-part-ttl {
  width: 100%;
  height: fit-content;
  padding: 50px 0px;
  background-color: var(--primary-top-color);
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.portfolio-part-ttl-txt {
  font-size: 50px;
  /* 13 */
  color: white;
  margin: 10px 0px;
  padding: 0px;
}

.portfolio {
  width: 1000px;
  height: fit-content;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: start;
  align-items: start;
  margin: 50px 0px 100px 0px;
  flex-direction: column;
}

.portfolio-area {
  display: flex;
  justify-content: space-between;
  justify-items: space-between;
  align-content: start;
  align-items: start;
  margin-bottom: 10px;
}

.portfolio-area-start {
  display: flex;
  justify-content: space-between;
  justify-items: space-between;
  align-content: start;
  align-items: start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.portfolio-column {
  width: 49%;
  height: fit-content;
  display: flex;
  justify-content: start;
  justify-items: start;
  align-content: center;
  align-items: center;
  flex-direction: column;
}

.portfolio-column-itm {
  width: 100%;
  height: fit-content;
  margin-bottom: 2vw;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-column-itm-start {
  width: 49%;
  height: fit-content;
  margin-bottom: 2vw;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-column-itm-img {
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  /* Untuk Safari & iOS */
}

.portfolio-column-itm-vid {
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  /* Untuk Safari & iOS */
}

.portfolio-preview-section-black {
  top: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 999;
  opacity: 0.7;
}

.portfolio-preview-section {
  top: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: start;
  align-items: start;
  overflow-y: auto;
  overflow-x: hidden;
}

.portfolio-preview {
  width: 60%;
  height: fit-content;
  background-color: white;
  border-radius: 20px;
  padding: 10px 0px;
  margin: 50px 0px;
}

.portfolio-preview-part {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.portfolio-preview-part-img {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: start;
  overflow: hidden;
}

.portfolio-preview-media {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  /* Untuk Safari & iOS */
}

.portfolio-preview-part-area {
  width: 90%;
  height: fit-content;
  padding: 20px 0px;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.portfolio-preview-part-left {
  width: 90%;
  height: fit-content;
  display: flex;
  justify-content: start;
  justify-items: start;
  align-content: center;
  align-items: center;
}

.portfolio-preview-part-right {
  width: 10%;
  height: fit-content;
  display: flex;
  justify-content: end;
  justify-items: end;
  align-content: center;
  align-items: center;
}

.portfolio-preview-ttl {
  font-size: 20px;
  color: black;
  padding: 0px;
  margin: 0px;
  width: 90%;
}

.portfolio-preview-des {
  font-size: 15px;
  color: black;
  padding: 0px;
  margin: 0px;
}

.portfolio-preview-ic {
  font-size: 30px;
  color: black;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
}

.portfolio-preview-ic-link {
  color: black;
  text-decoration: none;
}

.loadMore {
  font-size: 20px;
  margin: 0px;
  color: white;
  background-color: var(--first-color);
  border: 2px solid var(--first-color);
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s all ease;
}

.loadMore:hover {
  color: var(--first-color);
  background-color: transparent;
}

.portfolio-area-top {
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: space-between;
  justify-items: space-between;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.portfolio-area-top-sort {
  width: 30%;
  height: fit-content;
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid #ccc;
  background-color: #f9f9f9;
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

select:focus {
  border-color: #007bff;
  background-color: #fff;
  outline: none;
}

@media screen and (min-width: 1100px) {
  .portfolio {
    width: 1000px;
  }

  .portfolio-preview {
    width: 700px;
  }
}

@media screen and (max-width: 1100px) {
  .portfolio {
    width: 90%;
  }
}

@media screen and (max-width: 900px) {
  .portfolio-preview {
    width: 80%;
  }
}

@media screen and (max-width: 600px) {
  .loadMore {
    width: 100%;
    padding: 10px 0px;
    font-size: 18px;
  }

  .portfolio-area-top-sort {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .portfolio-preview-ttl {
    font-size: 15px;
    width: 90%;
  }

  .portfolio-preview-des {
    font-size: 12px;
  }

  .portfolio-preview-ic {
    font-size: 25px;
  }
}

@media screen and (max-width: 500px) {
  .portfolio-part-ttl-txt {
    font-size: 30px;
  }

  .portfolio-area {
    justify-content: center;
    justify-items: center;
    flex-wrap: wrap;
  }

  .portfolio-area-start {
    justify-content: center;
    justify-items: center;
    flex-wrap: wrap;
  }

  .portfolio-area-start {
    justify-content: center;
    justify-items: center;
  }

  .portfolio-column {
    width: 100%;
  }

  .portfolio-column-itm-start {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .portfolio-preview {
    width: 100%;
    border-radius: 0px;
  }

  .portfolio-preview-part-area {
    width: 80%;
    height: fit-content;
    padding: 20px 0px;
  }
}