/* BODY */

body {
    margin:0;
    padding-top: 95px;
    padding-left: 95px;
    padding-right: 5px;
    background-color:rgb(240, 240, 240);
}

/* PAGE HEADER START */
.header {
    position: fixed;
    background-color:white;
    top:0;
    left:0;
    right:0;
    height:90px;
    z-index: 20;
    display: flex;
    align-content: center;
    justify-content: center;
}

.header img {
    height:80px;
}
/* PAGE HEADER END */

/* PAGE SIDEBAR START*/
.sidebar {
    position: fixed;
    top:90px;
    left:0;
    bottom:0px;
    background-color: #81754e;
    color:white;
    width:90px;
    z-index: 20;
    overflow-y: auto;    
}

.sidebar-flex-container {
    display: flex;
    flex-direction: column;
    height:75%;
    margin-top: 15px;
    align-items: center;
    justify-content: space-evenly;
}

/* sidebar icons */
.sidebar-icons {
    margin: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* wrapper preserves layout */
.icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

/* stacked icons */
.icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    transition: opacity 0.25s ease;
}

.icon.hover {
    opacity: 0;
}

/* hover effect */
.sidebar-icons:hover .icon.hover {
    opacity: 1;
}

.sidebar-icons:hover .icon.default {
    opacity: 0;
}

.sidebar-text {
    display:block;
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: "erbaum", serif;
    font-weight: 400;
    text-align: center;
    font-size:small;
    color: rgba(255, 255, 255, 0.9);
}
/* PAGE SIDEBAR END*/



/* PHOTO PAGE START*/
/* Primary Container for Focus Photo on Page*/
/* Mobile Layout */
.primary-photo-grid-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 75%;
  margin: 0 auto;
  align-items: stretch;
  background-color: rgb(240, 240, 240);
}

.map-sidebar{
  max-width:250px;
  margin: 0 auto;
}


/* Desktop Layout */
@media (min-width: 600px) {
  .primary-photo-grid-container {
    flex-direction: row;
    gap: 10px;
    width: 75%;
    margin: 0 auto;
    align-items: stretch;
    background-color: rgb(240, 240, 240);
}

/* Primary photo takes 75% of column */
.primary-photo-left {
  flex:3;
}


/* Map inset takes 25% of column */
.map-sidebar{
  height: auto;  /* keep aspect ratio */
  flex: 1;
}
}

.map-sidebar img{
  width: 100%;   /* fill its container */
  height: auto;  /* keep aspect ratio */
  display: block; /* remove extra space under image */
}

/* Image container for Interactive Photo */
.image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 920;
}

/* Base image for Interactive Photo */
.base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
}

/* SVG overlay for Interactive Photo */
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Align mask and image */
.base, .overlay {
  vertical-align: top;
}

/* Clickable person paths for Interactive Photo */
.person {
  fill: rgba(0,0,0,0);
  pointer-events: all;
  cursor: pointer;
}

.person.active {
  stroke: white;
  stroke-width: 4px;
}

/* Dim overlay for Interactive Photo*/
#dimOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Bio card for Interactive Photo*/
.bio-card {
  position: absolute;
  background: rgba(180,23,48,0.9);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
  display: none;
  z-index: 10;
  max-width: 90%;
}

.bio-card h3 {
  margin: 0 0 0px;
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size:medium;
}

.bio-card h4 {
  margin: 0 0 0px;
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  color: #efb03e;
  text-align: center;
  font-size:medium;
}

#bioText.killed {
  color: #efb03e; /* gold */
  margin: 0 0 0px;
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size:small;
}

#bioText.wounded {
  color: #b2b5ba; /* silver */
  margin: 0 0 0px;
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size:small;
}

#bioText.role {
  color: #121f52; /* blue*/
  margin: 0 0 0px;
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size:small;
}

.grid-container-photo-catalogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.photo-item {
  
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Smalll Screen Display */
@media (max-width: 600px) {

.grid-container-photo-catalogue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
}

.bio-card {
  padding: 5px;
}

.bio-card h3, 
.bio-card h4,
#bioText.killed,
#bioText.wounded,
#bioText.role {
  font-size:x-small;
}
}

/* Click Photo Animation Bar */
.click-photo-grid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  width: fit-content;
  margin: 0 auto;
  place-content: center;
}

.click-photo-button-text {
  display: grid;
  background-color: #f4b13b;
  border-radius: 10px;
  grid-area: 1/1;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom: 20px;
  margin-top:10px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.4);
}

.click-photo-button-icon {
  display: grid;
  grid-area: 1/1;
  align-items: center;
}

.click-photo-button-icon img {
  width: 35px;
  height: auto;
  animation: clickPhoto 2s ease-in-out 3 forwards;
  pointer-events: none;
  }

@keyframes clickPhoto {
  0% {
    transform: translate(50px, 10px);
    opacity: .75;
  }

  100% {
    transform: translate(25px, 5px);
    opacity: 0;
  }
}


/* PHOTO PAGE END*/


/* FIGURES AND CAPTIONS START*/
figure {
  margin:0;
  place-items: center;
}

