/* 
red: #e33d25 
yellow: #f0f05d
*/

body {
  font-family: "Lora", sans-serif;
  margin: 0;
  line-height: 1.3;
}

*::selection {
  background: #f0f05d;
}

*::-moz-selection {
  background: #f0f05d;
}

a, a:visited {
  color: black;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.navbar {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding-top: 5px;
}

@media screen and (max-width: 650px) {
  .navbar {
    justify-content: center;
  }
}

.nywc-logo {
  margin-left: -100px;
  width: 400px;
}

.take-action {
  font-family: 'Franklin', helvetica, arial, sans-serif;
  cursor: pointer;
  border-radius: 3px;
  background-color: #e33d25;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 12px;
  margin-right: 10px;
  margin-top: 7px;
  color: white;
}

@media screen and (max-width: 650px) {
  .take-action {
    display: none;
  }
}

a.take-action, a.take-action:visited {
  color: #ffffff;
}

h1 {
  font-size: 3.5em;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  text-align: center;
  padding: 0 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

h2 {
  text-align: center;
}

.dek {
margin-top: 0;
  font-size: 2em;
  letter-spacing: -0.3px;
  font-weight: normal;
}

p {
  font-size: 15px;
}

.intro {
  margin: 16px auto;
  max-width: 680px;
  padding: 0 10px;
}

.section-hed {
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 40px 0 20px;
  font-size: 32px;
  color: #111;
  padding: 0 5px;
}

.card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 10px;
}

.card {
  border: 1px solid #efefef;
  border-radius: 15px;
  box-shadow: 0 0 15px #efefef;
  display: inline-block;
  height: 370px;
  padding: 5px 20px;
  position: relative;
  text-align: center;
  width: 270px;
  cursor: pointer;
}

.card:hover {
  background: #f0f05d;
}

/* Desktop - plus sign on hover */
@media screen and (min-width: 651px) {
  .card-overlay {
    background: #fff;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 100%);
    border-radius: 15px;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .plus {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    margin-left: -15px;
    width: 30px;
    z-index: 1;
  }

  .card:hover .plus {
    display: block;
  }

  .card:hover .card-overlay {
    display: block;
  }
}

/* Mobile card styling */
@media screen and (max-width: 650px) {
  .card {
    height: auto;
    width: 100%;
  }

  .card-flexbox {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 12px;
  }

  .card-text {
    width: calc(100% - 105px);
    text-align: left;
  }

  .plus {
    position: relative;
    width: 20px;
    z-index: 1;
  }

  .card-overlay {
    background: #f0f05d;
    width: 100%;
    height: 38px;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
  }
}

sup {
  font-size: 9.5px;
}

.picture-container {
  background: #efefef;
  border-radius: 90px;
  border: 6px solid #fff;
  display: grid;
  height: 90px;
  margin: 20px auto;
  overflow: hidden;
  place-items: center;
  pointer-events: none;
  position: relative;
  width: 90px;
}

.picture {
  height: 90px;
  position: absolute;
}

.profile-container {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 15px;
  box-shadow: 0 0 15px #999;
  height: calc(100vh - 150px);
  min-width: 250px;
  padding: 0 30px;
  position: fixed;
  top: 0;
  width: calc(100vw - 250px);
  z-index: 1;
}

.dialog-content {
  width: 100%;
  height: 100%;
}

.close-button {
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #aaa;
  cursor: pointer;
  height: 3.5rem;
  position: absolute;
  right: 20px;
  top: 20px;
  width: 3.5rem;
  z-index: 2;
}

.close-button img {
  rotate: 45deg;
  width: 80%;
  pointer-events: none;
}

.close-button:hover img {
  rotate: 60deg;
  transition: rotate 250ms;
}

.name {
  letter-spacing: -.2px;
  text-align: center;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.profile-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.profile-p {
  margin-top: 18px;
  margin-bottom: 18px;
}

.inline-image {
  margin: 30px auto;
  max-width: 640px;
  width: 100%;
}

.inline-image img {
  border: 1px solid #efefef;
  width: 100%;
}

.inline-image figcaption {
  font-size: 12px;
  line-height: 1.2;
}

.footnote-hed, .card-note, .footnote {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 6px;
  margin-bottom: 6px;
  word-break: break-word;
}

footer {
  background-color: #f0f05d;
  margin-top: 120px;
  padding: 40px;
}

footer a {
  text-decoration: none;
  text-align: center;
  display: block;
}

.footer-link {
  color: #111;
}

.footnote:last-child {
  padding-bottom: 30px;
}