/*
Theme Name: Adam & Jill Wedding
Theme URI: https://example.com/
Author: Adam & Jill
Description: Elegant wedding photo site with a video hero and mosaic gallery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aj-wedding
*/

:root {
  --cream: #f8f5ef;
  --stone: #e8e2d7;
  --ink: #2f2a25;
  --gold: #b08a56;
  --white: #ffffff;
  --muted: #6a6257;
  --shadow: 0 12px 36px rgba(31, 26, 20, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f4ee 0%, #fdfcf9 60%, #f4eee5 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.aj-manager-logout {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10000;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3b3128;
  border: 1px solid rgba(89, 70, 48, 0.26);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #5f5144;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(34, 28, 20, 0.32), rgba(34, 28, 20, 0.78));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: lift 1s ease-out;
}

.hero__eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  font-weight: 500;
  margin: 0.7rem 0;
}

.hero__subtitle {
  max-width: 36ch;
  margin: 0 auto 1.2rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.button--light {
  background: rgba(255, 255, 255, 0.92);
  color: #3b3127;
}

.gallery-section {
  padding: 4rem 0;
}

.guestbook-section {
  padding-top: 2.2rem;
}

.guestbook-form {
  display: grid;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(89, 70, 48, 0.22);
  border-radius: 12px;
  padding: 1rem;
  font-family: "Cormorant Garamond", serif;
}

.guestbook-form h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.guestbook-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3b3128;
}

.guestbook-form textarea,
.guestbook-form input[type="text"] {
  width: 100%;
  border: 1px solid rgba(89, 70, 48, 0.28);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  background: #fff;
}

.guestbook-status {
  color: #2e5e3a;
  font-weight: 600;
}

.guestbook-status--error {
  color: #8f2d2d;
}

.aj-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gallery-section.container {
  width: auto;
  max-width: none;
  margin-left: 4%;
  margin-right: 4%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(89, 70, 48, 0.22);
  color: #4a3c2f;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn[aria-pressed="true"] {
  background: #3b3128;
  color: var(--white);
  border-color: #3b3128;
}

.aj-photoblocks-wrap {
  width: 100%;
}

.mosaic-grid {
  --mosaic-gap: 10px;
  position: relative;
  min-height: 1px;
}

.photo-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--stone);
  width: 100%;
  margin: 0;
  display: block;
}

.photo-card--hero {
  width: 100%;
}

.guest-message-card {
  width: 100%;
  border: 10px solid #ffffff;
  background: #f6e8e4;
  padding: 1rem 1.1rem;
  text-align: center;
}

.guest-message-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.guest-message-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.guest-message-card__quote {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  color: #3b3128;
  margin-bottom: 0.7rem;
}

.guest-message-card__quote::before {
  content: "\"";
}

.guest-message-card__quote::after {
  content: "\"";
}

.guest-message-card__name {
  margin: 0;
}

.photo-card.is-hidden {
  display: none !important;
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: 10px solid #ffffff;
  border-radius: 0;
  cursor: zoom-in;
}

.photo-card figcaption {
  display: none;
}

.aj-select-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(89, 70, 48, 0.24);
  color: #3b3128;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1;
  z-index: 3;
}

.aj-select-toggle input {
  margin: 0;
}

.photo-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.photo-meta {
  font-size: 0.78rem;
  opacity: 0.86;
}

.empty-state {
  margin-top: 2rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(89, 70, 48, 0.18);
  padding: 1.3rem 4vw;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

body.aj-lightbox-open {
  overflow: hidden;
}

.aj-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0.6rem;
}

.aj-lightbox.is-open {
  display: flex;
}

.aj-lightbox__image {
  max-width: 98vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 8px solid #ffffff;
}

.aj-lightbox__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.aj-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.aj-lightbox__nav--prev {
  left: 0.85rem;
}

.aj-lightbox__nav--next {
  right: 0.85rem;
}

@keyframes lift {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .gallery-section.container {
    margin-left: 3%;
    margin-right: 3%;
  }

  .mosaic-grid {
    --mosaic-gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 62vh;
  }

  .gallery-section.container {
    margin-left: 2%;
    margin-right: 2%;
  }

  .mosaic-grid {
    --mosaic-gap: 10px;
  }

  .section-head {
    display: grid;
  }

  .aj-lightbox__nav {
    width: 40px;
    height: 40px;
  }
}
