/* ============================================
   GALLERY CSS - Foto & Video
   ============================================ */

/* ---- Shared ---- */
.page-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2a5298;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.content-wrapper {
    padding: 60px 0;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.page-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
    font-weight: bold;
}

.page-btn.disabled {
    color: #ccc;
    background: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
}

/* ---- Foto Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(30, 60, 114, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* ---- Lightbox ---- */
body.lightbox-open {
    overflow: hidden !important;
    height: 100vh;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.2s ease;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
}

#lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ---- Video Gallery ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.video-info .date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.video-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 28px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    #lightbox-img { max-width: 95%; max-height: 80vh; }
    .lightbox-close { top: 15px; right: 20px; font-size: 40px; }
}