@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap');

@font-face {
    font-family: "Milk Cake";
    src: url('./milk_cake/Milk Cake.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Balter Serif";
    src: url('./BalterSerif-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

nav {
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 15px;
    font-family: "Milk Cake";
    font-weight: bold;
    font-size: 40px;
    background-color: #e9806d;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

body {
    background-color: #EDC9BB;
}

a {
    text-decoration: none;
    color: #392231;
}

a:hover {
    text-decoration: underline;
    color: #392231;
}

h1 {
    font-family: "Balter Serif";
    text-align: center;
    font-size: 90px;
    color: white;
    line-height: 1.05;
    overflow-wrap: break-word;
}

h2 {
    text-align: center;
    font-family: "Balter Serif";
    font-size: 50px;
    color: white;
}

h3 {
    font-family: "Balter Serif";
}

p {
    font-family: Atkinson Hyperlegible, sans-serif;
    color: #ffffff;
    font-size: 20px;
}

li {
    font-size: 20px;
    font-family: Atkinson Hyperlegible, sans-serif;
    text-align: center;
    margin: 10px 0 10px 0;
}

ul {
    color: #D69987;
    list-style-position: inside;
    font-weight: bold;
}

main {
    padding: 0 20px;

}

#logo {
    display: block;
    margin: 0 auto;  /* centers the img in its container */
    width: 800px;
    border-radius: 75px;
    margin-bottom: 20px;

}

#social-logos {
    width: 150px;
    display: inline-block;
    margin: 30px;
    padding: 10px 0 10px 0;
}

#footer-photo {
    width: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0 5px 0 0;
    border-radius: 10px;
}

#about-header {
    max-width: 70%;
    gap: 20px;
    display: flex;
    margin: 0 auto;
}

#about-info {
    max-width: 70%;
    width: 100%;
    flex-basis: 100%;
    margin: 0 auto;
}

#latest-title {
    text-align: center;
    font-family: "Milk Cake";
    font-size: 50px;
    text-decoration: underline;
}

#info-container {
    background-color: #522F47;
    text-align: center;
    padding: 5px 10px 5px 10px;
    border-radius: 15px;
    min-height: 150px;
}

#about-title {
    text-align: center;
    margin: 0 auto 20px auto;
    background-color: #522F47;
    color: white;
    border-radius: 15px;
    padding: 20px;
    width: min(90%, 400px);
    box-sizing: border-box;
    line-height: 1.1;
    overflow-wrap: break-word;
}

#events-container {
    background-color: #522F47;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    min-height: 150px;
    overflow: hidden;
}


#about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: #522F47;
    border-radius: 15px;
    padding: 20px;
    max-width: 700px;
    width: min(95%, 700px);
    margin: 20px auto;
    text-align: center;
}

#about-container p {
    max-width: 100%;
    overflow-wrap: break-word;
}

#about-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 3px solid #edc9bb;
    border-radius: 50%;
}

#person-title {
    font-size: 40px;
    margin: 0;
}

#events-title {
    text-align: center;
    margin: 0 auto 20px auto;
    background-color: #522F47;
    color: white;
    border-radius: 15px;
    padding: 20px;
    width: min(90%, 320px);
    box-sizing: border-box;
    line-height: 1.1;
    overflow-wrap: break-word;
}

div.gallery {
  border: 2px solid #e9806d;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
}

div.gallery:hover {
  border: 2px solid #edc9bb;
}

div.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

div.desc {
  padding: 15px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  background: #ffffff;
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #392231;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

.responsive {
  display: inline-block;
  padding: 0 6px;
  margin-bottom: 50px;
  vertical-align: top;
  width: 20%;
  min-width: 180px;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

#events-container .responsive {
  display: inline-block;
  float: none;
}

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