﻿/* === WebPage Row & Column Layout === */

/* Row container */
.wpe-row {
	display: flex;
	justify-content: center; /* centers inner wrapper horizontally */
	margin: 0 auto;
	padding:0px 0px;
	width: 100%;
}

.wpe-row-inner {
	display: flex;
	flex-wrap: wrap;
	width: 100%; /* this + max-width gives centering control */
	margin-left: 0em;
	margin-right: 0rem;
	box-sizing: border-box;
}

.wpe-column {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 200px;
}

.wpe-row.wpe-row--full {
	justify-content: flex-start; /* default left-aligned */
}

.wpe-row.light, .wpe-column.light {
	background-color: #f8f8f8;
}

.wpe-row.medium, .wpe-column.medium {
	background-color: #d8d8d8;
	padding:0px;
}

.wpe-row.dark, .wpe-column.dark {
	background-color: #444;
	color: #fff;
}

.wpe-row.dark .wpe-column {
	padding:10px 0px;
}

	.wpe-row.dark a, .wpe-column.dark a {
		color: #fff;
		text-decoration: none;
		transition: color 0.2s ease;
	}

		.wpe-row.dark a:hover, .wpe-column.dark a:hover {
			color: #eee;
		}

	.wpe-row.dark h3, .wpe-column.dark h3 {
		color: #fff;
	}

.wpe-item { 
	padding-top:0px !important;
}

.wpe-item:has(.af-photo) {
	min-height: 0 !important;
	line-height: 0 !important;
	padding: 0 !important;
	background: none !important;
}

/* === Content Types === */

/* Generic text block */
.af-text {
	line-height: 1.6;
	font-size: 1rem;
}

/* Captions */
.af-caption {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background-color: #f8f8f8;
	padding: 10px;
	border-radius: 4px;
	flex-wrap: wrap;
}

/* Layout modifiers */
.af-caption--top {
	flex-direction: column;
}

.af-caption--bottom {
	flex-direction: column-reverse;
}

.af-caption--left {
	flex-direction: row;
}

.af-caption--right {
	flex-direction: row-reverse;
}

/* Image sizing */
.af-caption img {
	max-width: 100%;
	height: auto;
	display: block;
}

.af-caption--left img,
.af-caption--right img {
	max-width: 300px;
}

/* Caption text block */
.af-caption-text {
	flex: 1;
	padding: 10px;
	line-height: 1.5;
}

/* === Slideshow (basic container styling) === */
.af-slideshow {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: block;
	background-color: #000;
}

.af-slides {
	position: relative;
	display: flex;
	transition: transform 0.3s ease-in-out;
}

.af-slide {
	flex: 0 0 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

	.af-slide.is-active {
		opacity: 1;
		position: relative;
	}

/* Optional: hide prev/next/dots if you decided not to use them */
.af-prev, .af-next, .af-dots {
	display: none;
}

/* === Responsive behavior === */
@media (max-width: 768px) {
	.wpe-row {
		flex-direction: column;
		/* add small left/right breathing space on mobile */
		margin-left: 0.5rem;
		margin-right: 0.5rem;
	}

	.wpe-column {
		width: 100% !important;
		padding-left: 0;
		padding-right: 0;
	}

	.af-caption--left, .af-caption--right {
		flex-direction: column;
	}

		.af-caption--left img,
		.af-caption--right img {
			max-width: 100%;
		}
}
