
/* Hide cursor and name-title section on project pages */
.cursor-container {
	display: none !important;
}

.name-title {
	display: none !important;
}

/* Left-align h2 elements on project pages */
h2 {
	text-align: left !important;
}

/* Adjust font sizes for project pages */
h1 {
	font-size: 60px !important;
	line-height: 1em !important;
}

h2 {
	font-size: 24px !important;
}

/* Project page header adjustments */
header {
	gap: 40px !important;
	padding: 40px 100px 40px !important;
}

/* Style the back home button */
.pill-link {
	background-color: transparent !important;
	border: none !important;
	font-family: 'EB Garamond', serif !important;
	font-size: 22px !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.pill-link::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	background-image: url('../img/icons/arrow-right.svg');
	background-size: contain;
	background-repeat: no-repeat;
	transform: rotate(180deg);
	margin-right: 8px;
	vertical-align: middle;
}

/* Align bottom link to bottom of column in last section */
section:last-of-type .section-col1 {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.top {
	padding: 4px;
	background-color: #2e2a2a;
	border-radius: 4px;
	display: flex;
	align-items: center;
	box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 40px;
    right: 40px;
}

.top:hover {
    background: #404040;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}

.project-img {
    width: 100%;
    height: 100%;
    margin: 24px 0;
    border-radius: 8px;

}

section p {
    max-width: 900px;
    margin: 0 40px;
    padding: 8px 0;
    font-size: 18px;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 8px;
}

.image-container img {
    flex: 1;
    max-width: calc(33.333% - 16px);
    box-sizing: border-box;
    object-fit: cover;
}

.info-container {
    display: grid;
    row-gap: 10px;
    max-width: 600px;
}

.info-row {
    display: flex;
    align-items: start;
}

label {
    flex-shrink: 0;
    width: 90px;
    margin-right: 20px;
    font-weight: bold;
    text-align: left;
}

.project-info {
    margin: 24px 0 80px ;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    background: #2e2a2a;
}

.contents a {
    display: block;
    padding-bottom: 16px;
}

.case-study-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 24px;
}

.case-study {
    height: 500px;
    position: relative;
    background: #2e2a2a;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    transition: background 0.3s ease-in-out;
}

.case-study div {
    position: relative; 
}

.logo {
    height: 32px;
    z-index: 2; 
}

.screen {
    position: absolute;
    width: 550px;
    bottom: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
}

.case-study:hover {
    background: #404040;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
}


/* Responsive styles for project pages */
@media (max-width: 1200px) {
	h1 {
		font-size: 50px !important;
	}
	
	h2 {
		font-size: 22px !important;
	}
	
	header {
		padding: 40px 60px 40px !important;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 40px !important;
		line-height: 1.1em !important;
	}
	
	h2 {
		font-size: 20px !important;
	}
	
	header {
		padding: 32px 40px 32px !important;
		gap: 24px !important;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 32px !important;
		line-height: 1.2em !important;
	}
	
	h2 {
		font-size: 18px !important;
	}
	
	header {
		padding: 24px 20px 24px !important;
		gap: 16px !important;
	}
}

@media only screen and (max-width: 960px) {
    .project-info {
        display: flow;
    }

    .info-container, .contents {
        margin-bottom: 24px;
    }

    .case-study-container {
        display: flow;
    }

    .case-study {
        margin-bottom: 24px;
        height: 400px;
    }

    .screen {
        margin: 0 auto;
        position: relative;
        border-right: 1px solid #a3a3a3;
        border-top-right-radius: 8px;
    }
}
