/* Gallery Page Specific Styles */
.gallery-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 10px;
    background: #fff;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.gallery-tab-btn {
    padding: 12px 35px;
    border-radius: 40px;
    border: none;
    background: transparent;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.gallery-tab-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.gallery-tab-btn:hover {
    color: #1965c0;
}

.gallery-tab-btn:hover i {
    transform: scale(1.2);
}

.gallery-tab-btn.active {
    background: #1965c0;
    color: #fff;
    box-shadow: 0 8px 20px rgba(25, 101, 192, 0.3);
}

.gallery-tab-btn.active i {
    color: #fff;
}

/* Tab indicator animation (optional visual) */
.gallery-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #1965c0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

.gallery-tab-btn.active::after {
    display: none; /* Already has background */
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    background: #f8f9fa;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(25, 101, 192, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #fff !important;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-text {
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .overlay-text {
    transform: translateY(0);
}

.overlay-text h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gallery-grid a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Lightbox Customization */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95);
}

.lg-toolbar, .lg-prev, .lg-next {
    background-color: transparent !important;
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* Pagination Styles */
.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 12px;
}

.pagination-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.pagination-link:hover {
    background: #1965c0; /* Brand primary blue */
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 101, 192, 0.2);
    border-color: #1965c0;
}

.pagination-link.active {
    background: #003366; /* Deep blue matching theme */
    color: #fff;
    border-color: #003366;
}

.pagination-link.prev, .pagination-link.next {
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .pagination-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .pagination-list {
        gap: 8px;
    }
}
/* Tab Content Transitions */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(25, 101, 192, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(25, 101, 192, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 15px;
}

.play-btn-circle i {
    color: #1965c0;
    font-size: 1.2rem;
    margin-left: 4px;
}

.video-card:hover .play-btn-circle {
    transform: scale(1) translateY(0);
}

.video-overlay-title {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    opacity: 0;
}

.video-card:hover .video-overlay-title {
    transform: translateY(0);
    opacity: 1;
}

/* Inline Video Player */
.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Base Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Video Grid */
@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    cursor: zoom-out;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    z-index: 10001;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10002;
}

.video-modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsiveness for Modal Close Button */
@media (max-width: 1200px) {
    .video-modal-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 576px) {
    .video-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    
    .video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Custom Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: zoom-out;
}

.image-modal-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1400px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-display {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-display img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(10px) scale(1);
    cursor: grab;
}

.image-modal-display img:active {
    cursor: grabbing;
}

.image-modal-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-control-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.image-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-modal-display img.show {
    opacity: 1;
    transform: translateY(0);
}

.image-modal-caption {
    margin-top: 25px;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10002;
    font-size: 1.2rem;
}

.image-modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
    font-size: 1.2rem;
}

.image-modal-nav:hover {
    background: #fff;
    color: #000;
}

.image-modal-nav.prev {
    left: -80px;
}

.image-modal-nav.next {
    right: -80px;
}

@media (max-width: 1600px) {
    .image-modal-nav.prev { left: 20px; }
    .image-modal-nav.next { right: 20px; }
}

@media (max-width: 768px) {
    .image-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .image-modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .image-modal-caption {
        font-size: 1rem;
        padding: 8px 20px;
        max-width: 90%;
    }
}
