/* Pakettide ruudustik. Kujundus on mooduli enda failis (mitte teemas). */

/* --- [pakett_grid] --- */

.akt-pkg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
	width: 100%;
	box-sizing: border-box;
}

.akt-pkg-grid * {
	box-sizing: border-box;
}

.akt-pkg-item {
	display: block;
	position: relative;
	border: 1px solid #e1e1e1;
	padding: 15px;
	text-align: center;
	background: #fff;
	transition: box-shadow 0.2s ease;
	height: 100%;
}

.akt-pkg-item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.akt-pkg-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.akt-pkg-image {
	width: 100%;
	aspect-ratio: 2/1;
	overflow: hidden;
	display: block;
	background-color: #f7f7f7;
	position: relative;
	margin-bottom: 15px;
}

.akt-pkg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none !important;
}

.akt-pkg-title {
	font-size: 16px;
	line-height: 1.4;
	margin: 10px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.akt-pkg-title a {
	text-decoration: none;
	color: #333;
}

.akt-pkg-form-wrap {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

@media (max-width: 1024px) {
	.akt-pkg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.akt-pkg-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

