/* --- Global Styles --- */
html {
    padding: 0%;
    margin: 0%;
}

body {
    font-family: Arial, sans-serif;
    background: #FDD7E4;
    color: white;
    margin: 0;
    padding: 90px 0 0 0; /* Added top padding so albums don't sit under the fixed top logo-bar */
    overflow-x: hidden; 
}

body.grayscale {
    filter: grayscale(100%);
}

/* --- Gallery & Album Container Layout --- */
.gallery {
    column-count: 6;
    column-gap: 5px;
    max-width: 99%;
    margin: auto;
}

.video-container {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 100%;
    margin-bottom: 5px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

/* The Album Thumbnail Image */
.video-container img.lazy {
    grid-area: 1 / 1; 
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}

/* Hover States */
.video-container:hover img.lazy {
    filter: brightness(60%);
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    margin-top: 20px;
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: black;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 8px;
    width: 150px;
    transition: left 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.pagination a {
    color: white;
    text-decoration: none;
    background: #333;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
}

.pagination a:hover {
    background: #555;
}

/* --- Responsive Queries --- */
@media (max-width: 768px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 500px) {
    #top {
        height: 64px;
        padding: 0 15px;
    }
    
    .gallery {
        column-count: 2;
    }
}

.video-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(50, 50, 50, 0.5);
    color: #ffffff;
    padding: 8px;
    font-size: 11px;
    font-family: sans-serif;
    box-sizing: border-box;
    z-index: 1;
    backdrop-filter: blur(2px);

    /* --- Text Wrap Rules --- */
    white-space: normal; 
    line-height: 1.3; 
    word-wrap: break-word; 
    
    /* Album title box limits */
    max-height: 60%; 
    overflow-y: auto; 
}