body, html {
	font-family: 'Open Sans', sans-serif;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	background-color: #000000;
	font-weight: 400;
	width: 100% !important;
	height: 100% !important;	
}

h1 {
	font-family: 'Garamond', serif;
	text-transform: lowercase;
	text-align: center;
	font-size: 60px;
	font-weight: 700;
}

h2 {
	font-family: 'Garamond', serif;
	text-transform: lowercase;
	text-align: left;
	font-size: 40px;
	font-weight: 400;
}

h3 {
	font-family: 'Courier New', monospace;
	text-transform: lowercase;
	text-align: left;
	font-size: 23px;
	font-weight: 500;
}

p {
	text-align: left;
	text-transform: lowercase;
	font-size: 15px;
	line-height: 24px;
	font-weight: 500;
	color: rgb(0,0,0);
}

a {
	text-transform: lowercase;
}

.container{
	width: 90%;
}





















/* Navigation */
#menu {
	height: 15vh;
	display: flex;                  /* Use flexbox */
	align-items: center;           /* Vertically center the items */
  }

/* Dropdown Menu */
#menu .dropdown-menu {
	display: none;                 /* Hide the dropdown by default */
	position: absolute;
	background-color: rgb(0, 0, 0); /* Background color to match navbar */
	align-items: center;
	border-radius: 5px;
  }
  
  /* Show dropdown on hover */
  #menu .dropdown:hover .dropdown-menu {
	display: block;                /* Show the dropdown when hovering */
  }
  
  /* Dropdown Menu Links */
  #menu .dropdown-menu li a {
	color: #ffedcc;                /* Dropdown link color */
	font-size: 18px;
	padding: 10px 0 0 10px;            /* Padding for spacing */
	display: block;                /* Make it full-width clickable */
	text-decoration: none;         /* Remove underline */
  }
  
  #menu .dropdown-menu li a:hover {
	background-color: #731010;     /* Highlight on hover */
	color: #ffedcc;                   /* Change text color on hover */
  }
  
  #menu.navbar-default { 
	background: rgb(0, 0, 0);
	border-color: rgb(0, 0, 0);
  }
  
  #menu a.navbar-brand {
	font-family: 'Garamond', serif;
	font-size: 35px;
	font-weight: 700;
	color: #ffedcc;
	display: flex;               
	padding-left: 10vh;
  }
  
  #menu.navbar-default .navbar-nav {
	display: flex;                 /* Use flexbox for navbar items */
	height: 100%;                 /* Ensure nav takes full height of navbar */
  }
  
  #menu.navbar-default .navbar-nav > li {
	display: flex;                /* Use flexbox for list items */
	height: 100%;                 /* Ensure li takes full height of the navbar */
  }
  
  #menu.navbar-default .navbar-nav > li > a {
	font-family: 'Garamond', serif;
	text-transform: lowercase;
	color: #ffedcc;
	font-size: 30px;
	font-weight: 700;
	padding: 15px 45px;              /* Adjusted padding for better spacing */
	margin-right: 0;                    /* Remove margins */
	display: flex;                /* Ensure flexbox for links */
  }
  
  #menu.navbar-default .navbar-nav > li > a:hover {
	color: #731010;
  }


  
  #menu.navbar-default .navbar-nav > li .active{
	color: #731010;
  }
  
/* Social Icons Section */
#social-icons {
    display: flex;                /* Align icons horizontally */
    align-items: center;          /* Center icons vertically */
    margin-left: auto;            /* Push icons to the far right */
    gap: 15px;                    /* Add space between icons */
	margin-left: 45px;
    justify-content: flex-end; /* Push to the far right */
}

/* General link styling */
#social-icons a.cv-link {
	color: #ffedcc; /* Initial color for the CV link */
	text-decoration: none; /* Remove underline */
	font-size: 1.5em; /* Optional: Match icon size */
	padding-bottom: 4px;
	
  }
  
  /* Change color on hover */
  #social-icons a.cv-link:hover {
	color: #731010; /* Red color on hover */
  }
  



nav #social-icons a {
    color: #ffedcc;               /* Icon color */
    font-size: 25px !important;           /* Adjust icon size */
    text-decoration: none;        /* Remove underline */
    transition: color 0.3s ease;  /* Smooth hover effect */
}



