/* ==========================================================================
   GOAT BALI CYCLING - GALLERY PAGE REDESIGN
   ========================================================================== */

:root {
    --goat-forest: #0d2818;
    --goat-forest-rgb: 13, 40, 24;
    --goat-emerald: #01A193;
    --goat-emerald-hover: #00877a;
    --goat-gold: #FE8800;
    --goat-gold-hover: #e07700;
    --goat-bg-subtle: #f8faf9;
    --goat-border: rgba(1, 161, 147, 0.14);
    --goat-shadow-card: 0 10px 30px rgba(13, 40, 24, 0.08);
    --font-heading: 'Outfit', sans-serif;
}

/* --------------------------------------------------------------------------
   HERO BANNER
-------------------------------------------------------------------------- */
.gallery-hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 130px 0 60px 0;
    color: #ffffff;
    overflow: hidden;
    background-color: #0d2818;
}

.page-hero-carousel {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-hero-carousel .owl-stage-outer,
.page-hero-carousel .owl-stage,
.page-hero-carousel .owl-item {
    height: 100%;
}

.page-hero-slide {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.60) 0%, 
        rgba(0, 0, 0, 0.35) 45%, 
        rgba(0, 0, 0, 0.78) 100%);
    z-index: 2;
    pointer-events: none;
}

.gallery-hero-content {
    position: relative;
    z-index: 3;
}

.gallery-hero-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-hero-breadcrumbs a {
    color: #a3c2b3;
    text-decoration: none;
    transition: color 0.2s;
}

.gallery-hero-breadcrumbs a:hover {
    color: #ffffff;
}

.gallery-hero-breadcrumbs span {
    color: #ffffff;
}

.gallery-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.gallery-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.gallery-hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 12px;
}

.gallery-hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   GALLERY FEED & CARDS
-------------------------------------------------------------------------- */
.gallery-feed-wrapper {
    background: var(--goat-bg-subtle);
    padding: 60px 0 90px 0;
}

.gallery-card-modern {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 280px;
    background: #0d2818;
    box-shadow: var(--goat-shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.gallery-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(1, 161, 147, 0.22);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.gallery-card-modern:hover .gallery-card-img {
    transform: scale(1.08);
    filter: brightness(0.92);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 40, 24, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-modern:hover .gallery-card-overlay {
    background: rgba(13, 40, 24, 0.38);
}

.gallery-card-zoom-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(1, 161, 147, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.6) rotate(-20deg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-modern:hover .gallery-card-zoom-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    background: #FE8800;
    border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   GALLERY LOAD MORE & SEO CONTROLS
-------------------------------------------------------------------------- */
.gallery-status-container {
    padding: 24px 0 10px 0;
    text-align: center;
}

.gallery-counter-box {
    margin-bottom: 16px;
}

.gallery-counter-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.gallery-counter-bar {
    width: 200px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-counter-fill {
    height: 100%;
    background: linear-gradient(90deg, #01A193 0%, #FE8800 100%);
    border-radius: 20px;
    transition: width 0.4s ease;
}

.btn-gallery-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--goat-forest);
    border: 2px solid var(--goat-emerald);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 15px rgba(1, 161, 147, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-gallery-load-more:hover {
    background: var(--goat-emerald);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 161, 147, 0.25);
}

.btn-gallery-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.gallery-loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(1, 161, 147, 0.25);
    border-top-color: #01A193;
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

.gallery-end-banner {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    border: 1px solid var(--goat-border);
    box-shadow: var(--goat-shadow-card);
    max-width: 700px;
    margin: 20px auto 0 auto;
    text-align: center;
}

.gallery-end-banner h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--goat-forest);
    margin-bottom: 8px;
}

.gallery-end-banner p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   SKELETON LOADER FOR INFINITE SCROLL
-------------------------------------------------------------------------- */
@keyframes galleryShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-skeleton-card {
    position: relative;
    border-radius: 18px;
    height: 280px;
    background: linear-gradient(90deg, #e4ede7 0%, #f3f8f5 50%, #e4ede7 100%);
    background-size: 200% 100%;
    animation: galleryShimmer 1.5s ease-in-out infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(1, 161, 147, 0.08);
}

.gallery-skeleton-card::after {
    content: '';
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(1, 161, 147, 0.12);
}

/* --------------------------------------------------------------------------
   RESPONSIVE STYLING
-------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .gallery-hero-section {
        padding: 100px 0 50px 0;
        min-height: auto;
    }
    .gallery-hero-title {
        font-size: 2.1rem;
    }
    .gallery-card-modern,
    .gallery-skeleton-card {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero-section {
        padding: 90px 0 40px 0;
    }
    .gallery-hero-title {
        font-size: 1.75rem;
    }
    .gallery-feed-wrapper {
        padding: 30px 0 60px 0;
    }
    .gallery-card-modern,
    .gallery-skeleton-card {
        height: 155px;
        border-radius: 12px;
    }
    .gallery-skeleton-card::after {
        width: 26px;
        height: 26px;
    }
    .gallery-card-zoom-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-hero-title {
        font-size: 1.6rem;
    }
    .gallery-card-modern,
    .gallery-skeleton-card {
        height: 145px;
        border-radius: 12px;
    }
}
