/*
	Website Name: Grid Gallery
	Designed by: Katherine Leonard, Car-Part.com
	Modified by: Katherine Leonard
	Last updated: 4 May 2026
*/
ul,li{list-style:none;margin:0;padding:0}

div.grid-gallery {
	text-align: center;
	margin: 1rem;
}
ul.grid-gallery {
	display: grid;
}

ul.six-col {
	grid-template-columns: 16.67% 16.67% 16.67% 16.67% 16.67% 16.67%;
}
ul.five-col {
	grid-template-columns: 20% 20% 20% 20% 20%;
}
ul.four-col {
	grid-template-columns: 25% 25% 25% 25%;
}
ul.three-col {
	grid-template-columns: 33.33% 33.33% 33.33%;
}

ul.grid-gallery li {
    padding: .5rem;
}

ul li img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center center;
}

ul li img:hover {
    cursor: pointer;
}


/* Modal styling overrides */
#gOverlay.overlay {
    display: flex;
    display: none;
    flex: 1 0 auto;
    flex-flow: row wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#gBox.modal {
	background-color: transparent;
	color: #fff;
	display: block;
		width: 90%;
        height: 90%;
    position: relative;
		top: auto;
		left: auto;
		z-index: 520;
    text-align: center;
}
#gBox.modal img {
    height: 100%;
    width: auto;
    margin: auto;
}
#gCls.modalX {
	color: #fff;
	display: block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1em;
	position: absolute;
		top: -1rem;
		right: -.5rem;
}


@media screen and ( max-width: 999px ) {
    #gBox.modal {
		width: 85%;
        height: 85%;
    }
	#gBox.modal img {
        width: 100%;
        height: auto;
    }
}

@media screen and ( max-width: 699px ) {
	ul.six-col, ul.five-col {
        grid-template-columns: 25% 25% 25% 25%;
    }
}