figcaption {
  text-align: center;
  margin-top: 2px;
  font-size: 0.9rem;
  color: white;
  font-family: "merriweather", serif;
}

figcaption h1,
figcaption h2,
figcaption h3 {
  margin: 0;
  font-family: "merriweather", serif;
}

figcaption h1 { 
  font-size: 0.9rem; 
  color: rgb(9, 30, 46); 
}

figcaption h2 { 
  font-size: 0.75rem; 
  color: rgb(129, 117, 78); 
}

figcaption h3 {
  font-size: 0.7rem; 
  color: rgb(9, 30, 46); 
  font-weight: 300;
  font-style: italic; 
}  
/* FIGURES AND CAPTIONS END*/


/* STORIES START*/
.story_title {
    margin: 20px;
    font-family: "merriweather", serif;
    font-weight: 700;
    text-align: center;
    font-size:x-large;
    color: rgb(0, 0, 0)
}

.story_subtitle {
    margin-top: 5px;
    margin-bottom: 0px;
    font-family: "merriweather", serif;
    font-weight: 400;
    text-align: center;
    font-size:large;
    color: #818283;
}
.story_subheading {
    margin: 0px;
    font-family: "merriweather", serif;
    font-weight: 300;
    text-align: center;
    font-size:medium;
    color: #818283;
}

 /* Base Layout (Mobile First) */

.grid-story-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Shared styling for all grid items */
.grid-story-item,
.grid-story-item-title {
  display: grid;
  text-align: center;
}

/* Title styling */
.grid-story-item-title {
  font-size: xx-large;
  align-content: center;
}

/* Regular item styling */
.grid-story-item {
  font-size: large;
  align-content: center;
}

/* Modifier for top-aligned content (story/second column) */
.grid-story-item.align-top {
  align-content: start;
}

/* story photos */
.grid-story-item img {
  max-width: 50%;
  max-height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* Figure styling */
.photo-figure {
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.photo-figure-caption {
  font-size: medium;
  color: bisque;
  background-color: blue;
  text-align: center;
  margin: auto 0;
}

/* Desktop Layout */

@media (min-width: 600px) {

  .grid-story-container {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 0.25fr repeat(3, 1fr);
  }

  /* Title spans full width */
  .grid-story-item-title {
    grid-column: 1 / 3;
  }

  /* Left column items */
  .grid-story-item:nth-of-type(2) { grid-row: 2; }
  .grid-story-item:nth-of-type(3) { grid-row: 3; }
  .grid-story-item:nth-of-type(4) { grid-row: 4; }

  /* Right column large item */
  .grid-story-item:last-of-type {
    grid-column: 2;
    grid-row: 2 / 5;
  }

/* story photos */
.grid-story-item img {
  max-width: 70%;
  max-height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
}

.h1--text{
    margin: 20px;
    font-family: "merriweather", serif;
    font-weight: 700;
    text-align: center;
    font-size:x-large;
    color: rgb(0, 0, 0)
}

.h2--text{
    margin: 0px;
    font-family: "merriweather", serif;
    font-weight: 700;
    text-align: center;
    font-size:large;
    color: #880502;
}

.h2--text-b{
    margin: 0px;
    font-family: "merriweather", serif;
    font-weight: 700;
    text-align: center;
    font-size:large;
    color: #000000;
}


.h3--text{
    margin: 0px;
    margin-bottom: 5px;
    font-family: "merriweather", serif;
    font-weight: 400;
    text-align: center;
    font-size:medium;
    color: rgba(0, 0, 0, 0.9);
}



.paragraph{
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 5px;
    font-family: "merriweather", serif;
    font-weight: 400;
    text-align:left;
    font-size:medium;
    color: rgba(0, 0, 0, 0.9)
}
/* STORIES END*/

/* FOOTER START*/
.hr_half {
    margin-top: 20px;
    width: 66%;
    height:1px;
    background-color: black;
}

.logo-footer img {
    display:block;
    height:45px;
    margin:auto;
}
.footer_copyright {
    display:block;
    text-align: center;
}
/* FOOTER END*/


/* INDEX PAGE LOGO GRID */

.two-column-flex-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 30px;
  align-items: center;
  background-color: white;
  width: 75%;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.left-column {
  display: flex;
  flex: 1
}

.left-column img {
  width: 100px;
  height: auto;
  margin: 0 auto;
}

.right-column {
  display: flex;
  flex: 3;
  min-width: 0;
  
}

.paragraph-grid {
    margin-top: 15px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-family: "merriweather", serif;
    font-weight: 400;
    text-align:left;
    font-size:medium;
    color: rgba(0, 0, 0, 0.9);
    overflow-wrap: break-word;
}

@media (min-width: 600px) {
  .two-column-flex-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.paragraph-grid {
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 65px;
    margin-bottom: 5px;
    font-family: "merriweather", serif;
    font-weight: 400;
    text-align:left;
    font-size:medium;
    color: rgba(0, 0, 0, 0.9);
    overflow-wrap: break-word;
}
}




