/* Photofacts Photos op de website (fase 4b): ingang, profielen, posts en hashtags.
   Alleen geladen op de Photos-pagina's (PhotosPagina.CssSleutel in _Layout.cshtml).
   Alles met het voorvoegsel ph-, zodat niets botst met newstyle.css. */

.ph-pagina {
	box-sizing: border-box;
	margin: 4px auto 40px;
	max-width: 960px;
	padding: 0 12px;
	font-family: 'Open Sans', Verdana, sans-serif;
	color: #333;
}
.ph-pagina h1,
.ph-pagina h2 {
	color: #446da3;
	font-family: 'Open Sans', Verdana, sans-serif;
	float: none;
	width: auto;
}
.ph-pagina h1 { font-size: 26px; margin: 16px 0 4px; }
.ph-pagina h2 { font-size: 20px; margin: 28px 0 10px; }
.ph-pagina a { color: #446da3; }
.ph-kop p { margin: 4px 0; }

.ph-knop {
	display: inline-block;
	background: #446da3;
	border: 0;
	border-radius: 4px;
	color: #fff !important;
	cursor: pointer;
	font: 600 14px 'Open Sans', Verdana, sans-serif;
	padding: 8px 16px;
	text-decoration: none;
}
main a.ph-knop:hover,
.ph-knop:hover { background: #355a8a; text-decoration: none; }

.ph-melding {
	background: #f4f5f6;
	border-left: 3px solid #446da3;
	padding: 10px 12px;
}
.ph-leeg { color: #6f6f6f; }

/* --- raster --- */

.ph-raster {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(3, 1fr);
}
.ph-tegel {
	aspect-ratio: 1 / 1;
	display: block;
	overflow: hidden;
	position: relative;
}
main a.ph-tegel:hover { background-color: inherit; }
.ph-tegel img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .2s;
	width: 100%;
}
.ph-tegel:hover img { transform: scale(1.03); }
.ph-teken {
	color: #fff;
	font-size: 18px;
	position: absolute;
	right: 8px;
	text-shadow: 0 0 4px rgba(0, 0, 0, .6);
	top: 6px;
}
.ph-meer { margin: 16px 0; text-align: center; }

/* --- gevoelige inhoud (B21): het vervaagde beeld is 32 px breed; de css vergroot en vervaagt --- */

img.ph-vaag {
	filter: blur(18px);
	transform: scale(1.15);
}
.ph-tegel-vaag:hover img.ph-vaag { transform: scale(1.15); }
.ph-label {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	left: 0;
	position: absolute;
	right: 0;
	text-align: center;
	text-shadow: 0 0 4px rgba(0, 0, 0, .7);
	top: 45%;
}
.ph-volwassen {
	align-items: center;
	background: #f4f5f6;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0 0 12px;
	padding: 10px 12px;
}

/* --- post --- */

.ph-post {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	margin-top: 16px;
}
/* Een staande foto blijft binnen het scherm (de knop van de 18+-klik dus ook); de foto past erin. */
.ph-medium {
	background: #d8d8d8;
	max-height: 80vh;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.ph-medium img,
.ph-medium iframe {
	border: 0;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}
.ph-medium-vaag img.ph-vaag { object-fit: cover; }
.ph-medium-vaag-tekst {
	color: #fff;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	text-align: center;
	text-shadow: 0 0 4px rgba(0, 0, 0, .7);
	background: rgba(0, 0, 0, .25);
}
.ph-medium-vaag-tekst b { font-size: 18px; margin-bottom: 10px; }
.ph-medium-vaag-tekst .ph-volwassen {
	background: rgba(255, 255, 255, .92);
	color: #333;
	justify-content: center;
	margin: 0 16px;
	max-width: 420px;
	text-shadow: none;
}

.ph-carrousel { position: relative; }
.ph-dia-rij {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ph-dia-rij::-webkit-scrollbar { display: none; }
.ph-dia {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}
.ph-exif {
	color: #6f6f6f;
	font-size: 12px;
	margin-top: 6px;
}
.ph-dia-knop {
	background: rgba(255, 255, 255, .85);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
	height: 36px;
	line-height: 32px;
	position: absolute;
	top: calc(50% - 30px);
	width: 36px;
}
.ph-dia-vorige { left: 8px; }
.ph-dia-volgende { right: 8px; }
.ph-dia-knop[disabled] { opacity: 0; pointer-events: none; }
.ph-dia-stippen { margin-top: 8px; text-align: center; }
.ph-dia-stippen span {
	background: #c8c8c8;
	border-radius: 50%;
	display: inline-block;
	height: 6px;
	margin: 0 3px;
	width: 6px;
}
.ph-dia-stippen span.actief { background: #446da3; }

.ph-maker {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}
.ph-avatar { border-radius: 50%; height: 44px; object-fit: cover; width: 44px; }
.ph-avatar-klein { border-radius: 50%; flex: 0 0 28px; height: 28px; object-fit: cover; width: 28px; }
.ph-naam { font-weight: 600; text-decoration: none; }
.ph-handle { color: #6f6f6f !important; font-size: 13px; text-decoration: none; }
.ph-pro {
	background: #83c129;
	border-radius: 3px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	margin-left: 4px;
	padding: 1px 5px;
	vertical-align: middle;
}
.ph-bijschrift { line-height: 1.5; margin: 0 0 10px; overflow-wrap: anywhere; }
.ph-gegevens,
.ph-tellers { color: #6f6f6f; font-size: 13px; }
.ph-gegevens span,
.ph-tellers span { margin-right: 14px; }
.ph-keuze { color: #83c129; font-weight: 600; }
.ph-reacties {
	border-top: 1px solid #e4e4e4;
	list-style: none;
	margin: 12px 0;
	padding: 12px 0 0;
}
.ph-reacties li {
	display: flex;
	font-size: 14px;
	gap: 8px;
	line-height: 1.45;
	margin-bottom: 10px;
	overflow-wrap: anywhere;
}
.ph-reacties li .ph-naam { margin-right: 6px; }
.ph-reacties li.ph-antwoord { margin-left: 36px; }
.ph-app { color: #6f6f6f; font-size: 13px; font-style: italic; }

/* --- profiel --- */

.ph-profielkop {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	margin: 20px 0 24px;
}
.ph-avatar-groot { border-radius: 50%; flex: 0 0 120px; height: 120px; object-fit: cover; width: 120px; }
.ph-profielkop h1 { margin-top: 4px; }
.ph-profielkop p { margin: 4px 0; }
.ph-bio { line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }

/* --- telefoon --- */

@media screen and (max-width: 700px) {
	.ph-pagina { padding: 0 8px; }
	.ph-raster { gap: 2px; }
	.ph-post { display: block; }
	.ph-post-tekst { margin-top: 16px; }
	.ph-profielkop { gap: 14px; }
	.ph-avatar-groot { flex-basis: 76px; height: 76px; width: 76px; }
	.ph-pagina h1 { font-size: 21px; }
}

/* ================================================================ fase 4d: ingelogd op het web */

.ph-smal { margin-left: auto; margin-right: auto; max-width: 620px; }
.ph-klein { font-size: 16px !important; margin: 18px 0 8px !important; }
.ph-klein-grijs { color: #6f6f6f; font-size: 13px; }
.ph-fout { color: #b3261e; font-weight: 600; }
.ph-knop-licht { background: #e4e9f1; color: #355a8a !important; }
main a.ph-knop-licht:hover, .ph-knop-licht:hover { background: #d3dbe8; }
.ph-knop[disabled] { cursor: default; }

/* --- navigatie: bovenaan, op een telefoon onderin zoals de tabbalk van de app --- */

.ph-nav {
	align-items: center;
	border-bottom: 1px solid #e4e4e4;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	font-family: 'Open Sans', Verdana, sans-serif;
	gap: 4px 18px;
	margin: 8px auto 0;
	max-width: 960px;
	padding: 8px 12px;
}
.ph-nav a { color: #446da3; font-size: 14px; font-weight: 600; text-decoration: none; }
main .ph-nav a:hover { background: none; text-decoration: underline; }
.ph-nav a.actief { color: #222; }
.ph-nav-logo { color: #222 !important; font-size: 17px !important; margin-right: auto; }
.ph-nav-plaats {
	background: #83c129;
	border-radius: 4px;
	color: #fff !important;
	padding: 4px 10px;
}
.ph-teller {
	background: #d93025;
	border-radius: 9px;
	color: #fff;
	font-size: 11px;
	margin-left: 2px;
	padding: 1px 6px;
}

/* --- knoppen bij een post --- */

.ph-acties { align-items: center; display: flex; gap: 6px; margin: 8px 0; }
.ph-actie {
	background: none;
	border: 1px solid #d8d8d8;
	border-radius: 18px;
	color: #444 !important;
	cursor: pointer;
	font: 14px 'Open Sans', Verdana, sans-serif;
	padding: 4px 12px;
	text-decoration: none;
}
main a.ph-actie:hover, .ph-actie:hover { background: #f4f5f6; text-decoration: none; }
.ph-actie.aan { border-color: #d93025; color: #d93025 !important; }
.ph-actie[data-ph-bewaar].aan { border-color: #446da3; color: #446da3 !important; }
.ph-kopregel { align-items: flex-start; display: flex; justify-content: space-between; }

.ph-menu { position: relative; }
.ph-menu summary {
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	list-style: none;
	padding: 2px 8px;
}
.ph-menu summary::-webkit-details-marker { display: none; }
.ph-menu > div {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	min-width: 160px;
	position: absolute;
	right: 0;
	z-index: 20;
}
.ph-menu button {
	background: none;
	border: 0;
	cursor: pointer;
	display: block;
	font: 14px 'Open Sans', Verdana, sans-serif;
	padding: 9px 14px;
	text-align: left;
	width: 100%;
}
.ph-menu button:hover { background: #f4f5f6; }

.ph-reactie-acties { display: block; margin-top: 2px; }
.ph-reactie-acties button {
	background: none;
	border: 0;
	color: #6f6f6f;
	cursor: pointer;
	font: 12px 'Open Sans', Verdana, sans-serif;
	margin-right: 10px;
	padding: 0;
}
.ph-reactie-acties button:hover { color: #446da3; text-decoration: underline; }
.ph-reageer { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ph-reageer textarea { flex: 1 1 240px; }
.ph-reageer p { flex-basis: 100%; margin: 0; }

/* --- formulieren --- */

.ph-formulier label,
.ph-wijzig label { display: block; font-weight: 600; margin: 14px 0 4px; }
.ph-formulier input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ph-formulier textarea,
.ph-wijzig input:not([type="checkbox"]),
.ph-wijzig textarea,
.ph-reageer textarea,
.ph-dialoog textarea,
.ph-zoek input,
.ph-melding textarea {
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	box-sizing: border-box;
	font: 14px 'Open Sans', Verdana, sans-serif;
	padding: 8px 10px;
	width: 100%;
}
.ph-formulier .ph-knop, .ph-wijzig .ph-knop { margin-top: 16px; }
label.ph-vink { align-items: center; display: flex; font-weight: normal !important; gap: 8px; margin: 10px 0 0; }
.ph-handle-veld { align-items: center; display: flex; gap: 4px; }
.ph-handle-veld span { color: #6f6f6f; font-size: 16px; }
.ph-wijzig { background: #f4f5f6; margin: 0 0 14px; padding: 4px 14px 14px; }
.ph-zoek { display: flex; gap: 8px; margin: 10px 0 20px; }

.ph-dialoog {
	border: 0;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	max-width: 420px;
	padding: 4px 20px 16px;
	width: calc(100% - 32px);
}
.ph-dialoog::backdrop { background: rgba(0, 0, 0, .45); }
.ph-dialoog h2 { color: #446da3; font-size: 20px; }

.ph-toast {
	background: #222;
	border-radius: 6px;
	bottom: 24px;
	color: #fff;
	font: 14px 'Open Sans', Verdana, sans-serif;
	left: 50%;
	padding: 10px 16px;
	position: fixed;
	transform: translateX(-50%);
	transition: opacity .5s;
	z-index: 1000;
}
.ph-toast.weg { opacity: 0; }

/* --- feed --- */

.ph-kaart { border-bottom: 1px solid #e4e4e4; margin: 0 0 26px; padding-bottom: 14px; }
.ph-kaart-kop { align-items: center; display: flex; justify-content: space-between; }
.ph-kaart .ph-maker { margin-bottom: 8px; }
.ph-kaart .ph-bijschrift { margin: 4px 0; }

/* --- lijsten met mensen en meldingen --- */

.ph-mensen, .ph-meldingen { list-style: none; margin: 0; padding: 0; }
.ph-mensen li {
	align-items: center;
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	padding: 8px 0;
}
.ph-mensen li .ph-maker { margin: 0; }
.ph-meldingen li {
	align-items: center;
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 10px;
	padding: 10px 4px;
}
.ph-meldingen li.nieuw { background: #eef3fa; }
.ph-melding-tekst { flex: 1; font-size: 14px; }
.ph-melding-foto { height: 48px; object-fit: cover; width: 48px; }
.ph-profielknoppen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ph-profiel .ph-tellers a { color: #6f6f6f; margin-right: 14px; text-decoration: none; }

/* --- plaatsen --- */

.ph-kies {
	border: 2px dashed #b9c6da;
	border-radius: 8px;
	cursor: pointer;
	display: block !important;
	font-weight: normal !important;
	padding: 28px 16px;
	text-align: center;
}
.ph-kies.sleep { background: #eef3fa; border-color: #446da3; }
.ph-kies.vol { padding: 12px 16px; }
.ph-kies input { display: none; }
.ph-keuzes {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
.ph-keuzes li { aspect-ratio: 1 / 1; background: #eee; overflow: hidden; position: relative; }
.ph-keuzes img, .ph-keuzes video { height: 100%; object-fit: cover; width: 100%; }
.ph-keuze-naam { font-size: 11px; overflow-wrap: anywhere; padding: 6px; position: absolute; }
.ph-keuze-weg {
	background: rgba(0, 0, 0, .6);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	height: 24px;
	line-height: 22px;
	position: absolute;
	right: 4px;
	top: 4px;
	width: 24px;
}
.ph-voortgang { background: #e4e4e4; border-radius: 4px; height: 22px; margin-top: 16px; position: relative; }
.ph-voortgang div { background: #83c129; border-radius: 4px; height: 100%; transition: width .2s; width: 0; }
.ph-voortgang span { font-size: 12px; left: 8px; line-height: 22px; position: absolute; top: 0; }

@media screen and (max-width: 700px) {
	.ph-nav {
		background: #fff;
		border-top: 1px solid #e4e4e4;
		bottom: 0;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
		gap: 0;
		justify-content: space-around;
		left: 0;
		margin: 0;
		max-width: none;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		position: fixed;
		right: 0;
		z-index: 50;
	}
	.ph-nav a { align-items: center; display: flex; flex-direction: column; font-size: 11px; }
	.ph-nav a span { font-size: 20px; line-height: 1.1; }
	.ph-nav-logo { display: none !important; }
	.ph-nav-plaats { background: none; color: #446da3 !important; padding: 0; }
	.ph-pagina { padding-bottom: 70px; }
}

/* In de feed staat de foto in een link naar de post; die link moet de hele ruimte vullen,
   anders is de foto 0 px hoog en laadt hij (loading="lazy") nooit. */
.ph-medium > a { display: block; height: 100%; }
