body {
    /* overflow: hidden;
	background: linear-gradient(top , #a2dae3 25%, #ff9893 90%);
    background: -moz-linear-gradient(top , #a2dae3 25%, #ff9893 90%);
    background: -webkit-linear-gradient(top , #a2dae3 25%, #ff9893 90%); */
    height: 100%;
    width: 100%;
    margin: 5%;
    padding: 0;
    left: 0;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background: #000;
    -webkit-overflow-scrolling: touch;
}

    body.exhibitions{
        background: linear-gradient( to bottom, #3f193c 0%, #311435 12%, #232f52 25%, #172643 37%, #581f1f 50%, #3d1515 62%, #25483a 75%, #18362b 87%, #563c1b 100% );
    }

    body.projects {
        min-height: 140vh;
        background: linear-gradient( to bottom, #3f193c, #232f52, #563c1b );
    }

html {
    width: 100%;
        margin: 0;
        padding: 0;
}

.container {
	display: visible;

}

/* mobile starts here */

@media only screen and (max-width: 768px) {
	.header-link {
		display: block !important;
	}

    .container {
		display: none;
		width: 100%;
		padding-bottom: 30px;
        
	}

    .topnav {
		display: block !important;
        
	}

    body {
		margin-top: 55px !important;
        
	}

    h1 {
       
        color: #ffffff !important;
        font-size: 25px !important;
        letter-spacing: 3px;
        width: 100%
        
        
    }

    h3 
{  
    margin-top: 3px !important;
    margin-left: 10px !important;
    position:relative;
    font-size: 10px !important;
    letter-spacing: 2px;
    line-height: 120% !important;
}

h4 
{  
    margin-left: 0px !important;
    margin-right: 0px !important;
    position:relative;
    font-size: 16px !important;
   letter-spacing: 3px;
   line-height: 200%;
}

h5 
{  
    position:relative;
    font-size: 10px !important;
    line-height: 200%;
    color: #ffffff !important;
  
}

h6 
{  
    position:relative;
    font-size: 16px !important;
    line-height: 200%;
  
}

p {
    
    font-size: 10px !important;
    font-weight: bold !important;
  }



    .all-projects-container
{
margin: auto;
  width: 100%;
margin-top: 30px !important;
overflow-y: auto;
overflow-x: hidden;

}

.exhibition-img {
    
    margin-bottom: 3% !important;
  }

.left-project-container
{
    
    
    position: relative;
    width: 100% !important;
    height: 100% !important;
    left: 0% !important;
    margin-top: 20px;
    
    border-width: 1px;
    z-index: -1;

}

.right-project-container
{
    
    
    position: relative;
    width: 100% !important;
    height: 100% !important;
    
    left: 0% !important;
    margin-top: 20px;
    
    border-width: 1px;
    z-index: -1;

}

    .project-info {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        position: relative;
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
        margin: auto;
        margin-top: 10px !important;
        width: 100% !important;
    }

a.project {
    color: rgb(251, 91, 117) !important;
    background-color: rgb(0, 0, 0) !important;
    border-radius: 0px !important;
    width: 100% !important;
    height: 100% !important;
    transition: 1s !important;
    left: 0% !important;
    margin: 0px 0% 10px 0% !important;
    
}


a.project:visited {
	
	font-size: 16px;
}
a.project:hover {
	color: rgb(107, 229, 133) !important;

	text-decoration: rgb(0, 0, 0);

    width: 100%;
    height: 100%;
   
}

.socialmedia img {
    height: 80px!important;
   width: 80px!important;
}

a img
{position: relative;
 
  margin-top: 0px !important;
}

img {

    position: relative;
        height: 100% !important;
        width: 100% !important;
       
        
        margin-right: 0px!important;
        margin-top: 0px!important;
    }

.img-small
{
    
    border-right-width: 1px;
    width:40% !important;
    height:40% !important;
    margin-bottom: 0px !important;
}

.cv
{
    margin-left: 2% !important;

    width: 96% !important;
    position: relative;
}

a:link {
    
	font-size: 18px !important;
}

.active {
	color: white;
}

}



/* mobile ends here */

.topnav {
	display: none;
	overflow: hidden;
	background-color: rgb(0, 0, 0);
	position:fixed;
    text-align: center;
    
   
    z-index: 1;
    top:0;
    left:0;
    right:0;
    
    
    
}




.topnav #myLinks {
	display: none;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #ffffff;
}

.topnav a {
	color: rgb(255, 255, 255);
	padding: 14px 16px;
	text-decoration: none;
	font-size: 22px;
	display: block;
}

.topnav a.icon {
	display: block;
	position: absolute;
	right: 0;
	top: 0;
    color: #ffffff;
}

.topnav a:hover {
	background-color: rgb(251, 91, 117);
	color: rgb(255, 255, 255);
}

.active {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
	color: white;
    
}

h1 {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    color: rgb(255, 255, 255);
    letter-spacing: 3px;
    width: 100%;

    
}

h2 {
    color: rgb(255, 255, 255);
  font-size: 40px;
  left: 0;
  position:relative;
  text-align:center;
  letter-spacing: 3px;
  margin-top: 40px;
  margin-bottom: 10px;
  width: 100%
  
}

h3 
{  
    margin-left: 20px;
    margin-top: 8px;
    position:relative;
    font-size: 14px;
    letter-spacing: 3px;
    line-height: 250%;
}

h4 
{  
    position:relative;
    font-size: 18px;
   letter-spacing: 0px;
   line-height: 1.6;
   color: #ffffff;
}

h5 
{  
    position:relative;
    font-size: 15px;
    line-height: 200%;
    color: #ffffff;
  
}
h6 {
    color: #ffffff;
    position: relative;
    font-size: 16px;
    line-height: 200%;
    font-family: "Inter", Helvetica, Arial, sans-serif;
}

p {
    
    font-size: 24px;
  }
  
  

.all-projects-container
{
    
margin: auto;
  width: 100%;
margin-top: 100px;
overflow-y: auto;

}

.left-project-container
{
    display: flex; 
    position: relative;
    width: 60%;
    height: 40%;
    left: 20%;
    margin-top: 20px;
    border-style: solid;
    border-width: 1px;
    z-index: -1;
    padding: 5px 5px 5px 5px;
    border-radius:10px;
    margin: 5px 1% 5px 1%; 
    transition:height 0.5s; 
    -webkit-transition:height 0.5s; 
    text-align: left;

}



.right-project-container
{
    display: flex; 
    position: relative;
    width: 60%;
    height: 40%;
    left: 25%;
    margin-top: 20px;
    border-style: solid;
    border-width: 1px;
    z-index: -1;

}

.cv
{
    margin-left: 26%;
    width: 58%;
    position: relative;

    font-family: "Inter", Helvetica, Arial, sans-serif;
    text-align: left;
    margin: auto;
    margin-top: 10px;
   
}
.project-info {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    position: relative;
    text-align: left;
    margin: auto;
    margin-top: 10px;
    width: 65%;
}

.header-link {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
 
    background-color: rgb(0, 0, 0);
    z-index: 3;
    border-bottom: 1px solid;
    left: 0;
    position:fixed;
    text-align:center;
    top: 0px;
    width: 100%
    
}

.background-images {
overflow-y: scroll;

}

.socialmedia img {
    height: 80px;
   width: 80px;
}

.img-small
{ 
    border-color: black;
    border-right-style: solid;
    border-right-width: 1px;
    width:260px;
    height:180px;
}

a img
{position: relative;
  height: 30%;
  width: 30%;
  /* z-index: -1; */

  /* margin-right: 10px; */
  margin-top: 4px;
}

img {

position: relative;
    height: auto;
    width: 96%;
    height: auto;
    margin-bottom: 2%;
   
    /* z-index: -1; */
    
 
}

.index-img-container {
    
    position: relative;
    text-align: center;
    color: rgb(255, 255, 255);
  }

  .bottom-left {
     mix-blend-mode: difference; 
    
font-size: 18px;
    position: absolute;
    bottom: 8px;
    left: 16px;
  }


a {
    color: rgb(255, 255, 255);
    
}

.video 
{
position: relative;
text-align: center;
margin-top: 100px;
overflow-y: auto;

}

a:link {
    
	font-size: 18px;
    color: #ffffff;
}
a:visited {
   
	font-size: 18px;
}
a:hover {
	color: pink;
	
	text-decoration: none;
    color: rgb(224, 82, 105);
}

a.project {
    color: rgb(251, 91, 117);
    font-family: "Inter", Helvetica, Arial, sans-serif;
    transition: 1s;
    display: flex;
    background-color: black;
    left: 19%;
    border-style: solid;
    border-width: 1px;
    z-index: 0;
    border-color: black;
    border-radius: 10px;
    height: 50px;
    width: 60%;
    margin: 10px 1% 5px 1%;
    position: relative;
    transition: height 0.5s;
    -webkit-transition: height 0.5s;
    text-align: left;
    overflow: hidden;
    transition: 1.5s;
    border-color: rgb(251, 91, 117);
}


a.project:visited {
	font-size: 20px;
	
}
a.project:hover {
	color: rgb(107, 229, 133);
background-color: #000000;
	text-decoration: rgb(0, 0, 0);
    border-color:  rgb(107, 229, 133);
    width: 60%;
    height: 230px;
   
}

.youtube-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  }

  .youtube-container-classic {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 80%; /* 4:3 Aspect Ratio  */
  }

  .youtube-container-special {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 62.7%; 
  }
  
  /* Then style the iframe to fit in the container div with full height and width */
  .responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }
  
  a[data-fancybox] img {
    cursor: zoom-in;
  }
  
  .fancybox__caption {
    text-align: center;
  }

  .exhibition-img {
    position: relative;
    height: auto;
    width: 30%;
 
    margin-bottom: 0%;
  }

  

