/* CSS file for Wilkins family history biographies page (biographyScreen.css)
   (C) 2025 R Wilkins   */

  * {
    box-sizing: border-box;
  }

  figure {
    float: left;
    padding: 0;
    /*border: solid green 2px;*/
  }

  figcaption {
    color: black;
    font-size: 14px;
    font-weight: bold;
    padding: 2px;
    text-align: center;
  }

  .photos {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    justify-content: center;
    padding: 0 5px;
  }
  
  p.draft {
   margin: 20px 30px;
	 color: blue;
   background-color: lightBlue;
	}
  
  .photo {
    object-fit: contain;
    margin-top: 10px;
  }
  
  h2 {
    color: black;
    font-weight: bold;
    text-align: center;
  }
 
  #pTree img {
   display : block;
   margin-top: 20px;
   /*margin-bottom: 30px;*/
	 margin-left: auto;
	 margin-right: auto;
	 width: 92%;
	 height: 100%;
	 /*background-color: red;*/
   /*border: solid pink 2px;*/
   }

  #pTree h1 {
   text-align: center;
   font-size: large;
   font-style:  normal;
   color: black;
   padding: 0 0 5px 0;
   background-color: transparent;
  }

  #pTree > h2 {
   text-align: center;
   font-size: medium;
   font-style:  normal;
   color: black;
   padding: 0 0 2px 0;
   background-color: transparent;
  }

  .sup {
  /*	vertical-align: baseline; */
	  position: relative;
	  font-size: 0.8em;
	  bottom: 0.5em;
  }

/* 0. Extra small phones, 390px and down */
  @media only screen and (max-width: 390px) {

  #photo {
    width: 40%;
    padding: 5px 10px 5px 10px;
    margin: 15px 20px 0 10px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  .figure {
    margin: 10px 10px 10px 10px;
    margin: 2px solid green;
  }

  h2 {
    font-size: small;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
  #pTree {display: none;}

  .dispTree {
    display: none;
  }
  
  .photo {
    height: 200px;
    width: auto;
    /*margin: 2px solid green;*/
  }
  
  .photos {
    margin-top: 10px;
    padding-top: 0;
	  /*border: solid 1px red;*/
	 }
}

/* 1. Small devices, from 391px up to 450px) */
  @media only screen and (min-width: 391px) and (max-width: 450px) {

  #photo {
    width: 50%;
    padding: 5px 10px 5px 10px;
    margin: 10px 20px 0 10px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  figure {
    margin: 15px 15px;
  }

  h2 {
    font-size: small;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
  #pTree {
    display: none;
  }

  .dispTree {
    display: none;
  }
  
  .noDispTree {
    display: inline-block;
    font-size: small;
    text-align: left;
    /*margin: 0 18px 0 18px;*/
    color: #000000;
    /*border: 2px solid mediumBlue;*/
  }
  
  .photo {
    height: 200px;
    width: auto;
  }
}

/* 2. Small devices, from 451px up to 600px) */
  @media only screen and (min-width: 451px) and (max-width: 600px) {

  #photo {
    width: 55%;
    padding: 5px 10px 5px 10px;
    margin: 10px 20px 0 10px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  figure {
    margin: 20px 25px;
  }

  h2 {
    font-size: small;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
  #pTree {display: none;}

  .dispTree {
    display: none;}
  
  .photo {
    height: 250px;
    width: auto;
  }
}

/* 3. Small devices (portrait tablets and large phones, from 601px up to 768px) */
  @media only screen and (min-width: 601px) and (max-width: 768px){

  #photo {
    width: 55%;
    padding: 5px 10px 5px 10px;
    margin: 10px 20px 0 10px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  figure {
    margin: 20px 35px;
  }

  h2 {
    font-size: small;
    text-align: center;
	  /*border: solid 1px red;*/
  }
               
	#pTree {
	  display: block;
	  margin-top:20px;
	}

  .dispTree {
    display: inline;
    font-size: medium;
  }
  
  .photo {
    height: 350px;
    width: auto;
  }
}

/*4. Medium devices (landscape tablets, from 769px up to 991px) */
  @media only screen and (min-width: 769px) and (max-width: 991px) {

  #photo {
    width: 55%;
    padding: 5px 10px 5px 10px;
    margin: 13px 20px 0 10px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  figure {
    margin: 20px 35px;
  }

  h2 {
    font-size: medium;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
	#pTree {
	  display: block;
	  margin-top:20px;
	}

  .dispTree {
    display: inline;
    font-size: medium;
  }

  .photo {
    height: 400px;
    width: auto;
  }
}

/* 5. Large devices (laptops/desktops, from 992px up to 1200px) */
  @media only screen and (min-width: 992px) and (max-width: 1200px) {

  #photo {
    width: 30%;
    padding: 5px 10px 5px 10px;
    margin: 15px 30px 0 30px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
   figure {
    margin: 20px 50px;
  }

  h2 {
    font-size: medium;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
	#pTree {
	  display: block;
	  margin-top:20px;
	}

  .dispTree {
    display: inline;
    font-size: medium;
  }

  .photo {
    height: 400px;
    width: auto;
  }
}

 /*6. Extra large devices (large laptops and desktops, 1201px and up) */
  @media only screen and (min-width: 1201px) {

  #photo {
    width: 20%;
    padding: 5px 10px 5px 10px;
    margin: 20px 30px 0 30px;
    float: left;
  	/*border: solid 2px green;*/
  }
  
  #photo img {
  	width:100%;
  }
  	
  #photoCaption {
    font-size: small;
  	font-weight: bold;
  	text-align: center;
  }
  	
  figure {
    margin: 20px 50px;
  }

  h2 {
    font-size: medium;
    text-align: center;
	  /*border: solid 1px red;*/
  }
  
  #pTree {
    display: block;
	  margin-top: 50px;
  }

  .dispTree {
    display: inline;
    font-size: medium;
  }

  .photo {
    height: 400px;
    width: auto;
  }
}