/**
 * Gallery Archive Page Styles
 */

/* Hero Section */
.gallery-archive-hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
    background-color: #f8f9fa;
    min-height: 770px;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 40px;
}

.gallery-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 auto 20px;
    max-width: 700px;
}

.gallery-hero-title .brand-name {
    color: var(--primary-color, #223C93);
}

.gallery-hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: 10px;
    position: relative;
    z-index: 2;
}

.gallery-hero-item {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-hero-item:hover {
    transform: translateY(-5px);
}

.gallery-hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-hero-item:hover img {
    transform: scale(1.05);
}

/* Responsive grid layout - order and spans for different items */
.gallery-hero-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-hero-item:nth-child(2) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(3) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(7) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-hero-item:nth-child(9) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Filter Section */
.gallery-archive-content {
    padding: 60px 0;
}

.gallery-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-cat-item {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f1f1f1;
    color: #555;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.gallery-cat-item:hover, 
.gallery-cat-item.active {
    background-color: var(--primary-color, #223C93);
    color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item-image {
    height: 250px;
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 25px;
}

.gallery-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.gallery-item-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.gallery-item-read-more {
    display: inline-block;
    color: var(--primary-color, #223C93);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.gallery-item:hover .gallery-item-read-more {
    color: var(--secondary-color, #B89B33);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #f1f1f1;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-numbers.current {
    background-color: var(--primary-color, #223C93);
    color: #fff;
}

.page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 15px;
}

.page-numbers svg {
    width: 18px;
    height: 18px;
}

.no-galleries-found {
    text-align: center;
    padding: 40px 0;
    color: #666;
}
.gallery-hero-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 1300px;
    max-width: 100%;
    margin: auto;
    align-items: end;
    overflow: hidden;
}

.gallery-hero-list img {
    width: 100%;
    height: 337px;
    object-fit: cover;
    border-radius: 10px;
}



.gallery-hero-list > * {
    width: 20%;
}

.gallery-hero-list > *:nth-child(2), .gallery-hero-list > *:nth-child(4) {position: relative;top: 145px;}

.gallery-hero-content {
    position: absolute;
}

.gallery-hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 110px;
}
/* Gallery Archive Styles */
.gallery-bg {
    background-color: rgba(233, 236, 244, 1);
    padding: 60px 0;
}





.gallery-item-image {
    height: 430px;
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-content {
    padding: 20px;
    text-align: center;
}

.gallery-title-limit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
   
}

.gallery-item-title a {
    text-decoration: none;
    color: inherit;
}

.gallery-btn {
    display: inline-block;
    background-color: #144492;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 10px;
}

.gallery-btn:hover {
    background-color: #0d2d5e;
    color:#fff;
}



/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-hero-grid {
        grid-template-rows: repeat(2, 150px);
    }
    
    .gallery-hero-title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .gallery-hero-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, 150px);
        gap: 8px;
    }
    
    .gallery-hero-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-hero-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-hero-item:nth-child(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-hero-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-hero-item:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-hero-item:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .gallery-hero-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .gallery-hero-list {
        gap: 8px;
        
    }
    
    
    
    .gallery-hero-content {
        top: 30px;
        width: 100%;
    }
    .gallery-hero-list img{
        height: 100px;
    }
    .gallery-hero-list > *:nth-child(2), .gallery-hero-list > *:nth-child(4) {
        top:45px;
    }
    .gallery-hero-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 120px);
    }
    .gallery-archive-hero {
        min-height: auto;
    }
    
    .gallery-hero-item:nth-child(n) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-item-image {
        height: 200px;
    }
    
    .gallery-hero-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .gallery-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 120px);
    }
    
    .gallery-hero-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-categories {
        flex-direction: column;
        gap: 8px;
    }
    
    .gallery-cat-item {
        width: 100%;
    }
    
    .gallery-hero-title {
        font-size: 22px;
    }
} 