/* =========================
   FONTS
========================= */
@font-face {
  font-family: 'Bright Marching';
  src: url('../fonts/BrightMarching.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Vailery';
  src: url('../fonts/Vailery.otf') format('opentype');
  font-display: swap;
}

/* =========================
   VARIABLES
========================= */
:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #bfa46f; /* Add gold color used for headings */
}

/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Vailery', serif;
  background: var(--white);
  color: var(--black);
}

/* =========================
   HEADER / NAV
========================= */
header {
  background: var(--black);
  border-bottom: 1px solid var(--white);
  padding: 1.5rem 2rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monogram img {
  height: 48px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

main h2 {
  font-family: 'Bright Marching', serif;
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

h3 {
  font-family: 'Bright Marching', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* =========================
   BRIDE PAGE SPECIFIC
========================= */
.bride-info img {
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.bride-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.bridesmaids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.bridesmaid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.bridesmaid h4 {
  font-family: 'Bright Marching', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bridesmaid p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   GROOM PAGE SPECIFIC
========================= */
.groom-info img {
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.groom-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.groomsmen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 4rem;
}

.groomsman img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.groomsman h4 {
  font-family: 'Bright Marching', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.groomsman p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem 2rem;
}

.back-to-top a {
  font-family: 'Vailery', serif;
  color: var(--black);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.back-to-top .arrow {
  font-size: 1.8rem;
}

.back-to-top a:hover {
  opacity: 0.6;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Bride / Groom images full width on mobile */
  .bride-info img,
  .groom-info img {
    max-width: 100%;
  }

  /* Reduce heading sizes slightly */
  main h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  /* Groomsmen / Bridesmaids grid stacks nicely */
  .bridesmaids,
  .groomsmen {
    grid-template-columns: 1fr;
  }

  .bridesmaid p,
  .groomsman p {
    font-size: 0.95rem;
  }
}
/* =========================
   GALLERY PAGE SPECIFIC
========================= */
.gallery-section {
  margin-bottom: 4rem;
  text-align: center;
}

.gallery-section h3 {
  font-family: 'Bright Marching', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gallery-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Image grid for gallery */
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.gallery-images img {
  width: 100%;
  max-width: 350px; /* optional: prevents images from looking too small */
  height: auto;      /* allows proportional scaling */
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}


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

/* Gallery buttons */
.gallery-cta {
  margin-top: 2rem;
}

.gallery-btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.3s ease;
}

.gallery-btn:hover {
  opacity: 0.7;
}

/* Image modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.image-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
}

.image-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: transparent;
  border: none;
}
