/* assets/css/portfolio.css */
/* Styling khusus untuk tampilan artikel Portfolio */

/* 1. Container Utama Artikel */
.article-content {
    font-family: Verdana, sans-serif; /* Font default */
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* 2. Heading (Judul) */
.article-content h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.article-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

/* 3. Paragraf (Rata Kanan Kiri - Justify) */
.article-content p {
    text-align: justify; /* Rapi sebelah kanan kiri */
    margin-bottom: 15px;
}

/* 4. Gambar (Bersihkan style Blogger dan beri style baru) */
.article-content .separator {
    clear: both;
    display: block;
    text-align: center;
    margin: 20px 0; /* Jarak atas bawah gambar */
}

.article-content img {
    display: inline-block;
    max-width: 100%;   /* Agar gambar responsif */
    height: auto;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Efek bayangan halus */
}

/* Efek Hover Halus untuk Kartu Portfolio */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Pastikan gambar rapi */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Agar gambar tidak gepeng */
    border-top-left-radius: var(--bs-card-border-radius);
    border-top-right-radius: var(--bs-card-border-radius);
}

.portfolio-gallery {
  margin-top: 3rem;
}

.portfolio-gallery h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 180px;
  }
}
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* gambar utama */
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

/* tombol close — kanan atas */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 40px;
  width: 48px;
  height: 48px;
  line-height: 44px;
  text-align: center;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
}

/* prev & next */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;      /* ⬅ diperbesar */
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* hover halus */
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(0,0,0,.8);
}

/* Scroll horizontal untuk filter lokasi */
.overflow-auto {
    -webkit-overflow-scrolling: touch; /* smooth scrolling di iOS */
}
.overflow-auto a.btn {
    white-space: nowrap; /* mencegah tombol pecah ke baris baru */
    flex: 0 0 auto;     /* tombol tidak mengecil */
}

/* Bisa pertahankan style hover card sebelumnya */
.object-fit-cover { object-fit: cover; width: 100%; height: 100%; }
.card-hover { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid rgba(0,0,0,0.05);
}
.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; 
}
.card-hover .card-img-top {
    transition: transform 0.5s ease;
}
.card-hover:hover .card-img-top {
    transform: scale(1.05);
}
.overflow-auto {
    -webkit-overflow-scrolling: touch;
}
.overflow-auto a.btn {
    white-space: nowrap;
    flex: 0 0 auto;
}
