/* ========================================
   CSS Custom Properties (Design System)
======================================== */
:root {
  /* Colors */
  --bone-white: #E6DED3;
  --ink-black: #1A1A19;
  --light-olive: #464E3B;
  --dark-olive: #32372A;
  --stamp-red: #B34132;
  
  /* Typography */
  --font-heading: 'Inknut Antiqua', serif;
  --font-body: 'Josefin Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 4rem;
  --section-padding-mobile: 2rem;
  --content-max-width: 600px;
  --intro-max-width: 400px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s ease;
  --transition-slow: 1s ease;
  
  /* Breakpoints */
  --tablet-breakpoint: 768px;
  --desktop-breakpoint: 1024px;
}

/* ========================================
   Reset and Base Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-black);
  background-color: var(--bone-white);
  min-height: 100vh;
  overflow-x: hidden;
  min-width: 320px; /* Minimum width for mobile devices */
}

/* ========================================
   Typography
======================================== */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--ink-black);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink-black);
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--dark-olive);
}

h4 {
  font-size: 1.125rem;
  color: var(--ink-black);
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Site Header and Navigation
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  pointer-events: none;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--bone-white);
  text-decoration: none;
  transition: color var(--transition-fast);
  pointer-events: auto;
}

.site-logo:hover {
  color: var(--stamp-red);
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity var(--transition-fast);
  font-size: 2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--stamp-red);
  transition: opacity var(--transition-fast);
  border-radius: 2px;
}

/* Hide hamburger lines when menu is open */
.nav-toggle.active .hamburger-line {
  opacity: 0;
}

/* Show X when menu is open */
.nav-toggle.active::before {
  content: '×';
  position: absolute;
  color: var(--stamp-red);
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  opacity: 1;
}

.nav-toggle:hover .hamburger-line {
  background-color: var(--ink-black);
}

.nav-toggle.active:hover::before {
  color: var(--ink-black);
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -50%;
  width: 50%;
  height: 100vh;
  background-color: var(--bone-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right var(--transition-medium);
}

.nav-menu.active {
  right: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 260px;
  margin: 0 auto;
}

.nav-list li {
  margin-bottom: 2rem;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-black);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.nav-list a:hover {
  color: var(--stamp-red);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .nav-menu {
    right: -100%;
    width: 100%;
  }
}

/* ========================================
   Slide Navigation Arrows
======================================== */
.slide-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide-nav-btn {
  background: none;
  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stamp-red);
  transition: opacity var(--transition-fast);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.slide-nav-btn:hover {
  opacity: 0.7;
}

.slide-nav-btn:disabled {
  opacity: 0;
  cursor: not-allowed;
  pointer-events: none;
}

.slide-nav-btn:disabled:hover {
  opacity: 0;
}

/* Hide arrows on mobile and tablet */
@media (max-width: 1023px) {
  .slide-nav {
    display: none;
  }
}

/* ========================================
   Slide Container and Grid System
======================================== */
.slide-container {
  min-height: 100vh;
  position: relative;
}

/* Desktop: 2-column grid with slide system */
@media (min-width: 1024px) {
  .slide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh; /* Fixed height for proper clipping */
    overflow: hidden; /* Hide sections outside viewport */
  }
  
  .slide-section {
    transition: transform var(--transition-medium);
    will-change: transform;
    height: 100vh; /* Ensure each section takes full viewport height */
    overflow: hidden; /* Clip any content that might overflow */
  }
}

/* Mobile and Tablet: Stack sections vertically */
@media (max-width: 1023px) {
  .slide-container {
    display: flex !important;
    flex-direction: column;
    min-height: auto;
    height: auto !important; /* Override any desktop height */
  }
  
  .slide-section {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
    flex: none !important;
    height: auto !important; /* Override desktop height */
    transform: none !important; /* Clear any transforms */
    position: relative !important; /* Reset positioning */
  }
}

/* ========================================
   Section Base Styles
======================================== */
.slide-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .slide-section {
    min-height: 40vh; /* Reduce from 60vh to 40vh */
  }
}

