/**
 * Shared site stylesheet
 * - Simple Grid (float-based) + Kevin Hamilton site components
 */

/* ---------------------------
   Base / Reset
--------------------------- */
html, body{
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body{
  color: #333447;
  line-height: 1.5;
}

/* ---------------------------
   Utilities
--------------------------- */
.img-fluid{
  display: block;
  width: 100%;
  height: auto;
}

.mt-2{ margin-top: 2rem; }
.mt-1-5{ margin-top: 1.5rem; }
.mt-1{ margin-top: 1rem; }

.mt-40{ margin-top: 40px; }

/* ---------------------------
   Typography
--------------------------- */
a { color:#264fa8; }
a:hover { background-color: orange; }

p{
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  /* margin: 0 0 1rem; */
}

ul{
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li{ margin-bottom: .75rem; }

b{
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
}
i{
  font-family: "Source Sans 3", sans-serif;
  font-style: italic;
}
b i{
  font-family: "Source Sans 3", sans-serif;
  font-style: italic;
  font-weight: 600;
}

h2{ font-size: 2rem; }
h3{ font-size: 1.7rem;
 font-family: "Source Sans 3", sans-serif;
  text-align: left;
  font-weight: 700;
    letter-spacing: .02rem;
  text-transform: uppercase;
  margin: 0;
 
  line-height: 1.8rem;
   }

   
h4{
  font-size: 1.75rem;
  font-family: "Source Sans 3", sans-serif;
  text-align: left;
  font-weight: 400;
}
h5{
  font-size: 1rem;
  font-family: "Crimson Pro", serif;
  text-align: left;
}

/* Drop-cap */
.firstGraph p:first-of-type:first-letter{
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  float: left;
  font-size: 3.6rem;
  line-height: 3rem;
  margin-right: 7px;
  margin-top: .2rem;
}

/* Replaces repeated inline line-height */
.askMeText{ line-height: 1.75rem; }

/* Switchboard */
.listy{
  font-size: 1rem;
  margin: .7rem;
}
.listy a:hover { background-color: orange; }
.listy a:link { color: black; }

/* Alignment helpers */
.left{ text-align:left; }
.right{ text-align:right; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.justify{ text-align:justify; }

/* ---------------------------
   Header / Footer title component
   (Normalized to avoid “hair to the right”)
--------------------------- */
.wideHead{
  width: 100%;
  background-image: url("http://kevinhamilton.org/images/sky.jpg");
  background-size: cover;
  text-align: center;
  margin-top: 0;
}

.wideButt{
  width: 100%;
  background-image: url("http://kevinhamilton.org/images/ground.jpg");
  background-size: cover;
  text-align: center;
  margin-top: 0;
}

/* No global layout on h1 — component controls layout */
h1{ margin: 0; }

.site-title{
  margin: 0;
  padding: 3rem 0 3rem;
  font-size: 5rem;
  font-family: "Crimson Pro", serif;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #000;
}

/* Header variant: “Hamilton” white */
.wideHead .site-title span{
  color: #000;
}

/* Footer variant: mirrored and inverted colors */
.site-title--footer{
  padding: 4rem 0 2rem;
  margin-top: 2rem;
  transform: scaleX(-1) rotate(180deg);
  color: #fff; /* “Kevin” white */
}
.site-title--footer span{
  color: #fff; /* “Hamilton” black */
}


.site-title a:link {color: #000; text-decoration:none}
.site-title a:hover {color: #000; text-decoration:none; background-color:transparent}
.site-title a:visited {color: #000; text-decoration:none}

.site-title a:link span {color: #000; text-decoration:none}
.site-title a:hover span {color: #000; text-decoration:none; background-color:none}
.site-title a:visited span {color: #000; text-decoration:none}





@media (max-width: 800px){
  .site-title{ font-size: 3rem; }
}




/* ---------------------------
   AskMe image blocks
--------------------------- */
.askMe{
  height: 175px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-weight: 600;
  font-size: 1rem;
}

/* ---------------------------
   Photo caption overlays (museum label style)
--------------------------- */
.photo{
  position: relative;
  display: inline-block;
}

.photo img{
  display: block;
  max-width: 100%;
  height: auto;
}

.photo-caption{
  position: absolute;
  bottom: 14px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  opacity: 0.95;
}

.pos-right{ right: 18px; }
.pos-left{ left: 18px; }

.caption-white{
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.6),
    0 0 6px rgba(0,0,0,0.4);
}

.caption-black{
  color: #111;
  text-shadow:
    0 1px 2px rgba(255,255,255,0.8),
    0 0 6px rgba(255,255,255,0.5);
}

/* ---------------------------
   OpenSeadragon viewer block (safe if unused)
--------------------------- */
.viewer-wrap{
  margin: 18px 0 22px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.viewer{
  width: 100%;
  background: #000;
  aspect-ratio: 13500 / 5383;
  min-height: 280px;
}

@media (max-width: 760px){
  .viewer{
    aspect-ratio: auto;
    height: 42dvh;
    height: 42vh;
    min-height: 240px;
  }
}

.caption{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  background: #000;
  font-weight: 300;
  font-size: 14px;
}

.video-wrap{
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrap iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------
   Simple Grid (float-based)
--------------------------- */
.container{
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.row{
  position: relative;
  width: 100%;
}

.row [class^="col"]{
  float: left;
  margin: 0.2rem 2%;
  min-height: 0.125rem;
}

.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,
.col-7,.col-8,.col-9,.col-10,.col-11,.col-12{
  width: 96%;
}

.row::after{
  content: "";
  display: table;
  clear: both;
}


.menu {
font-family: "Source Sans 3", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .02rem;
  text-align: center;
  font-weight: 600;
  margin: 0;
  color: #6F8FBF;
  line-height:1.5rem;

}


.menu a:link { color: #6F8FBF; text-decoration: none; }
.menu a:hover { background-color: orange }
.menu a:visited { color: #6F8FBF; text-decoration: none; }






.hidden-sm{ display: none; }

@media only screen and (min-width: 33.75em){ /* 540px */
  .container{ width: 80%; }
}

@media only screen and (min-width: 55em){ /* 720px */
  .col-1 { width: 4.33%; }
  .col-2 { width: 12.66%; }
  .col-3 { width: 21%; }
  .col-4 { width: 29.33%; }
  .col-5 { width: 37.66%; }
  .col-6 { width: 46%; }
  .col-7 { width: 54.33%; }
  .col-8 { width: 62.66%; }
  .col-9 { width: 71%; }
  .col-10 { width: 79.33%; }
  .col-11 { width: 87.66%; }
  .col-12 { width: 96%; }

  .hidden-sm{ display: block; }
}

@media only screen and (min-width: 60em){ /* 960px */
  .container{
    width: 75%;
    max-width: 70rem;
  }
}