

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
/*	outline: 1.5px dashed violet;*/
}
/* ^^ browser reset ^^ */


/* work page */
/* work page */
/* work page */


body {
	margin: 0;
		font-family: helvetica, roboto, "work sans", sans-serif;

}

header {
	position: fixed;
	background-color: #ffffff;
	border-bottom: 1px solid #241818;
	width: 100%;
	height: 100px;
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	grid-template-rows: 20px 50px 20px;
	min-width: 1100px;
	z-index: 1000;
}
header h1 {
	color: #241818;
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	align-content: end;
	font-weight: bolder;
	letter-spacing: -1px;
}
header nav {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	margin-right: 100px;
	justify-self: right;
	align-content: end;
	margin-bottom: 5px;
}
header nav ul {
	list-style-type: none;
	width: 550px;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-content: center;
	font-size: 20px;
	text-transform: uppercase;
	color: #D45755;
}
header nav ul li a {
  position: relative;
  color: #D45755;
  text-decoration: none;
}

header nav ul li a::before {
  content: "";
  position: absolute;
  top: -10px; /* The bar will appear at the top */
  left: 0;
  width: 100%;
  height: 12px; /* Thickness of the bar */
  background-color: #ED323B; /* Bar color */
  transform: scaleX(0); /* Initially hidden */
  transform-origin: left; /* The bar grows from the left */
  transition: transform 0.5s ease-in-out; /* Smooth transition */
}

header nav ul li a:hover::before {
  transform: scaleX(1); /* Bar appears on hover */
}
header h1 a {
  position: relative;
  color: #241818;
  text-decoration: none;
}

header h1 a::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 12px; 
  background-color: #ED323B; 
  transform: scaleX(0); 
  transform-origin: left; 
  transition: transform 0.5s ease-in-out; 
  z-index: -1000;
}

header h1 a:hover::before {
  transform: scaleX(1); 
}
header h1 a.active::before,
header nav ul li a.active::before {
  transform: scaleX(1); 
}

/* ^^ header ^^ */


main.work  img {
	width: 100px;
}
main.work {
 	margin-top: 140px;
 	margin-left: 20px;
 	margin-right: 20px;
 	min-width: 1100px;
 	display: grid;
 	grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr 100px 1fr 1fr 1fr 1fr 1fr 80px;
 	grid-template-rows: auto repeat(4, 100px auto auto auto auto) ;
 	max-width: 1500px;
 }

div.line {
	border-left: 1px solid #D45755;
}
div.first {
	grid-column: 11/11;
	grid-row: 1/2;
	height: auto;
}
div.e {
	grid-column: 2/2;
	grid-row: 3/5;
	height: auto;
	justify-self: end;
	margin-right: 20px;
}
div.h {
	grid-column: 2/2;
	grid-row: 8/10;
	height: auto;
	justify-self: end;
	margin-right: 20px;
}
div.o {
	grid-column: 2/2;
	grid-row: 13/15;
	height: auto;
	justify-self: end;
	margin-right: 20px;
}
div.d {
	grid-column: 2/2;
	grid-row: 18/20;
	height: auto;
	justify-self: end;
	margin-right: 20px;
}

main h3 {
	grid-column: 4 / 9;
	grid-row: 1 / 2;
	padding-right: 10px;
	text-transform: uppercase;
	font-size: 36px;
	font-weight: lighter;
	letter-spacing: 0px;
	max-width: 440px;
	min-width: 435px;
}
main h2 {
/*	align-content: end;*/
	font-size: 24px;
	font-weight: normal;
	color: #D45755;
	margin-left: -15px;
}
main p {
	margin-top: 5px;
	font-size: 14px;
	font-weight: normal;
	color: #241818;
	letter-spacing: 1px;
	line-height: 120%;
	max-width: 660px;
}