nav #social-icons a:hover {
    color: #731010;               /* Change color on hover */
}


  

  @media (max-width: 1250px) {
	#menu a.navbar-brand {
		font-size: 30px;
		font-weight: 700;
	  }
	#menu.navbar-default .navbar-nav > li > a {
		font-size: 25px;
		font-weight: 700;
		padding: 15px 20px;              /* Adjusted padding for better spacing */
	  }

	nav #social-icons a {
		font-size: 20px !important;           /* Adjust icon size */
	}
	#social-icons {
		margin-left: 20px;
	}
  }


  @media (max-width: 950px) {
	#menu a.navbar-brand {
		font-size: 25px;
		font-weight: 700;
	  }
	#menu.navbar-default .navbar-nav > li > a {
		font-size: 20px;
		font-weight: 700;
		padding: 15px 15px;              /* Adjusted padding for better spacing */
	  }
	  nav #social-icons a {
		font-size: 15px !important;           /* Adjust icon size */
	}
	#social-icons {
		margin-left: 15px;
	}


  }

  
  @media (max-width: 750px) {
	#menu .dropdown:hover .dropdown-menu {
		display: none;                /* Show the dropdown when hovering */
	  }


	}


  @media (max-width: 450px) {
	  #menu.navbar-default .navbar-nav > li > a {
		font-size: 20px;
		font-weight: 700;
		padding: 15px 12px;              /* Adjusted padding for better spacing */
	  }
	  nav #social-icons a {
		font-size: 12px !important;           /* Adjust icon size */
	}

	#social-icons {
		margin-left: 12px;
	}

	
  }


/* ------------------ Footer ------------------ */
#footer {
	height: 25vh;
	display: flex;               
    justify-content: center;
    align-items: center;       
}

#footer h1{
	font-family: 'Garamond', serif;
	font-size: 30px;
	font-weight: 700;
	color: rgb(255, 248, 235);
	text-transform: lowercase;
}

#footer p{
	color: rgb(255, 248, 235);
	font-size: 15px;
}

#footer a{
	color: rgb(255, 248, 235);
	font-size: 20px;
	margin-left: 10px;
}

#footer a:hover{
	color: #731010; 
}

#footer .right{
	padding-top: 0.5vh;
}

#footer a.cv-link {
	color: #ffedcc; /* Initial color for the CV link */
	text-decoration: none; /* Remove underline */
	font-size: 1.5em; /* Optional: Match icon size */
	padding-bottom: 4px;
	
  }
  
  /* Change color on hover */
  #footer a.cv-link:hover {
	color: #731010; /* Red color on hover */
  }
  



@media (max-width: 768px) {
	
	#footer p{
		font-size: 12px;
	}

	#footer a{
		font-size: 10px;
	}
}




  

















/* Header Section */
#header {
	height: 80vh;
	display: flex;
	justify-content: space-between; /* Align items horizontally */
	align-items: center;           /* Center items vertically */
	overflow: hidden;
  }
  
  /* Left image container */
  #header .img_intro {
	background: url(../img/tommy_forside.jpg) no-repeat;
	height: 100%;                  /* Full height of the header */
	width: 70%;                    /* 70% of the width */
	background-size: cover;        /* Cover the area */
	background-position: center;
  }
  
  /* Right image styling */
  #header .img_right {
	display: flex;                 /* Use flexbox for centering */
	align-items: center;           /* Vertically center the image */
	justify-content: center;       /* Horizontally center if needed */
	width: 30%;                    /* Remaining 30% of the width */
  }
  
  #header .img_right img {
	max-height: 70%;               /* Control the size of the right image */
	max-width: 50%;               /* Ensure it doesn't exceed its container */
	border-radius: 8px;            /* Optional rounded corners */
  }
  



