/* Gallery Page Specific Styles */

/* Gallery Hero */
.gallery-hero {
    background: linear-gradient(rgba(10, 31, 68, 0.9), rgba(10, 31, 68, 0.95)),
        url('../images/Galary_img/bg.JPG');
    background-size: cover;
    background-position: bottom;
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 90px;
}

.gallery-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.gallery-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--light-blue);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* Gallery Controls */
.gallery-controls {
    padding: 40px 0;
    background-color: #0c1120;
}

.gallery-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: rgba(74, 111, 165, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background-color: rgba(74, 111, 165, 0.3);
    color: var(--text-light);
}

.filter-btn.active {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.gallery-search {
    position: relative;
    min-width: 250px;
}

.gallery-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-blue);
}

.gallery-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(10, 31, 68, 0.7);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.gallery-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.gallery-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 25px;
    background-color: var(--secondary-blue);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gallery-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-blue);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Gallery Grid */
.gallery-main {
    padding: 80px 0;
    background-color: var(--primary-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    background-color: var(--secondary-blue);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.gallery-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.video-thumb {
    position: relative;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 2;
}

.video-play:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-btn {
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background-color: var(--light-blue);
    transform: scale(1.1);
}

.gallery-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.category-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-tag.photo {
    background-color: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.category-tag.video {
    background-color: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.category-tag.event {
    background-color: rgba(159, 122, 234, 0.2);
    color: #9f7aea;
}

.category-tag.team {
    background-color: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.category-tag.campus {
    background-color: rgba(237, 137, 54, 0.2);
    color: #ed8936;
}

.gallery-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
    line-height: 1.4;
}

.gallery-date {
    color: var(--light-blue);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 30px 0;
}

.load-more-container .btn {
    padding: 15px 40px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.items-shown {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.items-shown span {
    color: var(--light-blue);
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-container {
    width: 100%;
    max-width: 1200px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lightbox-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #0c1120;
    min-height: 400px;
    max-height: 60vh;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-info {
    padding: 25px;
    background-color: var(--secondary-blue);
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.lightbox-date {
    color: var(--light-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.lightbox-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.lightbox-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-actions {
    display: flex;
    gap: 15px;
}

.lightbox-action-btn {
    padding: 10px 20px;
    background-color: rgba(74, 111, 165, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-action-btn:hover {
    background-color: rgba(74, 111, 165, 0.3);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Featured Collections */
.featured-collections {
    padding: 100px 0;
    background-color: #0c1120;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.collection-card {
    background-color: var(--secondary-blue);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.collection-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(10, 31, 68, 0.9));
}

.collection-count {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-info {
    padding: 25px;
}

.collection-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
}

.collection-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.collection-link {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.collection-link:hover {
    color: white;
    gap: 12px;
}

/* Upload CTA */
.upload-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-blue), #3a5ca9);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.cta-text {
    flex: 1;
    min-width: 300px;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.cta-action .btn {
    padding: 16px 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--accent-blue);
}

.cta-action .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-hero-title {
        font-size: 3rem;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-media {
        max-height: 50vh;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 150px 0 80px;
        margin-top: 75px;
    }

    .gallery-hero-title {
        font-size: 2.5rem;
    }

    .gallery-hero-subtitle {
        font-size: 1.1rem;
    }

    .gallery-filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-search {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .collections-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .lightbox-container {
        max-height: 95vh;
    }

    .cta-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero-title {
        font-size: 2.2rem;
    }

    .gallery-hero-subtitle {
        font-size: 1rem;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-stats {
        gap: 20px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .lightbox-actions {
        flex-direction: column;
    }

    .lightbox-action-btn {
        justify-content: center;
    }
}

/* ================================
   Footer Logo Layout Fix
================================ */
.footer-logo {
    display: block;
    flex-direction: row;
    margin-bottom: 20px;
}

.footer-logo .footer-logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* Special styling for each logo */
.footer-logo .logo-icon:nth-child(1) {
    /* SEUSL Logo */
    width: 60px;
    height: 60px;
}

.footer-logo .logo-icon:nth-child(2) {
    /* Union Logo */
    width: 55px;
    height: 55px;
}

.footer-logo .logo-icon:nth-child(3) {
    /* Heart of Agni Logo */
    width: 50px;
    height: 50px;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    text-align: center;
}

.footer-logo-text h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 5px;
}

.footer-logo-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-about {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;

}
