/* --- Wrapper --- */
.phone-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1330px; /* NEW: Max Width constraint */
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;

  /* --- SETTINGS --- */
  --phone-width: 280px;
  --mask-height-top: 80px;
  --mask-height-bottom: 120px;
  --mask-bg: #ffffff;
  --slide-height: 550px;
}

/* --- Navigation Buttons --- */
.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100; /* Above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}
.pc-nav:hover {
  background-color: #f5f5f5;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.pc-nav svg {
  width: 24px;
  height: 24px;
}
.pc-prev {
  left: 20px;
}
.pc-next {
  right: 20px;
}

/* --- 1. Phone Frame (Z-Index: 30) --- */
.phone-frame-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--phone-width);
  height: auto;
  z-index: 30;
  pointer-events: none;
}
.phone-frame-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 2. Static Masks (Z-Index: 20) --- */
.mask-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.pc-mask {
  position: absolute;
  background-color: var(--mask-bg);
  width: calc(50% - (var(--phone-width) / 2) + 2px);
}

.top-left {
  top: 0;
  left: 0;
  height: var(--mask-height-top);
}
.top-right {
  top: 0;
  right: 0;
  height: var(--mask-height-top);
}
.bottom-left {
  bottom: 0;
  left: 0;
  height: var(--mask-height-bottom);
}
.bottom-right {
  bottom: 0;
  right: 0;
  height: var(--mask-height-bottom);
}

/* --- 3. Track (Z-Index: 10) --- */
.phone-carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 0;
  scrollbar-width: none;
  align-items: center;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  position: relative;
  z-index: 10;
  height: var(--slide-height);
}

.phone-carousel-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.phone-carousel-track::-webkit-scrollbar {
  display: none;
}

/* --- 4. Slides --- */
.pc-slide {
  flex: 0 0 var(--phone-width);
  height: 100%;
  scroll-snap-align: center;
  position: relative;
  border-radius: 0;
}

.pc-slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
