/* static/css/style.css */
body { font-family: sans-serif; margin: 0; background-color: #f4f4f4; color: #333; }
header { background-color: #333; color: white; padding: 1em; text-align: center; }
header h1 a { color: white; text-decoration: none; }
main { max-width: 1200px; margin: 20px auto; padding: 20px; background-color: white; border-radius: 8px; }
footer { text-align: center; padding: 1em; margin-top: 20px; font-size: 0.9em; color: #777; }

.album-list { list-style: none; padding: 0; }
.album-list li { margin-bottom: 10px; background-color: #eee; padding: 10px; border-radius: 4px; }
.album-list li a { text-decoration: none; color: #007bff; font-weight: bold; }
.album-list li a:hover { text-decoration: underline; }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.image-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4; /* Adjust as needed for typical portrait photos */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s ease-in-out;
}
.image-item img:hover {
    transform: scale(1.05);
}
h2 { border-bottom: 2px solid #eee; padding-bottom: 10px; }

.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a:hover {
    background-color: #f0f0f0;
}
.pagination .current-page {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
}
.pagination .disabled {
    color: #ccc;
    border-color: #eee;
    cursor: default;
}
.pagination .ellipsis {
    border: none;
    padding: 8px 0;
}

/* static/css/style.css */
/* ... (existing styles) ... */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Example gradient */
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center; /* Center content if nav is simple */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* display: flex; /* Uncomment if logo and nav are side-by-side */
    /* justify-content: space-between; /* Uncomment for flex */
    /* align-items: center; /* Uncomment for flex */
}

.logo-area h1 {
    margin: 0;
    font-size: 2.5em; /* Larger font for logo */
    font-weight: bold;
}
.logo-area h1 a {
    color: white;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.logo-area .tagline {
    font-size: 1em;
    margin-top: 5px;
    color: #e0e0e0; /* Lighter color for tagline */
    opacity: 0.9;
}

.main-navigation {
    margin-top: 15px; /* Adjust if side-by-side with logo */
}
.main-navigation a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.main-navigation a:hover, .main-navigation a.active { /* Add 'active' class via Flask if needed */
    background-color: rgba(255,255,255,0.2);
    /* color: #f0f0f0; */
}

/* Adjust main content margin if header is fixed or has significant height */
main {
    /* margin-top: 20px; /* Or more, depending on header height */
}

/* static/css/style.css */
/* ... (existing styles) ... */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between items */
    padding: 0;
    list-style: none;
}

.album-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Important for rounded corners on image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex; /* Added for better structure if needed */
    flex-direction: column; /* Stack thumbnail and title */
}
.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.album-item a {
    text-decoration: none;
    color: #333;
    display: block; /* Make the whole item clickable */
    height: 100%; /* Ensure link fills item if flex is used */
}

.album-thumbnail {
    width: 100%;
    /* height: 200px; /* Fixed height for thumbnails */
    aspect-ratio: 4/3; /* Or use aspect-ratio for consistent shape */
    background-color: #f0f0f0; /* Placeholder background */
    overflow: hidden; /* Ensure image fits */
}
.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to fit, maintaining aspect ratio */
    display: block;
}

.album-title {
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 15px;
    margin: 0;
    text-align: center;
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Show ... if title is too long */
    border-top: 1px solid #f0f0f0; /* Separator line */
}
/* static/css/style.css */

.album-detail-page {
    padding: 20px;
}

.album-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.album-header h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
    color: #eee;
}

.image-count {
    font-size: 0.95em;
    color: #777;
}

.image-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust minmax for desired size */
    gap: 15px;
    margin-bottom: 30px;
}

.image-item-detail {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-item-detail img {
    width: 100%;
    height: auto; /* Or fixed height with object-fit: cover */
    aspect-ratio: 3/4; /* Example aspect ratio */
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.image-item-detail a:hover img {
    opacity: 0.85;
}

.album-navigation {
    text-align: center;
    margin-top: 20px;
}

.btn-back-to-list {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}
.btn-back-to-list:hover {
    background-color: #0056b3;
}
.page-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    display: block;
}
