/* For debugging layout... */
/*
div, img,
p, h1, h2, h3, h4, h5, h6, 
ul, li
{ border: 0.1px red solid; } 
*/

/* ------- CSS RESET ------------- */
/* https://www.joshwcomeau.com/css/custom-css-reset/ */

*, *::before, *::after {
  box-sizing: border-box;
  overflow-wrap: break-word;
}

*:not(dialog) {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  line-height: calc(1em + 0.5rem);
}

img, picture, video, canvas, svg {
  display: block;
  margin: auto;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* ------- FONT/LINKS ------------- */
body {
	font-family: Segoe, "Segoe UI", "Open Sans", Verdana, sans-serif;
}

a {
  text-decoration: none;
}

a:link, a:visited {
	color: red;
}

a:hover {
	text-decoration: underline;
	opacity: 0.8;
}

/* ------- MENU ------------- */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
  padding: 2px 5px;
  width: 100%;
  background-color: black;
  color: #EEEEEE;
  font-size: 80%;
}

.menu img {
  display: inline-block;
}

.socials img {
  display: inline-block;
  height: 2em;
  width: 2em;
  border-radius: 20%;
  margin: 0.5em 0.2em;
}

.socials {
  margin: 0.5em 0;
}

.menu .socials {
  margin: 0 0;
}

.menu a {
  text-decoration: none;
  font-weight: normal;
}

.menu a:link, .menu a:visited {
  color: pink;
  /*color: #dfdf34;*/
}

/*.menu a:hover {
	 color: #B69F04;
}*/

/* ------- MAIN ------------- */
.main {
  max-width: calc(100vw - 10px);
  width: 1000px;
  margin: 1rem auto;
}

/* ------- MAIN PAGE LAYOUT ------------- */
.frontpage {
  display: flex; 
  gap: 10px;
  width: max-content;
}
@media all and (width <= 700px) {
  .frontpage {
    flex-direction: column;
    align-items: center;
  }
  .frontpage .leftbox {
    width: 100%;
  }
  .frontpage .rightbox {
    width: 100%;
  }
} 

.frontpage .leftbox {
  text-align: center; 
  width: 500px;
  max-width: 100%;
  display: flex; 
  gap: 10px; 
  flex-direction: column;
}

.frontpage .rightbox {
  text-align: center; 
  width: 400px;
  max-width: 100%;
}

/* ------- QUARTET and TEAM PHOTOS ------------- */
.team-box {
  max-width: 100%;
  width: 626px;
}
.team-box h2 {
  font-size: 1em;
  margin-top: 1em;
}
.quartet-box h4 {
  font-size: 1em;
  font-weight: bold;
  margin-top: 1em;
}
.quartet, .team {
  margin: auto;
  max-width: 100%;
  margin-top: 1em;
  background-color: pink;
  border-radius: 0.5em;
}
.quartet {
  width: min-content;
  h2 {
    text-align: center;
    margin: 0 10px;
  }
  h3 {
    text-align: center;
    font-size: 0.8em;
    font-style: italic;
    font-weight: normal;
    margin: 0;
    margin-bottom: 0.2em;
    margin-left: 10px;
    margin-right: 10px;
  }
  p {
    text-align: center;
    margin: 0 10px;
    font-size: 0.9em;
    /*padding-left: 7em;
      text-indent: -7em;*/
    text-wrap: balance;
  }
  .about {
    font-weight: bold;
  }
}

.team {
  width: 100%;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-bottom: 1em;
}
.team h2 {
  margin-top: 1em;
  font-size: 1.2em;
}
.team a:link, .team a:visited {
	color: black;
}

.quartet .pics, .team .pics {
  display: flex;
  margin: auto;
  width: min-content;
  max-width: 100%;
  justify-content: center;
  background-color: black;
  color: white;
  font-size: 80%;
  text-align: center;
  padding: 10px;
  gap: 10px;
  figure {
    width: 144px;
    margin: 0;
    flex: 1 1 100%;
  }
}

/* ------- CHORUS LOGOS ------------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.logos a {
  max-width: 150px;
  min-width: 100px;
  margin: auto 0;
  padding: 5px 0;
}

/* ------- PAGE TITLE ------------- */
.title {
  background-image: url('sv_images/heart-background.png'); 
  background-position: center center;
  background-size: cover;
  text-align: center;
  color: white; 
}
.title h1 {
  padding: 1em; 
}
.title-text h1 {
  padding: 1.5rem; 
  padding-bottom: 0.5em;
}

.title-text h2, .title-text h3 {
  padding: 1.5rem; 
  padding-top: 0;
}

/* ------- GRAY BAR ------------- */
.graybar {
  background-color: gray; 
  font-weight: bold; 
  color: white; 
  text-align: center; 
  padding: 0.5em;
}

/* ------- MATERIALS ------------- */
.materials {
  width: 700px;
}
.materials h2, .materials p {
  padding-top: 1em;
}
.materials li {
  margin-top: 0.2em;
}
.materials .note {
  margin: 0;
  padding: 0;
  font-size: 90%;
  font-style: italic;
}

.materials .imagegrid {
  list-style-type: none;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1em;
}
.materials .imagegrid img {
  max-height: 75px;
  max-width: 200px;
  margin: auto 0;
}
.materials .imagegrid li {
  text-align: right;
  margin: auto 0;
}

/* ------- PINK BOX ------------- */
.pinkbox {
  background-color: pink; 
  padding: 0.5em 1.5em; 
  max-width: 100%;
  width: max-content; 
  margin: auto; 
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.textbox {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

/* ------- SLIDE SHOW ------------- */
.slides {
  width: 100%;
  max-width: 400px;
  max-height: 100vh;
  position: relative;
  margin: auto;
  padding-top: 0;
  img {
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
    border-radius: 15px;
  }
}

.slide {
  display: none;
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {opacity: .1}
  to {opacity: 1}
}

/* ------- EXTERNAL LINKS ------------- */

/*
a[href^="//"]:after, 
a[href^="http://"]:after, 
a[href^="https://"]:after {
} */
.external::after {
  content: url(icons/external-link.png);
  margin: 0 0 0 5px;
}

/* ------- PAGE WIDTHS ------------- */

.w400 {
  width: 400px;
}
.w500 {
  width: 500px;
}
.w600 {
  width: 600px;
}
.w700 {
  width: 700px;
}
.w800 {
  width: 800px;
}
.w900 {
  width: 900px;
}

/* ------- TEXT FORMATTING ------------- */

.center {
  text-align: center;
}
.left {
  text-align: left;
}
.italic {
  font-style: italic;
}
.bold {
  font-weight: bold;
}
.small {
  font-size: 80%;
}