/**
 * Static-site fixes (PHP used inline SVG; gallery paths relied on .htaccess rewrites).
 */

/* Logo: style.css only sizes .logo svg; restore visibility for <img src="logo.svg"> */
#loader-site .logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.page-section.header .logo img {
	display: block;
	position: absolute;
	width: 650px;
	height: 110px;
	object-fit: contain;
}

@media only screen and (max-width: 1480px) {
	.page-section.header .logo img {
		width: 500px;
		height: 110px;
	}
}

@media only screen and (max-width: 1280px) {
	.page-section.header .logo img {
		width: 400px;
	}
}

@media only screen and (max-width: 700px) {
	.page-section.header .logo img {
		width: 100%;
		height: 80px;
	}
}

/* CMS property_date.aspx iframe in footer / disclaimer popin */
.last-update-date {
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: "Libre Franklin", "Noto Sans SC", "Noto Sans TC", sans-serif;
	line-height: 1.6;
	letter-spacing: 0.05em;
}

/* Center iframe; height must fit scaled content (iframe height × scale) */
.cms-property-date-frame {
	display: block;
	width: 100%;
	text-align: center;
	overflow: hidden;
}

.cms-property-date-frame .cms-property-date {
	display: inline-block;
	width: 420px;
	max-width: 100%;
	height: 22px;
	border: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	vertical-align: top;
	-webkit-transform-origin: top center;
	transform-origin: top center;
}

/* Disclaimer popin */
#popin-infos .last-update-date {
	color: #404041;
}

#popin-infos .cms-property-date-frame {
	/* 22px × scale(1.25) */
	height: 28px;
}

#popin-infos .cms-property-date-frame .cms-property-date {
	-webkit-transform: scale(1.25);
	transform: scale(1.25);
}

/* Page footer — CMS is black on white; invert for white text on dark bg */
.page-section.footer .last-update-date {
	color: #fff;
}

.page-section.footer .cms-property-date-frame {
	/* 22px × scale(1.5) */
	height: 33px;
}

.page-section.footer .cms-property-date-frame .cms-property-date {
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
	-webkit-filter: invert(1) grayscale(1) brightness(1.15);
	filter: invert(1) grayscale(1) brightness(1.15);
}

@media only screen and (max-width: 700px) {
	.cms-property-date-frame .cms-property-date {
		width: 100%;
		max-width: 340px;
	}
}
