@view-transition {
	navigation: auto;
}

/* Preserve the page slide when entering from outside the team pages. */
.back-transition:not(.team-transition)::view-transition-old(root) {
	animation: none;
}

.back-transition:not(.team-transition)::view-transition-new(root) {
	animation-name: slide-from-down;
}

/* ============================================================
   Header — fix scroll-based fade animation at top of page
   ============================================================ */

.profiiliHeader .introductionContainer {
	animation: none;
	opacity: 1;
}

/* Reduce top padding on all section containers across the profile page */

/* ============================================================
   Profile card section
   ============================================================ */

.profiiliCardSection {
	background-color: transparent;

	padding-bottom: 10%;
	padding-top: 5%;
	justify-content: center;
}

.profiiliCardWrapper {
	position: relative;
}

/* Card is the flow content that sizes the wrapper */
.profiiliCard {
	position: relative;
	z-index: 1;
	margin: 0;
}

/* ============================================================
   Specialty list
   ============================================================ */

.profiiliSpecialties {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	margin-top: 0.5rem;
	padding-left: 1rem;
	border-left: 2px solid rgba(100, 70, 40, 0.3);
}

.specialtyTag {
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: rgb(100, 70, 40);
	font-weight: normal;
	background: none;
	padding: 0;
}

/* ============================================================
   Work gallery
   ============================================================ */

.profiiliGallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.profiiliGallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 5px;
	box-shadow: 0 0 4px rgba(100, 70, 40, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profiiliGallery img:hover {
	transform: scale(1.02);
	box-shadow: 0 0 8px rgba(100, 70, 40, 0.5);
}

.profiiliGalleryPlaceholder {
	grid-column: 1 / -1;
	text-align: center;
	color: rgb(150, 110, 70);
	font-style: italic;
	padding: 1.5rem 0;
	margin: 0;
}

/* ============================================================
   Booking CTA
   ============================================================ */

.profiiliCTA {
	display: flex;
	width: 100%;
	justify-content: center;
	padding-block: 5%;
	background-color: rgb(255, 249, 240);
}

.profiiliCTAButton {
	display: flex;
	text-align: center;
	justify-content: center;
	padding-block: 5px;
	padding-inline: 1.5rem;
	background-color: linen;
	box-shadow: 0px 0px 2px rgb(100, 70, 40);
	color: rgb(100, 70, 40);
	opacity: 0.9;
	border-radius: 10px;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.5rem, 2vw, 2rem);
	text-decoration: none;
	font-weight: normal;
	transition: opacity 0.2s, box-shadow 0.2s;
}

.profiiliCTAButton:hover {
	opacity: 1;
	box-shadow: 0px 0px 4px rgb(100, 70, 40);
	cursor: pointer;
}

/* ============================================================
   Responsive — mobile
   ============================================================ */

@media only screen and (max-width: 600px) {
	.profiiliGallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Work photos use the existing three-column / two-column gallery styling. */
.profiiliGallery a { min-width: 0; }
.profiiliGallery img { display: block; }
