/* Zackfilms — Alexis-style design
   Based on Alexis Photography Template */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #faf9f7;
  --gray-200: #e8e8e8;
  --gray-700: #404040;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* Visible scrollbar */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-700) var(--cream);
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--black);
}

/* Hero — contained image with white margins, distance from menu */
.alexis-hero {
  background: var(--white);
  padding: 5rem clamp(1.5rem, 5%, 4rem) 0;
}

.alexis-hero-block {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.alexis-hero-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.alexis-hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.alexis-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.alexis-hero-year {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.9);
}

.alexis-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.alexis-hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 400px;
  color: rgba(255,255,255,0.95);
}

.alexis-hero-cta {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--black);
  border-radius: 4px;
  transition: opacity var(--transition);
}

.alexis-hero-cta:hover {
  opacity: 0.9;
}

/* Studio intro */
.alexis-intro {
  padding: 5rem 2rem;
  background: var(--white);
}

.alexis-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.alexis-intro p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 2;
  color: var(--black);
}

/* Image gallery — 3 columns (6 images, 2 per column), horizontal See more block overlapping bottom */
.image-gallery {
  padding: 5rem 1rem 4rem;
  background: var(--white);
}

.image-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.image-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out, box-shadow var(--transition);
}

.image-gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.image-gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.image-gallery-item--portrait {
  aspect-ratio: 9 / 16;
}

.image-gallery-item--landscape {
  aspect-ratio: 16 / 9;
}

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-gallery-item:hover img {
  transform: scale(1.03);
}

.image-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.image-gallery-item:hover .image-gallery-label {
  opacity: 1;
}

/* See more — horizontal block overlapping bottom of 6 images, links to photography */
.image-gallery-see-more-block {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  max-width: 1200px;
  margin: -29vh auto 0;
  padding: 2rem 2rem;
  background: linear-gradient(to top, #fff 0%, #fff 40%, transparent 100%);
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.image-gallery-see-more-block:hover {
  background: linear-gradient(to top, #fff 0%, #fff 40%, transparent 100%);
}

.image-gallery-see-more-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
}

/* Footer — two bands: white top, cream bottom */
.alexis-footer {
  color: var(--black);
}

.alexis-footer-top {
  background: var(--white);
  padding: 2rem 2rem;
  border-top: 1px solid var(--gray-200);
}

.alexis-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.alexis-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alexis-footer-links a {
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alexis-footer-links a:hover {
  opacity: 0.7;
}

.alexis-footer-center {
  text-align: center;
}

.alexis-footer-logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  display: block;
  margin-bottom: 0.25rem;
}

.alexis-footer-copyright {
  font-size: 0.8rem;
  color: var(--gray-700);
}

.alexis-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.alexis-footer-social-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-right: 0.5rem;
}

.alexis-footer-social a {
  color: var(--black);
  display: flex;
  align-items: center;
}

.alexis-footer-social a:hover {
  opacity: 0.7;
}

.alexis-footer-bottom {
  background: var(--cream);
  padding: 0.35rem 2rem;
  min-height: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  border-top: 1px solid var(--gray-200);
}

.alexis-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e85a2a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity 0.3s ease;
}

.alexis-back-to-top:hover {
  opacity: 0.9;
}

.alexis-back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .alexis-hero-block {
    min-height: 70vh;
  }

  .image-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .image-gallery {
    padding: 3rem 0.75rem 3rem;
  }

  /* 2 columns on mobile — all images in pairs, last two side by side, no white space */
  .image-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .image-gallery-column {
    display: contents;
  }

  .image-gallery-item--portrait {
    aspect-ratio: 3 / 4;
  }

  .image-gallery-item--landscape {
    aspect-ratio: 4 / 3;
  }

  .image-gallery-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .image-gallery-see-more-block {
    min-height: 15vh;
    margin-top: -15vh;
    padding: 1rem 1.5rem;
  }

  .contact-layout--home ~ .contact-content,
  .contact-content {
    padding-top: 1.5rem;
  }

  .alexis-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .alexis-footer-links {
    justify-content: center;
  }

  .alexis-footer-social {
    justify-content: center;
  }

  .alexis-footer-social-label {
    display: none;
  }
}

