article {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.textColumn {
	padding: 1.7em;
}

.textColumn p {
	margin-bottom: 0.6em;
}

article.top {
	padding-top: 5em;
}

article h2 {
	font-size: 3.325em;
	font-weight: 500;
	margin-bottom: 0.5em;
	min-height: 3em;
}

article h2 span {
	display: block;
	font-size: 2.1rem;
	font-weight: 700;
	margin-top: -0.1em;
}

.description a {
	text-decoration: underline;
}


article.transparent {
	background-color: rgba(255, 255, 255, 0.8);
}

/*********** Button styles *************/

.textColumn button {
	width: 100%;
}

button.icon {
	margin-bottom: 0.625em;
	padding: 0.5em 1em 0.5em 3em;
	position: relative;
	text-align: left;
	white-space: nowrap;
	font-size: 1em;
	letter-spacing: 0;
}

button.icon.fb {
	background-color: #3A5997;
}

button.icon.tw {
	background-color: #55ACEE;
}

button.icon::before {
	content: "";
	height: 1.5em;
	width: 1.5em;
	position: absolute;
	left: 1em;
	top: 0.35em;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

button.icon.fb::before {
	background-image: url('/assets/img/facebook.svg')
}

button.icon.tw::before {
	background-image: url('/assets/img/twitter.svg')
}

/** Columns **/

.row {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-between;
}

.row.justify {
	align-items: stretch;
	width: calc(100% + 0.625em);

}

.row.justify > * {
	flex-grow: 1;
	flex-basis: auto;
	width: auto;
	margin-right: 0.625em;
}

.row.gap {
	margin-bottom: 1em;
}

.row > * {
	overflow: hidden;
	position: relative;
	flex-basis: 100%;
}

.row.flexStart {
	justify-content: flex-start;
}

.row.flexStart > label {
	flex-basis: auto;
	width: 120px;
	text-align: center;
}

.oneHalf {
	flex-basis: calc((0.85em + (100% - 2.55em) / 2));
}

.oneFourth {
	flex-basis: calc((100% - 2.55em) / 4);
}

.threeFourth {
	flex-basis: calc(0.85em * 2 + (100% - 2.55em) / 4 * 3);
}

.row.flex .oneFourth.square {
}

/** Thumbnails **/
.thumbs {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	flex-direction: row;
}

.thumbs > * {
	overflow: hidden;
	position: relative;
}

.thumbs .twoPerColumn {
	flex-basis: 50%;
}

.thumbs .twoPerColumn.square {
	height: 0;
	padding-bottom: 50%;
}

.thumbs .twoPerColumn.video {
	height: 0;
	padding-bottom: calc(50% * 9 / 16);
}

/************* Alert ***************/

.alert.content {
	background-color: #fff;
	color: #000;
	cursor: pointer;
	width: 100%;
	display: flex;
	overflow: hidden;
}

.alert.content a {
	color: #000;
}


app-header .alert.confirm,
article .alert.confirm b:before {
	background-color: #00C225;
}

app-header .alert.warning,
article .alert.warning b:before {
	background-color: #FBBA00;
	color: #000;
}

app-header .alert.error,
article .alert.error b:before {
	background-color: #D11E00;
}

.alert.content > div {
	flex-grow: 1;
	height: 100%;
	position: relative;
	background-repeat: no-repeat;
	height: 35px;
}

.alert.content > div.text {
	height: auto;
}

.alert.content > div:first-child {
	width: 20%;
	background-size: 3em;
	background-position: center center;
	box-sizing: border-box;
	height: 3.5em;
}

.alert.content.warning > div:first-child,
article .alert.warning b:before {
	background-image: url("/assets/img/icon_alert.svg");
}

.alert.content.confirm > div:first-child,
article .alert.confirm b:before {
	background-image: url("/assets/img/icon_confirmed.svg");
}

.alert.content.error > div:first-child,
article .alert.error b:before {
	background-image: url("/assets/img/icon_error.svg");
}

.alert.content > div:nth-child(2) {
	width: 72%;
	display: block;
	margin: 0.3em 0;
}

.alert.content p {
	font-weight: 700;
	font-size: 1.5em;
}

.alert.content > div:last-child {
	width: 8%;
	background-image: url("/assets/img/icon_close.svg");
	background-size: 1.75em;
	background-position: center right;
	box-sizing: border-box;
	margin-right: 0.5em;
	height: 3.5em;
}

.alert.content a {
	color: #000;
	font-size: 1.3em;
	display: block;
	font-weight: bold;
}

article .alert {
	max-height: 0;
	min-height: 0;
	font-weight: 700;
	font-size: 1.2em;
	display: flex;
	background-color: #fff;
	border-radius: 0.15rem;
	overflow: hidden;
	position: relative;
}

article .alert b:before {
	content: '';
	border-radius: 50%;
	width: 2.8em;
	height: 2.8em;
	position: absolute;
	top: .3em;
	left: .3em;
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 2.8em;
}

article .alert b {
	align-self: center;
	color: #000;
	white-space: pre-line;
	padding: .45em .3em .3em 3.8em;
}

article .alert a {
	color: #000;
}

@media only screen and (orientation: portrait) and (min-width: 550px), only  screen and (min-width: 900px) and (orientation: landscape) {
	.alert.content > div:first-child {
		width: 10%;
		background-size: 3em;
	}

	.alert.content > div:nth-child(2) {
		width: 85%;
	}

	.alert.content > div:last-child {
		width: 5%;
	}
}

@media only screen and (orientation: portrait) and (min-width: 550px), only  screen and (min-width: 900px) and (orientation: landscape) {

	.thumbs .twoPerColumn {
		flex-basis: 25%;
	}

	.thumbs .twoPerColumn.square {
		padding-bottom: 25%;
	}

	.thumbs .twoPerColumn.video {
		height: 0;
		padding-bottom: calc(25% * 9 / 16);
	}
}

@media only screen and (min-width: 1100px) {
	/*** 2sp fixed -> 1100px */
	.thumbs .twoPerColumn {
		flex-basis: 25%;
	}

	.thumbs .twoPerColumn.square {
		padding-bottom: 25%;
	}

	.thumbs .twoPerColumn.video {
		height: 0;
		padding-bottom: calc(25% * 9 / 16);
	}
}