/* ========================================
   Section Types
======================================== */

/* Full Static Image */
.slide-section.full-image {
  background-color: var(--dark-olive);
}

.slide-section.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile adjustments for full images */
@media (max-width: 1023px) {
  .slide-section.full-image {
    min-height: auto;
    height: auto;
    aspect-ratio: 5 / 4; /* Force 5:4 landscape ratio on mobile */
    max-height: 80vh; /* Don't let it get too tall */
  }

    /* ADD THIS NEW SECTION HERE: */
  .slide-section.full-slideshow {
    min-height: auto;
    height: auto;
    aspect-ratio: 5 / 4;
    max-height: 80vh;
  }
  
  .slide-section.full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fit the 5:4 container */
  }
}

/* Heading Section */
.slide-section.heading {
  background-color: var(--bone-white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--section-padding);
}

.slide-section.heading .section-content {
  width: 100%;
  text-align: left;
}

.slide-section.heading h2 {
  margin: 0;
}

/* Heading Section - Olive Background Variant */
.slide-section.heading.bg-olive {
  background-color: var(--light-olive);
}

.slide-section.heading.bg-olive h2 {
  color: var(--bone-white);
}

/* Heading Section - Red Background Variant */
.slide-section.heading.bg-red {
  background-color: var(--stamp-red);
}

.slide-section.heading.bg-red h2 {
  color: var(--bone-white);
}

/* Body Section */
.slide-section.body {
  background-color: var(--bone-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding);
}

.slide-section.body .section-content {
  width: 100%;
  max-width: var(--content-max-width);
  overflow-y: auto;
  max-height: calc(100vh - calc(var(--section-padding) * 2));
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Desktop-only: Add white space above body content */
@media (min-width: 1024px) {
  .slide-section.body {
    align-items: flex-end;
  }
  
  .slide-section.body .section-content {
    margin-top: 200px;
    max-height: calc(100vh - calc(var(--section-padding) * 2) - 200px);
  }
}

/* Hide scrollbar for WebKit browsers */
.slide-section.body .section-content::-webkit-scrollbar {
  display: none;
}

/* ========================================
   Body-Centered Section Type - Add to your existing CSS
======================================== */

/* Body-Centered Section - Content perfectly centered */
.slide-section.body-centered {
  background-color: var(--bone-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding);
}

.slide-section.body-centered .section-content {
  width: 100%;
  max-width: var(--content-max-width);
  overflow-y: auto;
  max-height: calc(100vh - calc(var(--section-padding) * 2));
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  text-align: left; /* Ensure text alignment is consistent */
}

/* Hide scrollbar for WebKit browsers */
.slide-section.body-centered .section-content::-webkit-scrollbar {
  display: none;
}

/* Mobile and tablet adjustments for body-centered */
@media (max-width: 1023px) {
  .slide-section.body-centered {
    padding: var(--section-padding-mobile);
  }
  
  .slide-section.body-centered .section-content {
    max-height: none;
    overflow-y: visible;
  }
}

/* Intro Section */
.slide-section.intro {
  background-color: var(--bone-white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--section-padding);
}

.slide-section.intro .section-content {
  width: 100%;
  text-align: left;
}

/* Full Image Slideshow */
.slide-section.full-slideshow {
  background-color: var(--dark-olive);
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.slideshow-image.active {
  opacity: 1;
}

/* Mobile and tablet section adjustments */
@media (max-width: 1023px) {
  .slide-section.body,
  .slide-section.intro {
    padding: var(--section-padding-mobile);
  }
  
  .slide-section.body .section-content {
    max-height: none;
    overflow-y: visible;
  }
}


/* Contact Section */
.slide-section.contact {
  background-color: var(--bone-white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--section-padding);
}

.slide-section.contact .section-content {
  width: 100%;
  max-width: var(--content-max-width);
  text-align: left;
}

.slide-section.contact h1 {
  margin-bottom: 2rem;
}

/* ========================================
   Content Elements
======================================== */

/* Call-to-Action Links */
.cta-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--stamp-red);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--stamp-red);
  padding-bottom: 0.25rem;
  margin-top: 1rem;
  transition: all var(--transition-fast);
}

