/* ============================================
   GALLERY PAGE - Premium Luxury Style
   ============================================ */

/* Font Awesome 6 icon support */
.gallery-page .fa,
.gallery-page .fa-brands,
.gallery-page .fa-classic,
.gallery-page .fa-sharp,
.gallery-sidebar .fa,
.gallery-sidebar .fa-brands,
.gallery-sidebar .fa-classic,
.gallery-sidebar .fa-sharp {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*font-family: "Font Awesome 6 Free" !important;*/
    font-weight: 900;
    line-height: 1;
}

.gallery-page .far,
.gallery-sidebar .far {
    /*font-family: "Font Awesome 6 Free" !important;*/
    font-weight: 400;
}

.gallery-page .fab,
.gallery-sidebar .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* ============================================
   GALLERY PAGE TABS (Video Categories)
   ============================================ */

.gallery-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-page-tabs a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fff;
    text-decoration: none;
}

.gallery-page-tabs a:hover {
    border-color: #00af50;
    color: #00af50;
}

.gallery-page-tabs a.active {
    border-color: #00af50;
    background: #00af50;
    color: #fff;
}

@media (max-width: 575px) {
    .gallery-page-tabs a {
        padding: 6px 14px;
        font-size: 13px;
    }
}

.gallery-page {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px 60px;
}

/* Breadcrumb */
.vnt-breadcrumb {
    padding: 18px 0 24px;
}

.vnt-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
}

.vnt-breadcrumb__inner a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.vnt-breadcrumb__inner a:hover {
    color: #00af50;
}

.vnt-breadcrumb__inner span:not(:last-child) {
    color: #ccc;
}

.vnt-breadcrumb__inner span:last-child {
    color: #133f74;
    font-weight: 500;
}

/* Section Header */
.gallery-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.gallery-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #133f74, #00af50);
}

.gallery-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #133f74;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.gallery-header p {
    color: #777;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Layout Grid */
.gallery-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */

.gallery-sidebar {
    position: sticky;
    top: 10px;
}

@media (max-width: 991px) {
    .gallery-sidebar {
        position: static;
    }
}

.gallery-sidebar__box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.gallery-sidebar__title {
    background: linear-gradient(135deg, #133f74 0%, #1a5490 100%);
    color: #fff;
    padding: 18px 22px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-sidebar__title i {
    font-size: 16px;
}

.gallery-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-sidebar__list li {
    border-bottom: 1px solid #f5f5f5;
}

.gallery-sidebar__list li:last-child {
    border-bottom: none;
}

.gallery-sidebar__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-sidebar__list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #00af50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-sidebar__list a:hover {
    background: linear-gradient(90deg, rgba(41, 179, 75, 0.06), transparent);
    color: #133f74;
    padding-left: 28px;
}

.gallery-sidebar__list a:hover::before {
    opacity: 1;
}

.gallery-sidebar__list a.active {
    background: linear-gradient(90deg, rgba(41, 179, 75, 0.1), transparent);
    color: #00af50;
    font-weight: 600;
}

.gallery-sidebar__list a.active::before {
    opacity: 1;
}

.gallery-sidebar__count {
    background: #f0f2f5;
    color: #888;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gallery-sidebar__list a.active .gallery-sidebar__count {
    background: #00af50;
    color: #fff;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1199px) {
    .gallery-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   GALLERY CARD
   ============================================ */

.gallery-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(19, 63, 116, 0.12);
    border-color: transparent;
}

/* Card Image */
.gallery-card__image {
    position: relative;
    padding-top: 72%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.1);
}

/* Image Badge */
.gallery-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: rgba(19, 63, 116, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-card__badge i {
    font-size: 11px;
}

/* Card Overlay */
.gallery-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(
        135deg,
        rgba(19, 63, 116, 0.7) 0%,
        rgba(41, 179, 75, 0.5) 100%
    );
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__overlay-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    color: #133f74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-card:hover .gallery-card__overlay-btn {
    transform: scale(1);
}

.gallery-card__overlay-btn:hover {
    background: #00af50;
    color: #fff;
    border-color: #00af50;
}

/* Card Content */
.gallery-card__content {
    padding: 20px 18px 22px;
}

.gallery-card__content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card__content h3 {
    color: #133f74;
}

.gallery-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.gallery-card__category {
    background: linear-gradient(135deg, rgba(41, 179, 75, 0.1), rgba(41, 179, 75, 0.05));
    color: #00af50;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(41, 179, 75, 0.2);
}

.gallery-card__date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-card__date i {
    font-size: 11px;
}

/* Hidden links for fancybox */
.gallery-card__links {
    display: none;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e0e0e0;
}

.gallery-empty-icon {
    font-size: 72px;
    color: #d0d7de;
    margin-bottom: 24px;
}

.gallery-empty p {
    margin: 0;
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

/* ============================================
   PAGINATION
   ============================================ */

.gallery-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.gallery-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gallery-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-pagination .page-item .page-link:hover {
    border-color: #133f74;
    color: #133f74;
    background: rgba(19, 63, 116, 0.04);
}

.gallery-pagination .page-item.active .page-link {
    border-color: #133f74;
    background: linear-gradient(135deg, #133f74, #1a5490);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(19, 63, 116, 0.3);
}

.gallery-pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
    border-color: #f0f0f0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-card:nth-child(8) { animation-delay: 0.4s; }
.gallery-card:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .gallery-header h1 {
        font-size: 28px;
    }

    .gallery-sidebar__box {
        display: flex;
        flex-wrap: wrap;
    }

    .gallery-sidebar__title {
        width: 100%;
    }

    .gallery-sidebar__list {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .gallery-sidebar__list li {
        border-bottom: none;
        flex: 0 0 auto;
    }

    .gallery-sidebar__list a {
        padding: 12px 18px;
    }

    .gallery-sidebar__list a::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .gallery-page {
        padding: 0 12px 50px;
    }

    .gallery-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .gallery-header h1 {
        font-size: 24px;
    }

    .gallery-header p {
        font-size: 14px;
    }

    .gallery-card__content {
        padding: 16px 14px 18px;
    }

    .gallery-card__content h3 {
        font-size: 14px;
    }

    .gallery-pagination {
        margin-top: 40px;
    }

    .gallery-pagination .page-item .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .gallery-sidebar__list {
        display: block;
    }
}
