/* Video Settings */

h4 {
	margin-top: 4pt;
}

.category-text {
    /* Variables make it easy to tweak the height in one place */
    /* --logo-height: 38px; */
    --logo-ratio: 784 / 48;

    /* clamp(min, preferred, max) */
    /* This makes the logo shrink on screens smaller than ~600px */
    height: clamp(24px, 6vw, var(--logo-height));
    
    /* The calc trick using the variable */
    width: calc(clamp(24px, 6vw, var(--logo-height)) * (var(--logo-ratio)));

    display: block;
    margin: 0;
}

.category-header {
	display: flex;
	justify-content: flex-end;
	align-items: right;
	/* margin-top: 4px; */
	margin-bottom: 1.2rem;
	color: #FF302AFF;
	gap: 10px;
	overflow: hidden;
}

.portfolio-container {
	max-width: 900px;
	margin: 0 auto;
	/* margin-top: 1rem; */
	width: 100%;
	color: var(--text-colour);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-description {
    line-height: 1.6;
  	color: var(--text-colour);
    padding: 0 4rem; /* Inset the text slightly from the video width */
}

/* Adjust the H1 inside the description so it doesn't overlap the icon */
.project-description h1 {
    margin-top: -0.6rem;
    padding-right: 40px; /* Leave space for the icon */
    /* font-size: 1.5rem; */
    color: var(--text-colour);
}

.project-description h2, .project-description h3 {
    color: var(--text-colour);
    margin: 1.5rem 0 0.5rem 0;
}

.project-divider {
    border: 0;
    height: 8px;
    background: linear-gradient(to right, transparent, #333, transparent);
    margin-bottom: 4rem;
}

.project-details h1 {
	padding-right: 0;
}

.project-card {
    margin-bottom: 4rem;/*  Space between different projects */
}

.project-card .panel {
	height: auto;
	min-height: 100px;
	margin-top: 1rem;
	cursor: default;
	
	position: relative;
	height: auto;
}

.project-card .overlay {
	align-items: flex-start;
	text-align: left;
	padding: 2rem;
	height: auto;
}

.project-card .panel:hover {
	flex: 1;
	transform: none;
}


.project-card h2 a {
	text-decoration: none;
	color: var(--site-colour);
	transition: color 0.2s ease;
}

.project-card h2 a:hover {
	color: white;
}

.back-link {
	display: inline-block;
	margin-top: 2rem;
	color: grey;
	text-decoration: none;
	font-size: 0.9rem;
}

.back-link:hover {
	color: var(--site-colour);
}


/* Position the icon in the top right */
.project-link-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10; /* Keep it above the overlay */
    display: block;
    width: 50px;
    height: 50px;
    color: var(--link-icon-colour); /* Subtle by default */
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Hover effect to make it feel interactive */
.project-link-icon:hover {
    color: var(--site-colour); /* Your signature red */
    transform: scale(1.1);
}



/* Position the whole button group for the more info link. */
.project-link-button {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    
    /* Force horizontal layout */
    display: flex;
    flex-direction: row; 
    align-items: center; /* Vertical center alignment */
    justify-content: flex-end; /* Align the group to the right */
    gap: 0px; /* Space between text and icon */
    
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    /* font-family: 'Aviano', sans-serif;  */
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    
    transition: all 0.3s ease;
}

.read-more-icon {
    /* Ensure the icon has a fixed size so it doesn't squash */
    width: 50px;
    height: 50px;
    flex-shrink: 0; 
    fill: currentColor;
}

.read-more-text {
    /* Ensure text doesn't wrap */
    white-space: nowrap;
    /* width: 50px;
    line-height: 1.1; */
}

.project-link-button:hover {
    color: var(--site-colour);
    /* transform: translateX(-5px); */
    transform: scale(1.1);
}