/* Wrapper to center the content and limit width */
.exhibition-top-wrapper {
    max-width: 1300px; /* or whatever width you want */
    margin: 0 auto; /* center horizontally */
    padding: 0 20px; /* some space on left/right */
    padding-bottom: 30px;
}

/* Flex layout for image + text */
.exhibition-top {
    display: flex;
    flex-wrap: wrap; /* wrap on smaller screens */
    gap: 30px; /* space between image and text */
    align-items: flex-start;
}

    /* Hero image sizing */
    .exhibition-top .exhibition-img {
        flex: 1 1 400px; /* grow/shrink with min width */
        width: 600px;
        height: auto;
    }

    /* Project info sizing */
    .exhibition-top .project-info {
        flex: 1 1 300px; /* grow/shrink with min width */
    }





.exhibition {
    padding: 60px 0;
    background-blend-mode: multiply;
    position: relative;
    z-index:0;
}






/* Common styling for both Education and Grants */
.education-cv, .grants-cv, .exhibitions-cv {
    display: flex;
    flex-direction: column;
    color: white; /* text white */
    font-family: "Inter", Helvetica, Arial, sans-serif;
    margin-bottom: 20px;
    margin-top: 20px;
}

.education-item-cv, .grant-item-cv, .exhibition-cv {
    display: flex;
    margin-bottom: 5px;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 0;
}

