.mmd-instagram-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.mmd-instagram-item {
	display: block;
	padding: 0;
	border: 0;
	margin: 0;
	background: none;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.mmd-instagram-item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .3s ease;
}

.mmd-instagram-item:hover img {
	transform: scale(1.035);
}


/* LIGHTBOX */

.mmd-instagram-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	background: rgba(0, 0, 0, .82);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.mmd-instagram-lightbox[aria-hidden="true"] {
	display: none;
}

.mmd-instagram-modal {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
	width: 100%;
	max-width: 1150px;
	max-height: 90vh;
	background: #fff;
	overflow: hidden;
}

.mmd-instagram-modal-image {
	background: #111;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmd-instagram-modal-image img {
	width: 100%;
	height: 100%;
	max-height: 90vh;
	display: block;
	object-fit: contain;
}

.mmd-instagram-modal-content {
	padding: 45px 40px 35px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.mmd-instagram-text {
	white-space: pre-line;
	line-height: 1.55;
	margin-bottom: 30px;
}

.mmd-instagram-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	margin-top: auto;
	padding: 12px 18px;
	text-decoration: none;
	border: 1px solid currentColor;
}

.mmd-instagram-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.mmd-instagram-button .insta-dot {
	fill: currentColor;
	stroke: none;
}

.mmd-instagram-close {
	position: absolute;
	z-index: 10;
	top: 10px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(255,255,255,.9);
	font-size: 32px;
	line-height: 36px;
	cursor: pointer;
}


/* MOBIL */

@media (max-width: 767px) {

	.mmd-instagram-grid {
		gap: 5px;
	}

	.mmd-instagram-lightbox {
		padding: 15px;
		overflow-y: auto;
		align-items: flex-start;
	}

	.mmd-instagram-modal {
		display: block;
		max-height: none;
	}

	.mmd-instagram-modal-image {
		min-height: 0;
	}

	.mmd-instagram-modal-image img {
		width: 100%;
		height: auto;
		max-height: none;
	}

	.mmd-instagram-modal-content {
		padding: 25px 20px;
		overflow: visible;
	}

	.mmd-instagram-button {
		margin-top: 10px;
	}
}


body.mmd-instagram-open {
	overflow: hidden;
}

.mmd-instagram-more {
	margin-top: 25px;
}

.mmd-instagram-item-added {
	animation: mmdInstagramFadeIn .35s ease both;
}

@keyframes mmdInstagramFadeIn {

	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}