/* =============================================================================
   Gallery — Archive page styles  /proekty/
   Стиль вдохновлён gnsn.ru/projects/ — горизонтальные вкладки, карточки
   с тёмным оверлеем при hover, сетка 3 колонки.
   Работает внутри Kadence .site-container (max-width задаётся темой).
   ============================================================================= */

/* ── Обёртка страницы ─────────────────────────────────────────────────────── */

.akusta-gallery {
	padding: 24px 0 80px;
	width: 100%;
}

/* Заголовок над галереей */
.akusta-gallery-header {
	padding-top: 24px;
	margin-bottom: 28px;
}

.akusta-gallery-header__title {
	font-size: clamp( 24px, 3.5vw, 38px );
	font-weight: 800;
	margin: 0 0 6px;
	color: #1d2939;
}

.akusta-gallery-header__desc {
	margin: 0;
	font-size: 15px;
	color: #667085;
	padding-top:8px;
}

/* ── Вкладки-фильтры ─────────────────────────────────────────────────────── */
/* Горизонтальная прокрутка без переноса, как на gnsn.ru                      */

.akusta-gallery__filters {
	margin-bottom: 32px;
}

.akusta-gallery__filter-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0 0 4px;    /* небольшой отступ под скролл */
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.akusta-gallery__filter-list::-webkit-scrollbar {
	display: none;
}

.akusta-gallery__filter-btn {
	display: inline-block;
	padding: 7px 18px;
	border: 1px solid #d0d5dd;
	border-radius: 4px;             /* rounded-4 как у gnsn.ru */
	background: transparent;
	color: #344054;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.akusta-gallery__filter-btn:hover {
	border-color: #7b0193;
	color: #7b0193;
	background: transparent;
}

.akusta-gallery__filter-item.is-active .akusta-gallery__filter-btn {
	background: #7b0193;
	border-color: #7b0193;
	color: #fff;
}

.akusta-gallery__filter-item.is-active .akusta-gallery__filter-btn:hover {
	background: #620075;
	border-color: #620075;
}

/* ── Сетка ───────────────────────────────────────────────────────────────── */

.akusta-gallery__grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

@media ( max-width: 1024px ) {
	.akusta-gallery__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 600px ) {
	.akusta-gallery__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Карточка ────────────────────────────────────────────────────────────── */

.akusta-gallery__item {
	position: relative;          /* нужно для display:flex на ссылке */
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	/* тень появляется при hover */
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.08 ), 0 1px 2px rgba( 0, 0, 0, 0.04 );
	transition: box-shadow 0.2s ease;
}

.akusta-gallery__item:hover {
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.14 ), 0 2px 8px rgba( 0, 0, 0, 0.06 );
}

/* Скрываем JS-фильтром */
.akusta-gallery__item.is-hidden {
	display: none;
}

/* Ссылка занимает всю карточку */
.akusta-gallery__item-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ── Изображение карточки ────────────────────────────────────────────────── */

.akusta-gallery__item-image {
	position: relative;
	width: 100%;
	padding-top: 63%;            /* ~16:10 — близко к gnsn.ru */
	overflow: hidden;
	background: #e8ecef;
}

.akusta-gallery__item-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

/* Плавное зумирование изображения */
.akusta-gallery__item:hover .akusta-gallery__item-image img {
	transform: scale( 1.05 );
}

/* Тёмный оверлей — как dark-block-after у gnsn.ru */
.akusta-gallery__item-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0 );
	transition: background 0.3s;
	pointer-events: none;
}

.akusta-gallery__item:hover .akusta-gallery__item-image::after {
	background: rgba( 0, 0, 0, 0.28 );
}

/* Плейсхолдер при отсутствии изображения */
.akusta-gallery__item-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, #e8ecef 0%, #cfd8dc 100% );
}

/* ── Информация карточки ──────────────────────────────────────────────────── */

.akusta-gallery__item-info {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

/* Тип/категория — мелкий серый текст как project-list__item-section у gnsn.ru */
.akusta-gallery__item-type {
	font-size: 13px;
	font-weight: 400;
	color: #888;
	line-height: 1.4;
}

/* Название — font_18 как у gnsn.ru */
.akusta-gallery__item-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2939;
	transition: color 0.15s;
}

.akusta-gallery__item:hover .akusta-gallery__item-title {
	color: #7b0193;
}

/* Год и город (опционально) */
.akusta-gallery__item-meta {
	font-size: 13px;
	color: #9aa0ab;
	margin-top: 2px;
}

/* ── Пустое состояние ─────────────────────────────────────────────────────── */

.akusta-gallery__empty {
	padding: 60px 0;
	text-align: center;
	color: #667085;
	font-size: 16px;
}
