// Sidebar
//--------------------------------------------------
@media #{$min-xl} {
    .pxl-sidebar-sticky {
      position: -webkit-sticky;
      position: sticky;
      top: 40px;
    }
    .admin-bar .pxl-sidebar-sticky  {
      top: 72px;
    }
}



.widget {
	.pxl-item--featured, 
	.pxl-author--avatar {
		img {
			width: 100%;
		}
	}
	&:not(.widget_search) {
		padding: 37px 34px 46px;
		background-color: #FFF;
		border-radius: 6px;
		@include box-shadow(0px 11.351px 68.108px 0px rgba(137, 151, 186, 0.15));
		@media #{$max-lg} {
			padding: 30px;
		}
		@media #{$max-xs} {
			padding: 20px;
		}
	}
	+ .widget {
		margin-top: 34px;
	}
	.widget-title, .pxl-widget-title {
		position: relative;
		@extend .h3;
		color: var(--dark-2);
		padding-bottom: 18px;
		margin-bottom: 30px;
		&:before {
			content: '';
			width: 34.054px;
			height: 3.405px;
			background-color: $primary_color;
			position: absolute;
			left: 0;
			bottom: 0;
			border-radius: 2px;
		}
	}
}

.widget_search {
	.searchform-wrap {
		position: relative;
	}
	.search-submit {
		width: 66px;
		height: 66px;
		top: 0;
		right: 0;
		padding: 0;
		position: absolute;
		color: #fff;
		z-index: 1;
		font-size: 18px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 6px;
		background-color: var(--primary-color);
		border: none;
	}
	.search-field {
		background-color: #fff;
		border-radius: 6px;
		border: 1.135px solid var(--boarder-grey-1);
		@extend .pxl-text4;
		line-height: 64px;
		padding: 0 71px 0 24px;
		color: var(--text-1);
		&:focus {
			border-color: $primary_color;
		}
	}
}

.widget_pxl_author_info_widget {
	.pxl-wg-content {
		@media #{$max-md} {
			display: inline-flex;
			align-items: center;
			gap: 30px;
		}
		@media #{$max-xs} {
			flex-direction: column;
		}
	}
	.pxl-author--avatar {
		margin-bottom: 25px;
		img {
			max-height: 221px;
			object-fit: cover;
		}
		@media #{$max-md} {
			margin-bottom: 0;
			img {
				min-width: 221px;
				width: 221px;
			}
		}
	}
	.pxl-author--desc {
		margin-bottom: 40px;
		@extend .pxl-text4;
		line-height: 1.4;
		@media #{$max-xs} {
			text-align: center;
		}
	}
	.pxl-author-socials {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-left: 13px;
		.pxl-item--social {
			display: inline-flex;
			width: 45px;
			min-width: 45px;
			height: 45px;
			border-radius: 50%;
			background: var(--light-green-1);
			font-size: 20px;
			color: var(--primary-color);
			@extend .pxl-hover-scale-bg;
			--hover-bg-color: var(--primary-color);
			&:hover {
				color: #FFF;
			}
		}
		@media #{$max-xl} {
			.pxl-item--social {
				width: 40px;
				min-width: 40px;
				height: 40px;
			}
			margin-left: 0;
		}
		@media #{$max-xs} {
			justify-content: center;
		}
	}
}

.widget_pxl_recent_posts {
	.pxl-item--featured {
		width: 52%;
		border-radius: 6px;
		overflow: hidden;
		.pxl-featured--link {
			display: block;
			width: 100%;
			height: 100%;
		}
		img {
			height: 100%;
		}
		@media #{$max-md} {
			max-width: 200px;
		}
		@media #{$max-sm} {
			width: 50%;
		}
	}
	.pxl-item--content {
		width: 48%;
		@media #{$max-md} {
			flex-grow: 1;
		}
	}
	.pxl--item {
		display: flex;
  		flex-wrap: nowrap;
		gap: 21.5px;
		padding-bottom: 27px;
  		+ .pxl--item {
  			padding-block: 27px;
			border-top: 1px solid rgba($color: #B0B6BC, $alpha: .15);
  		}
		@media #{$max-md} {
			gap: 15px;
		}
	}
	.pxl-item--title {
		@extend .h8;
		color: var(--dark-2);
		margin-bottom: 14px;
		@media #{$max-3xs} {
			font-size: 15px;
		}
	}
	.pxl-item--date {
		color: var(--primary-color);
		font-family: 'Montserrat';
		font-size: 12px;
		font-weight: 500;
		line-height: 1.08333;
	}
}

.widget_categories {
	.pxl-cat-item {
		@extend .h6;

		a {
			width: 100%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding-block: 13.5px 11px;
		}
		+ .pxl-cat-item {
			border-top: 1px dotted var(--text-3);
		}

		.pxl-count {
			@extend .pxl-text5;
			font-weight: 400;
		}
		&:last-of-type {
			a {
				padding-block: 13.5px 0;
			}
		}
	}

}

