/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background-color: #fefcf9;
  color: #2c2c2c;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.header {
  padding: 1.5rem;
  text-align: left;
  background-color: #fefcf9;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.2rem;
}

.hero {
  position: relative;
  text-align: left;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-image {
  width: 100%;
  height: 120vh;
  object-fit: cover;
  display: block;
}

.quote {
  position: absolute;
  top: 20%;
  left: 5%;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2.25rem;
  font-size: 3.1rem;
  max-width: 90%;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 0.8px;
  z-index: 2;
}

.quote-author {
  font-size: 1rem;
  margin-top: 1rem;
  font-style: normal;
}

.invite {
  display: flex;
  flex-direction: column;
  background-color: #8a5c3d;
  color: white;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.invite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.invite::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.invite-title h2,
.invite-content h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
}

.invite-title h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.invite-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.invite-content h3 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.invite-photo-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.invite-photo {
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.invite-photo:hover {
  transform: scale(1.02);
}

.invite-text {
  max-width: 500px;
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.invite-greeting {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.invite-signature {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.invite-signature strong {
  font-size: 1.5rem;
  display: block;
  margin-top: 0.5rem;
}

.details {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.details-box {
  background-color: #e9dfd0;
  padding: 2.5rem;
  border-radius: 10px;
  text-align: center;
}

.details-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.details-box p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.form-group {
  margin: 1.5rem 0;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #2c2c2c;
}

.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #8a5c3d;
  border-radius: 5px;
  background-color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #2c2c2c;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #67684a;
  box-shadow: 0 0 0 2px rgba(103, 104, 74, 0.2);
}

.submit-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background-color: #8a5c3d;
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #67684a;
  transform: translateY(-2px);
}

.gallery {
  padding: 2.5rem 1rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.gallery h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-images img:hover {
  transform: scale(1.02);
}

.footer {
  background-color: #67684a;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1rem;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
  }

  .gallery-images img {
    height: 200px;
  }

  .form-group select {
    font-size: 1rem;
  }
  
  .submit-btn {
    width: 100%;
  }

  .hero {
    min-height: 45vh;
  }

  .hero-image {
    height: 45vh;
  }

  .quote {
    top: 15%;
    left: 5%;
    right: auto;
    max-width: 45%;
    margin: 0;
    font-size: 15px;
    padding: 1.5rem;
  }

  .quote-author {
    font-size: 10px;
  }
}


@media (min-width: 768px) {
  .invite-photo-text {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .invite-photo {
    margin-right: 3rem;
  }

  .gallery {
    padding: 3rem 2rem;
  }

  .gallery-images {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }

  .gallery-images img {
    height: 200px;
  }

  .quote-author {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .gallery {
    padding: 4rem 3rem;
  }

  .gallery-images {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    padding: 0 3rem;
    max-width: 100%;
  }

  .gallery-images img {
    height: 250px;
  }
}