
body {
    color: #000000;
    background-color: #ffffff;
    font-family: serif;
    margin: 0;
    padding: 20px;
}

header {
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    margin: 5px 0;
    color: #333333;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
}

.gallery-item {
    border: 1px solid #000000;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    transition: box-shadow 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-item a {
    display: block;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .icon {
    font-size: 3em;
    color: #555555;
}

.item-info {
    padding: 10px;
    font-size: 0.9em;
    border-top: 1px solid #dddddd;
    word-break: break-all;
}

.item-info .name {
    font-weight: bold;
    font-size: 0.95em;
}

.item-info .path {
    color: #555555;
    font-size: 0.8em;
    margin-top: 4px;
    font-family: monospace;
}

.item-info .meta {
    color: #777777;
    font-size: 0.75em;
    margin-top: 4px;
}

video, audio {
    width: 100%;
    max-width: 600px;
    background: #000000;
    display: block;
    margin: 10px 0;
}

img {
    max-width: 100%;
    height: auto;
}

code {
    font-family: monospace;
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 2px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.meta-list li {
    padding: 4px 0;
    border-bottom: 1px solid #eeeeee;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 16px;
}

.gallery-item {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.thumb {
	width: 100%;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	overflow: hidden;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-thumb, .audio-thumb, .file-thumb {
	font-size: 48px;
	color: #999;
}

.title {
	padding: 8px 12px;
	font-size: 14px;
	text-align: center;
	word-break: break-word;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}