.gallery-area, .fb-gallery-area
{
    padding: 20px 0;
}

.gallery-header
{
    margin-bottom: 10px;
}

.shorting-menu
{
    text-align: left;
}


.single-photo {
    position: relative;
    overflow: hidden;
    height: 280px; /* Adjust as needed */
    padding: 10px;
    background: #fff;
}

.single-photo img
{
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-thumbnail-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-button i {
    color: #333;
    font-size: 24px;
    margin-left: 5px; /* Center the play icon */
}

.video-thumbnail-wrapper:hover .video-play-button {
    background: #fff;
    transform: scale(1.1);
}

/* For YouTube/Vimeo videos (embed iframes) */
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Optional: Add autoplay on hover */
.video-thumbnail-wrapper:hover .video-thumbnail {
    animation-play-state: running;
}

/* Pause animation by default if using CSS animation */
.video-thumbnail {
    animation-play-state: paused;
}



.video-gallery-container {
    padding: 20px 0;
}

/* Events Tabs Styling */
.video-gallery-tabs-nav {
    margin-bottom: 20px;
}

.video-gallery-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border: none;
}

.video-gallery-nav-item {
    margin-bottom: -2px;
}

.video-gallery-nav-link {
    padding: 10px 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: capitalize;
    font-size: 16px;
}

.video-gallery-nav-link:hover {
    background: var(--primary);
    color: #fff;
}

.video-gallery-nav-link.active {
    background: #8a6b3d;
    color: #fff;
}



/* Video Grid */
.video-gallery-tab-content {
    margin-top: -1px;
}

.video-gallery-tab-pane {
    display: none;
}

.video-gallery-tab-pane.active {
    display: block;
}

.video-gallery-tab-pane.show {
    display: block;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}


