@font-face {
	font-family: 'basiic';
	src: url('cinni.net/fonts/basiic.ttf') format('truetype');
}

body {
	margin: 0;
	padding: 0;
	font-family: "basiic", lucida grande,verdana,arial,helvetica;
	font-size: 12px;
}

h1{
  font-size: 30px;
	line-height: 2em;
}

h2 {
	font-size: 1em;
	border-bottom: 1px dotted #000;
	letter-spacing: 1px;
	font-style: normal;
}

section{
    padding: 0px;
    display: flex;
    flex-direction: column;
}
section ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	padding: 4px 0 8px;
	margin: 0;
}

section ul li {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 4px;
	text-align: center;
	letter-spacing: 1px;
	cursor: pointer;
}

section ul li:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

section ul li.active {
	font-style: italic;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0,0,0,0.6);
}

.text {
  color: white;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.film {
    display: flex;
    flex-wrap: wrap;
}

.film .itemBox{
    position: relative;
    margin: 5px;
    display: block;
    padding: 10px;
		width: 120px;
		height: 185px;
}
.film .itemBox.hide{
    display: none;
}
.film .itemBox img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film .itemBox p{
		line-height: 1.5;
}

@media (hover: hover) {
	.film .itemBox:hover .overlay {
		opacity: 1;
	}
}

@media (hover: none) {
	.film .itemBox .overlay {
		opacity: 1;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25));
	}

	.film .itemBox .text {
		top: auto;
		bottom: 6px;
		left: 50%;
		transform: translateX(-50%);
		width: 92%;
		font-size: 11px;
		line-height: 1.25;
	}
}

details[open] > summary {margin-bottom: 20px;}
