/* ==========================================================================
   Layout - Page Structure Patterns
   ========================================================================== */

/* ==========================================================================
   Main Container
   ========================================================================== */

.main-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* ==========================================================================
   Page Layouts
   ========================================================================== */

/* Full viewport centered (Homepage) */
.layout-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-md);
}

/* Fixed centered content (About) */
.layout-fixed-center {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

/* Standard page with header offset */
.layout-page {
  padding-top: 80px; /* Account for fixed header */
  min-height: 100vh;
}

/* Content wrapper */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md);
}

.content-wrapper--narrow {
  max-width: var(--max-width-content);
}

.content-wrapper--text {
  max-width: var(--max-width-text);
}

/* ==========================================================================
   Theme Backgrounds
   ========================================================================== */

/* Dark theme (Homepage, Photography) */
.theme-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);

  /* Current theme variables for component use */
  --current-text: var(--color-text-primary);
  --current-text-muted: var(--color-text-muted);
  --current-border: rgba(255, 255, 255, 0.1);
}

.theme-dark-gradient {
  background: linear-gradient(to bottom, var(--color-bg-dark), #111);
  color: var(--color-text-primary);

  --current-text: var(--color-text-primary);
  --current-text-muted: var(--color-text-muted);
  --current-border: rgba(255, 255, 255, 0.1);
}

/* Maroon theme (About) */
.theme-maroon {
  background: #2E1114;
  color: #F3E9DC;

  --current-text: #F3E9DC;
  --current-text-muted: rgba(243, 233, 220, 0.7);
  --current-border: rgba(243, 233, 220, 0.1);
}

/* Light themes (Design, Culture, Visual) */
.theme-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);

  --current-text: var(--color-text-dark);
  --current-text-muted: var(--color-text-gray);
  --current-border: rgba(0, 0, 0, 0.1);
}

.theme-beige {
  background: var(--color-bg-beige);
  color: var(--color-text-dark);

  --current-text: var(--color-text-dark);
  --current-text-muted: var(--color-text-gray);
  --current-border: rgba(0, 0, 0, 0.1);
}

.theme-ivory {
  background: var(--color-bg-ivory);
  color: var(--color-text-dark);

  --current-text: var(--color-text-dark);
  --current-text-muted: var(--color-text-gray);
  --current-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Slide/Hero Section
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: var(--max-width);
  padding: var(--spacing-md);
}

.hero-title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: var(--font-size-large);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

/* ==========================================================================
   Gallery Page Layout
   ========================================================================== */

.gallery-page {
  padding: var(--spacing-lg) var(--spacing-md);
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.gallery-title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Project Page Layout
   ========================================================================== */

.project-page {
  padding: var(--spacing-xl) var(--spacing-md);
}

.project-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.project-title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-sm);
}

.project-subtitle {
  font-size: var(--font-size-large);
  color: var(--color-text-muted);
}

.project-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.project-description {
  font-size: var(--font-size-body);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

/* First paragraph emphasis */
.project-description p:first-of-type {
  font-size: var(--font-size-large);
  line-height: 1.7;
}

.project-description h3 {
  font-size: var(--font-size-body);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.project-description ul,
.project-description ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.project-description li {
  margin-bottom: 0.5rem;
}

.project-images {
  display: grid;
  gap: var(--spacing-md);
}

.project-image {
  width: 100%;
}

/* ==========================================================================
   About Page Layout
   ========================================================================== */

.about-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: var(--spacing-lg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 56ch;
  text-align: left;
}

.about-intro {
  font-size: var(--font-size-large);
  line-height: 1.5;
}

/* First paragraph emphasis */
.about-intro p:first-of-type {
  font-size: 1.1em;
  line-height: 1.6;
}

.theme-maroon .about-intro a {
  color: var(--current-text);
  text-decoration: underline;
  text-decoration-color: rgba(243, 233, 220, 0.4);
}

.theme-maroon .about-intro a:hover {
  text-decoration-color: var(--current-text);
  font-style: normal;
}

.about-divider {
  width: 50px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.about-quote {
  font-style: italic;
  opacity: 0.75;
  line-height: 1.4;
  font-size: var(--font-size-small);
}

.about-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  opacity: 0.6;
  font-size: var(--font-size-caption);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .layout-page {
    padding-top: 60px;
  }

  .layout-fixed-center {
    padding: 10vh var(--spacing-md);
    position: relative;
    min-height: 100vh;
  }

  .content-wrapper {
    padding: var(--spacing-sm);
  }
}
