﻿.masonry-gallery {
	column-count: 3;
	column-gap: 1rem;
}

@media (max-width: 1200px) {
	.masonry-gallery {
		column-count: 2;
	}
}

@media (max-width: 768px) {
	.masonry-gallery {
		column-count: 1;
	}
}

.masonry-gallery a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 1rem;
	break-inside: avoid; /* 💡 Satır bölünmesini engeller */
}

.masonry-gallery img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
	border-radius: 8px;
	position: relative;
	z-index: 0;
}

.masonry-gallery a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.3s ease;
	z-index: 1;
	border-radius: 8px;
}

.masonry-gallery a:hover::after {
	background-color: rgba(0, 0, 0, 0.3);
}

.masonry-gallery a:hover img {
	transform: scale(1.02);
}
