.cg-gallery {
    display: grid;
    gap: 20px;
	justify-content: start; 
}

.cg-columns-1 { grid-template-columns: repeat(1, 1fr); }
.cg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cg-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cg-columns-5 { grid-template-columns: repeat(5, 1fr); }
.cg-columns-6 { grid-template-columns: repeat(6, 1fr); }

.cg-rows-1 { grid-template-rows: repeat(1, auto); }
.cg-rows-2 { grid-template-rows: repeat(2, auto); }
.cg-rows-3 { grid-template-rows: repeat(3, auto); }
.cg-rows-4 { grid-template-rows: repeat(4, auto); }

.cg-gallery-item {
    position: relative;
    width: 465px;
    height: 303px;
    overflow: hidden;
}

.cg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cg-hover-button {
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cg-gallery-item:hover .cg-hover-button {
    opacity: 1;
    pointer-events: auto;
}

.cg-gallery-button {
    background-color: #02010100;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 6px;
	border:1px solid #fff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.cg-gallery-button:hover {
    background-color: #02010100;
	color:#0E1428;
}

.cg-gallery-button i,
.cg-gallery-button svg {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
}

.cg-lightbox {
    position: relative;
    display: block;
}
.cg-lightbox img {
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .cg-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cg-gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1.53; 
    }
}

@media (max-width: 768px) {
    .cg-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cg-gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1.53;
    }
}