/* MAIN CSS */
@keyframes fadeInAnimation {
	from { opacity: 0; }
	to { opacity: 1; }
}
body {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	font-size: 1.25rem;
	color: black;
	background-color: #FCFCFC;
	background-position: top;
	background-repeat: repeat;
	background-attachment: fixed;
    background-size: auto auto;
	display: flex;
	justify-content: center;
	margin:0;
	padding:0;
	opacity: 0;
	animation: fadeInAnimation 1s ease-out forwards;
}
.body-guts {
	align-content: center;
    background: #FCFCFCE6;
    border-left: solid #F0F0F0 5px;
    border-right: solid #F0F0F0 5px;
    display: grid;
    justify-content: center;
	max-width: 640px;
	width: 100%;
    min-height: 100vh;
    padding: 0px;
    position: relative;
    overflow-x: hidden;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.body-containers{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 5px;
}
#content-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}
header {
	width: 100%;
	border-bottom: solid #F0F0F0 3px;
	margin-bottom:15px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
#siteheader{
	padding-left: 20px;
	justify-content: left;
	text-align: left;
	font-size: clamp(12px, 2vw, 20px);
	white-space: nowrap;
	text-decoration: none;  /* Removes underline */
	color: inherit;
	transition: ease-in-out 0.3s;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none; 
}
#siteheader h1{
	transition: text-shadow 0.3s;
	transition: transform 0.3s;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}
#siteheader h1:hover{
    transform: scale(1.025);
	text-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}
footer {
	width: 100%;
	border-top: solid #F0F0F0 3px;
	margin-top:15px;
	justify-content: center;
	align-content: center;
}
address {
	font-size: .75rem;
}
main {
	width: 100%
}
a {
	color: inherit;
	text-decoration: none;
}
a:hover, a:focus {
	text-decoration: none;
	color: inherit;
	outline: none;
}
/* PORTFOLIO THUMBNAIL CSS */
.portfolio_thumbnail {
    border: none;
    margin: 5px;
    cursor: pointer;
    transition: ease-in-out 0.3s;
	box-shadow: 0 0px 8px 0 rgba(0,0,0,0.8);
	width: 80%;
	height: auto;
}
.portfolio_thumbnail:hover {
    transform: scale(1.05);
	box-shadow: 0 0px 16px 0 rgba(0,0,0,0.2);
}
.portfolio_thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}
/* NAV CSS */
nav	{
	text-align: center;
}
.nav-button {
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
	background-color: #F0F0F0;
    transition: ease-in-out 0.3s;
	box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}
.nav-button:hover {
    background-color: #B3B6B7;
    transform: scale(1.05);
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
/* CATAGORY CSS */
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	padding: 5px;
}
.grid-container img {
	max-width: 100%;
	height: auto;
	display: block;
}
.infotext {
	font-size: clamp(16px, 1.5vw, 24px);
	position: absolute;
	top: -20px;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.thumbnail {
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
    cursor: pointer;
}
.thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}
.overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #EDF1F3CC;
	color: black;
	transition: opacity 0.5s ease;
	opacity: 0;
	backdrop-filter: blur(10px);
}
.thumbnail:hover {
	transform: scale(1.05);
}
.thumbnail:hover .overlay {
	transition: opacity 0.5s ease;
	opacity: 1;
}
.thumbtext {
	font-size: clamp(16px, 1.5vw, 24px);
	position: absolute;
	top: 10px;
	left: 10px;
	text-align: left;
	transition: opacity 0.5s ease;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.thumbtext h3, .thumbtext p {
	margin: 0;
}
/* MODAL CSS */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Prevent scrolling of the modal itself */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 20px; /* Adds padding to prevent modal from touching the edges of the screen */
}
.modal-content {
    position: relative;
    background-color: #FEFEFE;
    margin: auto; /* Helps in centering the content */
    padding: 0;
    border: 4px solid #EDF1F3;
    width: 80%; /* Adjust based on your preference */
    max-height: 90vh; /* Limits the height to 90% of the viewport height */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column; /* Organizes children elements vertically */
    overflow: hidden; /* Prevents any overflow from internal content */
}
.modal-header {
    display: flex;
    justify-content: space-between; /* Aligns children (title and close button) on opposite ends */
    align-items: center; /* Centers children vertically */
    padding: 10px; /* Adds padding inside the header */
	background-color: #EDF1F3;
}
.project-title {
    flex-grow: 1; /* Allows the title to take up any available space */
    white-space: nowrap; /* Prevents the title from wrapping */
}
.modal-body {
    display: flex;
    padding: 10px;
    overflow: hidden; /* Prevents scrolling within the modal body */
}
.focused-image {
    flex: 3; /* 75% of the body width */
    margin-right: 10px; /* Spacing between the focused image and gallery */
    overflow: hidden; /* Ensures no overflow */
    position: relative; /* Establishes a positioning context */
    display: flex;
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
    max-height: 75vh; /* Optional: adjust based on your modal's max-height setting */
}
.focused-image img {
    max-width: 100%; /* Maximum width is the full width of the container */
    max-height: 100%; /* Maximum height is the full height of the container */
    height: auto; /* Maintain aspect ratio based on width */
    width: auto; /* Maintain aspect ratio based on height */
    object-fit: contain; /* Ensures the image is scaled properly within the container */
	cursor: crosshair;
}
.gallery {
    flex: 1; /* 25% of the body width */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two columns of equal width */
    grid-gap: 10px; /* Spacing between images */
    overflow: auto; /* No scrolling within the gallery */
    padding: 5px; /* Padding around the grid */
}
.gallery-image {
    width: 100%; /* Each image takes full width of its grid column */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
	transition: transform 0.3s ease;
}
.gallery img:hover {
	transform: scale(1.05);
}
.modal-description {
    padding: 10px;
    flex-shrink: 0; /* Prevents the description from shrinking */
	background-color: #EDF1F3;
}
.close {
    cursor: pointer;
    font-size: 28px;
    color: #aaa;
    background: transparent;
    border: none;
    padding: 0 15px; /* Padding for easier clicking */
}
.close:hover,.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Add Animation (I don't think this works)*/
@keyframes modalopen {
    from {opacity: 0}
    to {opacity: 1}
}
