.img {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nav {
  margin: 20px;
}


p,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Instrument Serif", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

p2,
.footer2-text {
  font-family: "UnifrakturMaguntia", cursive;
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  color: #0505FE;
}

p {
  margin: 10px;
  font-size: 18px;
  text-shadow: 1px 0 10px rgb(255, 255, 255);
  color: rgb(49, 50, 50)
}

h2 {
  margin-top: 20px;
  font-size: 34px;
}

.footer {
  background-color: #DCF7D2;
  padding: 10px 0;
  text-align: center;
  margin-top: 50px;
  min-height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer2 {
  background-color: #EA4C89;
  padding: 10px 0;
  text-align: center;
  margin-top: 50px;
  min-height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  background-color: rgba(220, 247, 210, 0.7);
}

.footer2-text {
  margin: 0;
  color: #FAEAEA;
  font-size: 14px;
}

.bio-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
  padding: 72px;
}

.bio-cv {
  padding: 0 72px 48px;
}

.bio-cv > p2 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px ;
  text-align: left;
  line-height: 2;
}

.bio-cv > p:first-child {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

@media (max-width: 991px) {
  .bio-cv {
    padding: 0 32px 40px;
  }
}

@media (max-width: 520px) {
  .bio-cv {
    padding: 0 20px 32px;
  }
}

.bio-copy p {
  text-align: start, top;
}

.bio-photo {
  display: flex;
  justify-content: center;
}

.bio-photo img {
  width: 70%;
  max-width: 420px;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .bio-intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }

  .bio-photo img {
    width: 80%;
  }
}

@media (max-width: 520px) {
  .bio-intro {
    padding: 32px 20px;
  }
}

/* Drifting background cutouts (see floaters.js) */
.floaters {
  position: absolute; /* covers the whole page and scrolls with it */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;       /* replaced by the full page height in floaters.js */
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.floater {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  will-change: transform;
  user-select: none;
  transition: filter 150ms;
}

/* Grab hand when hovering a cutout, closed hand while dragging */
html.floaters-can-grab,
html.floaters-can-grab body {
  cursor: grab;
}

html.floaters-grabbing,
html.floaters-grabbing * {
  cursor: grabbing !important;
  user-select: none;
}

/* Lift the cutout slightly while it's held */
.floater-held {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

/* Logo left, buttons right, on one line */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 90px;
  width: auto;
}

.page-start {
  margin-top: 60px;
}

.earlier-gallery {
  margin-top: 60px;
}

.earlier-return {
  display: flex;
  justify-content: flex-start;
  padding: 20px 30px 0;
}

.earlier-return .button-1 {
  margin-bottom: 20px;
}

.earlier-gallery #gallery2 {
  padding-top: 0;
}

.button-1.nav-toggle {
  display: none;
  font-size: 20px;
}

/* Mobile: collapse buttons into a dropdown */
@media (max-width: 630px) {
  .page-start {
    margin-top: 24px;
  }

  .earlier-gallery {
    margin-top: 24px;
  }

  .earlier-return {
    padding-top: 16px;
  }

  .button-1.nav-toggle {
    display: inline-block;
  }

  .nav-logo img {
    height: 80px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    padding: 8px;
    background-color: rgba(250, 234, 234, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    display: flex;
  }
}

.responsive {
  max-width: 100%;
  height: auto;
}

/* Paintings in the gallery (built by paintings.js) */
#gallery,
#gallery2 {
  padding: 30px;
}

.painting {
  width: 500px;
  border-radius: 8px;
}

.painting-item {
  display: flex;
  flex-direction: column;
}

.painting-item .img {
  flex: 0 0 auto;
  width: 500px;
  order: 0;
}

.painting-caption {
  margin-bottom: 0;
  order: 1;
  max-width: 450px;
  font-family: "Instrument Serif", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(49, 50, 50);
  text-shadow: 1px 0 10px rgb(255, 255, 255);
}

.painting-even {
  align-items: flex-start;
}

.painting-odd {
  align-items: flex-end;
}

.painting-odd .painting-caption {
  text-align: right;
}

@media (max-width: 767px) {
  .painting-item,
  .painting-even,
  .painting-odd {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    box-sizing: border-box;
  }

  .painting-item .img {
    flex-basis: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .painting-caption,
  .painting-odd .painting-caption {
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: left;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }
}

button:disabled {
  background-color: #DCF7D2;
  color: #0505FE;
  opacity: 0.7;
  cursor: default;
}

.button-1 {
  background-color: #EA4C89;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #FAEAEA;
  cursor: pointer;
  display: inline-block;
  font-family: "UnifrakturMaguntia", cursive;
  font-size: 24px;
  font-weight: 400;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-1:hover,
.button-1:focus {
  background-color: #F082AC;
}
