/* Custom Gallery Styles */
.cg-946906b2-wrapper {
    width: 100%;
}
.cg-946906b2-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}
.cg-946906b2-filter-btn {
    background: none;
    border: 2px solid transparent;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}
.cg-946906b2-container {
    display: grid;
    transition: all 0.4s ease;
}
.cg-946906b2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cg-946906b2-masonry {
    display: block;
    column-count: 3;
}
.cg-946906b2-masonry .cg-946906b2-item-wrap {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}
.cg-946906b2-item-wrap {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}
.cg-946906b2-item-wrap.cg-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0 !important;
}
.cg-946906b2-item {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.cg-946906b2-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
}
.cg-946906b2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cg-946906b2-item:hover .cg-946906b2-img {
    transform: scale(1.05);
}
.cg-946906b2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}
.cg-946906b2-item:hover .cg-946906b2-overlay {
    opacity: 1;
}
.cg-946906b2-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cg-946906b2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cg-946906b2-title {
    margin: 0;
    font-size: 1.25rem;
}
.cg-946906b2-desc {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
.cg-946906b2-overlay-custom-img {
    object-fit: contain;
}

/* Metro layouts */
.cg-946906b2-metro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
}
.cg-946906b2-metro .cg-946906b2-img-container {
    height: 100%;
}
.cg-946906b2-metro .cg-946906b2-img {
    height: 100%;
}

/* Metro Option 1: Classic Alternating */
.cg-946906b2-metro-classic .cg-946906b2-item-wrap:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Metro Option 2: Zig Zag Highlights */
.cg-946906b2-metro-zigzag .cg-946906b2-item-wrap:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}
.cg-946906b2-metro-zigzag .cg-946906b2-item-wrap:nth-child(6n+4) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Metro Option 3: Mosaïque Mixte (Highly-Asymmetrical / Mixed) */
.cg-946906b2-metro-mosaic .cg-946906b2-item-wrap:nth-child(7n+1) {
    grid-column: span 2;
    grid-row: span 2; /* Large block */
}
.cg-946906b2-metro-mosaic .cg-946906b2-item-wrap:nth-child(7n+3) {
    grid-column: span 2; /* Horizontal Banner */
}
.cg-946906b2-metro-mosaic .cg-946906b2-item-wrap:nth-child(7n+5) {
    grid-row: span 2; /* Vertical Tall Column */
}

/* Metro Option 4: Wide Highlight Stripes */
.cg-946906b2-metro-stripes .cg-946906b2-item-wrap:nth-child(3n+1) {
    grid-column: span 2;
}

/* Metro Option 5: Tall Column Highlights */
.cg-946906b2-metro-columns .cg-946906b2-item-wrap:nth-child(4n+1) {
    grid-row: span 2;
}

/* Lightbox popup styling */
.cg-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cg-lightbox-overlay.cg-active {
    opacity: 1;
}
.cg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 1000000;
    background: none;
    border: none;
    line-height: 1;
}
.cg-lightbox-swiper {
    width: 90%;
    height: 80%;
}
.cg-lightbox-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.cg-lightbox-swiper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 15px;
}
.cg-lightbox-title {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}
.cg-lightbox-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}
.cg-lightbox-swiper .swiper-button-next,
.cg-lightbox-swiper .swiper-button-prev {
    color: #fff;
}
