/* Elite Web Stories Frontend Styles */
.ews-shortcode-wrapper {
	margin: 30px 0;
	position: relative;
}
.ews-sc-card {
	background: #12141d;
	border: 1px solid #333;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
	transition: transform 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.ews-sc-card:hover {
	transform: translateY(-5px);
	border-color: var(--ews-theme-color, #c5a059);
}
.ews-sc-img-link {
	display: block;
	position: relative;
	padding-top: 133%; /* approx 3:4 aspect ratio for stories */
	background: #0a0a0a;
	overflow: hidden;
}
.ews-sc-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ews-sc-content {
	padding: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
}
.ews-sc-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	line-height: 1.4;
}
.ews-sc-title a {
	text-decoration: none;
	color: #fff;
	transition: color 0.2s ease;
}
.ews-sc-title a:hover {
	color: var(--ews-theme-color, #c5a059);
}
.ews-sc-btn {
	display: inline-block;
	background: var(--ews-theme-color, #c5a059);
	color: #000 !important;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	transition: opacity 0.2s;
}
.ews-sc-btn:hover {
	opacity: 0.9;
}

/* Inline Viewer */
.ews-inline-viewer {
	position: relative;
	width: 100%;
	margin: 20px auto 30px auto;
	background: #12141d;
	border: 1px solid #333;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.ews-inline-header {
	padding: 10px 14px;
	background: rgba(0,0,0,0.85);
	text-align: center;
	border-bottom: 1px solid #333;
}
.ews-inline-title {
	margin: 0;
	font-size: 14px !important;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ews-inline-swiper {
	width: 100%;
	aspect-ratio: 3/4;
	max-height: 420px;
	background: #0a0a0a;
}
.ews-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100% !important;
	overflow: hidden;
}
.ews-slide-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}
.ews-inline-pagination {
	color: #fff !important;
	background: rgba(0,0,0,0.6);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	display: inline-block !important;
	width: auto !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	bottom: 15px !important;
}
.ews-sc-nav {
	color: #fff !important;
	background: rgba(0, 0, 0, 0.6);
	width: 36px !important;
	height: 36px !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}
.ews-sc-nav:after {
	font-size: 14px !important;
	font-weight: bold;
}
.ews-sc-nav:hover {
	background: var(--ews-theme-color, #c5a059);
	color: #000 !important;
}

/* Button layout */
.ews-buttons-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

/* Cards layout */
.ews-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}
