:root {
    --bg: #23262a;
    --tile: #2c2f34;
    --tile-hover: #393d43;
    --text: #e3e3e3;
    --accent: #4e5b6e;
    --radius: 12px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Arial, sans-serif;
}
header {
    padding: 24px 0 12px 0;
    text-align: center;
}
h1 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}
.back {
    position: absolute;
    left: 18px;
    top: 24px;
    color: var(--accent);
    font-size: 2rem;
    text-decoration: none;
    border-radius: var(--radius);
    padding: 0 8px;
}
.albums-grid, .photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding: 32px;
    justify-items: center;
}
.album-tile, .photo-thumb {
    background: var(--tile);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px #0003;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.2s;
    text-decoration: none;
    min-width: 160px;
    max-width: 280px;
    width: 100%;
    overflow: hidden;
}
.album-tile:hover, .photo-thumb:hover {
    background: var(--tile-hover);
}
.album-tile img, .photo-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    display: block;
}
.album-title {
    text-align: center;
    color: var(--text);
    font-weight: 500;
    padding: 14px 0 10px 0;
    width: 100%;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background: transparent;
}
.slideshow {
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44,47,52,0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
}
.slideshow img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px #0006;
}
.slideshow.hidden {
    display: none;
}
@media (max-width: 900px) {
    .albums-grid, .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 18px;
        padding: 14px;
    }
    .album-tile img, .photo-thumb img {
        height: 120px;
    }
}
@media (max-width: 500px) {
    h1 { font-size: 1.3rem; }
    .album-tile img, .photo-thumb img {
        height: 90px;
    }
    .album-title {
        font-size: 0.96rem;
        padding: 7px 0 7px 0;
    }
}