.widget_tag_cloud {
	.tagcloud {
		display: flex;
		gap: 7px;
		flex-wrap: wrap;
	}
	a {
		color: var(--primary-color);
		padding: 12px 23px;
		border: 1px solid var(--primary-color);
		font-family: 'Inter';
		font-size: 12px !important;
		font-weight: 500;
		line-height: 13px;
		text-transform: uppercase;
		@extend .pxl-dflex-center;
		&:hover {
			background-color: var(--primary-color);
			color: #FFF;
		}
	}
}

.gallery {
    margin: -10px -5px 0 -5px !important;
    display: flex;
    flex-wrap: wrap;
    .gallery-item {
        padding: 0 5px !important;
        margin: 24px 0 0 !important;
        img {
        	border: none !important;
        }
    }
    &.gallery-columns-2 .gallery-item {
        width: 50% !important;
    }
    &.gallery-columns-3 .gallery-item {
        width: 33.33% !important;
    }
    &.gallery-columns-4 .gallery-item {
        width: 25% !important;
    }
    &.gallery-columns-5 .gallery-item {
        width: 20% !important;
    }
}
#pxl-content-main {
	.gallery {
		margin: -5px -12px 38px -12px !important;
		.gallery-item {
			padding: 0 12px !important;
			margin: 24px 0 0 !important;
		}
	}
}

