html,body,#scrollContainer{
/*  scroll-snap-type: y proximity; */
scroll-behavior: smooth;
}

main{
  padding:1em;


}

body{
  font-family:sans-serif;
  padding:0;
  margin:0;
  color:#333333;
  font-size:1.2em;
  line-height: 1.5;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
  letter-spacing: 0.01em;
  font-weight: 100;

}

vidHolder{
  display:inline-block;
margin:auto;
margin-top:50px;
margin-bottom:50px;
}

video{
  max-width:100%;
  aspect-ratio: 16 / 9;
}

header{
  background: rgb(0,0,0);
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.7) 58%), url("img/BlackBeardsFlotilla.jpg");
  text-transform: uppercase;
  color:white;
  background-position: center center;
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	background-size: cover;
	position: relative;
  background-attachment: fixed;
  min-height:200px;
  width: 100vw;
  max-width:100%;
  margin:0px;

}

.hTitle{
width:100%;
position:absolute;
bottom:3em;
text-align:center;
color: #dadada;
text-shadow: 2px 2px rgba(0, 0, 0, 0.5) !important;
 /* scroll-snap-align: start; */
}

.artCredit{
width:100%;
position:absolute;
bottom:0.5em;
right:0.5em;
text-align:right;
color: #dadada;
font-size:0.9em;
opacity:0.3;
}

header h1{

  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  color:#FFF;
}

strong {
  font-weight: bold;
}

h1,
h2,
h3,
h4 {
	line-height: 1.4;
	padding: 1.5em 0 0;
  font-weight:bold;

}

h1 {
	font-size: 24px;
	font-size: 1.5rem;
	font-weight: 300;
}

h2{
	font-size: 20px;
	font-size: 1.6em;
	font-weight: 600;
  text-transform: uppercase;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

h3 {
	font-size: 18px;
	font-size: 1.2em;
  border-bottom:1px solid #333333;
  width:95%;
  padding-left:2%;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

h4 {
	font-size: 16px;
	font-size: 1rem;
	font-weight: 800;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

p {
	margin: 0 0 1.5em;
	padding: 0;
}

article p::first-letter {
    font-size:1.1em;
    font-weight: bold;
}



a {
	color: #222;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	color: #000;
	text-decoration-thickness: 2px;
    transition: 0.3s;

}


hr{
  border-bottom:2px solid silver;
  border-top:none;
}

schedItem{
  display:block;
  margin:10px;
  margin-bottom:20px;
  padding:25px;
  border: 2px solid #ede7df;
  border-radius:5px;
  background-color:#faf8f5;
}

.memorial{
  display:block;
  padding:10px;
}

#fgallery{
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  width:100%;
  justify-content: center;
}

#thumbHolder{
margin:auto;
}

.galleryLink{
  color:silver;
  background-color:#222;
  border-radius:5px;
  padding:10px;
  text-decoration:none;
  font-size:1.3em;
  text-transform: uppercase;
  font-weight:600;
  margin:3px;
  box-shadow: 2px 2px rgba(0, 0, 0, 0.5);
  display:block;
  text-align:center;
}

.galleryLink:hover{
  color:#FFF;
  background-color:#000;
    transition: 0.3s;
}

#sponsors{
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  width:100%;
  justify-content: space-evenly;

}

.sponsor{
  width:33%;
  -webkit-background-size: contain;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  aspect-ratio: 1 / 1;
  margin-bottom:60px;
  position:relative;
}


.sponsorName {
  color:silver;
  background-color:#222;
  border-radius:5px;
  padding:5px;
  text-align:center;
  margin:auto;
  display:block;
  margin: 0;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);

}

.hide{
    display:none;
}

.sponsor:hover .hide {
  display: block;
  animation: fadeIn 0.6s;
    transition: 0.3s;
}



@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.thumb{
  width:75px;
  height:75px;
  aspect-ratio: 1 / 1;
  margin:1px;
}


.thumb2{
  width:75px;
  height:75px;
  object-fit:cover;
  vertical-align: middle;
  margin:2px;
}

.footerLink{
  border-radius:3px;
  background-color:#b5b5b5;
  color:#FFF;
  width:50px;
  height:50px;
  display:inline-block;
  text-align:center;
  padding:10px;
  border-radius:4px;
}

footer{
  border-top:1px solid #333;
  padding-top:5px;
}

.footerLink:hover{
  background-color:#333333;
    transition: 0.3s;
}


.footerLink img{
  height:50px;
  width:50px;
  margin:auto;
color:yellow;
}

gallery{
  display:flex;
  flex-wrap: wrap;
justify-content: center;
gap: 10px;
}

/******************** Desktop **********************/

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

  .thumb,.thumb2{
    width:120px;
    height:120px;
    aspect-ratio: 1 / 1;
  }

  body{
    font-size:1em  !important;
    line-height:1.5  !important;
  }


  main{
    width:90% !important;
    margin-left:auto;
    margin-right:auto;

  }

  #fgallery{
    width:100% !important;
    justify-content: center;
    margin-left:auto;
    margin-right:auto;


  }

  .frontP{
    min-height:100vh;
  }
}

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

  .thumb,.thumb2{
    width:180px;
    height:180px;
    aspect-ratio: 1 / 1;
  }

  main{
    width:40% !important;
    margin-left:auto;
    margin-right:auto;

  }

  header{
    -webkit-background-size: cover;
    background-size: cover;
    /*min-height:500px;*/
  }

  header h1{
      font-size: 2.5em  !important;
  }

  video{
  width:100%;
  max-width:100%;
    aspect-ratio: 16 / 9;
  }

  .sponsor{
    width:30% !important;
  }



  .memorial{
    display:block;
    min-height:200px;
  }

  #fgallery{
    justify-content: center;
    margin-left:auto;
    margin-right:auto;


  }

  .artCredit{
  font-size:1em !important;
  }


  .modSlides img{
    max-height:95vh;
    max-width:95vw;
    min-height:50vw;
    aspect-ratio:auto;

  }

}






/*********** GALLERY HANDLING *********************************/


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 100%;




}


/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index:5;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
    transition: 0.3s;
}

/* Hide the slides by default */
.modSlides {
  display: none;
    text-align:center;
  margin:auto;
  height:95vh;
  position:relative;
  z-index:2;



}
.modSlides img{
  max-height:95vh;
  max-width:95vw;
  margin: 0;
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}


/* NAVIGATION BUTTONS */
.prev,
.next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index:8;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}


/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
  position:fixed;
  z-index:3;
  bottom:80px;
  margin:auto;
  display:block;
  width:100%;
}

img.demo {
  opacity: 0.6;
  width:75px;
  height:75px;
  aspect-ratio: 1 / 1;
  padding-right:10px;
}



.active,
.demo:hover {
  opacity: 1;
    transition: 0.3s;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: 0.3s;
}

#thumbNHolder{
  width:100% !important;
  margin:auto;
  overflow:hidden;
  height:80px;
  z-index:3;
  background-color:black;
  position:fixed;
  bottom:0px;

}

#thumbNHolder2{
  height: 100%;
  overflow-y:hidden;
  overflow-x: auto;
  white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 17px; /* Increase/decrease this value for cross-browser compatibility */
    box-sizing: content-box;

}


#slideHolder{
height:88vh;
position:relative;
}