.filtr-item {
  padding-top: 30px;
}


.filtr-loading {
  border: 5px solid #333;
  position: relative;
  border-radius: 40px;
  height: 40px;
  left: 50%;
  margin: 80px 0;
  opacity: 0;
  top: 0;
  width: 40px;
  z-index: 2;
  -webkit-animation: pulsate 1s ease-out infinite;
  animation: pulsate 1s ease-out infinite;
}

#portfolio {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  /* Pastikan tingginya mengisi layar */
  text-align: center;
}

#portfolio .container span {
  padding: 0px 18px;
  border-radius: 5px;
  margin-bottom: 5px;
}

#portfolio .container .filtr-container img {
  width: 90%;
}

.gallery-pt--body {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.gallery-pt--filter-container {
  text-align: center;
  padding: 20px 0;
  font-size: 24px;
  text-decoration: none;
}

.gallery-pt--filter-container a {
  color: #ccc;
  text-decoration: none;
}

.gallery-pt--filter-container .list-item {
  padding: 0;
  margin: 0;
}

.gallery-pt--filter-container li:after {
  content: " / ";
  color: #ddd;
}

.gallery-pt--filter-container li:last-child:after {
  content: "";
}

.gallery-pt--filter-container li a:hover {
  color: rgb(76, 177, 249);
}

.gallery-pt--filter-container li.active a {
  color: lightgreen;
}

.gallery-pt--body .thumbnail {
  border: none;
}

.gallery-pt--body .item {
  padding: 0;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#portfolio p {
  color: #25231e;
}

#portfolio h1 {
  text-transform: uppercase;
  background-color: #000000;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: 'BankGothic Md BT', sans-serif;
  font-weight: 100;
  font-size: 3rem;
}

#portfolio h1::after {
  /* background: linear-gradient(to right, #0066ae, #e0eeff); */
  width: 200px;
  height: 4px;
  display: block;
  content: '';
  text-align: center;
  margin: auto;
  margin-top: 15px;
}

#portfolio .intro {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

#portfolio .into p {
  margin-bottom: 0;
}



.gallery-item {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  /* Membuat sudut melengkung */
  overflow: hidden;
  /* Agar isi tidak keluar dari border */
  width: 400px;
  /* Sesuaikan ukuran sesuai kebutuhan */
  height: 200px;
  /* Sesuaikan ukuran sesuai kebutuhan */
  overflow: hidden;
  /* Untuk memastikan gambar yang lebih besar tidak keluar dari batas */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 12px;
  /* Membuat gambar juga melengkung */
/* box-sizing: border-box; */
/* border: 2px solid transparent; */
/* Transparan agar gradien terlihat */
/* background: linear-gradient(90deg, #0066ae, #ffffff88) border-box; */
/* Gradien sebagai border */
/* } */

*/ .gallery-item.show {
  display: block;
}

.gallery h1 {
  font-weight: 100;
  margin-bottom: 40px;
  padding-top: 40px;
}

.gallery h1::after {
  /* background: linear-gradient(to right, #0066ae, #e0eeff); */
  width: 200px;
  height: 4px;
  display: block;
  content: '';
  text-align: center;
  margin: auto;
  margin-top: 15px;
}


.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  position: relative;
  border-radius: 10px;
  overflow: auto;
}

.popup-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  color: #444444;
  cursor: pointer;
}

.popup .close:hover {
  color: #000000;
}

.gallery-item i.fab.fa-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  /*Ukuraniconlebihkecil*/
  background: linear-gradient(45deg, #ffffffca, #fdfdfdc7);
  /*GradientYouTube*/
  color: #ff0000;
  border-radius: 50%;
  padding: 10px 10px;
  /*Lebarlebihpanjanghorizontal*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.gallery-item:hover i.fab.fa-youtube {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}