/* Country Gallery Styles */
.country-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Country Filter Buttons */
.country-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.country-btn {
    background: #fff;
    color: #000;
    border: 2px solid #ee5522;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.country-btn:hover {
    background: #ee5522;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 85, 34, 0.3);
}

.country-btn.active {
    background: #ee5522;
    color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    min-height: 300px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.video::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(238, 85, 34, 0.9);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    pointer-events: none;
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.lightbox-content img {
    display: block;
}

.lightbox-content video {
    display: none;
}

.lightbox-swipe-hint {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.7;
    z-index: 10001;
    pointer-events: none;
}

.lightbox.video-mode .lightbox-content img {
    display: none;
}

.lightbox.video-mode .lightbox-content video {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    /*transform: translateY(-50%);*/
    background: rgba(238, 85, 34, 0.8);
    color: #fff;
    border: none;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10000;
    line-height: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(238, 85, 34, 1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Tablet Styles */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .country-filters {
        gap: 10px;
    }
    
    .country-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 8px 15px;
        height: 50px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .country-gallery-wrapper {
        padding: 30px 15px;
    }
    
    .gallery-header {
        margin-bottom: 30px;
    }
    
    .gallery-title {
        font-size: 1.75rem;
    }
    
    .gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .country-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .country-btn {
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .gallery-item.video::after {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-swipe-hint {
        display: block;
    }
    
    /* Full screen video on mobile */
    .lightbox.video-mode .lightbox-content video {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        object-fit: contain;
    }
}