.buntywp-exp-media-container {
	position: relative;
	margin-bottom: 20px;
	max-width: 100%;

	.image-container {
		position: relative;

		figure {
			margin: 0;
			position: relative;

			.uploaded-media {
				width: 100%;
				height: 100%;
				display: block;
				object-fit: cover;
				box-sizing: border-box;
				cursor: pointer;
			}

			video.uploaded-media {
				background-color: #000;
				width: 100%;
			}

			.exp-media-lightbox-trigger {
				opacity: 0;
				position: absolute;
				top: 5%;
				right: 5%;
				transition: opacity 0.2s ease;
				background-color: rgba(90, 90, 90, 0.2509803922);
				-webkit-backdrop-filter: blur(16px) saturate(180%);
				backdrop-filter: blur(16px) saturate(180%);
				height: 20px;
				width: 20px;
				text-align: center;
				display: flex;
				justify-content: center;
				border-radius: 4px;
				border: none;
				padding: 4px 0;
				cursor: zoom-in;
			}

			&:hover button.exp-media-lightbox-trigger {
				opacity: 1;
				transition: opacity 0.2s ease;
			}

			.pip-button {
				display: none;
				position: absolute;
				top: 1rem;
				right: 1rem;
				z-index: 99;
				border: none;
				background: transparent;
				cursor: pointer;
				outline: none;
				border-radius: 50%;
				height: 30px;
				width: 30px;
				padding: 0;

				&:hover {
					background-color: rgba(0, 0, 0, 0.05);
					transform: scale(1.1);
				}
			}

			&:hover {

				.pip-button {
					display: block;
				}
			}
		}
	}

	.exp-media-actions {
		display: flex;
		align-items: center;
		padding: 8px 0;
		gap: 1rem;
		justify-content: space-between;

		.exp-media-action-item {
			display: flex;
			align-items: center;
		}

		.exp-media-button {
			background: transparent;
			border: none;
			padding: 6px;
			margin: 0;
			cursor: pointer;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;
			border-radius: 50%;

			&:hover {
				background-color: rgba(0, 0, 0, 0.05);
				transform: scale(1.1);
			}

			&:focus {
				outline: none;
			}
		}

		.exp-media-like-button {
			transition: transform 0.15s ease;

			.heart-icon {
				stroke: #262626;
				transition: all 0.2s ease;
				position: relative;
				z-index: 1;
			}

			&.liked .heart-icon {
				fill: #e0245e;
				stroke: #e0245e;
			}
		}

		.exp-media-like-count {
			font-weight: 600;
			color: #262626;
			font-size: 14px;
		}
	}

	.exp-media-lightbox {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.9);
		z-index: 1000;
		display: flex;
		justify-content: center;
		align-items: center;
		opacity: 1;
		transition: opacity 0.3s ease;

		.exp-media-item {

			&.full-width {
				position: relative;
				max-width: 90%;
				max-height: 90%;
				margin: 0 auto;

				img {
					width: 100%;
					height: 100%;
					display: block;
					object-fit: contain;
					box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
				}
			}

			.exp-media-remove-popup {
				position: absolute;
				top: 0;
				right: -40px;
				background-color: transparent;
				border: none;
				cursor: pointer;
				padding: 10px;
				z-index: 2;

				svg {
					fill: #fff;
					width: 24px;
					height: 24px;
				}
			}
		}
	}

	.exp-share-popup {
		position: absolute;
		top: 100%; /* position under share button */
		right: 0;
		margin-top: 0.5rem;
		background: #fff;
		border: 1px solid #ddd;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		padding: 0.5rem 1rem;
		display: flex;
		gap: 1rem;
		z-index: 10;
	}

	.exp-share-option {
		background: none;
		border: none;
		cursor: pointer;
		padding: 0.25rem;
		transition: transform 0.2s;
		outline: none;

		&:hover {
			transform: scale(1.1);
		}
	}

	.hide {
		opacity: 0;
		pointer-events: none;
	}

	.exp-media-toast {
		position: fixed;
		bottom: 30px;
		left: 50%;
		transform: translateX(-50%);
		background-color: #333;
		color: #fff;
		padding: 10px 20px;
		border-radius: 5px;
		font-size: 14px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
		z-index: 9999;
	}

}

@keyframes heartScale {

	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(0);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes heartBurst {

	0% {
		transform: scale(0);
	}

	50% {
		transform: scale(1.6);
	}

	100% {
		transform: scale(1);
	}
}
