html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background:  		;
    text-shadow: none;
}

::selection {
    background:  #F7C990;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #F7C990;
    color: #000;
    padding: 0.2em 0;
}

/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font-family: 'Actor', 'Roboto', Arial, Helvetica Neue, Helvetica, Arial;
    background-color: #F7C990;
    background-image: url('../images/lemh_bkgd.png');
	background-size: 100%;
    background-repeat: no-repeat;
    background-position: top center;
	background-attachment: fixed; /* This line fixes the background image */
}


.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 1px solid #C7524D;
    background: #A60321;	
    opacity: 0.7;
    /*background colour extracted with GIMP */
}

.footer-container {
    border-top: 1px solid #C7524D;
}

.main aside {
    /* 
	border-top: 2px solid #C7524D;
    border-bottom: 2px solid #C7524D;
    border-left: 2px solid #C7524D;
    border-right: 2px solid #C7524D;
	*/ 
}

.footer-container {
}

.main aside {
    background: #F7C990;
    width: 5%;
}

.main profilephoto {
    background: #F7C990;
}

h1, h2, h3, h4, h5 { 
    color: #F9C990;
    background: #A60321;
    opacity: 0.7;
    font-family: 'Actor', 'Roboto', Arial, Helvetica Neue, Helvetica, Arial;
}

.pgtitle {
    color: #006600;
    font-size: 2.5em;
    font-variant: small-caps;
    float: left;
    font-family: 'Actor', 'Roboto', Arial, "Times New Roman", Georgia, Serif;
}

/* ==============
    MOBILE: Menu
   ============== */

nav_toppage ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav_toppage a {
    display: block;
    margin-bottom: 2px;
    padding: 1px 0;
    text-align: center;
    text-decoration: none;
    /* font-weight: bold; */
    font-size: 1.1em;
    color: #F0DAB5;
    /* background: #A60321; */
}

nav_toppage a:hover,
nav_toppage a:visited {
    color: #999933;
}

nav_toppage a:hover {
    color: #d8c4a2;
    background: #C7524D;
    /* text-decoration: underline;  */
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 25px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 1px;
}

.footer-container footer {
    color: #999933;
    padding: 1px 0;
    font-size: 0.8em;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .pgtitle {
    padding-top: 3px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Additional */

a {
    color: #A60321;
    text-decoration: none;
}

a:hover {
    color: #5b0212;
}

#alignright { 
    text-align: right;
}
#aligncenter { 
    text-align: center;
}

/* SIDE PADDING FIXED */
.sidepadded {
    padding: 30px 40px 20px 40px;
    vertical-align: top;
}

.verticaldotted {
    border-left: 1px dotted #999933;
    padding: 30px 40px 20px 40px;
    vertical-align: top;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav_toppage a {
        float: left;
        /* https://github.com/verekia/initializr-template/issues/4 */
        /* width: 12%;  */
        margin: 0 0.3%;
        padding: 12px 1%;
        margin-bottom: 0;
    }

    nav_toppage li:first-child a {
        margin-left: 0;
    }

    nav_toppage li:last-child a {
        margin-right: 0;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav_toppage ul li {
        display: inline;
    }

    .oldie nav_toppage a {
        margin: 0 0.7%;
    }
}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }

/* ============
    WIDE: Menu
   ============ */

    . {
        float: left;
        color: #006600;
    }

    nav_toppage {
        float: right;
        /* https://github.com/verekia/initializr-template/issues/4 */
        width: 58%;
    }

