/*
 * unnukeadvent - the doors of an advent page (advent.php).
 *
 * Always six doors in a row, without gaps (the closed doors form one
 * picture). The images keep their own size - the old calendars use
 * different sizes (e.g. advent 18: 83x94) - and are never enlarged; on a
 * narrow screen they only shrink. A single advent can be adjusted with the
 * preference "Own CSS" and the class .unnukeadvent-advent-<id>.
 */
.unnukeadvent-grid {
	display: grid;
	grid-template-columns: repeat(6, auto);
	justify-content: center;
	gap: 0;
	margin-bottom: 1rem;
}

.unnukeadvent-grid img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* A closed door without a closed image. */
.unnukeadvent-empty {
	width: 100px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	color: #888;
}

/*
 * Both menus (advent_menu.php - sidebar, advent_big_menu.php - centre):
 * six equal columns filling the menu, every image - also the empty-door
 * image and box with their fixed size (320 px by default) - shrunk to its
 * column, so six doors always fit the width of the block.
 */
.unnukeadvent-mini .unnukeadvent-grid,
.unnukeadvent-big .unnukeadvent-grid {
	grid-template-columns: repeat(6, 1fr);
}

.unnukeadvent-mini .unnukeadvent-grid img,
.unnukeadvent-mini .unnukeadvent-vacant,
.unnukeadvent-mini .unnukeadvent-empty,
.unnukeadvent-big .unnukeadvent-grid img,
.unnukeadvent-big .unnukeadvent-vacant,
.unnukeadvent-big .unnukeadvent-empty {
	width: 100% !important;
	height: auto;
	box-sizing: border-box;
}

.unnukeadvent-mini .unnukeadvent-empty {
	font-size: .75rem;
}

