* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.services .service-item {
  position: relative;
}

.category-subtitle {
  position: absolute;
  top: 10px; /* atur sesuai kebutuhan */
  left: 0;
  right: 0;
  text-align: center;
}

.category-title {
  position: absolute;
  bottom: 10px; /* atur sesuai kebutuhan */
  left: 0;
  right: 0;
  text-align: center;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

/* LEFT GRID */
.gallery-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.img-box,
.gallery-right {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.img-box img,
.gallery-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* HOVER LEFT & RIGHT */
.img-box:hover .overlay,
.gallery-right:hover .overlay {
    opacity: 1;
}

/* TEXT */
.overlay h2 {
    background: rgba(255,255,255,0.9);
    padding: 14px 40px;
    font-size: 22px;
    letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .overlay {
        opacity: 1; /* selalu tampil di mobile */
    }
}

.product-page {
    background: #000;
}

/* DETAIL */
.detail {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

.detail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* INI KUNCI */
  display: block;
}

.detail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 30px;
    max-width: 60%;
}

.detail-overlay h1{
    font-weight: bold;
}

.detail-overlay h5{
    font-weight: bold;
}

/* THUMBNAIL */
.detail-thumbnail-wrapper {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.thumbnail {
    position: relative;
    width: 220px;
    height: 140px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    transition: opacity 0.4s ease;
}

.thumb-overlay h6 {
    background: rgba(255,255,255,0.9);
    padding: 12px 30px;
    color: black;
    letter-spacing: 2px;
}

.thumbnail:hover .thumb-overlay {
    background: transparent;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .detail {
        height: 45vh;
    }

    .detail-overlay {
        max-width: 100%;
    }

    .detail-thumbnail-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

