/* start light mode styling */
:root {
    --text: #3a5a78; /* Darker slate blue for readable text */
    --border: #90adc6; /* Soft sky blue pulled from the dithered pattern */
    --accent: #E54F6D; /* Pastel golden yellow for links and highlights */
    --bg: #fdfaf6; /* Warm, soft off-white */
    --gradientTop: #f4e1d2; /* Peachy cloud cream */
    --gradientBottom: rgba(123, 158, 189, 0.8); /* Translucent sky blue */
}
/* end light mode styling */


/* start dark mode styling */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f4e3d7; /* Using the bright cloud cream for text */
        --border: #5c86a6; /* Darker blue from the dithered shadows */
        --accent: #E54F6D; /* Bright pastel peach so links stand out */
        --bg: rgba(20, 35, 50, 0.9); /* Deep twilight blue */
        --gradientTop: #2c4251; 
        --gradientBottom: #1a2a3a;
        a:link { color: #a1c5e4; } /* Soft light blue */
    }
}
/* end dark mode styling */


* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);
}

body {
	/*background*/
    background-image: url('../images/scan19-ditherd.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientBottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
	
}
header span {
	font-size: 3rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--text);
}
@media (max-width: 600px) {
    header span {
        font-size: 2.5rem; /* Shrinks the text specifically for phones */
        position: absolute;
		bottom: 0;
		right: 10px;
		margin: 10px;
		font-weight: bold;
		text-shadow: 1px 1px var(--text),
			-1px 1px var(--text),
			1px -1px var(--accent),
			-1px -1px var(--accent);
		color: var(--text);
    }
}



nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 10px auto;
	
	
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 5px;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
	
}
h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}





/* 1. The Wrapper (This handles the centering and spacing) */
.image-button {
    display: block;         /* Lets the button take up its own line */
    width: fit-content;     /* Shrinks the wrapper to exactly fit your image */
    margin: 0 auto;         /* Auto-centers the wrapper horizontally */
    padding: 10px;          /* Moves your 10px spacing to the wrapper to prevent overlap */
}

/* 2. The default state of your image */
.image-button img {
    display: block;                     /* Removes the tiny invisible gap under images */
    image-rendering: pixelated;         /* Keeps your pixel art perfectly sharp */
    transform: scale(1.35);              /* Your custom starting size */
    
}

/* 3. What happens when you hover */
.image-button:hover img {
    transform: scale(1.4);              /* Grows larger than your 1.3 base size */
}



/* start light mode styling */
:root {
    --text: #3a5a78; /* Darker slate blue for readable text */
    --border: #90adc6; /* Soft sky blue pulled from the dithered pattern */
    --accent: #E54F6D; /* Pastel golden yellow for links and highlights */
    --bg: #fdfaf6; /* Warm, soft off-white */
    --gradientTop: #f4e1d2; /* Peachy cloud cream */
    --gradientBottom: rgba(123, 158, 189, 0.8); /* Translucent sky blue */
}
/* end light mode styling */


/* start dark mode styling */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f4e3d7; /* Using the bright cloud cream for text */
        --border: #5c86a6; /* Darker blue from the dithered shadows */
        --accent: #E54F6D; /* Bright pastel peach so links stand out */
        --bg: rgba(20, 35, 50, 0.9); /* Deep twilight blue */
        --gradientTop: #2c4251; 
        --gradientBottom: #1a2a3a;
        a:link { color: #a1c5e4; } /* Soft light blue */
    }
}
/* end dark mode styling */





.photo-gallery {
  /* The new column layout */
  column-count: 3; /* Splits the gallery into 3 columns */
  column-gap: 1rem; /* The space between the columns */
  
  /* Keep your existing spacing */
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.frame {
  /* Keep all your existing frame styling (background, padding, shadows, etc.) */
  background-color: var(--text); /* The color of the frame/matting */
  padding: 12px; /* Creates the thickness of the frame around the photo */
  border: 1px solid var(--border); /* A subtle border to define the edge */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* A soft drop shadow to lift it off the page */
  border-radius: 4px; /* Optional: slightly softens the sharp outer corners */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  /* ADD THESE TWO LINES 👇 */
  break-inside: avoid; /* Prevents a photo from being sliced in half across two columns */
  margin-bottom: 1rem; /* Creates the vertical gap between photos in the same column */
}

/* Make it responsive so it shrinks to 2 columns, then 1 column on phones */
@media (max-width: 900px) {
  .photo-gallery { column-count: 2; }
}

@media (max-width: 600px) {
  .photo-gallery { column-count: 1; }
}

/* 3. Ensure the image fits inside the frame perfectly */
.frame img {
  width: 100%;
  height: auto;
  display: block; /* Removes the tiny gap below inline images */
  
}
/* 4. Optional: Add a hover effect so they pop out when you interact with them */
.frame:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.caption {
    font-size: 0.9rem;
    color: #333;
    margin-top: 8px;
}