/* SliderFlow frontend styles */

.sliderflow { width: 100%; margin: 0 0 1rem; }
.sliderflow-swiper { width: 100%; overflow: hidden; }

/* Image / gallery / carousel */
.sliderflow--image .swiper-slide,
.sliderflow--gallery .swiper-slide,
.sliderflow--carousel .swiper-slide { position: relative; }

.sliderflow-img {
	display: block;
	width: 100%;
	height: var(--sf-height, auto);
	object-fit: cover;
	border-radius: 8px;
}

.sliderflow-link { display: block; }

.sliderflow-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 12px 16px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0,0,0,.7));
	font-size: 14px;
	border-radius: 0 0 8px 8px;
}

/* ===== Image slider skins ===== */

/* Text left: caption anchored middle-left, narrower, stronger backdrop */
.sliderflow--skin-text-left .sliderflow-caption {
	right: auto; bottom: auto; top: 50%;
	transform: translateY(-50%);
	max-width: 60%;
	background: none;
	font-size: 20px; font-weight: 600; line-height: 1.3;
	border-radius: 8px;
	text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* Centered overlay: caption centered over a dimmed image */
.sliderflow--skin-centered .swiper-slide::after {
	content: ""; position: absolute; inset: 0;
	background: rgba(0,0,0,.32); border-radius: 8px; pointer-events: none;
}
.sliderflow--skin-centered .sliderflow-caption {
	inset: 0; bottom: auto; right: auto;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	background: none;
	font-size: 22px; font-weight: 600;
	padding: 24px;
	text-shadow: 0 1px 8px rgba(0,0,0,.5);
	z-index: 2;
}

/* Bottom caption bar: solid bar instead of gradient */
.sliderflow--skin-bottom .sliderflow-caption {
	background: rgba(0,0,0,.78);
	text-align: center;
	font-size: 15px;
}

/* Caption tint: dark text on light (for bright images / light brand) */
.sliderflow--cap-dark .sliderflow-caption {
	color: #1a1a1a;
	text-shadow: none;
}
.sliderflow--cap-dark.sliderflow--skin-default .sliderflow-caption,
.sliderflow--cap-dark.sliderflow--skin-bottom .sliderflow-caption {
	background: linear-gradient(transparent, rgba(255,255,255,.85));
}
.sliderflow--cap-dark.sliderflow--skin-bottom .sliderflow-caption {
	background: rgba(255,255,255,.9);
}
.sliderflow--cap-dark.sliderflow--skin-centered .swiper-slide::after {
	background: rgba(255,255,255,.35);
}

/* Video */
.sliderflow-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.sliderflow-video iframe,
.sliderflow-video .sliderflow-video-el {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* Post card */
.sliderflow-card {
	height: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}
.sliderflow-card-link { text-decoration: none; color: inherit; display: block; }
.sliderflow-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.sliderflow-card-body { padding: 14px 16px; }
.sliderflow-card-title { font-size: 16px; margin: 0 0 8px; line-height: 1.3; }
.sliderflow-card-excerpt { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* Swiper controls (scoped) */
.sliderflow .swiper-button-prev,
.sliderflow .swiper-button-next { color: #fff; }
.sliderflow .swiper-pagination-bullet-active { background: #7B2FFF; }

/* Before / After */
.sliderflow-ba {
	position: relative;
	width: 100%;
	height: var(--sf-height, 420px);
	overflow: hidden;
	border-radius: 8px;
	user-select: none;
	touch-action: none;
}
.sliderflow-ba img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.sliderflow-ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.sliderflow-ba-after { z-index: 1; }

.sliderflow-ba-label {
	position: absolute; bottom: 12px;
	padding: 4px 10px;
	font-size: 12px;
	color: #fff;
	background: rgba(0,0,0,.6);
	border-radius: 4px;
	z-index: 3;
}
.sliderflow-ba-label--before { left: 12px; }
.sliderflow-ba-label--after { right: 12px; }

.sliderflow-ba-handle {
	position: absolute; top: 0; left: 50%;
	width: 4px; height: 100%;
	background: #fff;
	transform: translateX(-50%);
	cursor: ew-resize;
	z-index: 4;
}
.sliderflow-ba--vertical .sliderflow-ba-handle {
	top: 50%; left: 0;
	width: 100%; height: 4px;
	transform: translateY(-50%);
	cursor: ns-resize;
}
.sliderflow-ba-handle-grip {
	position: absolute; top: 50%; left: 50%;
	width: 36px; height: 36px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.sliderflow-ba--vertical .sliderflow-ba-before { clip-path: inset(0 0 50% 0); }

/* WooCommerce product slider */
.sliderflow--wc .sliderflow-product {
	position: relative;
	height: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.sliderflow-product-thumb { display: block; }
.sliderflow-product-thumb img { width: 100%; height: auto; display: block; }
.sliderflow-product-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sliderflow-product-title { font-size: 15px; margin: 0; line-height: 1.35; }
.sliderflow-product-title a { text-decoration: none; color: inherit; }
.sliderflow-product-price { font-weight: 600; color: #111827; }
.sliderflow-product-price del { color: #9ca3af; font-weight: 400; margin-right: 6px; }
.sliderflow-product-price ins { text-decoration: none; color: #16a34a; }
.sliderflow-product-rating { font-size: 13px; }
.sliderflow-product-cart { margin-top: auto; }
.sliderflow-product-cart .button {
	display: inline-block;
	background: #7B2FFF;
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none !important;
}
.sliderflow-product-cart .button:hover,
.sliderflow-product-cart .button:focus { color: #fff; text-decoration: none !important; }
/* No theme underline on any product-card link/button */
.sliderflow-product a,
.sliderflow-product .button,
.sliderflow-product-title a,
.sliderflow-product-thumb { text-decoration: none !important; }
.sliderflow-product-cart .button.loading { opacity: .6; }
.sliderflow-product-cart .added { display: none; }

.sliderflow-badges {
	position: absolute;
	top: 10px; left: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sliderflow-badge {
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	padding: 3px 8px;
	border-radius: 4px;
	line-height: 1.4;
}
.sliderflow-badge--sale { background: #dc2626; }
.sliderflow-badge--oos { background: #6b7280; }

.sliderflow-product-autotext {
	font-size: 12px;
	font-weight: 600;
	color: #dc2626;
	background: #fef2f2;
	padding: 3px 8px;
	border-radius: 4px;
	display: inline-block;
}
.sliderflow-badge--new { background: #2563eb; }
.sliderflow-badge--featured { background: #7B2FFF; }
.sliderflow-badge--low_stock { background: #f59e0b; }

/* Review carousel */
.sliderflow--review .sliderflow-review-card {
	height: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sliderflow-review-rating .sf-star { font-size: 16px; color: #f59e0b; }
.sliderflow-review-rating .sf-star--empty { color: #d1d5db; }
.sliderflow-review-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	border: 0;
	padding: 0;
}
.sliderflow-review-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.sliderflow-review-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sliderflow-review-author { display: flex; flex-direction: column; }
.sliderflow-review-name { font-weight: 600; font-size: 14px; }
.sliderflow-review-date { font-size: 12px; color: #9ca3af; }
.sliderflow-review-source {
	font-size: 11px;
	color: #6b7280;
	margin-top: 2px;
}
.sliderflow-review-source--google { color: #4285F4; }
.sliderflow-review-source--facebook { color: #1877F2; }
.sliderflow-review-product { font-size: 13px; color: #7B2FFF; text-decoration: none; }

/* Minimal layout */
.sliderflow--review-minimal .sliderflow-review-card { border: 0; box-shadow: none; padding: 12px; text-align: center; }
.sliderflow--review-minimal .sliderflow-review-meta { justify-content: center; flex-direction: column; }
.sliderflow--review-minimal .sliderflow-review-photo { width: 56px; height: 56px; margin: 0 auto 6px; }

/* Testimonial layout */
.sliderflow--review-testimonial .sliderflow-review-card { text-align: center; align-items: center; background: #faf9ff; position: relative; padding-top: 38px; }
.sliderflow--review-testimonial .sliderflow-review-card::before {
	content: "\201C";
	position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
	font-size: 56px; line-height: 1; color: var(--sf-accent, #7B2FFF); opacity: .25;
	font-family: Georgia, "Times New Roman", serif;
}
.sliderflow--review-testimonial .sliderflow-review-text { font-size: 16px; font-style: italic; }
.sliderflow--review-testimonial .sliderflow-review-meta { flex-direction: column; }

/* Quick View */
.sliderflow-product-qv { margin-top: 6px; }
.sliderflow-qv-btn {
	background: transparent;
	border: 1px solid #7B2FFF;
	color: #7B2FFF;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
}
.sliderflow-qv-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.6);
	z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.sliderflow-qv-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 760px; width: 100%;
	max-height: 90vh; overflow: auto;
	padding: 28px;
}
.sliderflow-qv-close {
	position: absolute; top: 12px; right: 16px;
	background: none; border: 0;
	font-size: 28px; line-height: 1;
	cursor: pointer; color: #6b7280;
}
.sliderflow-qv-inner { display: flex; gap: 24px; flex-wrap: wrap; }
.sliderflow-qv-image { flex: 1 1 280px; }
.sliderflow-qv-image img { width: 100%; height: auto; border-radius: 8px; }
.sliderflow-qv-body { flex: 1 1 280px; }
.sliderflow-qv-title { margin: 0 0 12px; }
.sliderflow-qv-price { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.sliderflow-qv-desc { color: #4b5563; font-size: 14px; margin-bottom: 16px; }
.sliderflow-qv-cart { margin-bottom: 12px; }
.sliderflow-qv-cart .button {
	display: inline-block; background: #7B2FFF; color: #fff;
	padding: 10px 20px; border-radius: 6px; text-decoration: none;
}
.sliderflow-qv-link { color: #7B2FFF; font-size: 13px; }
.sliderflow-qv-loading { text-align: center; color: #9ca3af; padding: 40px; }

/* Multi-row grid spacing */
.sliderflow .swiper-grid-column > .swiper-wrapper { flex-direction: column; }

/* Marketing engine */
.sliderflow-ship-badge {
	display: inline-block;
	font-size: 11px; font-weight: 600;
	color: #16a34a; background: #f0fdf4;
	padding: 3px 8px; border-radius: 4px;
}
.sliderflow-stock-counter {
	font-size: 12px; font-weight: 600; color: #d97706;
}
.sliderflow-countdown {
	display: flex; gap: 6px; margin-top: 4px;
}
.sliderflow-countdown .sf-cd-unit {
	background: #111827; color: #fff;
	border-radius: 6px; padding: 4px 8px;
	font-size: 14px; font-weight: 700;
	min-width: 34px; text-align: center;
	display: flex; flex-direction: column; line-height: 1.1;
}
.sliderflow-countdown .sf-cd-unit small {
	font-size: 9px; font-weight: 400; opacity: .7;
}
.sliderflow-countdown.sf-cd-expired { opacity: .5; }

/* Story slider - bubbles */
.sliderflow--story .sliderflow-story-bubbles {
	display: flex; gap: 14px; overflow-x: auto; padding: 8px 0;
}
.sliderflow-story-bubble {
	flex: 0 0 auto;
	width: 72px;
	background: none; border: 0; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sliderflow-story-bubble img {
	width: 96px !important;
	height: 96px !important;
	min-width: 96px;
	max-width: 96px !important;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	padding: 4px;
	border: 3px solid #fff;
	background: linear-gradient(45deg, #f59e0b, #dc2626, #7B2FFF);
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.sliderflow-story-bubble img {
		width: 72px !important;
		height: 72px !important;
		min-width: 72px;
		max-width: 72px !important;
	}
}
.sliderflow-story-label { font-size: 12px; color: #374151; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.sliderflow-story-data { display: none; }

/* Story viewer - fullscreen */
.sliderflow-story-viewer {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(0,0,0,.92);
	display: flex; align-items: center; justify-content: center;
}
.sf-story-stage {
	position: relative;
	width: 100%; max-width: 420px; height: 100%; max-height: 92vh;
	background: #000; border-radius: 12px; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.sf-story-img { width: 100%; height: 100%; object-fit: contain; }
.sf-story-progress {
	position: absolute; top: 10px; left: 10px; right: 10px;
	display: flex; gap: 4px; z-index: 3;
}
.sf-story-bar { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; overflow: hidden; }
.sf-story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sf-story-close {
	position: absolute; top: 16px; right: 14px; z-index: 4;
	background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1;
}
.sf-story-caption {
	position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
	padding: 20px 16px; color: #fff;
	background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.sf-story-nav {
	position: absolute; top: 0; bottom: 0; width: 40%;
	background: none; border: 0; cursor: pointer; z-index: 2;
}
.sf-story-prev { left: 0; }
.sf-story-next { right: 0; }

/* Popup slider */
.sliderflow-popup[hidden] { display: none; }
.sliderflow-popup-overlay {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(0,0,0,.6);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.sliderflow-popup-box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 720px; width: 100%;
	max-height: 90vh; overflow: auto;
	padding: 24px;
}
.sliderflow-popup-close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: 0;
	font-size: 28px; line-height: 1; cursor: pointer; color: #6b7280;
	z-index: 2;
}

/* ===== Structured text overlay ===== */
.sliderflow-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 18px 20px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0,0,0,.7));
	display: flex; flex-direction: column; gap: 8px;
	align-items: flex-start;
	z-index: 2;
}
.sliderflow-heading { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 0; }
.sliderflow-subtext { font-size: 15px; opacity: .9; margin: 0; }
.sliderflow-caption-text { font-size: 15px; }
.sliderflow-btn {
	display: inline-block; margin-top: 4px;
	background: #534AB7; color: #fff;
	padding: 9px 22px; border-radius: 6px;
	font-size: 14px; font-weight: 600;
	text-decoration: none !important;
	box-shadow: none; border: 0;
	transition: opacity .15s ease;
}
.sliderflow-btn:hover,
.sliderflow-btn:focus { opacity: .9; color: #fff; text-decoration: none !important; }

/* Skin: text-left — overlay anchored middle-left, no gradient bar */
.sliderflow--skin-text-left .sliderflow-overlay {
	top: 0; bottom: 0; right: auto;
	justify-content: center; max-width: 60%;
	background: linear-gradient(90deg, rgba(0,0,0,.55), transparent);
	text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* Skin: centered — overlay centered over dimmed image */
.sliderflow--skin-centered .swiper-slide::after {
	content: ""; position: absolute; inset: 0;
	background: rgba(0,0,0,.32); border-radius: 8px; pointer-events: none; z-index: 1;
}
.sliderflow--skin-centered .sliderflow-overlay {
	inset: 0; align-items: center; justify-content: center; text-align: center;
	background: none; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Skin: bottom — solid bar */
.sliderflow--skin-bottom .sliderflow-overlay {
	background: rgba(0,0,0,.78); align-items: center; text-align: center;
}

/* Caption tint dark (dark text on light) */
.sliderflow--cap-dark .sliderflow-overlay { color: #1a1a1a; text-shadow: none; }
.sliderflow--cap-dark.sliderflow--skin-default .sliderflow-overlay,
.sliderflow--cap-dark.sliderflow--skin-bottom .sliderflow-overlay { background: linear-gradient(transparent, rgba(255,255,255,.85)); }
.sliderflow--cap-dark.sliderflow--skin-bottom .sliderflow-overlay { background: rgba(255,255,255,.9); }
.sliderflow--cap-dark.sliderflow--skin-text-left .sliderflow-overlay { background: linear-gradient(90deg, rgba(255,255,255,.85), transparent); }
.sliderflow--cap-dark.sliderflow--skin-centered .swiper-slide::after { background: rgba(255,255,255,.35); }

/* ===== Vertical slider ===== */
.sliderflow--vertical .sliderflow-swiper {
	height: var(--sf-height, 420px);
}
.sliderflow--vertical .swiper-slide {
	height: 100%;
}
.sliderflow--vertical .sliderflow-img {
	height: 100%;
}

/* ===== Thumbnails navigation ===== */
.sliderflow-thumbs {
	margin-top: 10px;
	box-sizing: border-box;
}
.sliderflow-thumbs .swiper-slide {
	width: 90px;
	height: 60px;
	opacity: .5;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	transition: opacity .15s ease;
}
.sliderflow-thumbs .swiper-slide-thumb-active { opacity: 1; }
.sliderflow-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ===== WooCommerce product card skins ===== */

/* Overlay: image fills card, title/price/badges over a gradient at bottom */
.sliderflow--card-overlay .sliderflow-product { position: relative; }
.sliderflow--card-overlay .sliderflow-product-thumb { display: block; }
.sliderflow--card-overlay .sliderflow-product-thumb img { width: 100%; height: 260px; object-fit: cover; display: block; }
.sliderflow--card-overlay .sliderflow-product-body {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(transparent, rgba(0,0,0,.8));
	padding: 14px; color: #fff;
}
.sliderflow--card-overlay .sliderflow-product-title,
.sliderflow--card-overlay .sliderflow-product-title a,
.sliderflow--card-overlay .sliderflow-product-price { color: #fff !important; }
.sliderflow--card-overlay .sliderflow-product-price del { color: rgba(255,255,255,.6); }

/* Minimal: hide cart button + rating, clean centered text */
.sliderflow--card-minimal .sliderflow-product-cart,
.sliderflow--card-minimal .sliderflow-product-rating,
.sliderflow--card-minimal .sliderflow-product-qv { display: none; }
.sliderflow--card-minimal .sliderflow-product-body { text-align: center; }

/* Horizontal: image left, info right (list style) */
.sliderflow--card-horizontal .sliderflow-product { display: flex; align-items: center; gap: 12px; }
.sliderflow--card-horizontal .sliderflow-product-thumb { flex: 0 0 40%; }
.sliderflow--card-horizontal .sliderflow-product-thumb img { width: 100%; height: 120px; object-fit: cover; }
.sliderflow--card-horizontal .sliderflow-product-body { flex: 1; padding-left: 0; }

/* ===== Logo carousel skins ===== */
.sliderflow--logo-boxed .swiper-slide {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 14px 18px;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
	display: flex; align-items: center; justify-content: center;
}
.sliderflow--logo-boxed .sliderflow-img { max-height: 60px; width: auto; object-fit: contain; }

.sliderflow--logo-grayscale .sliderflow-img {
	filter: grayscale(100%);
	opacity: .65;
	transition: filter .25s ease, opacity .25s ease;
}
.sliderflow--logo-grayscale .swiper-slide:hover .sliderflow-img {
	filter: grayscale(0);
	opacity: 1;
}

/* Story viewer "Shop now" CTA */
.sf-story-cta {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #1e1b4b;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 26px;
	border-radius: 30px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0,0,0,.3);
	z-index: 5;
}
.sf-story-cta:hover { background: #f0f0f5; color: #1e1b4b; }

/* ===== Gallery static skins (grid / masonry / justified) ===== */
.sliderflow--gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--sf-cols, 3), 1fr);
	gap: 10px;
}
.sliderflow--gallery-grid .sliderflow-gallery-item { position: relative; }
.sliderflow--gallery-grid .sliderflow-img {
	width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px;
	aspect-ratio: 1 / 1;
}

/* Masonry via CSS columns (uneven heights, light, no JS) */
.sliderflow--gallery-masonry {
	column-count: var(--sf-cols, 3);
	column-gap: 10px;
}
.sliderflow--gallery-masonry .sliderflow-gallery-item {
	break-inside: avoid;
	margin-bottom: 10px;
}
.sliderflow--gallery-masonry .sliderflow-img {
	width: 100%; height: auto; display: block; border-radius: 6px;
}

/* Justified-ish via flex rows (light, no JS) */
.sliderflow--gallery-justified {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.sliderflow--gallery-justified .sliderflow-gallery-item {
	flex: 1 1 auto;
	height: 200px;
}
.sliderflow--gallery-justified .sliderflow-gallery-item:nth-child(3n) { flex-grow: 2; }
.sliderflow--gallery-justified .sliderflow-gallery-item:nth-child(4n) { flex-grow: 1.5; }
.sliderflow--gallery-justified .sliderflow-img {
	width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px;
}

/* Captions inside static gallery items */
.sliderflow--gallery-grid .sliderflow-caption,
.sliderflow--gallery-masonry .sliderflow-caption,
.sliderflow--gallery-justified .sliderflow-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(transparent, rgba(0,0,0,.7));
	color: #fff; padding: 14px 10px 8px; font-size: 13px;
	border-radius: 0 0 6px 6px;
}
.sliderflow--gallery-masonry .sliderflow-gallery-item { position: relative; }

@media (max-width: 600px) {
	.sliderflow--gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.sliderflow--gallery-masonry { column-count: 2; }
}