/* Inner pages — page header, gallery, etc. */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: var(--white);
  color: var(--black);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-header p {
  margin-top: 0.75rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Photography page — Alexis-style: gaps, spacing, hover overlay with title & description */
/* E06 — one visible h1 per portfolio page */
.public-page-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  text-align: center;
  padding: 5rem clamp(1.5rem, 5%, 3rem) 0;
  margin: 0 auto;
  max-width: 1400px;
  color: var(--black);
}

.photography-page {
  background: var(--white);
}

.photography-gallery {
  padding: 6rem clamp(2rem, 6%, 5rem) 6rem;
}

.photography-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 24px;
}

.photography-item {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.photography-item--tall {
  grid-row: span 2;
}

.photography-item--wide {
  grid-column: span 2;
}

.photography-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photography-item:hover img {
  transform: scale(1.03);
}

.photography-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photography-item:hover .photography-overlay {
  opacity: 1;
}

.photography-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.photography-desc {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .photography-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .photography-gallery {
    padding: 5rem clamp(1.5rem, 5%, 3rem) 5rem;
  }

  .photography-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .photography-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
  }

  .photography-gallery {
    padding: 4rem 1.25rem 4rem;
  }

  .photography-item--wide {
    grid-column: span 2;
  }

  .photography-item--tall {
    grid-row: span 2;
  }

  .photography-overlay {
    padding: 1.25rem 1rem;
  }

  .photography-title {
    font-size: 1rem;
  }

  .photography-desc {
    font-size: 0.7rem;
  }
}

/* Weddings page — like photography, all square images, click opens popup with info + video + images */
.weddings-page {
  background: var(--white);
}

.weddings-gallery {
  padding: 6rem clamp(2rem, 6%, 5rem) 6rem;
}

.weddings-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.weddings-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.weddings-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.weddings-item:hover img {
  transform: scale(1.03);
}

.weddings-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.weddings-item:hover .weddings-overlay {
  opacity: 1;
}

.weddings-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.weddings-desc {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .weddings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .weddings-gallery {
    padding: 5rem clamp(1.5rem, 5%, 3rem) 5rem;
  }
}

@media (max-width: 640px) {
  .weddings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .weddings-gallery {
    padding: 4rem 1.25rem 4rem;
  }

  .weddings-overlay {
    padding: 1.25rem 1rem;
  }

  .weddings-title {
    font-size: 1rem;
  }
}

/* Wedding popup — info + video + other images */
.wedding-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.wedding-popup.active {
  display: flex;
}

.wedding-popup-inner {
  width: 100%;
  max-width: 900px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  margin: auto;
}

.wedding-popup-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.wedding-popup-info {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.wedding-popup-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.wedding-popup-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.wedding-popup-video {
  padding: 0 2rem 1.5rem;
  aspect-ratio: 16 / 9;
}

.wedding-popup-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: var(--black);
}

.wedding-popup-primary-image {
  display: none;
  position: relative;
  padding: 0 2rem 1.5rem;
  aspect-ratio: 16 / 9;
}

.wedding-popup-primary-image.active {
  display: block;
}

.wedding-popup-primary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: var(--black);
}

.wedding-popup-primary-image-close {
  position: absolute;
  top: 0.5rem;
  right: 2.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.wedding-popup-primary-image-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.wedding-popup-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--gray-200);
}

.wedding-popup-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.wedding-popup-images img:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .wedding-popup-inner {
    margin: 1rem;
  }

  .wedding-popup-info,
  .wedding-popup-video,
  .wedding-popup-images,
  .wedding-popup-primary-image {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .wedding-popup-primary-image-close {
    right: 1.5rem;
  }

  .wedding-popup-title {
    font-size: 1.35rem;
  }
}

/* Videography page — one video per line, reduced height (1/3), no play btn, hover + click popup */
.videography-page {
  background: var(--white);
}