@media (max-width: 768px) { /* Adjust the width as needed */
	  
	#header {
    flex-direction: column; /* stack vertically instead of side-by-side */
    height: auto;           /* let it grow naturally */
	height: 100vh;
  	}

	#header  .img_intro {
		height: 100%;                    /* Take the full height of the header */
		width: 100%; /* both take full width */
	  }
  
	#header .img_right {
		width: 50%; /* both take full width */
	}

	#header .img_right img {
		max-width: 80%;
		max-height: auto;
	}
}

  @media (max-width: 450px) { /* Adjust the width as needed */
	.img {
	  height: 20vh;                 /* Adjust height for smaller images */
	  width: 30%;                   /* Adjust width for smaller images */
	  margin: 0 5px;               /* Add margin for spacing */
	}

	#header  .img_intro {
		background: url(../img/tommy_forside.jpg) no-repeat;
		height: 100%;                    /* Take the full height of the header */
		width: 100%;                      /* 70% of the width */
		background-size: cover;           /* Cover the area */
		background-position: center;
	  }
  }

/* ------------------ Empty ------------------ */
#empty {
	height: 20vh;
  }


.w3-left:hover, .w3-right:hover {
	color: #731010;                  
  }














/* ------------------ About ------------------ */
#about{
	/*background: url(../img/Aion/Aion.jpg) no-repeat center center;*/
	background: url(../img/about_left.jpg) no-repeat right center;
	background-size: cover;        /* Ensure background image covers the section */
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	
}

#about .overlay{
	background: rgba(0, 0, 0, 0.518); /* Black see-through */
}

#about .section {
	width: 95%;                     /* Set a width for the section */
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
	        
}

#about .text{
	display: flex;
	justify-content: space-between; /* Space elements out */
	align-items: flex-start;        /* Align items at the top */
}

#about h1{
	/*text-align: left;*/
	padding: 5% 0 5% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; /* top, right, bottom, left */
	/*color: #ffedcc;*/
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
		
}


#about .right{
	width: 60%;
	background-color: #000000;
	padding: 1% 2% 1% 2%;
}


#about  p {
	font-family: Verdana, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #ffedcc;
	padding: 0 0 10px;
}

#about a{
	color: #731010;
}


@media screen and (max-width: 769px) {
	#about .right{
		width: 100%;
		background-color: #0000009e;
		padding: 1% 2% 1% 2%;
	}
	
	#about .section {
		width: 100%;                     /* Set a width for the section */
		padding: 0px;
		background-color: transparent;
		margin-top: -2px;
	}	  
	#about h1 {
		font-size: 30px;
	  }

	#about p {
		font-size: 12px;
	}

  }













/* ------------------ My Work ------------------ */
#mywork{
	background-color: #000000;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	/* padding-bottom: 3%; */
}


#mywork .section {
	width: 80%;                    
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
	margin-bottom: 50px;
}


#mywork h1{
	/*text-align: left;*/
	padding: 5% 0 3% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; /* top, right, bottom, left */
	/*color: #ffedcc;*/
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
		
}

#mywork .sculp {
	height: 700px; /* Adjust as needed */
	width: 100%;
	scale: 0.4;
	background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(2, 1fr);    /* 2 rows */
    gap: 2em; /* space between items */
}

.grid-container4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns */
    grid-template-rows: repeat(2, 1fr);    /* 2 rows */
    gap: 4em; /* space between items */
}

.grid-container-film {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns */
    grid-template-rows: repeat(1, 1fr);    /* 2 rows */
    gap: 4em; /* space between items */
	/* width: 80%; */
}

#mywork .grid-item .image {
    width: 100%;
    /* height: 200px; Adjust as needed */
	scale: 1;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
	border-radius: 8px;
}

#fotos .grid-item .image {
    width: 100%;
    /* height: 200px; Adjust as needed */
	scale: 1;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
	border-radius: 8px;
}


#drawings .grid-item .image {
    width: 100%;
    /* height: 200px; Adjust as needed */
	scale: 1;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
	border-radius: 8px;
	
}



#mywork .grid-item .image_sculp {
    margin-top: 30px;
}

#mywork .space{
    margin-top: 10px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Image styling */
.grid-item .image {
    width: 100%;
    height: 300px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}

/* Text overlay styling */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    color: #ffedcc;
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth transition */
    padding: 1em;
    text-align: center;
}

.text-overlay h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.text-overlay p {
    font-size: 0.9em;
	color: #ffedcc;
}

/* Hover effect */
.grid-item:hover .image {
    filter: blur(4px); /* Blurs the image on hover */
}

.grid-item:hover .text-overlay {
    opacity: 1; /* Show text overlay on hover */
}