/* ============
    WIDE: Main
   ============ */

    .main article {
        float: left;
        width: 57%;
    }

    .main aside {
        float: right;
        /* width not working */
    }

	.main aside.sidebox {
	  width: 20%;
	  max-width: 300px; /* optional max width */
	  margin: 0 auto;            /* centers horizontally */
	  padding: 0.75em 1em;
	  background-color: rgba(140, 120, 90, 0.95); /* darker brown */
	  border-radius: 6px;
	  box-sizing: border-box;
	  font-size: 0.90em;
	  float: none;               /* remove float to allow centering */

	  /* Center all content */
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  align-items: center;
	  text-align: center;
	}

	.main aside.sidebox h3,
	.main aside.sidebox p,
	.main aside.sidebox a {
  	  color: #F9E8B9; /* lighter tint of background colour */
	}

	.sidebox h3 {
	  font-size: 1.3em;
	  margin-top: 0;
	  background: none;      /* remove any inherited background */
	  padding: 0;            /* reset any inherited padding */
	  border: none;          /* if borders are globally applied */
	  margin-bottom: 0.5em;
	  opacity: 1;      /* ensure full opacity */
	  background: none	; /* no background to interfere */
	  position: relative; /* bring it in front if needed */
	  z-index: 1;
	}
	

	.sidebox p {
	  font-size: 1.05em;
	  line-height: 1.4;
	  margin-bottom: 1em;
	}
	
	.sidebox strong {
	  display: block;
	  font-weight: bold;
	  margin-bottom: 0.1em;
	}

	.sidebox-rule {
	  border: none;
	  height: 1px;
	  background-color: #F7C990;
	  width: 50%;
	  margin: 1em 0;
	}

	/* Button styling: to match navigation bar style later */
	.sidebox-button {
	  margin-top: 1em;
	  text-align: center;
	}


	.sidebox-button a {
	  background-color: #A60321;
	  text-decoration: none;
	  padding: 0.4em 1.2em;
	  border-radius: 4px;
	  font-weight: bold;
	  display: inline-block;
	  transition: background-color 0.3s ease;
	}

	.sidebox-button a:hover {
	  background-color: #7d0218; /* darker red on hover */
	}


	.content-with-photo {
	  display: flex;
	  align-items: flex-start;
	  gap: 1em;
	  max-width: 900px;
	  margin: 0 auto;
	  flex-wrap: wrap;    /* allow wrapping on small widths */
	}

	.content-with-photo article {
	  flex: 1 1 60%;
	  min-width: 200px;
	  /* allow text to wrap normally */
	}

	/* Containers for photos */
	.profilephoto,
	.otherphotos {
	  flex: 0 0 auto;
	  margin: 0;
	  box-sizing: border-box;
	}

	/* Default image styles */
	.profilephoto img,
	.otherphotos img {
	  width: 100%;
	  height: auto;
	  display: block;
	  border-radius: 6px;
	  margin: 0 auto;
	}

	/* Set separate max-widths for each image type */
	.profilephoto img {
	  max-width: 150px;
	}

	.otherphotos img {
	  max-width: 200px;
	}

	/* Responsive: small screens */
	@media (max-width: 600px) {
	  .profilephoto,
	  .otherphotos {
	    flex: none;
	    width: 100%;
	    max-width: 350px;
	    margin: 1em auto;
	  }

	  .profilephoto img,
	  .otherphotos img {
	    max-width: 100%;
	  }
	}

	/* Very small screens */
	@media (max-width: 400px) {
	  .profilephoto img,
	  .otherphotos img {
	    max-width: 280px;
	  }
	}


	.wrapphotocredit {
	  position: relative;
	}

	.photocredit {
	  position: absolute;
	  bottom: 4px;   /* small offset from bottom */
	  right: 4px;    /* align to right edge of container */
	  font-size: 0.6em;
	  color: #000;
	  background: rgba(255, 255, 255, 0.2);
	  padding: 1px 3px;   /* optional small padding */
	  border-radius: 2px;
	  text-align: right;   /* aligns text inside box */
	  pointer-events: none;
	  user-select: none;
	}


	@media (max-width: 600px) {
	  .content-with-photo {
	    flex-direction: column;
	    align-items: center;
	    max-width: 350px;   /* optional */
	    width: 100%;
	  }

	  .content-with-photo article,
	  .profilephoto,
	  .otherphotos {
	    flex: none;
	    width: 100%;
	    max-width: 350px;
	  }

	  .profilephoto,
	  .otherphotos {
	    margin-top: 1em;
	  }

	  .main aside.sidebox {
	    width: 90%;
	    max-width: none;
	  }

	  .profilephoto img,
	  .otherphotos img {
	    width: 100%;
	    max-width: 350px;
	    height: auto;
	    display: block;
	  }
	}



/* ===============
    Maximal Width
   =============== */
	/* Responsive page wrapper */
	.wrapper {
	    max-width: 1140px;   /* maximum width for large screens */
	    width: 90%;           /* shrink to 90% of viewport on medium screens */
	    margin: 0 auto;       /* center horizontally */
	    padding: 0 1em;       /* small horizontal padding to avoid touching edges */
	    box-sizing: border-box;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[pgtitle]:after {
        content: " (" attr(pgtitle) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


cite {
    font-style: italic;    /* force italics */
    font-weight: normal;   /* optional */
    letter-spacing: normal; /* override extra spacing if present */
}



.bigtext {
  font-size: 1.6em;      /* or try clamp(1.4em, 3vw, 1.8em) for scaling */
  font-weight: bold;
  line-height: 1.3;
  margin: 1em 0 0.5em 0;
}

.mediumtext {
  font-size: 1.4em;
  font-weight: bold;
  line-height: 1.3;
  margin: 0.8em 0 0.4em 0;
}



