/* ----- Global Styles ----- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 18px;
}

/* Links */
a {
    color: #7a1f1f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ----- Layout ----- */
header {
    text-align: center;
    padding: 40px 0 20px;
}
nav {
    margin-top: 10px;
    text-align: center; /* explicit centering for safety */
}
nav a {
    margin: 0 10px;
    font-size: 0.9em;
    letter-spacing: 1px;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ----- Art Gallery (1x1 vertical scroll) ----- */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.gallery-item {
    text-align: center;
}
.gallery-item img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 2px;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.gallery-item img:hover {
    filter: none;
    transform: none;
}


.gallery-item .title {
    font-style: italic;
    margin-top: 8px;
    font-size: 0.95em;
    color: #555;
}

/* ----- Floating Poetry ----- */
.poem {
    position: relative;
    margin: 120px 0;
    min-height: 60vh; /* give the spans room to 'float' */
}
.poem span {
    position: absolute;
    max-width: 260px;
    opacity: 0.9;
}
.poem span:nth-child(1) { top: 0; left: 5%; }
.poem span:nth-child(2) { top: 38%; right: 10%; }
.poem span:nth-child(3) { bottom: 0; left: 30%; }
.poem span:nth-child(4) { bottom: 18%; right: 6%; }

/* About & Contact */
.about-text, .contact-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #333;
}
/* Index page image styling */
.index-img {
  width: 350px;      /* Adjust width as needed */
  height: auto;      /* Keeps the original aspect ratio */
  display: block;    /* Makes it act like a block element */
  margin: 20px auto; /* Centers the image and adds vertical spacing */
  border-radius: 4px; /* Optional: subtle rounding for a soft edge */
}

/* Gallery container: center and limit width */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

/* Each gallery item */
.gallery img {
  max-width: 90vw;      /* max 90% of viewport width */
  max-height: 80vh;     /* max 80% of viewport height */
  width: auto;
  height: auto;
  object-fit: contain;


}

/* Titles under images */
.gallery figcaption {
  margin-top: 0.5rem;
  font-style: italic;
  color: #ddd;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .gallery {
    gap: 3rem;
  }
}
.enter-box {
  background-color: white;
  color: black;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  font-family: serif;
  font-size: 16px;
  text-align: center;
  border: 1px solid black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}


    