.grid-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(1, 1fr);    /* 2 rows */
    gap: 2em; /* space between items */
}

.grid-item2 h3 {
    text-align: center;
    color: #ffedcc;
    font-size: 2em;
    font-family: 'Garamond', serif;
    margin-bottom: 0.5em;
}

.grid-item2 h4 {
    text-align: center;
    color: #ffedcc;
    font-size: 1.5em;
    font-family: 'Garamond', serif;
    margin-bottom: 0.5em;
}



.mySlides {
	border-radius: 8px;
	width:100%;
	display: block;
    margin: auto; /* Centers horizontally */
    position: absolute; /* Allows for vertical centering */
    top: 50%; /* Moves the top edge of the image to the middle */
    left: 50%; /* Moves the left edge of the image to the middle */
    transform: translate(-50%, -50%); /* Offsets the image's center to the middle */
    max-height: 100%; /* Ensures the image doesn't overflow vertically */
    max-width: 100%; /* Ensures the image doesn't overflow horizontally */
}



#captionText {
	text-align: center;
    color: #ffedcc;
    font-size: 1.5em;
    font-family: 'Garamond', serif;
    margin-bottom: 0.5em;
}












/* ------------------ Fotos ------------------ */
#fotos{
	background-color: #000000;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 5%;
}


#fotos .section {
	width: 80%;                    
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
}


#fotos h1{
	/*text-align: left;*/
	padding: 5% 0 3.5% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; /* top, right, bottom, left */
	/*color: #ffedcc;*/
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
	
	
}

#fotos .space{
    margin-top: 40px;
}



#drawings .space{
    margin-top: 30px;
}


















/* ------------------ Drawings ------------------ */
#drawings{
	background-color: #000000;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 5%;
}


#drawings .section {
	width: 80%;                     /* Set a width for the section */
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
	        
}

#drawings h1{
	padding: 5% 0 3.5% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; 
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
		
}




/* ------------------ Sculptures ------------------ */
#sculptures{
	background-color: #000000;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 5%;
}


#sculptures .section {
	width: 90%;                     /* Set a width for the section */
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
	        
}

#sculptures h1{
	padding: 5% 0 3.5% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; 
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
		
}

#sculptures .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 columns */
    grid-template-rows: repeat(1, 1fr);    /* 2 rows */
    gap: 2em; /* space between items */
}

#sculptures .grid-container2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(1, 1fr);    /* 2 rows */
    gap: 2em; /* space between items */
}

#sculptures .sculp {
    height: 700px; /* Adjust as needed */
	width: 100%;
	scale: 0.4;
	margin-top: -200px;
	margin-bottom: -150px;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}

#sculptures .sculp_wide {
	scale: 0.8;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}




/* ------------------ films ------------------ */
#films{
	background-color: #000000;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 5%;
}


#films .section {
	width: 80%;                     /* Set a width for the section */
	padding: 0px;
	background-color: transparent;
	margin-top: -2px;
	        
}


#films h1{
	padding: 5% 0 3.5% 0; /* top, right, bottom, left */
	margin: 0 0 0 0; 
	color:#ffedcc;
	font-family: 'Garamond', serif;
	font-size: 50px;
	font-weight: 700;
		
}


#films .grid-container4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 columns */
    grid-template-rows: repeat(8, 1fr);    /* 2 rows */
    gap: 5em; /* space between items */
}

#films .grid-container25 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 columns */
    grid-template-rows: repeat(3, 1fr);    /* 2 rows */
    gap: 5em; /* space between items */
}



#films .grid-item .image {
    width: 100%;
    height: 200px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
}



#films .grid-item .image-film {
    width: 100%;
	height: 300px;
    /* height: 200px; Adjust as needed */
	scale: 1;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease; /* Smooth transition for blur */
	border-radius: 8px;
}

#film-selection {
	display: none; /* Hidden by default */
  }
  
  .hidden {
	display: none !important; /* Force hidden state */
  }
  
  .visible {
	display: block !important; /* Force visible state */
  }




#films .grid-item-first {
    margin-left: auto;
    margin-right: auto; /* Centers horizontally */
    text-align: center; /* Centers text or inline content inside */
    display: block; /* Ensures block behavior for centering */
	justify-content: center;
    align-items: center;
}

