/* =============================================================================
   Photos page — extends shared gallery styles in style.css
   ============================================================================= */

.gallery-hero{
    background:
        linear-gradient(rgba(8, 12, 35, 0.88), rgba(8, 12, 35, 0.88)),
        url('../images/hero/banner2.jpg');
    background-size:cover;
    background-position:center;
}

.photos-gallery{
    background:#f1f5f9;
}

.photos-gallery .section-title{
    color:var(--neci-primary);
    font-weight:800;
    margin-bottom:12px;
    font-size:var(--neci-h2);
}

.photos-gallery .gallery-subtitle{
    color:var(--neci-muted);
    font-size:clamp(0.95rem, 2vw, 1.125rem);
    max-width:640px;
    margin:0 auto;
}

/* ----- Filter bar ----- */
.gallery-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-bottom:clamp(1.5rem, 4vw, 2.5rem);
    padding:0 4px;
}

.gallery-filter-btn{
    border:2px solid rgba(27, 31, 107, 0.12);
    background:#fff;
    color:var(--neci-primary);
    font-weight:600;
    font-size:0.875rem;
    padding:10px 18px;
    border-radius:999px;
    cursor:pointer;
    transition:background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active{
    background:var(--neci-primary);
    border-color:var(--neci-primary);
    color:#fff;
    box-shadow:0 8px 20px rgba(27, 31, 107, 0.2);
}

.gallery-filter-btn.is-active{
    transform:translateY(-2px);
}

/* ----- Grid items & filter animation ----- */
.photos-gallery .gallery-item{
    transition:opacity 0.35s ease, transform 0.35s ease;
}

.photos-gallery .gallery-item.is-hidden{
    display:none;
}

.photos-gallery .gallery-grid.is-filtering .gallery-item:not(.is-hidden){
    animation:galleryFilterIn 0.45s ease forwards;
}

.gallery-lightbox{
    position:fixed;
    inset:0;
    z-index:1200;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1rem;
    padding:clamp(1rem, 4vw, 2rem);
    background:rgba(8,12,35,0.88);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.gallery-lightbox img{
    width:min(100%, 980px);
    max-height:78vh;
    object-fit:contain;
    border-radius:14px;
    box-shadow:0 24px 60px rgba(0,0,0,0.42);
}

.gallery-lightbox p{
    margin:0;
    color:#fff;
    font-weight:700;
    text-align:center;
}

.gallery-lightbox-close{
    position:absolute;
    top:clamp(14px, 3vw, 28px);
    right:clamp(14px, 3vw, 28px);
    width:44px;
    height:44px;
    border:0;
    border-radius:50%;
    background:var(--neci-accent);
    color:var(--neci-primary);
    font-size:1.1rem;
    cursor:pointer;
}

body.gallery-lightbox-open{
    overflow:hidden;
}

@keyframes galleryFilterIn{
    from{
        opacity:0;
        transform:translateY(12px) scale(0.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* ----- Premium Compact CTA Card Section ----- */
.gallery-cta-section {
    padding: clamp(2rem, 5vw, 3.5rem) 0 !important; /* Shorter padding */
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    width: 100%;
}

.premium-cta-card {
    background: linear-gradient(90deg, #1F2A7A 0%, #0A1248 100%);
    border-radius: 30px;
    padding: 60px 70px;
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 16px 40px rgba(8, 12, 35, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
    flex: 1;
    text-align: left;
}

.cta-label {
    color: var(--neci-accent, #F4B400);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.cta-heading {
    color: #ffffff !important;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-shadow: none !important;
    max-width: 720px;
}

.cta-action {
    flex-shrink: 0;
}

.cta-btn {
    background: var(--neci-accent, #F4B400) !important;
    color: var(--neci-primary, #1F2A7A) !important;
    font-weight: 800 !important;
    font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(244, 180, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease !important;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(244, 180, 0, 0.45) !important;
    background: var(--neci-accent-hover, #ffd033) !important;
}

/* Tablet Layout (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .premium-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 24px;
        width: 92%;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-heading {
        max-width: 100%;
    }
}

/* Mobile Layout (max-width: 576px) */
@media (max-width: 576px) {
    .premium-cta-card {
        padding: 30px 20px;
        border-radius: 20px;
        width: 95%;
        gap: 20px;
    }
    
    .cta-label {
        margin-bottom: 8px;
    }
    
    .cta-btn {
        width: 100%;
        padding: 12px 24px !important;
    }
}

@media (max-width:767.98px){
    .gallery-filters{
        justify-content:flex-start;
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:8px;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }

    .gallery-filters::-webkit-scrollbar{
        display:none;
    }

    .gallery-filter-btn{
        flex:0 0 auto;
        white-space:nowrap;
    }

    .gallery-cta .btn{
        width:100%;
        max-width:320px;
    }
}

@media (hover:none){
    .photos-gallery .gallery-card:hover,
    .photos-gallery .gallery-card:hover img{
        transform:none;
    }
}

@media (prefers-reduced-motion: reduce){
    .photos-gallery .gallery-grid.is-filtering .gallery-item:not(.is-hidden){
        animation:none;
    }
}

/* =============================================================================
   Premium Gallery Redesign & Show More Button
   ============================================================================= */

/* Centered Tab-style Filter Bar Wrapper */
.gallery-filter-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
    width: 100%;
}

.gallery-filters {
    display: inline-flex;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(27, 31, 107, 0.05);
    border: 1px solid rgba(27, 31, 107, 0.05);
    gap: 4px;
    margin-bottom: 0; /* Reset margins */
}

.gallery-filter-btn {
    border: none;
    background: transparent;
    color: var(--neci-primary);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter-btn:hover {
    background: rgba(27, 31, 107, 0.04);
    color: var(--neci-primary);
    box-shadow: none;
    transform: none;
}

.gallery-filter-btn.is-active {
    background: var(--neci-primary) !important;
    border-color: var(--neci-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(27, 31, 107, 0.25) !important;
    transform: none !important;
}

/* Modern flex-direction Column Card Layout */
/* Modern flex-direction Column Card Layout */
.photos-gallery .gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: auto !important; /* Let image wrapper handle ratio */
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(27, 31, 107, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(27, 31, 107, 0.06) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--neci-text) !important;
    text-decoration: none !important;
}

.photos-gallery .gallery-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 28px 55px rgba(27, 31, 107, 0.18), 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(244, 180, 0, 0.3) !important;
}

/* Image Container */
.gallery-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--neci-primary-dark);
    border-radius: 20px 20px 0 0 !important;
}

.gallery-card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.photos-gallery .gallery-card:hover .gallery-card-img-wrap img {
    transform: scale(1.05) !important; /* Image zoom 1.05 */
}

/* Floating Tag Badge */
.gallery-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(8, 12, 35, 0.85);
    color: var(--neci-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 3;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Information Container below image */
.gallery-card-info {
    padding: 24px !important; /* Better spacing inside cards */
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px; /* Better hierarchy and spacing */
}

.photos-gallery .gallery-title {
    color: #1F2A7A !important; /* Title: NECI Blue */
    font-size: 1.2rem !important; /* Clean typography hierarchy */
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.35;
    text-shadow: none !important;
    transform: none !important;
    transition: color 0.3s ease;
}

.photos-gallery .gallery-card:hover .gallery-title {
    color: #1F2A7A !important; /* Consistent Title Color */
}

/* Card footer details */
.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(27, 31, 107, 0.05);
}

.gallery-card-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #F4B400 !important; /* Price: Gold Accent */
}

.gallery-card-price span {
    font-size: 0.85rem !important;
    color: #5F6B85 !important; /* Suffix: Secondary Text */
    font-weight: 500 !important;
}

.gallery-card-link {
    color: #5F6B85 !important; /* Default link: Secondary Text */
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.gallery-card-link i {
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photos-gallery .gallery-card:hover .gallery-card-link {
    color: #F4B400 !important; /* View Info: Gold on hover */
}

.photos-gallery .gallery-card:hover .gallery-card-link i {
    transform: translateX(4px);
}

/* View Details Pill Overlay removal */
.photos-gallery .gallery-card::before {
    display: none !important;
}

/* Show More Pagination Button */
#galleryLoadMoreWrap {
    margin-top: 3.5rem;
    opacity: 0;
    animation: galleryFadeInUp 0.6s ease forwards;
}

.gallery-show-more-btn {
    background: var(--neci-accent);
    color: var(--neci-primary);
    border: 2px solid var(--neci-accent);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 36px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(244, 180, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-show-more-btn i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.gallery-show-more-btn:hover {
    background: var(--neci-primary);
    color: #fff;
    border-color: var(--neci-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(27, 31, 107, 0.3);
}

.gallery-show-more-btn:hover i {
    transform: translateY(3px);
}

@keyframes galleryFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .gallery-filter-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-filter-wrap::-webkit-scrollbar {
        display: none;
    }

    .gallery-filters {
        flex-wrap: nowrap;
        border-radius: 20px;
    }

    .gallery-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