main a{
	text-transform: uppercase;
	font-weight: bold;
	font-size: 12px;
	box-sizing: border-box;
	border: 1px solid #D45755;
	border-radius: 5px;
	padding: 10px;
	height: fit-content;
	color: #D45755;
/*	transition: background-color 0.5s ease, color 0.5s ease;*/
}
main a:hover {
	background-color: #ED323B;
	color: #fff;
	transition: background-color 0.7s ease, color 0.7s ease;
	cursor: pointer;
}
main a:active {
	background-color: #28B0A6;
	border: 2px solid #28B0A6;
	transition: background-color 0.01s ease;
}
/* ellis */
main h2.ellis-title {
	grid-column: 3 / 9;
	grid-row: 3 / 4;
}
main p.ellis-p {
	grid-column: 3 / 10;
	grid-row: 4 / 5;
}
main a.ellis-link {
	grid-column: 11 / 13;
	grid-row: 4 / 5;
	width: 125px;
}
main div.ellis-container {
	grid-column: 1 / 14;
	grid-row: 5 / 7;
}

/* hurricane */
main h2.hurricane-title {
	grid-column: 3 / 9;
	grid-row: 8 / 9;
}
main p.hurricane-p {
	grid-column: 3 / 10;
	grid-row: 9 / 10;
}
main a.hurricane-link {
	grid-column: 11 / 13;
	grid-row: 9 / 10;
	width: 155px;
}
main div.hurricane-container {
	grid-column: 1 / 14;
	grid-row: 10 / 12;
}

/* oglivy */
main h2.oglivy-title {
	grid-column: 3 / 9;
	grid-row: 13 / 14;
}
main p.oglivy-p {
	grid-column: 3 / 10;
	grid-row: 14 / 15;
}
main a.oglivy-link {
	grid-column: 11 / 13;
	grid-row: 14 / 15;
	width: 125px;
}
main div.oglivy-container {
	grid-column: 1 / 14;
	grid-row: 16 / 17;
}

/* day to night */
main h2.daytonight-title {
	grid-column: 3 / 9;
	grid-row: 18 / 19;
}
main p.daytonight-p {
	grid-column: 3 / 10;
	grid-row: 19 / 20;
}
main h5 {
	text-transform: uppercase;
	grid-column: 4 / 11;
	grid-row: 20 / 22;
	z-index: 100;
	color: #fff;
	font-size: 36px;
	font-weight: lighter;
	margin: 200px 0;
}
main.work h5 span {
	display: block;
	font-size: 50px;
	font-weight: bold;
	background: linear-gradient(90deg, #fff, #fff, #241818, #241818, #241818); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    text-fill-color: transparent; 
    max-width: fit-content;
}
main.work h5 a {
	display: block;
	font-size: 12px;
	font-weight: bold;
	border: 1px solid #fff;
	border-radius: 5px;
	padding: 10px;
	width: fit-content;
	color: #fff;
}
main.work h5 a:hover {
	background-color: #fff;
	color: #241818;
	transition: background-color 0.7s ease, color 0.7s ease;
}
main.work h5 a:active {
	background-color: #28B0A6;
	border: 2px solid #28B0A6;
	transition: background-color 0.01s ease;
}
main img.workd2n {
	grid-column: 2 / 14;
	grid-row: 20 / 22;
	width: 100%;
	height: auto;
	padding-top: 30px;
	margin-right: 80vw;
}


/* animation */
/* Wrapper to contain the gallery */
main div.start {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
}

/* The gallery track */
main div.animation {
  display: flex;
  width: max-content;
  transition: transform calc(var(--num-images) * 1.5s) ease-out; /* Eases out when the mouse leaves */
  transform: translateX(0); /* Initial position */
}

/* Gallery images styling */
main div.animation img {
  height: 150px;
  width: auto;
  margin-right: 20px;
}

/* Hover effect to simulate scrolling */
main div.start:hover .animation {
  transition: transform calc(var(--num-images) * 2s) linear; /* Smooth scrolling during hover */
  transform: translateX(-100%); /* Move the gallery to the left */
}





/* Modal Background */
main div.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Dark background */
  justify-content: center;
  align-items: flex-start; /* Align items at the top to allow vertical scrolling */
  overflow-y: auto; /* Enable vertical scrolling */
}

