/* Phuong Nam Realty - Custom News Article Gallery Slider */
.pn-gallery-wrapper {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
  user-select: none;
}

.pn-gallery-slider {
  display: flex !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.pn-gallery-slider::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari */
}

.pn-gallery-slider.is-dragging {
  scroll-behavior: auto !important;
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

/* Nav Buttons */
.pn-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  outline: none;
}

.pn-gallery-nav-btn:hover {
  background: #D4AF37;
  color: #0A192F;
  border-color: #D4AF37;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.pn-gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.pn-gallery-nav-btn.pn-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.pn-gallery-prev {
  left: 12px;
}

.pn-gallery-next {
  right: 12px;
}

/* Dots */
.pn-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.pn-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.pn-gallery-dot:hover {
  background: #94A3B8;
  transform: scale(1.2);
}

.pn-gallery-dot.is-active {
  width: 26px;
  background: #D4AF37;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

@media (max-width: 640px) {
  .pn-gallery-nav-btn {
    width: 34px;
    height: 34px;
  }
  .pn-gallery-prev {
    left: 6px;
  }
  .pn-gallery-next {
    right: 6px;
  }
}