.videography-gallery {
  padding: 5rem clamp(2rem, 6%, 5rem) 5rem;
}

.videography-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.videography-item {
  position: relative;
  aspect-ratio: 48 / 9; /* 16:3 — height reduced by 3× vs 16:9 */
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-200);
}

.videography-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.videography-item:hover video {
  transform: scale(1.02);
}

/* Paused state: 50% black overlay + centered title, both disappear on hover */
.videography-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.videography-item:hover .videography-overlay {
  opacity: 0;
}

.videography-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  padding: 0 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .videography-gallery {
    padding: 4rem 1.25rem 4rem;
  }

  .videography-grid {
    gap: 16px;
  }
}

/* Video lightbox — full video on click */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-lightbox.active {
  display: flex;
}

.video-lightbox-inner {
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
}

.video-lightbox-inner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* About page — Van Cliff style: brand top, image with flanking text, caption, project desc */
.about-page {
  background: var(--white);
}

.about-hero {
  padding: 6rem clamp(2rem, 6%, 5rem) 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-brand {
  position: relative;
  z-index: 10;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  margin: 0 0 -3rem;
}

.about-image-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.about-image-left,
.about-image-right {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.8;
}

.about-image-left {
  text-align: right;
}

.about-image-right {
  text-align: left;
}

.about-label,
.about-concept {
  margin: 0;
}

.about-name {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.about-image-wrap {
  max-width: 380px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.about-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  color: var(--black);
  margin: 0 0 3rem;
}

.about-project {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.about-project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 1.25rem;
}

.about-project-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--black);
  text-align: left;
  margin: 0;
}

.about-page .contact-content {
  padding-top: 3rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Legal pages — Terms & Conditions, Privacy Policy */
.legal-page {
  background: var(--white);
  min-height: 60vh;
}

.legal-hero {
  padding: 6rem clamp(2rem, 6%, 5rem) 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 0.5rem;
}

.legal-page-updated {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin: 0 0 2rem;
}

.legal-content {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--black);
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 1rem;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-content a:hover {
  opacity: 0.8;
}

.contact-content {
  padding: 2.5rem 1.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 0.25rem;
  text-align: center;
}

.contact-section-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin: 0 0 1.25rem;
  text-align: center;
}

.contact-info-block h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--black);
}

.contact-info-block p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--black);
}

.contact-info-block a {
  color: var(--black);
  text-decoration: none;
}

.contact-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-social-icons svg {
  display: block;
  width: 18px;
  height: 18px;
}

