/* OHP Photo Gallery Pages - CharlieBrown 2026 Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px 20px;
    color: white;
}

.season-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
}

.show-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: bold;
    font-style: italic;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.page-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    opacity: 0.9;
}

.gallery-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gallery-section h2 {
    color: #8b0000;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    align-items: start;
}

.photo-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.photo-card a {
    text-decoration: none;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.photo-caption {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #555;
    word-break: break-all;
}

.photo-card a:hover .photo-caption {
    color: #c41e3a;
}

.pagination {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.page-label {
    font-weight: 600;
    color: #333;
}

.page-num,
.page-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f8f8f8;
    color: #8b0000;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

a.page-num:hover,
a.page-btn:hover {
    background: #8b0000;
    color: white;
}

.page-num.current {
    background: #8b0000;
    color: white;
}

.page-btn.disabled {
    background: #eee;
    color: #999;
}

.links-section {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.links-section.single {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.link-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.link-card a {
    text-decoration: none;
    color: #8b0000;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    display: block;
}

.link-card a:hover {
    color: #c41e3a;
}

@media (min-width: 768px) {
    .links-section.single {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    header {
        padding: 30px 15px 15px;
    }

    .gallery-section {
        padding: 20px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .photo-card {
        padding: 6px;
    }

    .photo-caption {
        font-size: 0.75rem;
    }

    .pagination {
        padding: 15px;
    }

    .link-card {
        padding: 18px;
    }
}