.widget_media_gallery, .elementor-widget-wp-widget-media_gallery, .elementor-widget-image-gallery {
    .gallery {
        margin: -10px -5px 0 -5px;
        .gallery-item {
            padding: 0 5px;
            margin-top: 10px !important;
            margin-bottom: 0;
            img {
                @include border-radius(0px);
                width: 100%;
                border: none !important;
            }
            a {
                display: block;
				position: relative;
                &:before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(#000, 0.67);
                    @include transition(all 250ms linear 0ms);
                    opacity: 0;
                    z-index: 1;
                }
                &:after {
                    content: "\f12c";
                    font-size: 15px;
                    font-family: "Caseicon";
                    color: rgba(#fff, 1);
                    z-index: 2;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    @include transform(translate(-50%, -50%));
                    @include transition(all 250ms linear 0ms);
                    opacity: 0;
                    font-weight: 400;
                }
                &:hover {
                    &:before, &:after {
                        opacity: 1;
                    }
                }
            }
        }
    }
}

.elementor-lightbox {
	.swiper-container {
		.elementor-lightbox-image {
			width: auto;
			height: auto;
		}
		.swiper-slide {
			background-color: transparent;
		}
	}
}

.pxl-gallery {
	margin: -8px -15px 26px -15px;
	display: flex;
	flex-wrap: wrap;
	img {
		width: 100%;
	}
	.pxl--item {
		padding: 26px 15px 0 15px;
	}
	.pxl--item-inner {
		@include border-radius(10px);
		overflow: hidden;
		position: relative;
		&.video-active:before {
			@extend .pxl-spill;
			background-color: rgba(#1b1b1b, 0.5);
		}
		.pxl-btn-video {
			position: absolute;
			top: 50%;
			left: 50%;
			@include transform(translate(-50%, -50%));
			z-index: 99;
		}
	}
	&.gallery-2-columns .pxl--item {
        width: 50%;
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-3-columns .pxl--item {
        width: 33.33%;
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-4-columns .pxl--item {
        width: 25%;
        @media #{$max-sm} {
        	width: 50%;
        }
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.gallery-5-columns .pxl--item {
        width: 20%;
        @media #{$max-sm} {
        	width: 50%;
        }
        @media #{$max-xs} {
        	width: 100%;
        }
    }
    &.masonry-style1 {
    	.pxl--item-inner {
    		@include border-radius(0px);
    	}
    }
}

.calendar_wrap {
	caption {
		margin-bottom: 10px;
	}
}

.widget_recent_comments {
	ul, ol {
		list-style: none;
		font-size: 16px;
		line-height: 24px;
		color: #080808;
		font-weight: 700;
		@extend .ft-secondary;
		a {
			color: inherit;
			&:hover {
				color: $primary_color;
			}
		}
		li + li {
			margin-top: 18px;
		}
	}
}

.widget_rss {
	.rss-widget-title {
		color: inherit;
	}
	ul, ol {
		margin: 0;
		list-style: none;
	}
	.rsswidget {
		display: block;
		font-size: 16px;
		line-height: 24px;
		color: #080808;
		font-weight: 700;
		@extend .ft-secondary;
	}
	.rss-date {
		font-size: 14px;
		display: block;
		margin-top: 4px;
		margin-bottom: 10px;
	}
	li + li {
		margin-top: 34px;
	}
	cite {
		display: block;
		margin-top: 4px;
		color: $primary_color;
	}
}

.widget_block {
	ul, ol {
		margin-bottom: 0;
		padding: 0;
		list-style: none;
	}
	.wp-block-search__label, .wp-block-group__inner-container > h2 {
		font-size: 22px;
		margin-bottom: 15px;
		position: relative;
		color: var(--secondary-color);
		font-weight: 700;
		@extend .ft-secondary;
		display: block;
	}
	.wp-block-latest-posts__list, .wp-block-latest-comments {
		font-size: 16px;
		line-height: 24px;
		color: var(--secondary-color);
		font-weight: 600;
		@extend .ft-secondary;
		a {
			color: inherit;
			&:hover {
				color: $primary_color;
			}
		}
		li + li {
			margin-top: 18px;
		}
	}
	.wp-block-latest-comments {
		color: #666;
		a {
			color: #080808;
			&:hover {
				color: $primary_color;
			}
		}
	}
	&.widget_search {
		.wp-block-search__inside-wrapper  {
			position: relative;
			.wp-block-search__button {
				height: 60px;
				width: 60px;
				background: transparent;
				top: 0;
				right: 0;
				@include border-radius(10px);
				padding: 0;
				position: absolute;
				color: var(--secondary-color);
				line-height: 60px;
				z-index: 1;
				font-size: 0px;
				@include box-shadow(none);
				border-color: #ececf0;
				&:before {
					content: "\f12c";
					font-family: "Caseicon";
					font-size: 14px;
					position: absolute;
					top: 50%;
					left: 50%;
					@include transform(translate(-50%, -50%));
				}
				&:hover {
					border-color: $primary_color;
					background-color: $primary_color;
					color: #fff;
				}
			}
			.wp-block-search__input  {
				border-color: #ececf0;
				color: var(--secondary-color);
				padding-left: 24px;
				border-radius: 10px;
			}
		}
	}
}

.widget_archive .nice-select ul.list {
	max-width: 320px;
}

.wp-calendar-table {
	background-color: #fff;
}

.pxl-wg-categories {
	margin: -20px -10px 0 -10px;
	display: flex;
	flex-wrap: wrap;
	.pxl-category {
		padding: 0 10px;
		margin-top: 20px;
	}
	.pxl-category--inner {
		min-height: 90px;
		position: relative;
		z-index: 1;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		overflow: hidden;
		@media #{$max-xs} {
			min-height: 120px;
		}
		&:before {
			content: '';
			@extend .pxl-spill;
			background-color: rgba(#000, 0.36);
			z-index: 12;
		}
		a {
			@extend .pxl-spill;
			z-index: 99;
		}
		span {
			color: #fff;
			font-size: 16px;
			font-weight: 700;
			@extend .ft-secondary;
			position: relative;
			z-index: 88;
		}
		.pxl-category--img {
			z-index: 11;
			@extend .pxl-spill;
			@include transition(all 0.5s ease);
			transform: scale(1.01,1.01);
		}
		&:hover .pxl-category--img {
			-webkit-transform: scale(1.07,1.07);
			transform: scale(1.07,1.07);
		}
	}
	&.columns-2 .pxl-category {
		width: 50%;
		@media #{$max-xs} {
			width: 100%;
		}
	}
}

.pxl-contact-info-widget {
	border-radius: 5px;
	overflow: hidden;
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 62px 30px;
	font-weight: 500;
	color: rgba(#fff, 0.8);
	.pxl-phone--number {
		margin-bottom: 16px;
		color: #fff;
		font-size: 34px;
		font-weight: 800;
		@extend .ft-secondary;
		@media #{$max-lg} {
			font-size: 28px;
		}
	}
	.pxl-item--icon {
		height: 62px;
		width: 62px;
		background-color: red;
		border-radius: 62px;
		font-size: 34px;
		display: inline-flex;
		justify-content: center;
		align-items: center;
		position: relative;
		z-index: 1;
		margin-bottom: 23px;
		&:before {
			content: '';
			background-color: #020626;
			position: absolute;
			top: 3px;
			right: 3px;
			bottom: 3px;
			left: 3px;
			border-radius: 100%;
			z-index: -1;
		}
		@extend .bg-gradient;
		i {
			@extend .text-gradient;
			&.active {
				animation: pxl_zigzag 0.8s ease-out infinite;
	            -webkit-animation: pxl_zigzag 0.8s ease-out infinite;
	        }
		}
	}
	.pxl-phone--link {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 99;
	}
	&:before {
		z-index: -1;
		@extend .pxl-spill;
		background-color: rgba(#020626, 0.85);
	}
}

body.rtl {
	// .widget {
	// 	.widget-title {
	// 		padding-left: 0;
	// 		padding-right: 42px;
	// 		&:before {
	// 			left: auto;
	// 			right: 0;
	// 		}
	// 	}
	// }
}