         view.layer.shadowOpacity = 0.6
         view.layer.cornerRadius = 5
         view.layer.shadowColor = UIColor.darkGray.cgColor
-        view.layer.shadowOffset = CGSize(width: 0, height: 1)
-        view.layer.shadowRadius = 2
         view.layer.shouldRasterize = true
         view.accessibilityIdentifier = "Shadow"
 
+        self.setShadow(attributes: unselectedShadowAttributes)
         return view
     }()
 


    override var isSelected: Bool {
        didSet {
            if isSelected {
                shadowView.layer.shadowOffset = CGSize(width: 0, height: 2)
                shadowView.layer.shadowRadius = 5
            } else {
                shadowView.layer.shadowOffset = CGSize(width: 0, height: 0.5)
                shadowView.layer.shadowRadius = 2
            }
        }
    }
    
    private func setupViews() {
        contentView.addSubview(roundedBackgroundView)


    var placeImage: UIImageView
    var labelContainer: UIView
}

fileprivate struct CellShadowAttributes {
    let radius: CGFloat
    let offset: CGSize
}

fileprivate let selectedShadowAttributes = CellShadowAttributes(radius: 5, offset: CGSize(width: 0, height: 2))
fileprivate let unselectedShadowAttributes = CellShadowAttributes(radius: 2, offset: CGSize(width: 0, height: 0.5))

class PlaceCarouselCollectionViewCell: UICollectionViewCell {

