@charset "utf-8";
/** 基本 */
:root {
	--timg-w: 100px;
	--timg-h: 85px;
	--item-iwh: 256px;
}
body.gallery {
	--cb-hue: 37deg;
	--db-sat: 5%;	/*25%;*/
	--cb-lgh: 15%; /*55%;*/
}

div.main {
	background-image: url(../images/bg_paper.webp);
}
section p {
	line-height: 1.8;
}

/** アイテム */
div.items {
	display: flex;
	flex-wrap: wrap;
}
div.items > div {
	background: white;
	border: white 1px solid;
	margin: 0 2em 1em 0;
	width: calc(var(--item-iwh) + 2em);;
	display: flex;
	flex-direction: column;
}
div.items > div:hover {
	border-color: #eaeaf5;
}
div.items > div:has(a):hover {
	border-color: #99f;
}
div.items > div:has(a):hover {
	cursor: pointer;
}
div.items > div img {
	max-width: var(--item-iwh);
	max-height: var(--item-iwh);
	box-shadow: 1px 1px 6px rgb(0 0 0 / 0.3);
}
div.items div figure {
	width: var(--item-iwh);
	/*height: var(--item-iwh);*/
	min-height: calc(var(--item-iwh) * 0.8);
	margin: 0 auto;
	/*padding: 0.5em 1em;*/
	text-align: center;
}
div.items div figure.filler {
	/*width: calc(var(--item-iwh) - 20px);
	background: var(--bg-l4);*/
}
div.items > div a {
	text-decoration: none;
	color: black;
}
div.items > div a:first-child {
	flex-grow: 1;
}
div.items > div :is(a, span) {
	padding: 0.5em 1em;
	display: block;
	/*flex-grow: 1;*/
}
div.items .label {
	font-weight: bolder;
}
.gallery .label small {
	/* common.cssを一部上書き */
	font-size: 80%;
	font-weight: normal;
	max-width: none;
	margin-right: 0.5em;
}
div.items .caption {
	color: #050;
}
/* with annotview link */
div.items > div.annot:has(.aview),
div.items > div.annot:has(.aview):hover {
	border: none;
}
div.items > div.annot:has(.aview) a {
	border: white 1px solid;
}
div.items > div.annot a.aview {
	border-color: #f4f4f4 #fbfbfb #fbfbfb;
	background-color: #fbfbfb;
	color: #006;
}
div.items > div.annot:has(.aview) a:hover {
	border-color: #99f;
	background: #f9f9f9;
}

/** タイル画像 */
#galtitle {
	margin: 1em var(--secpad);
	position: relative;
	/*width: 100%;*/
	height: calc(var(--timg-h) * 2 + 50px);	/**/
	background-color: hsl(from var(--bg-basic) h s 30%);
	overflow: hidden;
}
#galtitle > div {
	display: flex;
}
#galimgs,
.galimgmask {
	/*
	display: flex;
	flex-wrap: wrap;
	*/
	display: grid;
 	width: 100%;
	height: calc(var(--timg-h) * 2);
	margin: 0;
	mask-image: linear-gradient(to right, rgba(0,0,0,1) 500px, rgba(0,0,0,0));
	mask-size: 100% 100%;
}
#galimgs img {
	width: var(--timg-w);
	height: var(--timg-h);
	object-fit: cover;
	transition: opacity 0.3s;
}
#galtitle h1 {
	position: absolute;
	bottom: 0;
	padding-left: 10px;
	background: linear-gradient(to right, rgba(0,0,0,1) 100px, rgba(0,0,0,0) 90%);
	height: 50px;
	width: 100%;
}