#films .text {
	margin-top: 20%;
}

#films .info {
	margin-top: -2%;
	margin-bottom: 5%;
}

#films button{
	background-color: black;
	border-radius: 5%;
	width: 100%;
	height: 200px;
	border: none;
	text-decoration: none;
	transition-duration: 0.5s;
}

#films button:hover{
    background-color: #731010;
	transition-duration: 0.5s;
}


#films button.scaled {
	transform: scale(1.3);
	font-size: 0.5em;
	padding: 0;
	text-align: start;
	background-color: #731010;
	transition-duration: 1s;
  }

  #films button.scaled p {
	margin-bottom: -1%;
  }

  #films button.scaled h3 {
	margin-top: -10%;
	font-size: 20px;
  }


#films .extra-info {
  display: none;
  margin-top: 5%;
  text-align: center;
  font-size: 0.9em;
  color: #ffedcc;
  transition: all 0.5s ease;
  opacity: 0;
}

#films button.scaled .extra-info {
  display: block;
  opacity: 1;
}


#films p {
    font-size: 0.9em;
    color: #ffedcc;
    text-align: center; /* Centers text horizontally */
	
}

#films .grid-item:hover .image {
    filter: blur(0px); /* Blurs the image on hover */
}






@media screen and (max-width: 769px) {
	.grid-item .image {
		width: 100%;
		height: 200px;
		scale: 0.8;
		background-size: cover;
		background-position: center;
		transition: filter 0.3s ease; /* Smooth transition for blur */
		border-radius: 8px;
	}
	#mywork h1 {
		font-size: 30px;
	  }
	
	#fotos h1{
		font-size: 30px;
	}

	#drawings h1{
		font-size: 30px;
	}

	#sculptures h1{
		font-size: 30px;
	}

	#films h1{
		font-size: 30px;
	}

	.grid-item2 h3 {
		font-size: 20px;
	}

	#films .grid-container4 {
		display: grid;
		grid-template-columns: repeat(4, 1fr); /* 3 columns */
		grid-template-rows: repeat(8, 1fr);    /* 2 rows */
		gap: 1em; /* space between items */
	}
	
	
	#films .grid-item .image {
		width: 100%;
		height: 150px; /* Adjust as needed */
		background-size: cover;
		background-position: center;
		transition: filter 0.3s ease; /* Smooth transition for blur */
	}

  }


  @media screen and (max-width: 450px) {

	#mywork h1 {
		font-size: 20px;
	  }
	
	#fotos h1{
		font-size: 20px;
	}

	#drawings h1{
		font-size: 20px;
	}

	#sculptures h1{
		font-size: 20px;
	}

	#films h1{
		font-size: 20px;
	}

	.grid-item2 h3 {
		font-size: 12px;
	}
	.grid-item2 h4 {
		font-size: 10px;
	}

	#films p {
		font-size: 9px;
		
		
	}
	
	.grid-container {
		display: grid;
		grid-template-columns: repeat(3, 1fr); /* 3 columns */
		grid-template-rows: repeat(1, 1fr);    /* 2 rows */
		gap: 1em; /* space between items */
	}
	
	.grid-container4 {
		gap: 1em; /* space between items */
	}
	
	.grid-item .image {
		width: 100%;
		height: 100px; /* Adjust as needed */
	}

	#sculptures .sculp {
		height: 500px; /* Adjust as needed */
		width: 100%;
		scale: 0.2;
		margin-top: -200px;
		margin-bottom: -150px;
		background-size: cover;
		background-position: center;
		transition: filter 0.3s ease; /* Smooth transition for blur */
	}
	
	#sculptures .sculp_wide {
		scale: 0.8;
		background-size: cover;
		background-position: center;
		transition: filter 0.3s ease; /* Smooth transition for blur */
	}

	#films .grid-container4 {
		display: grid;
		grid-template-columns: repeat(4, 1fr); /* 3 columns */
		grid-template-rows: repeat(8, 1fr);    /* 2 rows */
		gap: 0.5em; /* space between items */
	}
	
	
	#films .grid-item .image {
		width: 100%;
		height: 100px; /* Adjust as needed */
		background-size: cover;
		background-position: center;
		transition: filter 0.3s ease; /* Smooth transition for blur */
	}

	
  }

  
