:root {
  --green-color: #003607;
  --black-color: #000000;
  --hover-color: #00610B;
  --back-color: #00C4C4;
  --red-color: #A03232;
  --red-hover-color: #D2A0A0;
  --gray-hover-color: #757575;
  --header-color: #000A7D;
  --section-color: #000A7D;
  --link-inact-color: #003D8F;
  --link-hover-color: #0060A6;
  --link-text-color: #858585;
  --white-color: #ffffff;
  --blockquote-bg: #dddddd;
  --nav-bg-color: #b0b0b0;
  --inner-bg-color: #edeef3;
  --footer-bg-color: #050005;
  --carousel-bg-color: #b0b0b0;
  --carousel-border-color: #525252;
  --carousel-controls-bg: #000000;
  --carousel-btn-bg: #003D8F;
  --carousel-btn-text: #858585;
  --carousel-mid-color: #000A7D;
  --carousel-dot-border: #000A7D;
  --carousel-dot-hover: #0060A6;
}

body {
  margin: 0;
  padding: 0;
  background: var(--back-color);
  line-height: 133%;
  font-size: 0.98em;
  font-family: 'MS Sans Serif', sans-serif;
  }
  
  
/*Miscellanous custom styling for various elements.*/
h1, h2, h3 {
  font-family: "Calibri";
  }
  
a {
  color: var(--back-color);
  }

a:hover, a:focus {
  color: var(--hover-color);
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
blockquote {
  border-left: var(--back-color) 3px solid;
  background: var(--blockquote-bg);
  padding: 0.1px 0.75rem;
  margin: 0 1.5rem;
  }

hr {
  width: 75%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  }
  
/*Sticky navigation links at the top of the page.*/
.quick-nav {
  position:fixed;
  z-index: 999;
  width: 100%;
  background: var(--nav-bg-color);
  text-align: left;
  color: var(--black-color);  
  font-size: 0.875em;
  
  }
  
.navbar {
  padding: 1px 25px;
  }
  
.navbar a {
  display: inline-block;
  text-decoration: none;
  color: var(--black-color);
  padding: 5px 4px;
  margin: 0 2px;
  }
  
.navbar a:hover, .footer a:hover, .navbar a:focus, .footer a:focus {
  color: var(--gray-hover-color);
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
  
/*Header image.*/
.header {
  height: 150px;
  background: linear-gradient(45deg, var(--back-color), var(--black-color)) no-repeat;
  }

/*Title bar with icon and title/tagline.*/
.title {
  background: var(--header-color);
  min-height: 60px;
  margin-bottom: -25px;
  text-align: right;
  }
  
.title-text, .title-pic {
  padding:0;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  }
  
/*Contains the text tagline.*/
.title-text {
  padding-right: 1em;
  width: calc(85vw - 110px);
  line-height: 167%;
  margin-top: -3px;
  padding-bottom: 15px;
  color: var(--white-color);
  }
  
.title-text h1 {
  padding:0;
  font-size: 32px;
  }
  
/*Contains the profile pic. This can be left out and should still look okay.*/
.title-pic {
  height: 100px;
  margin-right: 100px;
  margin-top: -25px;
  border: 5px solid var(--green-color);
  }
  
.title-pic img {
  height: 100%;
  overflow: hidden;
  }
  
/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 0 100px;
  margin: 0 auto;
  background: var(--back-color);
  background: linear-gradient(90deg, var(--back-color), var(--black-color)), url(/img/fancy1.png); /*Gradient makes tiles "fade in".*/
  }

/*Contains the sidebar boxes.*/
.sidebar {
  width: 320px;
  margin: 50px 0;
  position: absolute;
  }
  
.sidebar h1 {
  font-size: 1.2rem;
  background: var(--section-color);
  color: var(--white-color);
  padding: 12px 10px 10px 10px;
  margin: auto;
  }
  
.sidebar a {
  display: block;
  border-left: 3px solid var(--section-color);
  background: var(--link-inact-color);
  padding: 5px;
  margin: 10px 0;
  color: var(--link-text-color);
  text-decoration: none;
  }
  
.sidebar a:hover, .sidebar a:focus {
  background: var(--link-hover-color);
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
.sidebar, .main {
  display: inline-block;
  }

/*Contains main content boxes.*/
.main {
  margin: 50px 100px 50px 350px;
  width: auto;
  width: calc(100vw - 550px);
  }
  
  
/*Basic container type for subsections of main and sidebar divs*/
.box {
  margin-bottom: 10px;
  }
  
/*Inner content div for boxes. Padding goes here so sidebar headers etc can keep their no-margin look.*/
.inner {
  background:  var(--inner-bg-color);
  padding: 10px 25px;
  }

.inner img {
  max-width: 100%; /*Prevent image overflow.*/
  height: auto;
  border-radius: 0; /*Give images in content rounded corners.*/
  }
  
.box, .title-pic img {
  overflow: hidden; /*Force inner divs to conform to rounded corners.*/
  }
  
  
/*Footer section.*/
.footer {
  background: var(--footer-bg-color);
  color: var(--white-color);
  padding: 5px 20px;
  font-size: 0.75em;
  padding-bottom: 10px;
  }
  
.footer a {
  color: var(--white-color);
  }

/*Individual column of the footer. You can have 3 of these at the current given width.*/
.footer-column {
  width: 25%;
  margin: 5px 10px;
  display: inline-block;
  vertical-align: top;
  }
  
/* image gallery */



/*Adapt to narrower screens.*/
@media(max-width: 900px) {
  .page-wrapper {
    padding: 0 50px;
    }
  
  .sidebar {
    width: 25vw;
    }
    
  .main {
    margin: 50px 0 50px calc(25vw + 30px);
    width: calc(75vw - 150px);
    }
    
  .title-pic {
    margin-right: 7vw;
    }
    
  .title-text {
    padding-left: 1vw;
    padding-right: 2vw;
    }
  
  }
  
/*Mobile layout.*/
@media(orientation: portrait) {  
  .page-wrapper {
    padding-top: 0.1px;
    padding-bottom: 0.1px;
    }
  
  .sidebar, .main {
    display: block;
    margin: 0 auto;
    position: static;
    width: 100%;    
    }
    
  .sidebar {
    margin-top: 50px;
    }
    
  .main {
    margin-top: 30px;
    margin-bottom: 30px;
    }
    
    
  }
  
/***
For really narrow screens which cause the title text to wrap. 
You may need to adjust the width at which this kicks in to fit 
your own title.
***/
@media(max-width: 500px) {
  .header {
    height: 60vw;
    }
  
  .title {
    padding-right: 0;
    }
  
  .title-text {
    margin-top: -5px;
    }
    
  .title-text h1 {
    font-size: 6vw;
    line-height: 75%;
    }
    
  .title {
    height: calc(auto - 25px);
    }
    
  .page-wrapper {
    padding: 0.1px 7vw;
    }
    
  /*For extra narrow screens where the columns would get too skinny.*/
  .footer-column {
    display: block;
    width: 100%;
    margin: 0 auto;
    }
  }
  
  * {
    border-radius: 0 !important;
  }

/* =====================================================================
   IMAGE CAROUSEL
   Self-contained; does not interfere with .box or any other layout.
   ===================================================================== */

/* Outer wrapper — sits naturally inside .inner without breaking the box */
.carousel {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  background: var(--carousel-bg-color);     /* dark letterbox background behind images */
  border: 2px solid var(--carousel-border-color);
  user-select: none;
}

/* ---- Control bar (top of the image) --------------------------------- */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--carousel-controls-bg);
  padding: 4px 6px;
  gap: 6px;
}

