/* Insta Strip Grid */
.insta-strip-frontend-grid {
	display: grid;
	width: 100%;
}

.insta-strip-front-item {
	cursor: pointer;
	overflow: hidden;
	position: relative;
	transition: opacity 0.3s ease;
}

.insta-strip-front-item:hover {
	opacity: 0.8;
}

.insta-strip-front-item .item-inner {
	position: relative;
	width: 100%;
}

.insta-strip-front-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* Modal Overlay */
.insta-strip-modal {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.insta-strip-modal.is-open {
	display: flex;
	opacity: 1;
}

.insta-strip-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

/* Modal Content Box */
.insta-strip-modal-content {
	position: relative;
	width: max-content;
	max-width: 95vw;
	height: 85vh;
	background: #fff;
	display: flex;
	flex-direction: row;
	z-index: 1;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Modal Left (Media) */
.insta-strip-modal-left {
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.insta-strip-modal-left img,
.insta-strip-modal-left video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Modal Right (Products) */
.insta-strip-modal-right {
	width: 400px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: #fff;
	overflow-y: auto;
}

.insta-strip-modal-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.insta-strip-nav {
	display: flex;
	gap: 15px;
}

.insta-strip-nav span {
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
}

.insta-strip-nav span:hover {
	color: #000;
}

.insta-strip-modal-close {
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
}

.insta-strip-modal-close:hover {
	color: #000;
}

.insta-strip-modal-products {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.insta-strip-product-item {
	width: calc(50% - 10px);
	text-align: center;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.insta-strip-product-item img {
	width: 100px;
	height: auto;
	aspect-ratio: 3/4;
	object-fit: cover;
	margin-bottom: 12px;
}

.insta-strip-product-price {
	font-weight: 400;
	margin-bottom: 6px;
	font-size: 13px;
	color: #333;
}

.insta-strip-product-title {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.4;
	margin-bottom: 15px;
	color: #888;
	max-width: 120px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	display: block;
	white-space: normal;
}

.insta-strip-product-add {
	display: inline-block;
	background: #222 !important;
	color: #fff !important;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1px;
	padding: 9px 0;
	width: 120px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid #222 !important;
}

.insta-strip-product-add:hover {
	background: #fff !important;
	color: #222 !important;
}

.insta-strip-modal-meta {
	text-align: center;
	padding-top: 10px;
	margin-top: 10px;
}

.insta-strip-modal-caption {
	font-size: 14px;
	margin-bottom: 10px;
	font-style: italic;
	color: #444;
}

.insta-strip-modal-seen-on {
	font-size: 13px;
	text-align: center;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.insta-strip-modal-date {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #888;
	text-align: center;
	margin-bottom: 20px;
}

.insta-strip-socials {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.insta-strip-socials a {
	color: #666;
	display: flex;
	align-items: center;
}

.insta-strip-socials a:hover {
	color: #000;
}

/* Responsive */
@media (max-width: 768px) {
	.insta-strip-modal-content {
		display: flex;
		flex-direction: column;
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		overflow-y: auto;
		background: #fff;
		border-radius: 0;
	}
	
	.insta-strip-modal-right {
		display: contents;
	}

	.insta-strip-modal-top-bar {
		order: 1;
		flex-shrink: 0;
		padding: 15px 20px;
		margin-bottom: 0;
		background: #fff;
		position: sticky;
		top: 0;
		z-index: 10;
		border-bottom: 1px solid #eee;
	}

	.insta-strip-modal-left {
		order: 2;
		flex-shrink: 0;
		width: 100%;
		height: auto;
		background: #fff;
	}

	.insta-strip-modal-left img,
	.insta-strip-modal-left video {
		width: 100%;
		height: auto;
		max-height: none;
		object-fit: contain;
		display: block;
	}

	.insta-strip-modal-products {
		order: 3;
		flex-shrink: 0;
		padding: 20px 20px 0;
	}

	.insta-strip-modal-meta {
		order: 4;
		flex-shrink: 0;
		padding: 20px;
	}

	.insta-strip-modal-close {
		color: #333;
	}

}

