:root {
    --thumb-gap:10px;
    --thumb-w:120px;
    --thumb-h:80px;
  }
  .gallery {
    margin: -20px auto 0 auto;
    padding-top: 20px;
    width:100%;
   max-width:var(--container);
    overflow:hidden;
  }
  .main-wrap {
    position:relative;
    background:#000;
    height:600px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .main-wrap img {
    max-width:100%;
    max-height:100%;
    min-width: 100%;
    object-fit:cover;
    display:block;
  }
  .caption {
    min-height: 80px;
    text-align:left;
    font-size:15px;
    color:#FFF;
    padding:12px 0px;
  }
  .main-btn {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    background:rgba(0,0,0,.45);
    color:#fff;
    border:none;
    width:46px;
    height:46px;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .gallery h1 {
    font-size: 30px;
    color: #FFF;
  }
  .tgl-foto {font-size: 14px; color: #999; margin-bottom: 20px}

  .main-btn:hover { background:rgba(0,0,0,.7); }
  #prevMain { left:14px; }
  #nextMain { right:14px; }

  .thumb-bar {
    position:relative;
    padding:12px 48px;
    display:flex;
    align-items:center;
    background:#fff;
    margin-bottom: 30px;
  }
  .thumb-nav {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border-radius:50%;
    background:#fff;
    border:1px solid #ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:5;
  }
  .thumb-nav.left { left:8px; }
  .thumb-nav.right { right:8px; }
  .thumb-window {
    overflow:hidden;
    width:100%;
  }
  .thumbs {
    display:flex;
    gap:var(--thumb-gap);
    align-items:center;
    transition:transform .45s cubic-bezier(.2,.9,.3,1);
    padding:6px 0;
    will-change:transform;
  }
  .thumbs img {
    width:var(--thumb-w);
    height:var(--thumb-h);
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    opacity:.75;
    transition:all .18s ease;
    box-shadow:0 1px 4px rgba(0,0,0,.08);
    border:2px solid transparent;
  }
  .thumbs img.active {
    opacity:1;
    transform:scale(1.05);
    border-color:#007bff;
    box-shadow:0 6px 18px rgba(0,123,255,.12);
  }
  @media(max-width:640px){
    .main-wrap{ height:auto; max-height: 300px;}
    .main-wrap img {height: auto; max-height: 300px;}
    :root{ --thumb-w:90px; --thumb-h:60px; }
    .gallery h1 {
      width: 90%;
      padding: 5px 5%;
      font-size: 18px;
    }
    .caption {
      width: 90%;
      padding: 15px 4%;
      font-size: 12px;
    }
  }

  .listfoto {
    margin: -20px auto 0 auto;
    padding-top: 20px;
    width:100%;
    max-width:var(--container);
    overflow:hidden;
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 2%;
    position: relative;
  }
  .contentlist {
    position: relative;
    height: 420px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .gambar {
    border-radius: 4px;
    height: 300px;
    width: 100%;
    overflow: hidden;
  }
  .gambar img {width: 100%; min-height: 300px}
  .contentlist .info {margin: 10px 0}
  .contentlist .info h3{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    margin: 10px 0;
    font-size: 22px;
    text-align: left;
    color: #FFF;
  }
  .contentlist .info .tgl {
    font-size: 12px;
    color: #999;
  }
  .contentlist span {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 13px;
    color: #000;
    border-radius: 3px;
  }

  @media(max-width:640px){
    .contentlist {
      height: 190px;
    }
    .gambar {
      height: 90px;
    }
    .gambar img {min-height: 90px; height: auto;}
    .contentlist .info h3{font-size: 14px;}

  }