.og-grid {
	list-style: none;
	padding: 20px 0;
	margin: 0 auto;
	text-align: center;
	width: 100%;
}

.og-grid li {
	display: inline-block;
	margin: 10px 5px 0 5px;
	vertical-align: top;
	height: 250px;
}

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

.og-grid li > a img {
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 250px;
	height: 250px;
	object-fit: cover;
	object-position: center;
}

.og-grid li > a:hover img {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.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: var(--content-bg);
	border-width: 15px;
	left: 50%;
	margin: -20px 0 0 -15px;
}

.og-expander {
	position: absolute;
	background: var(--content-bg);
	top: auto;
	left: 0;
	width: 100%;
	margin-top: 10px;
	text-align: left;
	height: 0;
	overflow: hidden;
}

.og-expander-inner {
	padding: 30px 30px;
	height: 100%;
}

.og-close {
	position: absolute;
	width: 32px;
	height: 32px;
	top: 20px;
	right: 20px;
	cursor: pointer;
}

.og-close::before,
.og-close::after {
	content: '';
	position: absolute;
	width: 100%;
	top: 50%;
	height: 1px;
	background: var(--text-color);
	transform: rotate(45deg);
	transition: all 0.3s ease;
}

.og-close::after {
	transform: rotate(-45deg);
}

.og-close:hover::before,
.og-close:hover::after {
	background: var(--link-color);
}

.og-share {
	position: absolute;
	width: 32px;
	height: 32px;
	bottom: 20px;
	right: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.og-share::before {
	content: '';
	position: absolute;
	width: 24px;
	height: 24px;
	top: 4px;
	left: 4px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.59 13.51l6.83 3.98'/%3E%3Cpath d='M15.41 6.51l-6.82 3.98'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: all 0.3s ease;
}

[data-theme="dark"] .og-share::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ddd' stroke-width='1' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.59 13.51l6.83 3.98'/%3E%3Cpath d='M15.41 6.51l-6.82 3.98'/%3E%3C/svg%3E");
}

.og-share:hover::before {
	opacity: 0.6;
}

.og-share-copied::before {
	opacity: 0.4;
}

@media screen and (max-width: 650px) {
	.og-share {
		bottom: 15px;
		right: 15px;
	}
}

.og-fullimg {
	width: 100%;
	float: none;
	height: auto;
	overflow: hidden;
	position: relative;
	text-align: center;
	margin: 10px 0;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.og-fullimg iframe {
	max-width: 600px;
	width: 80%;
	height: 330px;
	margin: 0 auto;
	display: block;
}

.og-expander-inner h3 {
	font-weight: 300;
	font-size: 36px;
	padding: 10px 0 10px;
	margin-bottom: 0;
	text-align: center;
	color: var(--text-color);
}

.og-loading {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ddd;
	box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -25px 0 0 -25px;
	animation: loader 0.5s infinite ease-in-out both;
}

@keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@media screen and (max-width: 830px) {

	.og-expander h3 { font-size: 32px; }

}

@media screen and (max-width: 650px) {

	.og-fullimg { 
		display: block;
		width: 100%;
		text-align: center;
		margin-bottom: 20px;
	}
	
	.og-fullimg iframe {
		max-width: 100%;
		width: 95%;
		height: 250px;
		margin: 0 auto;
		aspect-ratio: 16/9;
	}
	

}