body {
  font-family: serif;
  text-align: center;
  padding: 2rem;
  background-color: #0a0f1a;
  color: rgb(245, 226, 122);
}

hr {
  border-color: rgb(245, 226, 122);
}

.gilded-border {
  border-width: 20px;
  border-image: url('images/byzantine-horizontal-border.png') 20 repeat;
  border-style: solid;
}

.circle-frame {
  width: 200px;
  height: 200px;
  border: 8px solid gold;
  border-radius: 50%;
  padding: 10px;
  background: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spacer {
  height: 1vh; /* Creates vertical scroll space */
}

.reveal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 75vh;
  padding: 50px 50px;
  overflow: hidden;
}

.reveal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 1s ease, opacity 1s ease;
}

.reveal-text {
  opacity: 0;
  max-width: 90%;
  margin-top: 2rem;
  transition: opacity 1s ease;
  background-color: rgba(0, 0, 0, 0.4); /* optional */
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Active state (mobile & desktop) */
.reveal-container.active .reveal-text {
  opacity: 1;
}

/* Desktop layout & animation */
@media (min-width: 768px) {
  .reveal-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px;
  }

  .reveal-image {
    width: 30%;
    height: 30%;
    max-height: none;
    object-fit: cover;
  }

  .reveal-text {
    width: 35vw;
    margin-top: 0;
  }

  .reveal-container.active .reveal-image {
    transform: translateX(30%);
  }
}

