/* Media Gallery Styles */

/* Page Header */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

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

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(14, 39, 180, 0.2);
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 39, 180, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
}

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

.gallery-card-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.gallery-card-content {
    padding: 20px;
}

.gallery-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-card-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-card-count {
    color: #0e27b4fa;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumb-nav a {
    color: #0e27b4fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #7b2d9e;
}

.breadcrumb-nav span {
    color: #999;
}

/* Event Header */
.event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-date {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(14, 39, 180, 0.3);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-thumbnail,
.file-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.pdf-thumbnail i,
.file-thumbnail i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.pdf-thumbnail p,
.file-thumbnail p {
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 39, 180, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 3rem;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lightbox-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.lightbox-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 15px;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #f5576c;
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.lightbox-media {
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-media video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-media iframe {
    width: 80vw;
    height: 80vh;
    border: none;
    border-radius: 8px;
    background: #fff;
}

.download-prompt {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.download-prompt i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #667eea;
}

.download-prompt p {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.download-prompt .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(14, 39, 180, 0.8);
    border-color: #667eea;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-footer {
    padding: 15px 30px;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.lightbox-counter {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* No Content */
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-content i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content p {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .event-header {
        padding: 25px;
    }
    
    .event-title {
        font-size: 1.8rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .lightbox-media {
        max-width: 95%;
    }
    
    .lightbox-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
