/* =========================================
   GALLERY PAGE STYLES - DIGANTA VIKAS
   ========================================= */

.gallery-banner {
    background: linear-gradient(135deg, #0A1B3F 0%, #003060 100%);
    color: #fff;
    position: relative;
    padding: 50px 0 45px 0;
}

/* Filter Toolbar Card */
.gallery-filter-toolbar {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gallery-scroll-row {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-scroll-row::-webkit-scrollbar {
    display: none;
}

.gallery-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    background: #F4F6F9;
    color: #4A5568;
    border: 1px solid #E2E8F0;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-filter-pill:hover {
    background: #E8F0FE;
    color: #0A1B3F;
    border-color: #B8D5FD;
}

.gallery-filter-pill.active {
    background: #0A1B3F;
    color: #ffffff;
    border-color: #0A1B3F;
    box-shadow: 0 4px 10px rgba(10, 27, 63, 0.2);
}

.gallery-filter-pill .pill-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 700;
}

.gallery-filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Search input */
.gallery-search-box .form-control {
    border-radius: 50px 0 0 50px;
    border: 1px solid #CBD5E1;
    padding-left: 18px;
    font-size: 0.88rem;
    height: 42px;
}

.gallery-search-box .form-control:focus {
    border-color: #0A1B3F;
    box-shadow: 0 0 0 3px rgba(10, 27, 63, 0.1);
}

.btn-gallery-search {
    background: #0A1B3F;
    border: 1px solid #0A1B3F;
    border-radius: 0 50px 50px 0;
    padding: 0 18px;
    color: #fff;
    height: 42px;
    transition: all 0.2s;
}

.btn-gallery-search:hover {
    background: #002244;
    border-color: #002244;
    color: #fff;
}

.btn-gallery-clear {
    background: #fff;
    border: 1px solid #CBD5E1;
    border-left: none;
    border-right: none;
    color: #94A3B8;
    padding: 0 12px;
}

.btn-gallery-clear:hover {
    color: #E60000;
}

/* Gallery Photo Cards */
.gallery-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #CBD5E1;
}

.gallery-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: #0A1B3F;
    cursor: pointer;
}

.gallery-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease-out;
}

.gallery-card:hover .gallery-thumb-img {
    transform: scale(1.08);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 27, 63, 0.15) 0%, rgba(10, 27, 63, 0.65) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-thumb-overlay {
    opacity: 1;
}

.gallery-zoom-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A1B3F;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(12px) scale(0.9);
    transition: all 0.25s ease;
}

.gallery-card:hover .gallery-zoom-btn {
    transform: translateY(0) scale(1);
}

.gallery-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 27, 63, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 30px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-body {
    padding: 14px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-card-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0A1B3F;
    line-height: 1.38;
    margin-bottom: 8px;
    word-break: break-word;
}

.gallery-card-meta {
    font-size: 0.78rem;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

/* Lightbox Modal */
.gallery-modal .modal-content {
    background-color: #0a1122;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
}

.gallery-modal-body {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    max-height: 78vh;
    background: #000;
}

.gallery-modal-body img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    user-select: none;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0A1B3F;
}

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

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

.gallery-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 24px;
    background-color: #0d162a;
}

/* Pagination */
.gallery-pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    color: #0A1B3F;
    border: 1px solid #E2E8F0;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    transition: all 0.2s;
}

.gallery-pagination .page-item.active .page-link {
    background-color: #0A1B3F;
    border-color: #0A1B3F;
    color: #fff;
    box-shadow: 0 4px 10px rgba(10, 27, 63, 0.2);
}

.gallery-pagination .page-link:hover:not(.disabled) {
    background-color: #E8F0FE;
    color: #0A1B3F;
    border-color: #B8D5FD;
}