@layer theme {

	.collectionGrowth {
		position: relative;
		overflow: hidden;
		padding-top: calc(var(--gutter) * 2);
		padding-bottom: calc(var(--gutter) * 2);

		.container {
			position: relative;
			z-index: 1;
			grid-column: content-start / content-end;
			border-radius: var(--large-border-radius);

			padding: calc(var(--section) / 2);
			overflow: hidden;
            @media (max-width: 56em) {
                border-radius: var(--border-radius);
                padding: 0;
            }
            @media (--max-fablet) {
                border-radius: var(--border-radius);
                padding: 0;
            }
			.inner {
				z-index: 99;
				gap: var(--padding);
            	@media (max-width: 56em) {
					text-align: center;
					padding: var(--padding) calc(var(--padding) / 2);
				}
            	@media (--max-fablet) {
					text-align: center;
					padding: var(--padding) calc(var(--padding) / 2);
				}
				.intro .content {
					font-size: var(--s-fontsize);
					line-height: var(--s-lineheight);
				}
			}
		}

		/* Blurred background image */
		.background {
			.growth-bg {
				position: absolute;
				inset: 0;
				background-size: cover;
				background-position: center top;
				z-index: 0;
			}
			&::after {
				content: '';
				position: absolute;
				background: rgba(var(--color-dark-transparency), 0.25);
				-webkit-backdrop-filter: blur(30px);
				        backdrop-filter: blur(30px);
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
			}
		}

		/* Person selector row */
		.person-selector {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: calc(var(--gutter) / 1.5);
			.person-thumb {
				display: flex;
				flex-direction: column;
				align-items: center;
				gap: calc(var(--gutter) / 3);
				background: none;
				border: none;
				cursor: pointer;
				padding: 0;
				color: var(--color-light);
				opacity: 0.5;
				transition: var(--transition);
	
				&:hover {
					@media (hover: hover) {
						opacity: 0.8;
					}
				}
	
				&.active {
					opacity: 1;
					
					.thumb-circle {
						width: 80px;
						height: 80px;
						border: 3px solid transparent;
						background:
							linear-gradient(transparent, transparent) padding-box,
							var(--gradient) border-box;
					}
				}
			}
		}


		.thumb-circle {
			width: 60px;
			height: 60px;
			border-radius: var(--circle-radius);
			border: 2px solid transparent;
			overflow: hidden;

			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}

		.thumb-name {
			font-size: var(--xs-fontsize);
			font-weight: 600;
			line-height: 1.2;
		}

		.thumb-category {
			font-size: var(--xs-fontsize);
			line-height: 1.2;
			opacity: 0.7;
		}

		/* Splide overrides */
		.grid {
			.splide {
				max-width: 100vw;
				overflow: visible;
                @media (max-width: 56em) {
					max-width: calc(100vw - var(--padding) - var(--padding));
				}
                @media (--max-fablet) {
					max-width: calc(100vw - var(--padding) - var(--padding));
				}
			}
			
			.splide__track {
				position: relative;
				overflow: visible;
				gap: 0;
                @media (max-width: 56em) {
					display: flex;
					flex-direction: column;
					gap: var(--gutter);
				}
                @media (--max-fablet) {
					display: flex;
					flex-direction: column;
					gap: var(--gutter);
				}
				.splide__list {
					align-items: center;
					.splide__slide {
						display: flex;
						justify-content: center;
						align-items: center;
						flex-direction: column;
						width: 175px;
						height: 550px;
						opacity: 0.55;
						transition: width 0.4s ease, opacity 0.4s ease;
						@media (max-width: 56em) {
							height: 256px;
						}
						@media (--max-fablet) {
							height: 256px;
						}
						article {
							height: auto;
						}
						
						&.is-active {
							width: 550px;
							opacity: 1;
							@media (max-width: 56em) {
								width: 256px;
							}
							@media (--max-fablet) {
								width: 256px;
							}
						}
		
						/* Circle item */
						.block {
							position: relative;
							background: transparent;
							border-radius: var(--circle-radius);
							overflow: hidden;
							cursor: pointer;
		
							.media {
								width: 100%;
								height: 100%;
		
								img {
									width: 100%;
									height: 100%;
									object-fit: cover;
								}
		
								&::before {
									content: '';
									background-color: var(--color-dark);
									opacity: 0.25;
									position: absolute;
									top: 0;
									left: 0;
									width: 100%;
									height: 100%;
								}
							}
		
							/* Overlay text inside active circle */
							.inner {
								position: absolute;
								inset: 0;
								display: flex;
								flex-direction: column;
								justify-content: flex-end;
								align-items: center;
								text-align: center;
								gap: var(--gutter);
								padding-bottom: calc(var(--padding) * 2);
								pointer-events: none;
								opacity: 0;
								transition: opacity 0.3s ease;
								.header {
									gap: calc(var(--gutter) / 2);
									/* Day label */
									.title {
										font-size: var(--l-fontsize);
										line-height: 1;
									}
			
									.subTitle {
										font-size: var(--s-fontsize);
									}
								}		
		
								.button.primary {
									position: relative;
									z-index: 1;
								}
							}
						}
		
						&.is-active .block .inner {
							opacity: 1;
							pointer-events: initial;
						}
		
						/* Expanded card — animates in over the circle */
						.information {
							background-color: var(--color3);
							border-radius: var(--large-border-radius);
							padding: calc(var(--padding) * 2);
							color: var(--color-light);
							display: flex;
							flex-direction: column;
							gap: var(--gutter);
							position: absolute;
							z-index: 99;

							@media (max-width: 56em) {
								border-radius: var(--border-radius);
							}

							@media (--max-fablet) {
								border-radius: var(--border-radius);
							}
		
							.title {
								font-size: var(--xl-fontsize);
								font-weight: 300;
								font-family: var(--title-font);
								display: block;
								text-align: center;
							}
		
							.subTitle {
								font-size: var(--fontsize);
								font-weight: 600;
								line-height: var(--lineheight);
								margin: 0;
							}
		
							.content {
								text-align: left;
		
								p {
									margin-top: calc(var(--gutter) / 2);
		
									&:first-child {
										margin-top: 0;
									}
								}
		
								ul {
									margin-top: calc(var(--gutter) / 2);
									padding-left: 0;
		
									li {
										padding-left: 1.25em;
										position: relative;
		
										&::marker {
											position: absolute;
											left: 0;
										}
									}
								}
							}
						}
					}
				}
				.splide__arrows {
					grid-area: none;
                    @media (min-width: 56em) {
						position: absolute;
						width: 100%;
						top: 50%;
						left: 0;
						display: flex;
						justify-content: space-between;
						transform: translateY(-50%);
					}
                    @media (--min-fablet) {
						position: absolute;
						width: 100%;
						top: 50%;
						left: 0;
						display: flex;
						justify-content: space-between;
						transform: translateY(-50%);
					}
        			.splide__arrow {
						color: var(--color-light);
						&.splide__arrow--prev,
						&.splide__arrow--next {
							border-color: var(--color-light);
						}
					}
				}
			}			

		}

		.buttons {
			display: flex;
			gap: var(--gutter);
			flex-wrap: wrap;
		}
	}
}
