.cig-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.cig-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cig-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cig-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cig-item-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cig-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transition: background 0.3s ease;
}

.cig-gallery-item:hover .cig-item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.cig-item-title {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
p.cig-item-count {
    text-align: left;
}
.cig-item-category,
.cig-item-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

/* Single Gallery Page Styles */
.cig-single-hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
}

.cig-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cig-single-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 48px;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Category Archive Header (no image fallback) */
.cig-category-header {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 40px;
}

.cig-category-header h1 {
    color: #fff;
    font-size: 48px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cig-category-description {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.cig-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.cig-single-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cig-single-gallery-item:hover {
    transform: scale(1.05);
}

.cig-single-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Lightbox Styles */
.cig-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.cig-lightbox.active {
    display: flex;
}

.cig-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cig-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.cig-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cig-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 5px;
    user-select: none;
}

.cig-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-prev {
    left: 30px;
}

.cig-lightbox-next {
    right: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cig-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cig-item-image {
        height: 250px;
    }
    
    
    
    .cig-single-hero h1 {
        font-size: 32px;
    }
    
    .cig-single-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cig-single-gallery-item img {
        height: 200px;
    }
}


.cig-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cig-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cig-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cig-item-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cig-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transition: background 0.3s ease;
}

.cig-gallery-item:hover .cig-item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.cig-item-title {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cig-item-category,
.cig-item-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

/* Single Gallery Page Styles */
.cig-single-hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
}

.cig-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cig-single-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 48px;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cig-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.cig-single-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cig-single-gallery-item:hover {
    transform: scale(1.05);
}

.cig-single-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Lightbox Styles */
.cig-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.cig-lightbox.active {
    display: flex;
}

.cig-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cig-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.cig-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cig-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 5px;
    user-select: none;
}

.cig-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-prev {
    left: 30px;
}

.cig-lightbox-next {
    right: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    
    
    .cig-item-image {
        height: 250px;
    }
    
    
    
    .cig-single-hero h1 {
        font-size: 32px;
    }
    
    .cig-single-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cig-single-gallery-item img {
        height: 200px;
    }
}


.cig-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cig-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cig-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cig-item-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cig-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    transition: background 0.3s ease;
}

.cig-gallery-item:hover .cig-item-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.cig-item-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}




.cig-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cig-single-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 48px;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cig-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cig-single-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
margin-bottom: 30px;
}

.cig-single-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cig-single-gallery-item:hover {
    transform: scale(1.05);
}

.cig-single-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}


.cig-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.cig-lightbox.active {
    display: flex;
}

.cig-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cig-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.cig-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cig-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 5px;
    user-select: none;
}

.cig-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cig-lightbox-prev {
    left: 30px;
}

.cig-lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    
    
    .cig-item-image {
        height: 250px;
    }
    
   
    
    .cig-single-hero h1 {
        font-size: 32px;
    }
    
    .cig-single-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cig-single-gallery-item img {
        height: 200px;
    }
}