.cta-link:hover {
  color: var(--dark-olive);
  border-bottom-color: var(--dark-olive);
  transform: translateY(-2px);
}

/* Contact Info Styling */
.contact-info {
  background-color: rgba(70, 78, 59, 0.1);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.contact-info h3 {
  color: var(--stamp-red);
  margin-bottom: 0.5rem;
}

/* ========================================
   Responsive Design
======================================== */


/* Large desktop adjustments */
@media (min-width: 1400px) {
  :root {
    --section-padding: 6rem;
    --content-max-width: 700px;
    --intro-max-width: 500px;
  }
}

/* ========================================
   Utility Classes
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Contact Form Component
======================================== */
.contact-form {
  max-width: 100%;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-olive);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-black);
  background-color: var(--bone-white);
  border: 2px solid var(--light-olive);
  border-radius: 0;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--stamp-red);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-file-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.form-file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-black);
  background-color: var(--bone-white);
  border: 2px solid var(--light-olive);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-file-label:hover {
  border-color: var(--stamp-red);
  background-color: rgba(179, 65, 50, 0.05);
}

.form-file-text {
  color: var(--light-olive);
  font-style: italic;
}

.form-file-text.has-file {
  color: var(--ink-black);
  font-style: normal;
}

.form-file-icon {
  color: var(--stamp-red);
  font-size: 1.2rem;
  font-weight: bold;
}

.form-file-icon::before {
  content: '+';
}

.form-submit {
  background: none;
  border: 2px solid var(--stamp-red);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--stamp-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.75rem;
}

.form-submit:hover:not(:disabled) {
  background-color: var(--stamp-red);
  color: var(--bone-white);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error States */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-file-label {
  border-color: var(--stamp-red);
  background-color: rgba(179, 65, 50, 0.05);
}

.form-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--stamp-red);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Success States */
.form-success {
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: left;
}

.form-success h3 {
  color: var(--dark-olive);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--ink-black);
  margin: 0;
}