.contact-social-icons a {
  color: var(--black);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.contact-social-icons a:hover {
  opacity: 1;
}


.contact-note {
  font-size: 0.85rem !important;
  color: var(--gray-700) !important;
  margin-top: 1rem !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-layout--home {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.contact-phone-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-200);
  font-family: 'Outfit', sans-serif;
  position: relative;
}

.phone-country-picker {
  flex: 0 0 auto;
  min-width: 6.5rem;
  padding: 0.75rem 0.6rem;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.phone-country-picker:focus {
  outline: none;
}

.phone-country-display {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-country-display img {
  flex-shrink: 0;
  display: block;
  border-radius: 1px;
  width: 18px;
  height: 14px;
  object-fit: cover;
}

.phone-country-arrow {
  flex-shrink: 0;
  font-size: 0.7rem;
  opacity: 0.7;
}

.phone-country-list {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin: 0 0 0.25rem;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 100%;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  flex-direction: column-reverse;
}

.phone-country-picker.is-open .phone-country-list {
  display: flex;
}

.phone-country-list li {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-country-list li img {
  flex-shrink: 0;
  display: block;
  border-radius: 1px;
  width: 18px;
  height: 14px;
  object-fit: cover;
}

.phone-country-list li:hover {
  background: var(--cream);
}

.contact-phone-wrap input[type="tel"] {
  flex: 1;
  min-width: 9rem;
  padding: 0.75rem;
  border: none;
  margin-bottom: 0;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
}

.contact-form > .contact-form-field {
  margin-bottom: 1rem;
}

.contact-form-field label {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form-field input {
  margin-bottom: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  font-family: 'Outfit', sans-serif;
}

.contact-form .btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .about-image-block {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-image-left,
  .about-image-right {
    text-align: center;
  }

  .about-image-left {
    order: 1;
  }

  .about-image-wrap {
    order: 2;
  }

  .about-image-right {
    order: 3;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 5rem 1.5rem 5rem;
  }
}

/* ========== Dark theme ========== */
html.dark {
  --black: #f8fafc;
  --white: #0f172a;
  --cream: #1e293b;
  --gray-200: #334155;
  --gray-700: #94a3b8;
}

html.dark body {
  background: #0f172a;
}

html.dark {
  scrollbar-color: #475569 #1e293b;
}

html.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html.dark .alexis-hero {
  background: #0f172a;
}

html.dark .alexis-intro,
html.dark .alexis-footer-top,
html.dark .alexis-footer-bottom {
  background: #1e293b;
}

html.dark .alexis-footer-center {
  background: transparent;
}

html.dark .alexis-intro p {
  color: #e2e8f0;
}

/* Footer — brighter text for readability */
html.dark .alexis-footer-links a,
html.dark .alexis-footer-copyright,
html.dark .alexis-footer-social-label,
html.dark .alexis-footer-social a {
  color: #f1f5f9;
}

html.dark .alexis-footer-links a:hover,
html.dark .alexis-footer-social a:hover {
  color: #ffffff;
}

html.dark .alexis-footer-top,
html.dark .alexis-footer-bottom {
  border-top-color: #334155;
}

html.dark .alexis-back-to-top {
  background: #334155;
  color: #f8fafc;
}

html.dark .alexis-back-to-top:hover {
  background: #475569;
}

/* Sections with white/cream backgrounds */
html.dark section[class*="section"],
html.dark .alexis-section,
html.dark .about-hero,
html.dark .contact-section,
html.dark .gallery-section,
html.dark .image-gallery,
html.dark .photography-gallery,
html.dark .videography-gallery,
html.dark .weddings-gallery {
  background: #1e293b !important;
}

html.dark .videography-title {
  color: #ffffff !important;
}

html.dark .weddings-title,
html.dark .weddings-desc {
  color: #ffffff !important;
}

html.dark .photography-title,
html.dark .photography-desc {
  color: #ffffff !important;
}

/* About page — single background, no box; all text light */
html.dark .about-page {
  background: #1e293b !important;
}

html.dark .about-brand,
html.dark .about-image-left,
html.dark .about-image-left .about-label,
html.dark .about-image-left .about-name,
html.dark .about-image-right p,
html.dark .about-caption,
html.dark .about-project-title,
html.dark .about-project-desc {
  color: #f8fafc;
}

html.dark .about-page .contact-content {
  border-top-color: #334155;
}

/* Legal pages dark mode */
html.dark .legal-page {
  background: #1e293b !important;
}

html.dark .legal-page-title,
html.dark .legal-content h2 {
  color: #f8fafc;
}

html.dark .legal-page-updated {
  color: #94a3b8;
}

html.dark .legal-content,
html.dark .legal-content p {
  color: #e2e8f0;
}

html.dark .legal-content a {
  color: #f1f5f9;
}

html.dark .legal-content a:hover {
  color: #ffffff;
}

html.dark .image-gallery-item {
  background: #334155;
  border-color: #475569;
}

html.dark .image-gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

html.dark .image-gallery-see-more-block {
  background: linear-gradient(to top, #1e293b 0%, #1e293b 40%, transparent 100%);
}

html.dark .image-gallery-see-more-block:hover {
  background: linear-gradient(to top, #334155 0%, #334155 40%, transparent 100%);
}

html.dark .image-gallery-see-more-text {
  color: #f8fafc;
}

html.dark .image-gallery-label {
  color: #ffffff !important;
}

html.dark .alexis-intro-inner,
html.dark .about-content {
  background: #1e293b !important;
}

/* Contact form — no extra box; same as section. Inputs are the only defined “surfaces”. */
html.dark .contact-form,
html.dark .contact-content {
  background: transparent !important;
}

/* Contact form inputs — clear fields on section background, visible borders */
html.dark .contact-form input,
html.dark .contact-form textarea,
html.dark .contact-form select {
  background: #334155 !important;
  border: 1px solid #64748b;
  border-radius: 6px;
  color: #f8fafc;
  caret-color: #f8fafc;
}

html.dark .contact-form input::placeholder,
html.dark .contact-form textarea::placeholder {
  color: #e2e8f0;
}

html.dark .contact-form input:focus,
html.dark .contact-form textarea:focus,
html.dark .contact-form select:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.4);
}

html.dark .contact-form select {
  color: #f8fafc;
  background-color: #334155 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23e2e8f0' d='M6 4L2 8h8L6 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.6rem 0.6rem;
  padding-right: 2rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

html.dark .contact-form select option {
  background: #1e293b;
  color: #f8fafc;
}

/* Contact section labels and text */
html.dark .contact-form-field label,
html.dark h1, html.dark h2, html.dark h3,
html.dark .about-image-right p,
html.dark .contact-intro p {
  color: #f8fafc;
}

html.dark .contact-section-title,
html.dark .contact-section-desc,
html.dark .contact-info-block h3,
html.dark .contact-info-block p,
html.dark .contact-info-block a,
html.dark .contact-note {
  color: #e2e8f0;
}

html.dark .contact-section-desc,
html.dark .contact-note {
  color: #cbd5e1;
}

html.dark .contact-info-block a:hover {
  color: #f1f5f9;
}

/* Social icons — force light fill/stroke so icons are visible on dark background */
html.dark .contact-social-icons a,
html.dark .contact-social-icons a:hover {
  color: #f1f5f9 !important;
}

html.dark .contact-social-icons a svg,
html.dark .contact-social-icons svg {
  color: #f1f5f9 !important;
  fill: #f1f5f9 !important;
  stroke: #f1f5f9 !important;
}

html.dark .contact-social-icons a:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

html.dark .alexis-footer-social a,
html.dark .alexis-footer-social a:hover {
  color: #f1f5f9 !important;
}

html.dark .alexis-footer-social a svg,
html.dark .alexis-footer-social svg {
  color: #f1f5f9 !important;
  fill: #f1f5f9 !important;
  stroke: #f1f5f9 !important;
}

html.dark .alexis-footer-social a:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* Primary button — dark-friendly CTA (accent, not white block) */
html.dark .contact-form .btn--primary,
html.dark .btn--primary {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

html.dark .contact-form .btn--primary:hover,
html.dark .btn--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  opacity: 1;
}

/* Cards / overlays */
html.dark .alexis-card,
html.dark .gallery-item,
html.dark [class*="card"] {
  background: #334155;
  border-color: #475569;
}

html.dark .gallery-item-title,
html.dark .alexis-card-title,
html.dark .alexis-card-desc {
  color: #f8fafc;
}

/* Phone country dropdown in dark */
html.dark .contact-phone-wrap {
  border: 1px solid #64748b;
}

html.dark .contact-phone-wrap input[type="tel"] {
  background: #334155 !important;
  border-color: #64748b;
  color: #f8fafc;
}

html.dark .phone-country-picker,
html.dark .phone-country-display {
  background: #334155 !important;
  border-color: #64748b;
  color: #f8fafc;
}

html.dark .phone-country-arrow {
  color: #e2e8f0 !important;
  opacity: 1;
}

html.dark .phone-country-list {
  background: #334155;
  border: 1px solid #64748b;
  color: #f8fafc;
}

html.dark .phone-country-list li {
  color: #f8fafc;
}

html.dark .phone-country-list li:hover {
  background: #475569;
}

/* Lightbox stays dark */
html.dark .lightbox {
  background: rgba(0,0,0,0.98);
}
