/* Главная страница: сетка, поиск в hero и лента альбома */

/*
 * На широких экранах auto-fill даёт четыре колонки, и блоки из трёх
 * карточек оставляют пустую колонку. На главной фиксируем три.
 */
body.home .turan-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 899px) {
	body.home .turan-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.home .turan-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* Поиск в первом экране */
.turan-home-search {
	max-width: 560px;
	margin-top: 1.6rem;
}

.turan-home-search .turan-search-form {
	max-width: none;
	margin: 0;
}

.turan-home-search .turan-search-form input[type="search"] {
	border-color: transparent;
	background: rgba(255, 255, 255, 0.96);
}

.turan-home-search .turan-search-form input[type="search"]:focus {
	outline-color: var(--t-ochre);
}

.turan-home-search__hint {
	margin: 0.6rem 0 0;
	font-size: 0.85rem;
	color: rgba(244, 241, 232, 0.78);
}

.turan-home-search__hint a {
	color: #f4f1e8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.turan-home-search__hint a:hover {
	color: var(--t-ochre);
}

/* Лента альбома */
.turan-home-album__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
}

.turan-home-album__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: var(--t-radius-sm);
	background: var(--t-cream);
}

.turan-home-album__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.turan-home-album__item:hover img,
.turan-home-album__item:focus-visible img {
	transform: scale(1.05);
}

@media (max-width: 1024px) {
	.turan-home-album__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.turan-home-album__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