/* Loading State */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(230, 222, 211, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-loading::before {
  content: 'Sending...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dark-olive);
  z-index: 1;
}

/* ========================================
   Lightbox Gallery Component
======================================== */

/* Gallery Container */
.gallery-container {
  margin: 2rem 0;
}

.gallery-trigger {
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Masonry Grid */
.masonry-grid {
  display: none; /* Hidden by default, shown when gallery opens */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 25, 0.95);
  z-index: 2000;
  overflow-y: auto;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

.masonry-grid.active {
  display: block;
}

.masonry-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  background-color: rgba(26, 26, 25, 0.95);
  padding: 1rem 0;
  z-index: 2001;
}

/* Remove title completely */

.masonry-close {
  display: none;
  background: none;
  border: none;
  color: var(--bone-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
  line-height: 1;
}

.masonry-close:hover {
  color: var(--stamp-red);
}

.masonry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  columns: 1;
  column-gap: 0;
  column-fill: balance;
  box-sizing: border-box;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
  overflow: hidden;
}

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

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.masonry-item:hover img {
  opacity: 0.9;
}

/* Responsive columns - matches project breakpoint structure */
@media (min-width: 768px) {
  .masonry-content {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-content {
    columns: 5;
  }
}

@media (min-width: 1400px) {
  .masonry-content {
    columns: 6;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 25, 0.98);
  z-index: 3000;
  overflow: hidden;
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Lightbox Controls */
.lightbox-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--stamp-red) !important;
  border: none;
  color: var(--bone-white) !important;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3001;
  transition: all var(--transition-fast);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.lightbox-close:hover {
  background-color: var(--dark-olive) !important;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bone-white);
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 300;
  padding: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 3001;
  line-height: 1;
}

.lightbox-nav:hover {
  color: var(--stamp-red);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
  color: var(--bone-white);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* Remove image info section completely */

/* Mobile adjustments */
@media (max-width: 768px) {
  .masonry-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .masonry-content {
    columns: 1;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
  
  .lightbox-nav {
    font-size: 2.5rem;
    padding: 0.75rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
}

/* Loading state */
.lightbox-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.lightbox-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(230, 222, 211, 0.3);
  border-top: 3px solid var(--bone-white);
  border-radius: 50%;
  animation: lightbox-spin 1s linear infinite;
}

@keyframes lightbox-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   File Download Card Component
======================================== */

.download-card {
  background-color: var(--bone-white);
  border: 2px solid var(--light-olive);
  padding: 1.5rem;
  margin: 2rem 0;
  transition: all var(--transition-fast);
  max-width: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.download-card:hover {
  border-color: var(--stamp-red);
  transform: translateY(-2px);
}

.download-card-info {
  flex: 1;
}

.download-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-black);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.download-card-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--light-olive);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.download-card-size,
.download-card-type {
  margin: 0;
}

.download-btn {
  background-color: var(--stamp-red);
  border: none;
  color: var(--bone-white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.download-btn:hover {
  background-color: var(--dark-olive);
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.download-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Loading state */
.download-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.download-card.loading .download-btn::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(230, 222, 211, 0.3);
  border-top: 2px solid var(--bone-white);
  border-radius: 50%;
  animation: download-spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes download-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile adjustments */
@media (max-width: 1023px) {
  .download-card {
    max-width: 100%;
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-card-info {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(70, 78, 59, 0.2);
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Card/Photo Carousel Component
======================================== */

.carousel-container {
  position: relative;
  margin: 2rem 0;
  padding: 0 5rem; /* More space for arrows outside content */
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-medium);
  gap: 1rem;
}

.carousel-item {
  flex: 0 0 auto;
  width: 300px;
  background-color: var(--bone-white);
  border: 2px solid var(--light-olive);
  transition: all var(--transition-fast);
}

.carousel-item:hover {
  border-color: var(--stamp-red);
  transform: translateY(-2px);
}

/* Photo Carousel Items */
.carousel-item.photo {
  border: none;
  background: none;
  width: auto; /* Allow width to be determined by image aspect ratio */
}

.carousel-item.photo:hover {
  transform: scale(1.02);
  border: none;
}

.carousel-photo {
  width: auto; /* Let width adjust based on aspect ratio */
  max-width: 400px; /* Prevent really wide images from getting too large */
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .carousel-photo {
    height: 150px;
    max-width: 300px; /* Smaller max width on mobile */
  }
}

/* Content Card Items */
.carousel-item.card {
  padding: 1.5rem;
}

.carousel-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-black);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.carousel-card-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-olive);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.carousel-card-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--stamp-red);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--stamp-red);
  padding-bottom: 0.25rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.carousel-card-link:hover {
  color: var(--dark-olive);
  border-bottom-color: var(--dark-olive);
  transform: translateY(-1px);
}

/* Text Links */
a {
  color: var(--stamp-red);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--dark-olive);
}

/* Navigation Controls */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--stamp-red);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
  padding: 0.75rem;
  line-height: 1;
}

