.snippet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 25px;
	margin-bottom: 30px;
}
.snippet-box {
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
    background-color: White;
    border-radius: 5px;
    transition: background-color 0.3s;
	box-shadow: 0px 0px 5px #eee;
}
.snippet-box:hover {
    background-color: #f0f0f0;
}
.snippet-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px 5px 0 0 !important;
	border-bottom: 1px solid #eeeeee !important;
}
.view-snippet{
	margin: 10px 0 20px 0;
	width: 50%
}
#snippet-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    display: none;
    z-index: 999999;
    min-width: 70%;
    max-width: 80%;
    max-height: 700px;
    border-radius: 5px;
}
#popup-overlay {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
}
.sp-title{
	background-color: #eeeeee;
	border-radius: 5px 5px 0px 0px;
	padding: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#snippet-title {
    font-weight: bold;
    font-size: 1.2em;
	color: #333333;
	margin-bottom: 0px !important;
}
.sl-icon{
    display: none;
    color: #ffffff;
    background-color: #333333;
    border-radius: 3px;
    padding: 7px;
}
.sl-icon:hover{
    background-color: #FD1C00;
}
.sl-btn{
    background-color: #333333;
}
.sl-btn:hover{
    background-color: #FD1C00;
}
.popup-ad{
	height: 90px;
	margin: 10px;
	padding: 5px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #f7f7f7;
}
.popup-ad-inner{
	width: 728px;
	height: 80px;
}
.popup-e-cr{
	padding: 5px 10px;
	background-color: #eeeeee;
	border-radius: 0 0 10px 10px;
	color: #888888;
}
#filter-container{
    width: 100%;
	margin-bottom: 25px;
	border: 1px solid #333;
	border-radius: 5px;
}
.fc-search-bar {
    width: 80%; /* Adjust width to leave space for the button */
	height: 49px !important;
    display: inline-block;
    padding: 10px;
    border: none !important;
    border-radius: 5px 0 0 5px !important;
    box-sizing: border-box;
}
.fc-search-button {
    padding: 10px 15px;
	width: 20%;
	height: 50px !important; 
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0 !important;
    cursor: pointer;
    transition: background-color 0.3s;
}
#search-button:hover {
    background-color: #005177;
}
.pagination-wrapper {
    text-align: center;
}
.pagination-wrapper .prev, .pagination-wrapper .next {
    padding: 5px 10px !important;
	background-color: #333333 !important;
    cursor: pointer;
	text-decoration: none !important;
	border-radius: 5px;
}
.pagination-wrapper .prev:hover, .pagination-wrapper .next:hover{
	color: white;
	background-color: #FD1C00 !important;
}
.pagination-wrapper .page-number{
	text-decoration: none !important;
}

@media (min-width: 869px) and (max-width: 1000px){
	 #snippet-popup{
        max-width: 80%;
        min-width: 95%;
    }
}
@media (min-width: 581px) and (max-width: 868px) {
    .snippet-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
    #snippet-popup{
        max-width: 95%;
        min-width: 90%;
    }
	.popup-ad-inner{
		width: 100%;
		height: 80px;
	}
	.sl-icon{
        display: inline-block;
    }
    .sl-btn{
        display: none;
    }
}
@media (max-width: 580px) {
    .snippet-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
    #snippet-popup{
        max-width: 96%;
        max-height: 96%;
        min-width: 90%;
    }
	.popup-ad-inner{
		width: 100%;
		height: 80px;
	}
	.sl-icon{
        display: inline-block;
    }
    .sl-btn{
        display: none;
    }
}