/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: #f8f5f2;
  color: #2c2c2c;
  line-height: 1.6;
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* Headings */
h1, h2 {
  font-family: 'Georgia', serif;
  font-weight: 400;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  color: #4a403a;
}

/* Paragraphs & Text */
p, li {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

ul {
  list-style: disc;
  padding-left: 20px;
}

/* Links */
a {
  color: #6a4f3b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #6a4f3b;
}

/* Sections */
section {
  margin-bottom: 60px;
}

#hero {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

#hero em {
  display: block;
  font-size: 1.25rem;
  margin-top: 10px;
  color: #6a4f3b;
}

.header-invite{
  font-family:"gravesend-sans", sans-serif;
  font-size: 2em;
  line-height:2em;
  font-weight:bolder;
  display:flex;
  align-items:center;
  justify-content:center;

}

footer {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 30px;
  font-size: 0.95rem;
}

/*---Portfolio link----*/
#portfolio-form {
  margin-top: 10px;
}

#portfolio-form input {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 8px;
}

#portfolio-form button {
  padding: 8px 14px;
  background-color: #6a4f3b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#portfolio-form button:hover {
  background-color: #543e2c;
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 20, 10, 0.6); /* soft dark tint */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Lock form container */
#portfolio-lock {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Overlay fade-out */
#overlay.hide {
  opacity: 0;
  visibility: hidden;
}

/* Portfolio fade-in (already in use) */
.fade-in {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

.portfolio-intro{
  margin-top:-40px;

}

#portfolio {
  position: relative;
  padding: 40px 20px;
}

/* Overlay dim within section */
#portfolio-lock-wrapper {
  position: relative;
  background-color: #f7f4f1;
  border-radius: 12px;
  padding: 40px 20px;
  overflow: hidden;
  margin-bottom: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Soft dark tint over background */
#overlay-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 20, 10, 0.4);
  z-index: 1;
  transition: opacity 0.6s ease;
}

/* Form floats above dim */
#portfolio-lock {
  position: relative;
  z-index: 2;
  text-align: center;
}

#portfolio-lock input {
  padding: 10px 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  margin-right: 8px;
}

#portfolio-lock button {
  padding: 10px 16px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}