.carousel-nav:hover {
  color: var(--dark-olive);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav:disabled:hover {
  color: var(--stamp-red);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Remove dots navigation completely */

/* Auto-play pause indicator - REMOVED */

/* Responsive adjustments */
@media (max-width: 1023px) {
  .carousel-container {
    padding: 0 4rem;
  }
  
  .carousel-item {
    width: 250px;
  }
  
  .carousel-nav {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 767px) {
  .carousel-container {
    padding: 0 3rem;
  }
  
  .carousel-item {
    width: 200px;
  }
  
  .carousel-item.card {
    padding: 1.25rem;
  }
  
  .carousel-photo {
    height: 150px;
  }
}

/* Loading state */
.carousel-container.loading .carousel-track {
  opacity: 0.7;
}

.carousel-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(26, 26, 25, 0.3);
  border-top: 3px solid var(--stamp-red);
  border-radius: 50%;
  animation: carousel-spin 1s linear infinite;
}

@keyframes carousel-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   Accordion/Collapsible Content Component
======================================== */

.accordion-container {
  margin: 2rem 0;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid var(--light-olive);
  background: none;
  margin-bottom: 0;
  transition: all var(--transition-fast);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item:hover {
  border-bottom-color: var(--stamp-red);
}

.accordion-item.active {
  border-bottom-color: var(--stamp-red);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  background: none;
  color: var(--stamp-red);
}

.accordion-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-black);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.accordion-icon {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 300;
  color: var(--stamp-red);
  transition: all var(--transition-fast);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  transform: none;
}

.accordion-content {
  overflow: hidden;
  transition: all var(--transition-medium);
  background-color: var(--bone-white);
}

.accordion-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-content.expanded {
  max-height: 1000px; /* Large enough for most content */
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.accordion-content-inner {
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-black);
  line-height: 1.6;
}

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

.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

.accordion-content-inner ul,
.accordion-content-inner ol {
  margin: 0 0 1rem 1.5rem;
}

.accordion-content-inner li {
  margin-bottom: 0.5rem;
}

.accordion-content-inner h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark-olive);
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.3;
}

.accordion-content-inner h4:first-child {
  margin-top: 0;
}

/* Single collapsible item (not in a group) */
.collapsible-item {
  border: none;
  border-bottom: 1px solid var(--light-olive);
  background: none;
  margin: 2rem 0;
  transition: all var(--transition-fast);
}

.collapsible-item:hover {
  border-bottom-color: var(--stamp-red);
}

.collapsible-item.active {
  border-bottom-color: var(--stamp-red);
}

/* Loading state */
.accordion-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

.accordion-item.loading .accordion-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(179, 65, 50, 0.3);
  border-top: 2px solid var(--stamp-red);
  border-radius: 50%;
  animation: accordion-spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes accordion-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .accordion-header {
    padding: 1.25rem;
  }
  
  .accordion-content-inner {
    padding: 0 1.25rem;
  }
  
  .accordion-content.expanded {
    padding-bottom: 1.25rem;
  }
  
  .accordion-title {
    font-size: 1rem;
  }
  
  .accordion-icon {
    font-size: 1.25rem;
    margin-left: 0.75rem;
  }
}

/* Accessibility improvements */
.accordion-header:focus {
  outline: none;
}

/* Smooth height transitions for better performance */
@media (prefers-reduced-motion: reduce) {
  .accordion-content {
    transition: none;
  }
  
  .accordion-icon {
    transition: none;
  }
}

/* ========================================
   Password Protection Component - Small Above Title
======================================== */

/* Password Overlay - covers entire page */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bone-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all var(--transition-medium);
}

.password-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Password Modal - Clean, no borders */
.password-modal {
  background-color: var(--bone-white);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

/* Site Branding - Small Above Title */
.password-branding {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark-olive);
  margin: 0 0 2rem 0;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.password-modal h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--ink-black);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.password-modal p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-olive);
  margin: 0 0 2.5rem 0;
  line-height: 1.5;
}

/* Password Form */
.password-form {
  margin-bottom: 1.5rem;
}

.password-input {
  width: 100%;
  max-width: 350px;
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-black);
  background-color: var(--bone-white);
  border: 2px solid var(--light-olive);
  border-radius: 0;
  text-align: center;
  margin-bottom: 2rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.password-input:focus {
  border-color: var(--stamp-red);
}

.password-input.error {
  border-color: var(--stamp-red);
  background-color: rgba(179, 65, 50, 0.05);
}

.password-submit {
  background-color: var(--stamp-red);
  color: var(--bone-white);
  border: none;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 350px;
}

.password-submit:hover:not(:disabled) {
  background-color: var(--dark-olive);
  transform: translateY(-1px);
}

.password-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error Message */
.password-error {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--stamp-red);
  margin: 1.5rem 0 0 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.password-error.show {
  opacity: 1;
}

