.panel-tiles { 
	padding-top: 60px; 
	padding-bottom: 60px; 

	h2 {
		text-align: center;
	}

	.title-wrapper {
		margin-bottom: 2rem;
	}

	.bff-card__details {
		p {
			font-size: 1rem;
		}
	}

	.items-wrapper {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem 1rem;
	}

	.item {
		text-align: center;
		flex: 1 0 auto;
		max-width: 100%;
		padding: 0;

		img {
			aspect-ratio: 1.33;
			width: 100%;
			object-fit: cover;
		}

		.image-wrapper { 
			background-color: #eee;
		}
	}

	@media (min-width: 768px) {
		&.items-per-row-2 .items-wrapper {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		&.items-per-row-3 .items-wrapper {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}

		&.items-per-row-4 .items-wrapper {
			grid-template-columns: repeat(4, minmax(0, 1fr));
		}
	}

	.bff-card--split-content {
		padding: 1.5rem 1rem;
	}

	.bff-card__media {
		img {
			border-radius: 1rem;
		}
	}
}

/* Modifier to handle Title -> Image -> Description -> Button order */
.bff-card--split-content {
  /* Redefine a strict 4-row template grid layout */
  box-shadow: var(--bff-box-shadow);
  border: 0;

  --bff-card-grid-template: 
    "title-row" auto 
    "media-row" auto 
    "content-row" 1fr 
    "actions-row" auto / minmax(0, 1fr);
  
  /* Apply new grid areas to the components */
  .bff-card__title {
    grid-area: title-row;
  }
  
  .bff-card__media {
    grid-area: media-row;
    margin-top: calc(-1 * var(--bff-card-gap)); /* negative margin top to remove gap between media and title */
  }
  
  .bff-card__content {
    grid-area: content-row;
    
    /* Inherits styling from base content block seamlessly */
    color: var(--bff-card-content-color);
    font-size: var(--bff-card-content-font-size);
  }
  
  .bff-card__actions {
    grid-area: actions-row;
  }
}
