.mgc-grid {
	display: grid;
	grid-template-columns: repeat(var(--mgc-columns, 3), 1fr);
	gap: 24px;
}

@media (max-width: 782px) {
	.mgc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.mgc-grid {
		grid-template-columns: 1fr;
	}
}

.mgc-box {
	cursor: pointer;
	text-align: center;
}

.mgc-box-img {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 2px;
	background: #eee;
}

.mgc-box-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.mgc-box:hover .mgc-box-img img {
	transform: scale(1.04);
}

.mgc-count {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 20px;
}

.mgc-box-title {
    margin-top: 12px;
    letter-spacing: 0;
    margin-bottom: 0px;
    font-family: "Nanum Myeongjo", Sans-serif;
    font-size: 25px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 35px;
    color: var(--e-global-color-primary);
}

/* Modal */
.mgc-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.mgc-modal {
    display: none;
}

.mgc-modal.is-open {
	display: flex;
}

.mgc-slider {
	position: relative;
	width: min(90vw, 1000px);
	height: min(85vh, 800px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.mgc-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.mgc-slide {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
}

.mgc-slide.is-active {
	display: flex;
}

.mgc-slides {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;   /* <-- added */
}

.mgc-slide img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mgc-slide video {
	width: 100%;
	height: 100%;
	object-fit: contain;   /* forces it to fill the box instead of using native size */
}

.mgc-slide iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.mgc-title {
	position: absolute;
	bottom: -34px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.mgc-counter {
	position: absolute;
	bottom: -58px;
	left: 0;
	right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
}

.mgc-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.mgc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 18px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
}

.mgc-nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.mgc-prev {
	left: 20px;
}

.mgc-next {
	right: 20px;
}

@media (max-width: 600px) {
	.mgc-nav {
		width: 38px;
		height: 38px;
		font-size: 14px;
	}
	.mgc-prev { left: 8px; }
	.mgc-next { right: 8px; }
}

span.image-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #c79378;
    padding: 2px 12px;
}

span.image-arrow svg {
    height: 15px;
    width: auto;
    fill: white;
}

span.image-arrow svg path {
    fill: white;
}