/* Prev / Next buttons */
.carousel-btn {
  flex-shrink: 0;
  background: var(--carousel-btn-bg);
  color: var(--carousel-btn-text);
  border: 1px solid var(--carousel-mid-color);
  padding: 3px 12px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: var(--link-hover-color);
  color: var(--white-color);
  outline: none;
}

.carousel-btn:active {
  background: var(--black-color);
}

/* Pause button — inherits .carousel-btn base styles */
.carousel-btn-pause {
  min-width: 28px;
}
 
/* Visual indicator when paused (▶ showing) */
.carousel-btn-pause.is-paused {
  color: var(--back-color);
  border-color: var(--back-color);
}

/* Dot indicator row (centred between the two buttons) */
.carousel-dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--carousel-mid-color);
  border: 1px solid var(--carousel-dot-border);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
  background: var(--carousel-dot-hover);
  border-color: var(--carousel-dot-hover);
  transform: scale(1.2); 
}

.carousel-dot:hover {
  background: var(--carousel-dot-hover);
}

/* Track: stacks slides on top of each other */
.carousel-track {
  position: relative;
  width: 100%;
  /* Fixed display height — change to suit your images */
  height: 360px;
  overflow: hidden;
}

/* Individual slide */
.carousel-slide {
  position: absolute;
  inset: 0;                 /* fill the track completely */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Image — contained so any aspect ratio fits without cropping */
.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* override the global border-radius: 0 !important rule */
  border-radius: 0 !important;
}

/* ---- Responsive tweaks --------------------------------------------- */
@media (max-width: 900px) {
  .carousel-track {
    height: 280px;
  }
}

@media (max-width: 500px) {
  .carousel-track {
    height: 200px;
  }

  .carousel-btn {
    padding: 3px 8px;
    font-size: 0.85rem;
  }
}