* {
	box-sizing: border-box;
}

body {
	background-color: #f7f5ef;
	color: #222;
	/*font-family: 'Cardo', serif;*/
	/*font-family: 'Sawarabi Mincho', sans-serif;*/
	font-family: 'Maven Pro', sans-serif;
}

.page-container {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.hidden {
	display: none !important;
}

/* Page header */
header.page-header {
	display: grid;
	grid-column-gap: 0;
	grid-template-columns: 150px auto 150px;
	grid-template-rows: auto auto;
	grid-template-areas:
		'page-header-left page-header-center page-header-right'
		'sub-header sub-header sub-header';
}

.page-header-left {
	grid-area: page-header-left;
	border-right: 3px solid #444;
	place-self: stretch;
	text-align: center;
	display: grid;
}

.page-header-center {
	grid-area: page-header-center;
	text-align: center;
	place-self: stretch;
	padding: 0 5px;
	margin: 0;
	position: relative;
}

.future7-image {
	max-width: 100%;
}

.page-header-center small {
	display: block;
	font-family: 'Cardo', serif;
	position: absolute;
	bottom: 0;
	right: 5px;
	font-size: 1em;
	background-color: #f7f5ef;
	color: #222;
}

.page-header-right {
	grid-area: page-header-right;
	border-left: 3px solid #444;
	place-self: stretch;
	text-align: center;
	display: grid;
}

.emotion-text {
	font-family: 'Cardo', serif;
	grid-area: sub-header;
	text-align: center;
	border-top: 3px solid #444;
	border-bottom: 2px solid #444;
	font-style: italic;
	margin: 5px 0;
	padding: 3px 10px;
}

.page-header-nav {
	text-decoration: none;
	color: #222;
	border-top-style: double;
	border-top-width: 8px;
	border-top-color: #222;
	display: block;
	margin: 0 5px;
	padding: 10px 0;
}

.page-header-nav:hover {
	color: white;
	background-color: #222;
}

.nav-filler {
	max-width: 90%;
	align-self: end;
	justify-self: center;
}

.page-header-icon {
	font-size: 60px;
}

.page-header-nav-text {
	font-family: 'Cardo', serif;
	font-size: 24px;
	margin: 15px 0;
	line-height: 1em;
	font-weight: bold;
}

.page-header-nav-text-small {
	font-family: 'Cardo', serif;
	font-size: 12px;
	margin: 0;
}

.text-center {
	text-align: center;
}

/* Image Fullscreen */
#Fullscreen {
	width: 100%;
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#Fullscreen img {
	display: block;
	max-height: 800px;
	margin: 2vw auto 0 auto;
	max-width: 95%;
}

/* Page Content */
#content {
	display: grid;
	grid-column-gap: 0;
	grid-template-columns: [col1-start] 25%[col2-start] 25%[col3-start] 25%[col4-start]
		
		 25%[content-end];
}

.main-headline {
	font-weight: bold;
	text-align: center;
	margin: 0;
	font-family: 'Cardo', serif;
	grid-column: col1-start/content-end;
}

.column1 {
	border-right: 1px solid #444;
	grid-column: col1-start/col2-start;
}

.column2 {
	border-right: 1px solid #444;
	border-left: 1px solid #444;
	grid-column: col2-start/col3-start;
}

.column3 {
	border-right: 1px solid #444;
	border-left: 1px solid #444;
	grid-column: col3-start/col4-start;
}

.column4 {
	border-left: 1px solid #444;
	grid-column: col4-start/content-end;
}

.block-center {
	border-right: 1px solid #444;
	border-left: 1px solid #444;
	grid-column: col2-start/col4-start;
}

.block-left {
	border-right: 1px solid #444;
	grid-column: col1-start/col3-start;
}

.block-right {
	border-left: 1px solid #444;
	grid-column: col3-start/content-end;
}

.big-block-left {
	border-right: 1px solid #444;
	grid-column: col1-start/col4-start;
}

.big-block-right {
	border-left: 1px solid #444;
	grid-column: col2-start/content-end;
}

.story {
	margin: 0 8px 10px 8px;
	container-name: story;
  	container-type: inline-size;
}

.story img {
	max-width: 100%;
}

.image-framed {
	border: 2px solid #444;
	border-radius: 3px;
	filter: grayscale(60%) contrast(120%);
}

.story img:hover, .story img:active {
	filter: none;
}

