// Playlist Slideshow
.playlist-slideshow-shortcode {
    
    .haru-shortcode-title {
        font-size: 20px;
        margin-bottom: 24px;
        position: relative;
        font-weight: $fw_medium;
        color: $heading_color;

        @media screen and (max-width: $screen-sm-max) {
            font-size: 18px;
        }

        @media screen and (max-width: $screen-xs-max) {
            font-size: 16px;
        }

        &:before {
            content: '';
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 1px;
            background-color: $border_color;
        }

        span {
            position: relative;
            display: inline-block;
            padding-bottom: 15px;

            &:before {
                content: '';
                position: absolute;
                width: $under_line_width;
                height: 1px;
                bottom: 0;
                background-color: $primary_color;
            }
        }
    }

	// Slick general
	.haru-slick {
		display: none;

		&.slick-initialized {
			display: block;
		}

		&:hover {
			.slick-arrow {
		        &.slick-prev, 
		        &.slick-next {
					opacity: 1;
					transition: all .3s;
		        }
	        }
		}
	}

	// Default - Slick 1
	&.default {
		overflow: hidden;

		.playlist-list {
			margin: 0 -15px;
		}

		.playlist-item {
			padding: 0 15px;
		}
	}
	
	// Arrow
    .slick-arrow {
        &.slick-prev, 
        &.slick-next {
            background: rgba($black, .3);
            border: none;
            color: transparent;
            cursor: pointer;
            display: block;
            font-size: 0;
            line-height: 0;
            outline: none;
            opacity: 0;
            padding: 0;
            position: absolute;
            top: 50%;
            z-index: 99;
            width: 30px;
            height: 30px;
            border-radius: $border_radius_small;
            transform: translateY(-50%);
            transition: all .3s;

            &:before {
                color: $white;
                font-family: 'slick';
                font-size: 14px;
                line-height: 1;
                opacity: 1;
                transition: all .3s;
            }

            &:hover {
                background-color: $primary_color;

                &:before {
                    background-color: $white;
                    transition: all .3s;
                }
            }
        }

        &.slick-prev {
            left: 15px;

            &:before {
                display: inline-block;
                background-repeat: no-repeat;
                background-size: cover;
                content: '';
                -webkit-mask-image: url(../images/icon-arrow-left.svg);
                mask-image: url(../images/icon-arrow-left.svg);
                width: 4.69px;
                height: 8px;
                background-color: $white;
            }
        }
        
        &.slick-next {
            right: 15px;

            &:before {
                display: inline-block;
                background-repeat: no-repeat;
                background-size: cover;
                content: '';
                -webkit-mask-image: url(../images/icon-arrow-right.svg);
                mask-image: url(../images/icon-arrow-right.svg);
                width: 4.69px;
                height: 8px;
                background-color: $white;
            }
        }
    }

    // Dots
    .slick-dots {
        list-style: none;
        padding: 0;
        text-align: center;

        @media screen and(max-width: $screen-xs-max) {
            bottom: 15px;
        }

        li {
            display: inline-block;
            padding: 0 12px;
            &.slick-active {
                button {
                    width: 16px;
                    height: 16px;
                    background: transparent;
                }
            }

            button {
                width: 8px;
                height: 8px;
                display: block;
                background: $black;
                border: 1px solid $black;
                font-size: 0;
                padding: 0;
                border-radius: 50%;
                
                &:focus {
                    outline: none;
                }
            }
        }
    }
}
