/* --- 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; 
}


        .album-info-container {
            background-color: #ffffff;
            border-radius: 15px;
            width: 99%;
            margin: 20px auto;
            padding: 20px;
            box-sizing: border-box; /* Ensures padding doesn't push width past 99% */
            box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Optional: adds a soft shadow so white box stands out */
        }
        
        /* Top Row: Title Left, Date Right */
        .info-top-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .info-top-row h1 {
            margin: 0;
            font-size: 2em;
            color: #333;
        }
        .info-top-row .date {
            margin: 0;
            font-weight: bold;
            font-size: 1.1em;
            color: #333;
        }
        
        /* The Stripe */
        .info-stripe {
            border: 0;
            height: 1px;
            background-color: #e0e0e0; /* Light gray line */
            margin: 15px 0;
        }
        
        /* Bottom Content: Stacked Left */
        .info-bottom-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            max-width: 600px; /* Limits width so text and map don't stretch indefinitely on huge screens */
        }
        .info-bottom-content .lorem-text {
            margin: 0 0 15px 0;
            font-size: 0.95em;
            color: #555;
            line-height: 1.5;
            text-align: left;
        }
        .map-container {
            width: 100%;
        }
        .map-container iframe {
            border-radius: 8px;
            width: 100%;
            height: 200px; /* Slightly taller for better visibility */
        }


/* --- Chatbox Styles --- */
.chatbox-container {
    background-color: #ffffff;
    border-radius: 15px;
    width: 99%;
    margin: 30px auto;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #333;
}

.chatbox-container h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.chatbox-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.form-group input, 
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    align-self: flex-start;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #555;
}

/* --- Message Cards List --- */
.chatbox-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.message-card {
    background: #fdf6f8; /* Very soft pink tint matching the layout */
    border-left: 4px solid #FDD7E4;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.message-number {
    font-weight: bold;
    background: #333;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.8em;
    border-radius: 4px;
}

.message-name {
    font-weight: bold;
    color: #111;
}

.message-date {
    color: #888;
    font-size: 0.85em;
    margin-left: auto; /* Push date to the far right side */
}

.message-body {
    color: #444;
    line-height: 1.4;
    font-size: 0.95em;
}

.message-body p {
    margin: 0;
    word-break: break-word;
}