/* Loading State */
.password-modal.loading .password-submit::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(230, 222, 211, 0.3);
  border-top: 2px solid var(--bone-white);
  border-radius: 50%;
  animation: password-spin 1s linear infinite;
  margin-left: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

@keyframes password-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .password-modal {
    padding: 2rem;
    margin: 1rem;
  }

  .password-branding {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .password-modal h1 {
    font-size: 1.6rem;
  }

  .password-input,
  .password-submit {
    max-width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* Success state animation */
.password-overlay.success {
  animation: fadeOut var(--transition-medium) ease-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* ========================================
   Carousel Lightbox Modal - Add to styles.css
======================================== */

/* Carousel Lightbox Modal (separate from gallery lightbox) */
.carousel-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 25, 0.98);
  z-index: 3500; /* Higher than gallery lightbox */
  overflow: hidden;
}

.carousel-lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
}

.carousel-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Carousel Lightbox Controls */
.carousel-lightbox-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--stamp-red) !important;
  border: none;
  color: var(--bone-white) !important;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3501;
  transition: all var(--transition-fast);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.carousel-lightbox-close:hover {
  background-color: var(--dark-olive) !important;
  transform: scale(1.1);
}

.carousel-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bone-white);
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 300;
  padding: 1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 3501;
  line-height: 1;
}

.carousel-lightbox-nav:hover {
  color: var(--stamp-red);
}

.carousel-lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-lightbox-nav:disabled:hover {
  color: var(--bone-white);
}

.carousel-lightbox-prev {
  left: 2rem;
}

.carousel-lightbox-next {
  right: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
  
  .carousel-lightbox-nav {
    font-size: 2.5rem;
    padding: 0.75rem;
  }
  
  .carousel-lightbox-prev {
    left: 1rem;
  }
  
  .carousel-lightbox-next {
    right: 1rem;
  }
}

/* ========================================
   Full-Width Gallery Section Type
======================================== */
.slide-section.full-width-gallery {
  background-color: var(--bone-white);
  display: flex;
  align-items: flex-start; /* Changed from center */
  justify-content: center;
  padding: var(--section-padding);
}

/* Desktop: Span both columns */
@media (min-width: 1024px) {
  .slide-section.full-width-gallery {
    grid-column: 1 / -1;
    min-height: 100vh;
  }
}

.slide-section.full-width-gallery .section-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: calc(100vh - calc(var(--section-padding) * 2));
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

/* Hide scrollbar for WebKit browsers */
.slide-section.full-width-gallery .section-content::-webkit-scrollbar {
  display: none;
}

/* Mobile: Normal stacking */
@media (max-width: 1023px) {
  .slide-section.full-width-gallery {
    padding: var(--section-padding-mobile);
    min-height: auto;
  }
  
  .slide-section.full-width-gallery .section-content {
    max-height: none;
    overflow-y: visible;
  }
}

/* ========================================
   Inline Masonry Gallery (always visible on page)
======================================== */
.masonry-content-inline {
  width: 100% !important;
  columns: 5 !important; /* Force 5 columns on desktop */
  column-gap: 0 !important;
  column-fill: balance !important;
  margin-top: 2rem;
}

.masonry-content-inline .masonry-item {
  break-inside: avoid;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform var(--transition-fast);
  overflow: hidden;
  display: block;
}

.masonry-content-inline .masonry-item:hover {
  transform: scale(1.02);
}

.masonry-content-inline .masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition-fast);
}

.masonry-content-inline .masonry-item:hover img {
  opacity: 0.9;
}

/* Responsive columns */
@media (max-width: 767px) {
  .masonry-content-inline {
    columns: 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .masonry-content-inline {
    columns: 2 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .masonry-content-inline {
    columns: 5 !important;
  }
}

@media (min-width: 1400px) {
  .masonry-content-inline {
    columns: 6 !important;
  }
}

/* Inline Gallery Lightbox */
.inline-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 25, 0.98);
  z-index: 3000;
  overflow: hidden;
}

.inline-lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}


.identity-flow {
    font-size: 1.125rem;
    line-height: 2;
    text-align: center;
    color: var(--dark-olive);
}