@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

body {
	font-family: "Titillium Web", sans-serif;
	font-weight: 300;
	font-style: normal;
	line-height: 1.5;
    color: #2c3e50;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size: 1rem;
	background-color: #e9f1f4;
}

strong, b {
    color: #2c3e50;
    font-weight: 600;
}

h1, h2, h3, h4 {
	font-family: "Bricolage Grotesque", sans-serif;
	font-optical-sizing: auto;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1em;
	line-height: 1;
}

h6 {
	font-weight: 50;
    color: #bdae59;
    margin-bottom: 2em;
    font-size: 1.5rem;
}
h3 {
    font-size: 1.5rem;
}
header h4 {
	font-size: 1.5rem;
	font-weight: 50;
	line-height: 1em;
	margin-top: -1em;
	margin-bottom: 3em;
}
h4 {
	font-size: 1.5rem;
	font-weight: 50;
    margin-bottom: -.5em;
}

a.project-link {
    text-decoration: none;
}
section.project {
    background-color: white;
    padding: 1em;
    margin-bottom: 2em;
    padding-left: 18rem;
    border-radius: 8px;
    background-position: center left;
    background-repeat: no-repeat;
    background-image: url('http://www.didrel.me/portfolio/images/ensemble_th.png');
}
/* portfolio projects */

#ensemble {
    background-image: url('http://www.didrel.me/portfolio/images/ensemble_th.png');
}

#cocreation {
    background-image: url('http://www.didrel.me/portfolio/images/map_th.png');
}

#journey {
    background-image: url('http://www.didrel.me/portfolio/images/journey_th.png');
}

#sketch {
    background-image: url('http://www.didrel.me/portfolio/images/sketch_th.png');
}

@media (max-width: 630px) {
  /* Styles for screens 768px or smaller */
  section.project {
    background-color: white;
    padding: 1em;
    margin-bottom: 2em;
    padding-left: 1rem;
    border-radius: 8px;
    background-image: none;
    }
    #ensemble, #cocreation, #journey, #sketch {
        background-image: none; 
    }
}

section.project h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
section.project h6 {
    font-size: 1rem;
    margin: 0;
}

aside {
	background-color: hsla(49, 44%, 55%, 0.2);
	font-style: italic;
	padding: 0.8em;
	margin: 2em -0.8em;
	border-radius: 0.5em;
}

aside p {
	display: inline;
}

aside h3 {
    font-size: 1rem;
	display: inline;
}

img {
    max-width: 100%;
    height: auto;
    margin: 0;
	border: 1px solid #e1e1e1;
}

figure {
    margin: 1em 0 2em;
}

figcaption {
    font-style: italic;
	font-weight: 400;
    margin-top: 0.5em;
}

figcaption span {
    font-weight: 200;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media screen and (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}
/* Navigation Styles */

.home-link {
	display: inline-block;
	padding: 0.2em;
	color: #2c3e50;
	text-decoration: none;
	border-radius: 6px;
}

.home-link:hover,
.home-link:focus {
	background-color: #d9e1e4;
}

.tent-icon {
	font-size: 3rem;
	color: #2c3e50;
}

.tent-icon span {
	font-size: 1.5rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Business card */
#business-card {
	position: fixed;
	top: 1em;
	left: 2em;
	color: #5d7590;
}
#business-card p {
	color: #5d7590;	
}
#business-card a {
	text-decoration: none;
	color: #5d7590;
}
@media screen and (max-width: 1168px) {
	#business-card {
	position: relative;
	top: 0em;
	left: 0em;
	}
}

/* 1. Gallery Container */

.image-gallery-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 2. Individual Gallery Item */
.gallery-item {
    flex: 1 1 50%; /* Allows each figure to grow/shrink and take up half the space */
    margin: 0;     /* Remove default margin from figure */
    padding: 0;
    text-align: center;
}

/* 3. Image Styling */
.gallery-item img {
    display: block; /* Removes any extra space below the image */
    width: 100%;
    height: auto;
    border: 1px solid #e1e1e1;
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}
