/* ===== GALLERY PAGE CSS ===== */

/* Hero Section */
.gallery-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
  135deg,
  rgba(44, 62, 80, 0.8) 0%,
  rgba(26, 37, 47, 0.3) 100%
);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Navigation */
.gallery-nav {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-tab {
    padding: 12px 30px;
    background: none;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-tab i {
    font-size: 1.1rem;
}

.gallery-tab:hover {
    background: var(--background-light);
    color: var(--primary);
}

.gallery-tab.active {
    background: var(--secondary);
    color: white;
}

/* Filter Section */
.filter-section {
    padding: 30px 0;
    background: var(--background-light);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-filter label {
    font-weight: 600;
    color: var(--primary);
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    background: white;
}

.category-filter {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--primary);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill:hover {
    background: var(--background-light);
    border-color: var(--secondary);
}

.pill.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.search-filter {
    position: relative;
    min-width: 250px;
}

.search-filter i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Featured Album */
.featured-album {
    padding: 40px 0;
    background: white;
}

.featured-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--border-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--secondary);
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-badge i {
    color: gold;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(230,126,34,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-image:hover .featured-play {
    opacity: 1;
}

.featured-info h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.featured-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.featured-meta i {
    color: var(--secondary);
}

.featured-actions {
    display: flex;
    gap: 15px;
}

/* Albums Section */
.albums-section {
    padding: 60px 0;
    background: var(--background-light);
}

.section-title {
    color: var(--primary);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 30px;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.album-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.album-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-image img {
    transform: scale(1.1);
}

.album-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-info {
    padding: 20px;
}

.album-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.album-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-date i {
    color: var(--secondary);
}

.album-view {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-view:hover {
    gap: 8px;
}

.load-more {
    text-align: center;
}

/* Videos Section */
.videos-section {
    padding: 60px 0;
    background: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minfont-size(0.9rem));
    margin-bottom: 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(230,126,34,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-play {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.video-speaker {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.video-meta i {
    margin-right: 3px;
}

.videos-more {
    text-align: center;
}

/* Instagram Section */
.instagram-section {
    padding: 60px 0;
    background: var(--background-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230,126,34,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.insta-overlay span {
    font-size: 0.8rem;
}

.instagram-follow {
    text-align: center;
}

/* Download Section */
.download-section {
    padding: 40px 0;
    background: white;
}

.download-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.download-icon i {
    font-size: 3rem;
    color: var(--secondary);
}

.download-content {
    flex: 1;
}

.download-content h3 {
    margin-bottom: 5px;
}

.download-content p {
    opacity: 0.9;
    margin: 0;
}

.download-actions {
    display: flex;
    gap: 15px;
}

/* Share Section */
.share-section {
    padding: 40px 0;
    background: var(--background-light);
}

.share-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.share-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-5px);
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.email { background: var(--primary); }
.share-btn.copy { background: var(--secondary); }

/* Upload Section */
.upload-section {
    padding: 40px 0;
    background: white;
}

.upload-card {
    background: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 2px dashed var(--secondary);
}

.upload-icon i {
    font-size: 3rem;
    color: var(--secondary);
}

.upload-content {
    flex: 1;
}

.upload-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.upload-content p {
    color: var(--text-light);
    margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 5px;
}

.lightbox-info {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.lightbox-caption {
    color: var(--primary);
    margin-bottom: 15px;
}

.lightbox-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lightbox-btn {
    padding: 8px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--secondary-light);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .upload-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .category-pills {
        justify-content: center;
    }
}

/* Photos Grid */
.photos-section {
    padding: 60px 0;
    background: var(--background-light);
}

.btn-back-to-albums {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back-to-albums:hover {
    text-decoration: underline;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary);
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}