/* ============================================================
   GALLERY PAGE STYLES - LANKA TOUR DRIVER
   ============================================================ */

/* CSS Variables for Consistency */
:root {
    --gallery-primary: #008B8B;
    --gallery-accent: #C6973F;
    --gallery-accent-light: #E2B95E;
    --gallery-text: #1A3A52;
    --gallery-text-muted: rgba(255, 255, 255, 0.7);
    --gallery-bg: #FFFFFF;
    --gallery-white: #FFFFFF;
    --gallery-dark: #111A14;
    --gallery-shadow: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.4s;
}

.gallery-page {
    background-color: var(--gallery-bg);
}

/* Filter Bar Styles */
.gallery-filter-area {
    text-align: center;
    border-bottom: 2px solid #F1F1F1;
    padding-bottom: 0;
}

.gallery-filter {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.gallery-filter li {
    padding: 5px 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    text-transform: capitalize;
}

.gallery-filter li:hover {
    color: var(--gallery-dark);
}

.gallery-filter li.active {
    color: var(--gallery-dark);
    background: #FFF;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #EEE;
    border-bottom: none;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: block;
    margin: -10px;
    position: relative;
    min-height: 400px;
}

.gallery-item {
    width: 25%;
    padding: 10px;
    float: left;
    box-sizing: border-box;
}

.load-more-hidden {
    display: none !important;
}

.gallery-inner {
    position: relative;
    border-radius: 0;
    /* Removed for packed layout */
    overflow: hidden;
    background: #000;
}

.gallery-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
}

.gallery-inner:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Overlay Styles */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-inner:hover .gallery-overlay {
    opacity: 1;
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--gallery-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.zoom-btn:hover {
    background: var(--gallery-accent);
}

.gallery-info .category-name {
    color: var(--gallery-white);
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-info .dot {
    width: 6px;
    height: 6px;
    background: var(--gallery-white);
    border-radius: 50%;
    display: inline-block;
}

.gallery-info .desc {
    color: var(--gallery-text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 400;
}

.gallery-info .author {
    color: var(--gallery-white);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-info .author i {
    font-size: 11px;
    opacity: 0.8;
}

/* Load More Button - Sync with Safari Button */
.load-more-btn-area {
    margin-top: 60px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-accent-light));
    border-radius: 50px;
    color: var(--gallery-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(198, 151, 63, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    max-width: 250px;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(198, 151, 63, 0.35);
    color: var(--gallery-dark);
}

.btn-load-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-gallery 3.5s ease-in-out infinite;
}

@keyframes shimmer-gallery {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}

.btn-load-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .gallery-item {
        width: 33.333%;
    }
}

@media (max-width: 991px) {
    .gallery-item {
        width: 50%;
    }

    .gallery-filter {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-filter li {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        width: 100%;
    }

    .gallery-filter {
        gap: 10px;
    }

    .gallery-filter li {
        padding: 8px 10px;
    }
}