
.device {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 8px solid #000;/* 16px*/
  border-radius: 20px;/* 50px*/
  box-shadow: 0 0 0 4px #ccc, 0 0 20px rgba(0,0,0,0.5);
  overflow: hidden;
  background: #000;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #fff;
}

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

/* Notch / Dynamic Island */
.device-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Device-specific sizes (logical points) */
.device-iphone-14 {
  width: 390px;
  aspect-ratio: 390 / 844;
}
.device-iphone-14 .device-header {
  width: 210px;
  height: 30px;
}

.device-iphone-15 {
  width: 393px;
  aspect-ratio: 393 / 852;
}
.device-iphone-15 .device-header {
  width: 215px;
  height: 32px;
}

.device-iphone-16 {
  width: 402px;
  aspect-ratio: 402 / 874;
}
.device-iphone-16 .device-header {
  width: 220px;
  height: 34px;
}

/* Responsive scaling */
@media (max-width: 767px) {
  .device-iphone-14,
  .device-iphone-15,
  .device-iphone-16 {
    width: 100%;
  }
  
  .device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 5px solid #000;/* 16px*/
  border-radius: 20px;/* 50px*/
  box-shadow: 0 0 20px rgba(0,0,0,0.5);/*0 0 0 4px #ccc, 0 0 20px rgba(0,0,0,0.5);*/
  overflow: hidden;
  background: #000;
}
}

@media (min-width: 768px)  {/* and (max-width: 991px) */
  .device-iphone-14,
  .device-iphone-15,
  .device-iphone-16 {
    width: 100%;
  }

  .device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 10px solid #000;/* 16px*/
  border-radius: 50px;/* 50px*/
  box-shadow: 0 0 20px rgba(0,0,0,0.5);/*0 0 0 4px #ccc, 0 0 20px rgba(0,0,0,0.5);*/
  overflow: hidden;
  background: #000;
}
}