/* ============================================
   GALLERY PAGE CSS - Safarnamaa
   ============================================ */

.gallery-section {
    padding: 60px 0 80px;
    background: #f8f9ff;
}

/* ============================================
   FILTER TABS
   ============================================ */
.gallery-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gallery-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(102,126,234,0.35);
}

/* ============================================
   GALLERY GRID - MASONRY STYLE
   ============================================ */
.gallery-grid {
    columns: 4;
    column-gap: 15px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* OVERLAY */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,26,46,0) 0%,
        rgba(26,26,46,0.85) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: zoom-in;
}

.gallery-img-wrap:hover .gallery-overlay {
    opacity: 1;
}

.gallery-img-wrap:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-overlay-content {
    color: white;
    width: 100%;
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.gallery-img-wrap:hover .gallery-zoom-icon {
    background: rgba(102,126,234,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-overlay-content h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
}

.gallery-overlay-cat {
    font-size: 12px;
    opacity: 0.8;
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
}

/* FEATURED BADGE */
.gallery-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #f0a500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(240,165,0,0.4);
    z-index: 2;
}

/* NO RESULTS */
.gallery-no-results {
    text-align: center;
    padding: 60px 20px;
}

/* ANIMATION */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE GRID
   ============================================ */
@media (max-width: 1200px) {
    .gallery-grid { columns: 3; }
}

@media (max-width: 768px) {
    .gallery-grid { columns: 2; }
    .gallery-filter-tabs { gap: 8px; }
    .gallery-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
}

.lightbox-img-wrap {
    position: relative;
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.lightbox-loader {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

/* CLOSE BUTTON */
.lightbox-close-btn {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

/* NAV BUTTONS */
.lightbox-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav-btn:hover {
    background: rgba(102,126,234,0.8);
    border-color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

/* CAPTION */
.lightbox-caption {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        transparent 100%
    );
    color: white;
    text-align: center;
    z-index: 10;
}

.lightbox-caption h6 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px;
}

.lightbox-caption span {
    font-size: 13px;
    opacity: 0.75;
    margin: 0 8px;
}

.lightbox-counter {
    background: rgba(255,255,255,0.15);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px !important;
    font-weight: 600;
}

/* ============================================
   PAGE BANNER (reuse from packages.css)
   ============================================ */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.7);
}

.page-banner-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.page-banner-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-banner-content .breadcrumb-item a {
    color: #f0a500;
    text-decoration: none;
}

.page-banner-content .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.page-banner-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}