/* --- GALLERY STYLES (from before) --- */
.page-header { text-align: center; border-bottom: 1px solid #ddd; margin: 21px 0 0px!important; }
.page-header h1 { font-size: 2.5rem; color: #333; }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 42px 28px; max-width: 1400px; margin: 0 auto; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); cursor: pointer; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); color: white; padding: 30px 15px 15px; font-size: 1rem; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* --- LIGHTBOX STYLES (from before) --- */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000; display: none; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; animation: lightboxZoomIn 0.4s ease-out; }
@keyframes lightboxZoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.lightbox-image { max-width: 100%; max-height: 80vh; border-radius: 5px; box-shadow: 0 0 40px rgba(0,0,0,0.5); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 15px; font-size: 1.1rem; }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(30, 30, 30, 0.6); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 28px; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; transition: background-color 0.2s ease; z-index: 1001; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(0, 0, 0, 0.8); }
.lightbox-close { top: -15px; right: -15px; font-family: sans-serif; }
.lightbox-nav.prev { top: 50%; left: -70px; transform: translateY(-50%); }
.lightbox-nav.next { top: 50%; right: -70px; transform: translateY(-50%); }

/* --- RESPONSIVE STYLES (from before) --- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2rem; }
    .gallery-container { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
    .lightbox-nav.prev { left: 5px; }
    .lightbox-nav.next { right: 5px; }
    .lightbox-close { top: 5px; right: 5px; }
}
@media (max-width: 480px) {
    .gallery-container { grid-template-columns: 1fr; }
}

/* 
==============================================
  NEW: PAGINATION STYLES
==============================================
*/
.pagination-container {
    text-align: center;
    margin: 40px 0;
}
.pagination-links span, .pagination-links b {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    transition: background-color 0.2s, color 0.2s;
}
.pagination-links a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}
.pagination-links b.current-page {
    background-color: #337ab7;
    color: #fff;
    border-color: #337ab7;
    cursor: default;
}
.pagination-links .first-link, .pagination-links .last-link,
.pagination-links .next-link, .pagination-links .prev-link {
    font-weight: bold;
}