.year-cv {
    width: 80px; /* wide enough for ranges like 2010-2011 */
    font-weight: bold;
}

.title-cv {
    flex: 1;
}

.cvlist {
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 12px;
    row-gap: 8px; /* increase space between rows */
    color: white;
    line-height: 1.3;
    margin-top: 16px;
}

.cvyear {
    width: 100px; /* wide enough for ranges like 2010-2011 */
    font-weight: bold;
}

.cvtext i {
    font-style: italic;
}



/* ============================= */
/* Gallery container styling     */
/* ============================= */
.gallery-container {
    display: flex; /* flex layout */
    flex-wrap: wrap; /* allow multiple rows */
    justify-content: center; /* center horizontally */
    gap: 10px; /* space between images */
    margin-top: 20px;
}

    .gallery-container a {
        display: block; /* make each link a block item */
        width: 30%; /* desktop: 3 per row */
        text-align: center;
    }

    .gallery-container img {
        width: 100%; /* fill the link container */
        height: auto; /* preserve natural height */
        object-fit: contain; /* don't crop, show full image */
        display: block;
        border-radius: 4px; /* optional */
    }

/* ============================= */
/* Responsive for mobile         */
/* ============================= */
@media only screen and (max-width: 768px) {
    .gallery-container {
        gap: 3px !important; /* smaller gap on mobile */
    }

        .gallery-container a {
            flex: 0 0 calc(50% - 5px); /* 2 per row */
            max-width: 50%;
        }

        .gallery-container img {
            width: 100%; /* fill the link container */
            height: 120px; /* fixed landscape height */
            object-fit: cover; /* crop excess parts */
        }


}

/* Ensure consistent box-sizing */
.gallery-container, .gallery-container * {
    box-sizing: border-box;
}

/* Poster image with subtle, neutral frame */
.poster-img {
    border: 6px solid transparent;
    border-radius: 6px;
    display: block;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    /* Gradient frame: neutral dark with subtle highlights */
    background-image: linear-gradient(transparent, transparent), linear-gradient(135deg, rgba(0,0,0,0.6), rgba(80,80,80,0.4));
    background-origin: border-box;
    background-clip: content-box, border-box;
    /* Soft shadow / glow for subtle pop */
    box-shadow: 0 0 15px rgba(0,0,0,0.4), /* depth */
    0 0 25px rgba(200,200,200,0.15); /* subtle neutral glow */

    mix-blend-mode: overlay;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Force first image to scale naturally, no stretching */
.first-img {
    width: 100%;
    height: auto !important; /* ignore any inherited height */
    max-width: 100%;
    object-fit: unset !important;
    display: block;
    margin: 0 auto;
}