.story p, .story ul {
	text-align: justify;
	line-height: 1.3em;
	font-size: 1.2em;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.story p.cite {
	text-align: center;
	padding: 10px;
	margin: 5px;
	border: 2px solid #222;
	font-size: 1.2em;
	font-weight: bold;
}

.story.text-center p {
	text-align: center;
}

.story.text-italic p {
	font-style: italic;
}

.story h3 {
	font-family: 'Cardo', serif;
	font-size: 2em;
	text-align: center;
	margin: 0.5em 0;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.story figure {
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
}

.story figure figcaption {
	line-height: 1.3em;
	font-size: 1em;
	font-style: italic;
}

.story iframe {
	max-width: 100%;
}

.fake-ad {
	border: 3px solid #222;
	padding: 5px;
}

.fake-ad2 p {
	text-align: center;
}

.fake-ad2 h3 {
	font-size: 2em;
}

.fake-ad2 img {
	max-width: 60%;
	margin: 0 auto;
	display: block;
}

.story p strong {
	font-family: 'Cardo', serif;
	font-weight: bold;
	color: #1e95bc;
	font-style: italic;
}

.story p a {
	border-bottom: 1px dotted #1e95bc;
	text-decoration: none;
	color: #222;
	background-color: #c5e1ea;
}

.story p a:hover {
	color: white;
	background-color: #1e95bc;
}

.editor-info {
	font-family: 'Cardo', serif;
	font-weight: bold;
	font-style: italic;
	white-space: nowrap;
}

.lang-japanese {
	font-family: 'Sawarabi Mincho', sans-serif;
}

.wrap-text {
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
}

.break-story-after {
	border-bottom: 2px solid #444;
}

#footer {
	border-top: 2px solid #444;
	margin: 10px 0;
	padding-top: 10px;
}

/* GALLERY */

.gallery {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 10px;
	row-gap: 10px;
	margin-bottom: 15px;
}

.gallery figure {
	margin: 0;
}

.gallery figcaption {
	display: none;
}

/* MODAL*/
.modal {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	container-name: modal;
  	container-type: inline-size;
}

/* GALLERY DETAIL */

.image-showcase {
	position: absolute;
	width: 100%;
	height: 100%;
	margin: 0;
	background-color: white;
	border-radius: 5px;
	padding: 0;
}

.main-image {
	height: 100%;
}

.main-image figure {
	margin: 0;
  	height: 100%;
	position: relative;
	cursor: pointer;
}


.main-image figure img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.main-image figure figcaption {
	font-family: 'Maven Pro', sans-serif;
	font-weight: bold;
	font-size: 2em;
}

.stroke-text {
	position: absolute;
	bottom: 5px;
	width: 100%;
	text-align: center;

	color: black;
	text-shadow:
		0 0 6px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(0, 0, 0, 0.2);

	z-index: 2;
}

.stroke-text::before {
	position: absolute;

	top: 0;
	left: 0;

	width: 100%;
	text-align: center;

	content: attr(data-text);

	z-index: -1;
	-webkit-text-stroke-width: 6px;
	-webkit-text-stroke-color: #FFF;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	color: white;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.6);
	text-align: center;
	cursor: pointer;
	font-size: 3vw;
	width: 3vw;
	height: 3vw;
	line-height: 3vw;
}

.modal-close:hover {
	color: rgb(209, 214, 158);
	background-color: rgba(0, 0, 0, 1);
}

.image-previous, .image-next {
	position: absolute;
	font-size: 2em;
	height: 100%;
	color: white;
	background-color: rgba(0, 0, 0, 0.6);
	width: 1em;
	top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.image-previous:hover, .image-next:hover {
	background-color: rgba(0, 0, 0, 1);
}

.image-previous {
	left: 0;
}
.image-next {
	right: 0;
}

@media only screen and (max-width: 600px) {
	header.page-header {
		display: grid;
		grid-column-gap: 0;
		grid-template-columns: 50% 50%;
		grid-template-areas: 'page-header-center page-header-center'
			'page-header-left page-header-right' 'sub-header sub-header';
	}
	.page-header-left {
		border-right: 1px solid #444;
	}
	.page-header-right {
		border-left: 1px solid #444;
	}
	#content {
		display: block;
	}
	.column1, .column2, .column3, .column4, .block-center, .block-left, .block-right, .big-block-left, .big-block-right {
		border-left: 0;
		border-right: 0;
	}

	.modal-close {
		font-size: 10vw;
		width: 10vw;
		height: 10vw;
		line-height: 10vw;
	}

	.main-image figure figcaption {
		font-size: 1.2em;
	}
}

@container story (width > 300px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@container story (width > 600px) {
	.gallery {
		grid-template-columns: repeat(4, 1fr);
	}
}

@container modal (width > 400px) {
	.image-showcase {
		width: calc(100% - 30px);
		height: calc(100% - 30px);
		margin: 15px;
		padding: 5px;
	}

	.image-previous, .image-next {
		font-size: 4em;
		width: 1em;
	}
}