
@import url(//fonts.googleapis.com/css?family=Didact+Gothic);

@font-face {
    font-family: 'josefin_sanssemibold';
    src: url('../fonts/josefinsans-semibold-webfont.woff2') format('woff2'),
         url('../fonts/josefinsans-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;			}

body {	font-family: 'Didact Gothic', Arial, sans-serif;
  	font-size: 12px;
	font-weight: bold;
	color: white;
	background-color: black;	
	text-align: center;
	padding: 0;
	margin: 0 auto;
	width: 770px;
	max-width: 100%;	
	}

h3	{font-family: 'josefin_sanssemibold', 'Didact Gothic', Arial, sans-serif;
	font-size: 16px;
	color: white;
	} 

b	{color: #33CC33;}
	
a 	{color: #33FF33;
	font-family: 'josefin_sanssemibold', Arial, sans-serif;
	font-weight: bold;
	font-size: 13px;
	text-decoration: none;		}

a:visited            {color: #99FF99;}
a:hover		{color: black;		}

#blackheader	{
display: flex;
flex-flow: row nowrap;
justify-content: space-around;
position: sticky;  top: 0;
	text-align: center;
	line-height: 2em;	
	border: 0px solid yellow;}

.photo-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-around;
  margin-bottom: 3rem;
}

.photo-wrapper.pano {
    flex-direction: column;
    align-items: center; 	}

/* Ensure the image box takes up the full available width */
.photo-wrapper.pano .image-box {
    flex: 1 1 100%;
    width: 100%;
}
/* Optional: Adjust the caption under a panorama
.photo-wrapper.pano .caption {
    flex: 1 1 auto;
    max-width: 50em;     /* Gives the text a bit more breathing room since the image is so wide */
    margin-top: 1rem;    /* Generous spacing below the wide photo */
    padding-right: 0;    /* Reset desktop side-by-side padding */
} */

.image-box {
  /* Flex-basis of 45% ensures that on landscape/desktop, the image 
     and caption split the screen nicely side-by-side. */
  flex: 1 1 60%; 
  max-width: 100%;
}

/*.image-box.pano  {
	flex: 0 1 100%; }	*/

.image-box img {
  width: 100%;
  /* The Magic Cap: Prevents vertical photos from blowing up the screen */
  max-height: 80vh; 
  object-fit: contain;
  display: block;
}

.caption {
  /* Gives the caption a slightly higher priority to claim space 
     on wide screens, but allows wrapping on narrow ones */
  flex: 1 1 250px;
  text-align: left; 
  max-width: 35em;
  margin: auto;
  padding-top: 0 9rem;
  padding-right: 20px; padding-left: 10px;
  border: 0px solid green;
}

/* Horizontal Phone Logic */
@media (max-device-width: 932px) and (orientation: landscape) {
    
    /* 1. Turn body into a row layout so nav and main sit side-by-side */
    body {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* 2. Transform the header into a tight vertical sidebar on the left edge */
    #blackheader {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;          /* Space between the arrow buttons */
        width: 90px;        /* Fixed narrow width for the sidebar 60px would be neater */
        height: auto;      /* Stretch down the full height of the screen */
        position: sticky;   /* Keeps the arrows visible while scrolling the gallery */
        top: 10;
        left: 0;
        padding: 20px 0;    /* Padding top/bottom inside the sidebar */
        margin: 10px 0 0 15px;          /* Remove the desktop margins */
        /*  background-color: #000; Ensures background matches body */
        border: 2px solid green;
    }

    /* 3. Allow the gallery to fill the remaining space on the right */
    .gallery-container {
        flex: 1;
        padding: 10px 20px 10px 0;
        box-sizing: border-box;    }
    
/* THE AUTOMATIC WRAPPER */
    .photo-wrapper {
        display: flex;
        flex-flow: row wrap; /* Allows wrapping if space runs out */
        gap: 1.5rem;
        align-items: center; 
        justify-content: flex-start;
        margin-bottom: 3.5rem;
        width: 100%;
    }

    /* THE MAGIC ADJUSTMENT */
    .image-box {
        flex: 0 1 auto;      /* Grow: 0, Shrink: 1, Basis: auto */
        max-width: 100%;     /* Keeps landscapes from exploding past screen bounds */
    /* Horizontal Phone Logic */
@media (max-device-width: 932px) and (orientation: landscape) {
    
    /* 1. Turn body into a row layout so nav and main sit side-by-side */
    body {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* 2. Transform the header into a tight vertical sidebar on the left edge */
    #blackheader {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;          /* Space between the arrow buttons */
        width: 90px;        /* Fixed narrow width for the sidebar 60px would be neater */
        height: auto;      /* Stretch down the full height of the screen */
        position: sticky;   /* Keeps the arrows visible while scrolling the gallery */
        top: 10;
        left: 0;
        padding: 20px 0;    /* Padding top/bottom inside the sidebar */
        margin: 10px 0 0 15px;          /* Remove the desktop margins */
        /*  background-color: #000; Ensures background matches body */
        border: 2px solid green;
    }

    /* 3. Allow the gallery to fill the remaining space on the right */
    .gallery-container {
        flex: 1;
        padding: 10px 20px 10px 0;
        box-sizing: border-box;    }
    
/* THE AUTOMATIC WRAPPER */
    .photo-wrapper {
        display: flex;
        flex-flow: row wrap; /* Allows wrapping if space runs out */
        gap: 1.5rem;
        align-items: center; 
        justify-content: flex-start;
        margin-bottom: 3.5rem;
        width: 100%;
    }

    /* THE MAGIC ADJUSTMENT */
    .image-box {
        flex: 0 1 auto;      /* Grow: 0, Shrink: 1, Basis: auto */
        max-width: 100%;     /* Keeps landscapes from exploding past screen bounds */
    /* Horizontal Phone Logic */
@media (max-device-width: 932px) and (orientation: landscape) {
    
    /* 1. Turn body into a row layout so nav and main sit side-by-side */
    body {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* 2. Transform the header into a tight vertical sidebar on the left edge */
    #blackheader {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;          /* Space between the arrow buttons */
        width: 90px;        /* Fixed narrow width for the sidebar 60px would be neater */
        height: auto;      /* Stretch down the full height of the screen */
        position: sticky;   /* Keeps the arrows visible while scrolling the gallery */
        top: 10;
        left: 0;
        padding: 20px 0;    /* Padding top/bottom inside the sidebar */
        margin: 10px 20px;          /* Remove the desktop margins */
        /*  background-color: #000; Ensures background matches body */
    }

    /* 3. Allow the gallery to fill the remaining space on the right */
    .gallery-container {
        flex: 1;
        padding: 10px 20px 10px 0;
        box-sizing: border-box;    }
    
/* THE AUTOMATIC WRAPPER */
    .photo-wrapper {
        display: flex;
        flex-flow: row wrap; /* Allows wrapping if space runs out */
        gap: 1.5rem;
        align-items: center; 
        justify-content: flex-start;
        margin-bottom: 3.5rem;
        width: 100%;
    }

    /* THE MAGIC ADJUSTMENT */
    .image-box {
        flex: 0 1 auto;      /* Grow: 0, Shrink: 1, Basis: auto */
        max-width: 100%;     /* Keeps landscapes from exploding past screen bounds */
    	box-sizing: border-box; 	0}

    .image-box img {
        max-height: 95vh;    /* Both portrait and landscape hit full screen height */
        width: auto;         /* Crucial: lets portrait width shrink naturally */
        object-fit: contain;
        display: block;
    }

    .caption {
        flex: 1 1 250px;     /* Baseline minimum of 250px width required to sit side-by-side */
        max-width: 35em;
        text-align: left;
        margin: 0;
    }
}  /*end adjustments for phone-sideways view	*/}

    .image-box img {
        max-height: 95vh;    /* Both portrait and landscape hit full screen height */
        width: auto;         /* Crucial: lets portrait width shrink naturally */
        object-fit: contain;
        display: block;
    }

    .caption {
        flex: 1 1 250px;     /* Baseline minimum of 250px width required to sit side-by-side */
        max-width: 35em;
        text-align: left;
        margin: 0;
    }
}  /*end adjustments for phone-sideways view	*/}

    .image-box img {
        max-height: 95vh;    /* Both portrait and landscape hit full screen height */
        width: auto;         /* Crucial: lets portrait width shrink naturally */
        object-fit: contain;
        display: block;
    }

    .caption {
        flex: 1 1 250px;     /* Baseline minimum of 250px width required to sit side-by-side */
        max-width: 35em;
        text-align: left;
        margin: 0;
    }
}  /*end adjustments for phone-sideways view	*/