.video-gallery-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-gallery-wrapper iframe,
.video-gallery-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {

    .video-gallery-nav-item {
        margin-bottom: 5px;
    }
    
    .video-gallery-nav-link {
        border-radius: 8px;
        margin-right: 0;
        margin-bottom: 5px;
        border: 1px solid #dee2e6;
    }
    
    .video-gallery-nav-link.active {
        border-radius: 8px;
    }
    
    .video-gallery-tab-content {
        border-radius: 8px;
        padding: 20px 15px;
        margin-top: 0;
    }
    
    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-gallery-container {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .video-gallery-nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .video-gallery-grid {
        gap: 15px;
    }
}

/* No Videos */
.video-gallery-no-videos {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

.video-gallery-no-found {
    text-align: center;
    padding: 60px 20px;
}

.video-gallery-no-found p {
    font-size: 1.2rem;
    color: #7f8c8d;
}


.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-thumbnail-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-button i {
    color: #333;
    font-size: 24px;
    margin-left: 5px; /* Center the play icon */
}

.video-thumbnail-wrapper:hover .video-play-button {
    background: #fff;
    transform: scale(1.1);
}

/* For YouTube/Vimeo videos (embed iframes) */
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Optional: Add autoplay on hover */
.video-thumbnail-wrapper:hover .video-thumbnail {
    animation-play-state: running;
}

/* Pause animation by default if using CSS animation */
.video-thumbnail {
    animation-play-state: paused;
}



/* Video gallery hidden items */
.video-gallery-hidden {
    display: none !important;
}

/* Gallery items */
.gallery-item {
    transition: all 0.3s ease;
}

#pagegalleryloadMoreBtn, #galleryloadMoreBtnWp, .video-load-more-btn
{
    padding: 0;
    background: none;
    color: #212529;
    border: none;
    margin-top: 0;
    letter-spacing: 1.2px;
    cursor: pointer;
}

.gallery-loadmore-area, .fb-loadmore-btn
{
    text-align: right;
}

#gcam-filter-buttons
{    
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border: none;
}
.shorting-menu .filter
{
    padding: 10px 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: capitalize;
    font-size: 16px;
    width: unset;
    color: unset;
}
.filter.active-filter
{
    background: #8a6b3d;
    color: #fff;
}
@media (max-width: 480px) {
    .shorting-menu .filter {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}


/* Advanced Lightbox Styles */
.advanced-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advanced-lightbox-overlay.active {
    display: block;
    opacity: 1;
}

.advanced-lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90vh;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.advanced-lightbox-sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.advanced-lightbox-header {
    padding: 20px;
    background: #222;
    border-bottom: 1px solid #333;
}

.advanced-lightbox-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.advanced-lightbox-thumbnails {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.advanced-lightbox-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.advanced-lightbox-thumbnails::-webkit-scrollbar-track {
    background: #222;
}

.advanced-lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.advanced-lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.thumbnail-item {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.thumbnail-item:hover {
    opacity: 0.8;
    border-color: #555;
}

.thumbnail-item.active {
    border-color: #8a6b3d;
    opacity: 1;
    transform: scale(1.02);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.advanced-lightbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.advanced-lightbox-toolbar {
    padding: 15px 20px;
    background: #222;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.advanced-lightbox-counter {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.advanced-lightbox-controls {
    display: flex;
    gap: 10px;
}

.advanced-lightbox-btn {
    background: #333;
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.advanced-lightbox-btn:hover {
    background: #444;
    transform: scale(1.1);
}

.advanced-lightbox-btn.close-btn {
    background: #fff;
}

.advanced-lightbox-btn.close-btn:hover {
    background: #e74c3c;
}

.advanced-lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.advanced-lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advanced-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.advanced-lightbox-caption {
    padding: 15px 20px;
    background: #222;
    border-top: 1px solid #333;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.advanced-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.advanced-lightbox-nav:hover {
    background: rgba(138, 107, 61, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.advanced-lightbox-nav.prev {
    left: 300px;
}

.advanced-lightbox-nav.next {
    right: 20px;
}

.advanced-lightbox-loading {
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advanced-lightbox-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video in lightbox */
.advanced-lightbox-video-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.advanced-lightbox-video-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.advanced-lightbox-video-container iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .advanced-lightbox-container {
        width: 95%;
        height: 95vh;
        flex-direction: column;
    }
    
    .advanced-lightbox-sidebar {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .advanced-lightbox-thumbnails {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        gap: 10px;
    }
    
    .thumbnail-item {
        width: 100px;
        min-width: 100px;
        margin-bottom: 0;
    }
    
    .thumbnail-item img {
        height: 60px;
    }
    
    .advanced-lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .advanced-lightbox-nav.prev {
       left: 20px;
    }
}

@media (max-width: 768px) {
    .advanced-lightbox-container {
        width: 98%;
        height: 90vh;
    }
    
    .advanced-lightbox-sidebar {
        display: none;
    }
    
    .thumbnail-item {
        width: 80px;
        min-width: 80px;
    }
    
    .thumbnail-item img {
        height: 50px;
    }
    
    .advanced-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .advanced-lightbox-nav.prev {
        left: 10px;
    }
    
    .advanced-lightbox-nav.next {
        right: 10px;
    }
    .gallery-area .col-lg-3, .gallery-area .col-md-6 {
        width: 50%;
    }
}




/* Horizontal Filter Slider Styles */
#gcam-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    transition: all 0.3s ease;
}

/* For mobile devices */
@media (max-width: 768px) {
    #gcam-filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        margin: 0 -15px;
        width: calc(100% + 30px);
        scrollbar-width: none; /* Firefox */
        justify-content: flex-start;
        gap: 8px;
    }
    
    #gcam-filter-buttons::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .filter {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        border: 2px solid #e0e0e0;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
    }    

    /* Add gradient overlays to indicate scrollable area */
    #gcam-filter-buttons-container {
        position: relative;
        margin-bottom: 20px;
    }
    
    #gcam-filter-buttons-container::before,
    #gcam-filter-buttons-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 2;
    }
    
    #gcam-filter-buttons-container::before {
        left: 0;
        background: linear-gradient(to right, white, transparent);
    }
    
    #gcam-filter-buttons-container::after {
        right: 0;
        background: linear-gradient(to left, white, transparent);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .filter {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #gcam-filter-buttons {
        gap: 0;
    }
}


/* Horizontal Slider for shorting-menu */
.shorting-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* For mobile devices */
@media (max-width: 768px) {
    .shorting-menu {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        margin: 0 -15px 20px;
        width: calc(100% + 30px);
        scrollbar-width: none; /* Firefox */
        justify-content: flex-start;
        gap: 8px;
    }
    
    .shorting-menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .shorting-menu .filter {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    
    /* Add gradient overlays for shorting-menu */
    .shorting-menu-wrapper {
        position: relative;
    }
    
    .shorting-menu-wrapper::before,
    .shorting-menu-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 2;
    }
    
    .shorting-menu-wrapper::before {
        left: 0;
        background: linear-gradient(to right, white, transparent);
    }
    
    .shorting-menu-wrapper::after {
        right: 0;
        background: linear-gradient(to left, white, transparent);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .shorting-menu .filter {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .shorting-menu {
        gap: 0;
    }
}



/* Advanced Lightbox Tabs */
.advanced-lightbox-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: #222;
    border-bottom: 1px solid #333;
    max-height: 120px;
    overflow-y: auto;
}

.lightbox-tab {
    padding: 6px 12px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: #ddd;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.lightbox-tab:hover {
    background: #444;
    color: #fff;
}

.lightbox-tab.active {
    background: #8a6b3d;
    color: #fff;
    font-weight: 600;
}

/* Lightbox thumbnails adjustment */
.advanced-lightbox-thumbnails {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Responsive styles for lightbox tabs */
@media (max-width: 992px) {
    .advanced-lightbox-tabs {
        display: none;
    }
    
    .lightbox-tab {
        padding: 5px 10px;
        font-size: 11px;
        max-width: 120px;
    }
    
    .advanced-lightbox-thumbnails {
        height: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .advanced-lightbox-sidebar {
        height: 180px;
    }
    
    .lightbox-tab {
        padding: 4px 8px;
        font-size: 10px;
        max-width: 100px;
    }
    
    .advanced-lightbox-thumbnails {
        height: calc(100% - 60px);
        padding: 10px;
    }
    
    .thumbnail-item img {
        height: 60px;
    }
}