/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* width includes padding + border */
  background-color: seashell;
}

.menu-select {
  color: transparent;
}

body {
  font-family: "EB Garamond", serif;
  color: #222;
}

header {
  margin-top: 50px;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

header h1 {
  display: flex;
  justify-content: center;
  font-size: large;
}

header h1 a {
  color: black;
  text-decoration-line: none;
}

nav {
  margin-right: 20%;
  margin-left: 20%;
  padding-top: 15px;
}

nav ul {
  display: flex;
  justify-content: space-between; /* spaces items evenly */
  list-style: none;
  font-style: italic;
}

nav ul a {
  color: black;
  font-size: large;
  text-decoration-line: none;
}

a:hover .menu-select {
  display: inline;
  color: black;
}

p a {
  color: black;
  transition: font-size 0.2s;
}

p a:hover {
  font-size: 1.1em;
}

footer {
  padding-left: 10%;
}

.center-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px auto;
  max-width: 600px;
  min-height: 320px;
}

.center-image img {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.center-image pre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-10%, -50%);
  color: rgb(255, 73, 73);
  font-size: 1.5em;
  z-index: 2;
  background: transparent;
  white-space: pre;
  pointer-events: none;
}

.bio {
  display: flex;
  flex-direction: column;
  justify-content: left;
  margin: 0 25% 20px 25%;
  margin-top: 60px;
  text-indent: 1.5em;
}

.jp {
  padding-top: 2em;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 32px 20%;
}

.art-photo {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.art-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.art-photo:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.art-photo:hover img {
  transform: scale(1.04);
}

#mirror {
  display: flex;
  align-content: center;
  margin: 50px auto 0 auto;
  margin-top: 50px;
  width: 256px;
  height: 361.125px;
}

@media (max-width: 900px) {
  header, nav, .center-image, .art-gallery {
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  header {
    max-width: 500px;
  }
  .center-image {
    flex-direction: column;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .center-image img, .center-image p {
    transform: none;
    width: 80vw;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    text-align: center;
  }
  .center-image pre {
    transform: rotate(90deg);
    left: 30%;
    top: 50%;
    width: auto;
  }
  .art-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 5%;
  }
  .art-photo img {
    height: 140px;
  }
}

@media (max-width: 600px) {
  header, nav, .art-gallery {
    margin-left: 5%;
    margin-right: 5%;
    padding: 0;
  }
  .center-image img {
    width: 96vw;
    max-width: 96vw;
  }
  .center-image pre {
    transform: rotate(90deg);
    left: 20%;
    top: 50%;
    width: auto;
    font-size: clamp(1.2em, 6vw, 2.5em);
  }
  .art-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 0;
  }
  .art-photo img {
    height: 96px;
  }
}
