/* 
 * ГАЛЕРЕЯ ДЛЯ НОВИН - з білим фоном, БЕЗ рамок на фото
 * Файл: /var/www/ipm/css-new/gallery.css
 */

.article-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
	margin: 30px 0;
	padding: 20px;
	list-style: none;
	
	/* БІЛИЙ ФОН */
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-gallery a {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	transition: all 0.3s ease;
	cursor: pointer;
	
	/* БЕЗ РАМКИ - чисті фото */
	border: none;
	background: transparent;
}

.article-gallery a:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 91, 187, 0.3);
}

/* Thumbnail фото - однакового розміру */
.article-gallery a img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	border-radius: 6px;
}

.article-gallery a:hover img {
	transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
	.article-gallery {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 12px;
		padding: 18px;
	}
}

@media (max-width: 768px) {
	.article-gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
		padding: 15px;
	}
}

@media (max-width: 480px) {
	.article-gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		padding: 12px;
	}
}
