/* --- Project Pages Styles (UX/UI, Motion, 3D, Graphic) --- */
#ux-ui-main {
    justify-content: flex-start;
    padding-top: 0;
    align-items: flex-start;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.ux-ui-container {
    display: flex;
    width: 100%;
    margin-top: 6rem; /* Reduced from 8rem */
}

.ux-ui-text-column {
    position: fixed;
    left: 7%;
    width: 28%;
    top: 6rem; /* Position from top instead of using height calc */
    z-index: 50;
}

.project-info h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-info .collaborators {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.project-info .semester {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.project-info .description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.tools {
    margin-top: 2rem;
}

.tools .tools-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.tools p:not(.tools-label) {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #666;
}

.ux-ui-media-column {
    margin-left: 38%; /* Push it to the right */
    width: 54%;
    margin-right: 7%;
    /* Remove fixed positioning and internal scrolling */
}

.media-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 5rem;
    padding-top: 2rem; /* Add some top padding */
}

.media-content video,
.media-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.media-content .media-title-image {
    box-shadow: none; /* Remove the shadow */
    border-radius: 0; /* Remove the rounded corners */
    height: 2.5rem; /* Set a fixed height (e.g., 64px) for all title images */
    width: max-content;  /* Allow the width to adjust automatically to maintain aspect ratio */
    margin-bottom: -1rem; /* Reduce the gap to the image below */
}

.image-row {
    display: flex;
    gap: 1rem; /* Adjust the space between images */
}

/* Add this new rule */
.image-row img {
    flex: 1; /* Allows the images to grow and shrink to fill the space */
    min-width: 0; /* Prevents flexbox from overflowing with large images */
}

.media-item-background {
    padding: 2rem; /* Add some padding around the image */
    box-sizing: border-box;
}

.media-item-overlay-container {
    position: relative; /* Establishes a positioning context for the overlay */
}

.figma-link-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 26, 0.7); /* Semi-transparent dark background */
    border-radius: 1.5rem; /* Changed from 50% to create a rounded square */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.figma-link-overlay:hover {
    background-color: rgba(26, 26, 26, 0.9); /* Darken on hover */
    transform: translate(-50%, -50%) scale(1.1); /* Slightly enlarge on hover */
}

.figma-link-overlay img {
    width: 10rem; /* Set a fixed size for the Figma logo */
    height: 10rem; /* Ensure the image is a perfect square */
    box-shadow: none; /* Override default image shadow */
    border-radius: 0.75rem; /* Changed from 50% to give the image small rounded corners */
    object-fit: cover; /* Ensures the image fills the container without distortion */
}