.wrap {
	width: 100%;
	position: relative;
		padding: 1em 0 0;
}
.wrap > header {
	width: 90%;
	max-width: 1240px;
	margin: 0 auto;
	position: relative;
	padding: 0 30px 50px 30px;
}
.wrap > header {
	padding: 60px 30px 50px;
	text-align: center;
}
.wrap > header h1 {
	font-size: 34px;
	line-height: 38px;
	margin: 0 auto;
	font-weight: 700;
	color: #333;
}

.wrap > header h1 span {
	display: block;
	font-size: 20px;
	font-weight: 300;
}
.main > p {
	text-align: center;
	padding: 50px 20px;
}
/* Header Style */
.codrops-top {
	line-height: 24px;
	font-size: 11px;
	background: #fff;
	background: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	z-index: 9999;
	position: relative;
	box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
}

.codrops-top a {
	padding: 0px 10px;
	letter-spacing: 1px;
	color: #333;
	display: inline-block;
}

.codrops-top a:hover {
	background: rgba(255,255,255,0.8);
	color: #000;
}

.codrops-top span.right {
	float: right;
}

.codrops-top span.right a {
	float: left;
	display: block;
}
/*----*/
.og-grid {
	list-style: none;
	padding: 20px 15px;
	margin: 0 auto;
	text-align: center;
	width: 100%;
	max-width: 1400px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}

/* Games Page Specific Styles */
.games-page-grid {
	gap: 20px;
	justify-content: center;
}


/* Games Page Specific Styles */
.games-page-grid li {
	display: block;
  height: 300px;
  width: calc(25% - 15px);
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); */
  position: relative;
  flex-shrink: 0;
}

/* Ensure 4-column layout for large screens */
@media(min-width:1401px) {
  .games-page-grid {
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .games-page-grid li {
    width: calc(25% - 15px);
    height: 320px;
  }
}

.og-grid li:hover {
  /* transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25); */
}

.og-grid li > a,
.og-grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
}

.og-grid li.og-expanded > a::after {
	top: auto;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #ddd;
	border-width: 15px;
	left: 50%;
	margin: -20px 0 0 -15px;
}

.og-expander {
  margin: 10px 4px 0px;
}
.og-expander h3 {
  font-size: 28px;
}

/* Game Cards Image Styling */
.og-grid li > a {
  overflow: hidden !important;
  display: block;
  height: 100% !important;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.og-grid li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.og-grid li:hover > a::before {
  /* opacity: 1; */
}

.og-grid li > a img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: 12px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0.95);
}

.og-grid li:hover > a img {
  /* transform: scale(1.08) translateY(-5px);
  filter: brightness(1.1); */
}

/* Game Title Overlay */
.og-grid li > a::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
  color: #fff;
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
  border-radius: 0 0 12px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.og-grid li:hover > a::after {
  /* opacity: 1;
  transform: translateY(0); */
}

/* Responsive Grid Layout */
@media(max-width:1400px) {
  .games-page-grid {
    gap: 18px;
    padding: 20px 10px;
  }
  
  .games-page-grid li {
    width: calc(33.33% - 12px);
    height: 280px;
  }
}

@media(max-width:1024px) {
  .games-page-grid {
    gap: 16px;
    padding: 20px 8px;
  }
  
  .games-page-grid li {
    width: calc(33.33% - 11px);
    height: 260px;
  }
}

@media(max-width:768px) {
  .games-page-grid {
    gap: 15px;
    padding: 20px 8px;
  }
  
  .games-page-grid li {
    width: calc(50% - 7.5px);
    height: 220px;
  }
}

@media(max-width:480px) {
  .games-page-grid {
    gap: 12px;
    padding: 20px 5px;
  }
  
  .games-page-grid li {
    width: calc(50% - 6px);
    height: 200px;
  }
}

@media(max-width:320px) {
  .games-page-grid {
    gap: 10px;
    padding: 20px 3px;
  }
  
  .games-page-grid li {
    width: calc(50% - 5px);
    height: 180px;
  }
}