@layer l-card
{

	.l-card
	{
		display: grid;
		row-gap: 1.5rem;
		padding: 1.5rem 2.5rem 2.5rem;
	}	

	.l-card .title h2
	{
		display: flex;
		align-items: center;
		gap: 1rem;
	}

	.l-card .title h2::before,
	.l-card .title h2::after
	{
		content: "";
		flex: 1;
		height: 1px;
		background: #999;
	}

	.l-card .list
	{
		display: grid;
		gap: 1.5rem;
		padding: 0;
		grid-template-columns: 1fr;
	}

	.l-card .list .item
	{
		display: grid;
		border-radius: 2rem;
		corner-shape: squircle;
	}

	.l-card .list .item .under
	{
		grid-area: 1 / 1;
		width: 100%;
		border-radius: 2rem;
		corner-shape: squircle;
	}

	.l-card .list .item .over
	{
		display: grid;
		row-gap: 2.5rem;
		grid-area: 1 / 1;
		z-index: 2;
		padding: 2.5rem 2rem 2rem;
	}	

	.l-card .list .item .over .icon
	{
		display: grid;
		justify-content: center;
	}
	
	.l-card .list .item .over .icon img
	{
		border-radius: 0;
		height: 5rem;
		width: auto;
	}

	.l-card .list .item .over .content
	{
		display: grid;
		row-gap: 1.5rem;
	}

	.l-card .list .item .over .content .subtitle h4
	{
		font-size: 1.75rem;
	}

	/* About style extension */

	.l-card.about .list .item
	{
		background: #000;
		border: 1px solid #000;
	}

	.l-card.about .list .item .over .content .subtitle h4
	{
		color: #00ff00;
	}

	.l-card.about .list .item .over .content .copy p
	{
		color: #fff;
	}

	.l-card.about .list .item:nth-child(1) .under
	{
		background: url("../imgs/l-card-a-1.webp") no-repeat center top;
		opacity: .2;
	}

	.l-card.about .list .item:nth-child(2) .under
	{
		background: url("../imgs/l-card-a-2.webp") no-repeat center top;
		opacity: .2;
	}

	.l-card.about .list .item:nth-child(3) .under
	{
		background: url("../imgs/l-card-a-3.webp") no-repeat -10rem -15rem;
		opacity: .2;
	}

	.l-card.about .list .item:nth-child(4) .under
	{
		background: url("../imgs/l-card-a-4.webp") no-repeat center top;
		opacity: .2;
	}

	.l-card.about .list .item:nth-child(5) .under
	{
		background: url("../imgs/l-card-a-5.webp") no-repeat center top;
		opacity: .2;
	}

	.l-card.about .list .item:nth-child(6) .under
	{
		background: url("../imgs/l-card-a-6.webp") no-repeat center top;
		opacity: .2;
	}

	/* Payment style extension */

	.l-card.payment .list .item
	{
		background: #fff;
		background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(236, 230, 228, 1) 100%);
		border: 1px solid #999;
	}

	.l-card.payment .list .item .over .content .subtitle h4
	{
		color: #004e00;
	}

	.l-card.payment .list .item:nth-child(1) .under
	{
		background: url("../imgs/l-card-p-1.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(2) .under
	{
		background: url("../imgs/l-card-p-2.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(3) .under
	{
		background: url("../imgs/l-card-p-3.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(4) .under
	{
		background: url("../imgs/l-card-p-4.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(5) .under
	{
		background: url("../imgs/l-card-p-5.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(6) .under
	{
		background: url("../imgs/l-card-p-6.webp") no-repeat center top;
		opacity: .05;
	}

	.l-card.payment .list .item:nth-child(7) .under
	{
		background: url("../imgs/l-card-p-7.webp") no-repeat center top;
		opacity: .05;
	}

	/* Wider Layouts (Tablet and Desktop) */
	
	@media (min-width: 56rem)
	{
		
		.l-card .title h2::before
		{
			content: normal;
		}

		.l-card .list
		{
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		/* Keep each payment card's button group at the bottom. */

		.l-card.payment .list .item .over
		{
			display: flex;
			flex-direction: column;
		}

		.l-card.payment .list .item .over .content
		{
			display: flex;
			flex-direction: column;
			flex: 1;
		}

	}

	@media (min-width: 80rem)
	{
		
		.l-card .list
		{
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
		
		.l-card .list .item .over .icon
		{
			justify-content: start;
		}
		
	}

}