/* Modal Content */
main div div.modal-content {
  max-width: 100%;
  display: flex;
  flex-direction: column; /* Vertically stack images */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

main div div.modal-content img {
  max-width: 90%; /* Image will take 90% of the screen width */
  min-width: 700px;
  max-height: fit-content;
  height: auto;
  margin-bottom: 20px; /* Space between images */
}

/* Close Button */
main div div span.close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}





/* ^^ main ^^ */

footer {
	position: relative;
 	bottom: 0;
	left: 0;
	display: grid;
	grid-template-columns: 80px 1fr 1fr 1fr 1fr 1fr 80px;
	grid-template-rows: 80px 1fr 1fr 80px;
	column-gap: 40px;
	background-color: #241818;
	color: #fff;
}
footer h1 { opacity: 70%; font-size: 20px;
	grid-column: 2/3;
	grid-row: 2/4;
	align-content: start;
	border-right: 1px solid #fff;
	height: 100%;
	min-width: 100px;
	max-width: 200px;
}
footer nav { opacity: 70%; font-size: 12px;
	grid-column: 3/4;
	grid-row: 2/4;
	border-right: 1px solid #fff;
	height: 100%;
	align-content: end;
	min-width: 150px;
}
footer nav ul {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    list-style-type: none;
   
	height: 100%;
	color: #D45755;
}
footer address { opacity: 70%;
	grid-column: 4/6;
	grid-row: 2/4;
	align-content: center;
	border-right: 1px solid #fff;
	font-style: normal;
	font-size: 10px;
	min-width: 400px;
}
footer address ul {
	list-style-type: none;
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr;
	column-gap: 5px;
	row-gap: 5px;
}
footer address ul li.a {
	grid-row: 1/2;
	grid-column: 1/2;
}
footer address ul li.c {
	grid-row: 2/3;
	grid-column: 1/2;
}
footer address ul li.b {
	grid-row: 1/2;
	grid-column: 2/3;
}
footer address ul li.d {
	grid-row: 2/3;
	grid-column: 2/3;
}
footer address ul li {
	padding-left: 10px;
	max-width: 150px;
}
footer address ul li a {
	display: inline-block;
	margin-left: -10px;
	font-style: italic;
	color: #28B0A6;
}
footer a:visited {
	color: #ED323B;
}
footer a:hover {
	color: #28B0A6;
	transition: background-color 0.7s ease, color 0.7s ease;
}
footer a:active {
	border: 2px solid #ED323B;
	transition: background-color 0.01s ease;
}
footer div{ opacity: 70%;
	grid-column: 6/7;
	grid-row: 2/4;
	align-content: center;
	min-width: 150px;
}
footer div.icons {
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr 1fr;
	justify-content: center;
	align-content: center;
}

footer div.icons img {
	height: 20px;

}
footer span {
	opacity: 70%;
	font-size: 12px;
}
footer span.navigation {
	grid-column: 3/4;
	grid-row: 1/2;
	margin-left: -20px;
	align-content: end;
	margin-bottom: 20px;
}
footer span.contact {
	grid-column: 4/5;
	grid-row: 1/2;
	margin-left: -20px;
	align-content: end;
	margin-bottom: 20px;
}
footer span.socials {
	grid-column: 6/7;
	grid-row: 1/2;
	margin-left: -20px;
	align-content: end;
	margin-bottom: 20px;
}

/* ^^ footer ^^ */ 

main small {
    grid-column: 14/14;
    grid-row: 1/12;
    padding-left: 5px;
    writing-mode: vertical-rl; 
    text-orientation: sideways; 
    color: #544C4C;
    opacity: 10%;
}

/* colors

#ED323B RED
#D45755 Dull RED
#28B0A6 Tourquoise
#241818 Black
#544C4C Grey








 /* page loader*/

#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #eee; /* Background color for the loader */
  z-index: 9999; /* Ensure it's on top of everything else */
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader::before {
  content: "";
  border: 2px solid #544C4C;
  border-radius: 50%;
  border-top: 3px solid #28B0A6;
  border-bottom: 3px solid #28B0A6;
  width: 150px;
  height: 150px;
  animation: spin 1.5s linear infinite;
}

/* Loader spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Initially hide the page content */
.content {
  display: none;
}


