/* Gallery-specific styles */

/* Override album viewer styles to allow scrolling on gallery selection page */
body.gallery-page {
    overflow: auto !important;
    height: auto !important;
    background-color: var(--bg-primary) !important;
}

.gallery-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    padding-bottom: 4rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.gallery-controls-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.gallery-controls-container > * {
    pointer-events: auto;
}

.back-button {
    background: var(--bg-secondary, #f5f5f5);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary, #333);
    font-size: 1.5rem;
    font-weight: bold;
}

.back-button:hover {
    transform: scale(1.1);
}

.back-button:active {
    transform: scale(0.95);
}

.theme-toggle {
    background: var(--bg-secondary, #f5f5f5);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.album-card {
    background: var(--bg-secondary, #fff);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.album-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-tertiary, #f0f0f0);
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.album-description {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.album-count {
    font-size: 0.9rem;
    opacity: 0.6;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
