/* hero-gallery.css — 히어로 갤러리 스타일 */

/* 상단 히어로 이미지 3장 */
.pk-hero-gallery {
  width: 100%;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--pk-radius-md);
  overflow: hidden;
}

.pk-hero-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pk-hero-item {
  position: relative;
  border-radius: var(--pk-radius-md);
  background: #e5e7eb;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pk-hero-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pk-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
}

.pk-hero-nav--prev { left: 8px; }
.pk-hero-nav--next { right: 8px; }

.pk-hero-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  z-index: 10;
}

.pk-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  padding: 0;
  cursor: pointer;
}

.pk-hero-dot.is-active {
  width: 14px;
  background: var(--pk-primary);
}

@media (max-width: 900px) {
  .pk-hero-gallery { border-radius: 0; }
  .pk-hero-track { display: block; }

  .pk-hero-item {
    display: none;
    width: 100%;
  }

  .pk-hero-item.is-active { display: block; }

  .pk-hero-nav,
  .pk-hero-dots {
    display: flex;
  }
}

@media (min-width: 901px) {
  .pk-hero-nav,
  .pk-hero-dots {
    display: none;
  }
}
