:root {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: #fff; }

body { overflow-x: hidden; }

img { display: block; max-width: 100%; }

.site-shell {
  width: 980px;
  margin: 68px auto 0;
}

.page-stage {
  position: relative;
  display: grid;
  grid-template-columns: 320px 660px;
  width: 980px;
  min-height: 665px;
}

.brand-panel {
  position: relative;
  width: 320px;
  min-height: 665px;
}

.brand-mark {
  width: 301px;
  height: auto;
  margin: 65px 0 0 10px;
}

.social-icons {
  display: flex;
  gap: 5px;
  width: 70px;
  height: 30px;
  margin: 37px auto 0;
}

.social-icons span,
.social-icons img { width: 30px; height: 30px; }

.home-sponsor {
  max-width: 250px;
  margin: 28px auto 0;
  padding: 0 10px;
  color: #505050;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.home-sponsor a { color: #333; text-decoration: underline; white-space: nowrap; }

.page-content { position: relative; width: 660px; min-height: 665px; }

.gallery-wrap {
  position: relative;
  width: 100%;
  height: 655px;
  padding: 5px 15px 0 5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 210px);
  gap: 5px;
}

.gallery-button {
  appearance: none;
  display: block;
  width: 100%;
  height: 210px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eee;
  cursor: zoom-in;
}

.gallery-button img { width: 100%; height: 100%; object-fit: cover; }

.gallery-controls {
  position: absolute;
  right: 20px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  font-size: 12px;
}

.gallery-controls button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  color: #000;
  background: transparent;
  font: 18px/20px Arial, sans-serif;
  cursor: pointer;
}

.gallery-controls button:disabled { opacity: .22; cursor: default; }

.bridal-title {
  position: absolute;
  z-index: 2;
  left: -315px;
  top: 50px;
  width: 310px;
  height: 540px;
  object-fit: cover;
  background: #fff;
}

.about-page { min-height: 736px; }

.about-photo {
  position: absolute;
  top: 20px;
  left: 0;
  width: 320px;
  height: 686px;
  object-fit: cover;
}

.about-copy {
  position: absolute;
  top: 35px;
  left: 340px;
  width: 270px;
  font-size: 13px;
  line-height: 1.4;
}

.about-copy h1 { margin: 0 0 19px; font-size: 16px; font-weight: normal; letter-spacing: 0; }
.about-copy p { margin: 0; }

.contact-page {
  min-height: 665px;
  padding-top: 191px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 660px;
  height: 180px;
  padding: 18px;
  background: #d8d8d8;
}

.contact-form input,
.contact-form textarea {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 7px;
  color: #000;
  background: #fff;
  font: 13px Arial, sans-serif;
}

.contact-form textarea { grid-row: span 3; resize: none; }

.contact-form button {
  justify-self: end;
  width: 80px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #656565;
  font: 13px Arial, sans-serif;
}

.contact-copy {
  width: 350px;
  margin: 180px 0 0 280px;
  color: #fff;
  background: #000;
  padding: 10px 30px;
  font-size: 27px;
  line-height: 1.4;
}

.contact-copy p { margin: 0; }

.site-nav {
  display: flex;
  align-items: stretch;
  width: 505px;
  height: 30px;
  margin-left: -2px;
}

.site-nav a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 2px 8px;
  color: #000;
  background: #d8d8d8;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; background: #656565; }

.lightbox {
  width: min(92vw, 1050px);
  height: min(92vh, 900px);
  padding: 40px;
  border: 0;
  background: rgba(0, 0, 0, .94);
}

.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.lightbox-media,
.lightbox img { width: 100%; height: 100%; }
.lightbox img { object-fit: contain; }
.lightbox-close { position: absolute; top: 4px; right: 10px; border: 0; color: #fff; background: transparent; font: 32px/1 Arial; cursor: pointer; }

@media (max-width: 760px) {
  .site-shell { width: 100%; margin-top: 0; }
  .page-stage { display: block; width: 100%; min-height: 0; }
  .brand-panel { width: 320px; min-height: 665px; margin: 0 auto; }
  .page-content { width: 100%; min-height: 0; }
  .gallery-wrap { width: 100%; height: auto; padding: 5px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 5px; }
  .gallery-button { aspect-ratio: 1 / 1; height: auto; }
  .gallery-controls { position: static; justify-content: flex-end; height: 34px; padding-right: 8px; }
  .bridal-title { position: static; width: 301px; height: auto; margin: 20px auto 30px; }
  .about-page { min-height: 0; padding: 20px; }
  .about-photo { position: static; width: min(100%, 436px); height: auto; margin: 0 auto; }
  .about-copy { position: static; width: min(100%, 436px); margin: 25px auto 40px; }
  .contact-page { min-height: 0; padding: 20px 12px 40px; }
  .contact-form { width: 100%; height: auto; grid-template-columns: 1fr; }
  .contact-form textarea { grid-row: auto; min-height: 130px; }
  .contact-form button { height: 34px; }
  .contact-copy { width: 100%; margin: 30px 0 0; padding: 10px 15px; font-size: 20px; }
  .site-nav { flex-wrap: wrap; width: 100%; height: auto; margin: 0; }
  .site-nav a { flex: 1 0 33.333%; height: 36px; }
  .lightbox { padding: 35px 10px 10px; }
}
