
.gallery-container {
    margin-bottom: 32px;
    /* Mobile (max-width: 700px) */
    /* Tablet/iPad (701px - 1024px) */
    /* Desktop (> 1024px) */
  }
  .gallery-container #gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas: "m m s1 s2" "m m s3 s4";
    height: 560px;
    overflow: hidden;
    gap: 8px;
  }
  .gallery-container #gallery .photo {
    overflow: hidden;
  }
  .gallery-container #gallery .photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .gallery-container #gallery .photo img:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
  }
  .gallery-container #gallery .photo:nth-child(1) {
    grid-area: m;
  }
  .gallery-container #gallery .photo:nth-child(1) img {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  .gallery-container #gallery .photo:nth-child(2) {
    grid-area: s1;
  }
  .gallery-container #gallery .photo:nth-child(3) {
    grid-area: s2;
  }
  .gallery-container #gallery .photo:nth-child(3) img {
    border-top-right-radius: 10px;
  }
  .gallery-container #gallery .photo:nth-child(4) {
    grid-area: s3;
  }
  .gallery-container #gallery .photo:nth-child(5) {
    grid-area: s4;
  }
  .gallery-container #gallery .photo:nth-child(5) img {
    border-bottom-right-radius: 10px;
  }
  .gallery-container #gallery .photo.hide-desktop {
    display: none;
  }
  .gallery-container #gallery button {
    grid-area: s4;
    align-self: end;
    justify-self: end;
    position: relative;
    bottom: 0.8em;
    right: 0.8em;
    padding: 0.5em 1em;
    border: 0;
    background: white;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
  }
  .gallery-container #gallery button:hover {
    filter: brightness(90%);
  }
  @media (max-width: 700px) {
    .gallery-container {
      margin-bottom: 24px;
    }
    .gallery-container #gallery {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      height: 400px;
      gap: 0;
    }
    .gallery-container #gallery .photo {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }
    .gallery-container #gallery .photo img {
      border-radius: 10px; /* Border-radius 10px untuk semua gambar di mobile */
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
    .gallery-container #gallery .photo.hide-desktop {
      display: block; /* Tampilkan semua gambar di mobile */
    }
    .gallery-container #gallery button {
      display: none;
    }
  }
  @media (min-width: 701px) and (max-width: 1024px) {
    .gallery-container #gallery .photo.hide-desktop {
      display: none; /* Sembunyikan di tablet */
    }
  }
  @media (min-width: 1025px) {
    .gallery-container #gallery .photo.hide-desktop {
      display: none; /* Sembunyikan di desktop */
    }
  }
  
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow: auto;
  }
  .lightbox .lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
  }
  .lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
  }
  .lightbox .close-btn {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 50px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    z-index: 1001;
  }
  .lightbox .prev-btn,
  .lightbox .next-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 15px;
    cursor: pointer;
    opacity: 1;
    transition: background 0.3s, color 0.3s;
  }
  .lightbox .prev-btn {
    left: 20px;
  }
  .lightbox .next-btn {
    right: 20px;
  }
  .lightbox .prev-btn:hover,
  .lightbox .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
  }