/**
 * =============================================================================
 * STYLESHEET CORE ARCHITECTURE (styles.css)
 * Liuteria De Ninno - Handcrafted Acoustic Guitars
 * =============================================================================
 *
 * TABLE OF CONTENTS:
 *   1. @FONT-FACE DECLARATIONS (Local WOFF2 webfonts with font-display: swap)
 *   2. DESIGN SYSTEM TOKENS & FLUID TYPOGRAPHY (:root)
 *   3. RESET, BASE RESETS & CSS-FIRST BILINGUAL SWITCHER
 *   4. LAYOUT CONTAINERS & ACCESSIBILITY SKIP LINK
 *   5. NAVIGATION SYSTEMS (Desktop bar & Hamburger / Slide-out drawer)
 *   6. HERO SECTION (Art direction, responsive picture, animations)
 *   7. HOMEPAGE INTRO & SLIDESHOW CAROUSEL
 *   8. ABOUT PAGE (Story narrative, Luthier portrait, Sound design grid, Photo swap)
 *   9. INSTRUMENT GALLERY GRID & HOVER EFFECTS
 *  10. FULLSCREEN LIGHTBOX MODAL DIALOG
 *  11. CONTACT SECTION, BUTTONS & ON-DEMAND MAP EMBED
 *  12. SITE FOOTER & SOCIAL MEDIA ICONS
 *  13. FLOATING BACK-TO-TOP TRIGGER
 *  14. RESPONSIVE MEDIA QUERIES (Desktop >=768px, Mobile <768px, Tiny <480px, Ultrawide >=1200px/1800px)
 *  15. CROSS-DOCUMENT VIEW TRANSITIONS & ACCESSIBILITY (prefers-reduced-motion)
 *
 * Z-INDEX STACKING HIERARCHY:
 *   - Base page content:       z-index: 0 to 2
 *   - Interactive thumbnails:  z-index: 3 to 5
 *   - Floating Back-to-Top:    z-index: 999
 *   - Desktop Navigation bar:  z-index: 1000
 *   - Mobile Slide Drawer:     z-index: 1001
 *   - Mobile Hamburger button: z-index: 1002
 *   - Accessibility Skip Link: z-index: 9999
 *   - Lightbox Modal dialog:   z-index: 10000
 *   - Lightbox Modal controls: z-index: 10002
 * =============================================================================
 */

/* =============================================================================
   1. @FONT-FACE DECLARATIONS
   ============================================================================= */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/Media/Fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/Media/Fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/Media/Fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/Media/Fonts/roboto-v51-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/Media/Fonts/roboto-v51-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/Media/Fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/Media/Fonts/inter-v20-latin-500.woff2') format('woff2');
}

/* =============================================================================
   2. DESIGN SYSTEM TOKENS & FLUID TYPOGRAPHY SCALE
   ============================================================================= */
:root {
   --color-dark: #1c1c1c;
   --color-semidark: #343c57;
   --accent-semidark: #0079be;
   --color-light: #fffaeb;
   --color-middle: #f1f2f0;
   --accent-green: #7a9e6e;
   --accent: #d48154;
   --color-dark-rgb: 28, 28, 28;          /* #1c1c1c */
   --color-semidark-rgb: 52, 60, 87;      /* #343c57 */
   --accent-semidark-rgb: 0, 121, 190;   /* #0079be */
   --color-light-rgb: 255, 250, 235;      /* #fffaeb */
   --color-middle-rgb: 241, 242, 240;     /* #f1f2f0 */
   --accent-green-rgb: 122, 158, 110;     /* #7a9e6e */
   --accent-rgb: 212, 129, 84;            /* #d48154 */
   --border-radius: 8px;
   --transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
   --transition-smooth: color 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-elegant: 0 8px 25px rgba(0, 0, 0, 0.15);
   
   /* Typography Steps, they manage text dimensions */
   --step--2: clamp(0.64rem, 0.56rem + 0.3vw, 0.8rem);
   --step--1: clamp(0.8rem, 0.72rem + 0.3vw, 1rem);
   --step-0: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
   --step-1: clamp(1.25rem, 1.1rem + 0.5vw, 1.56rem);
   --step-2: clamp(1.56rem, 1.4rem + 0.7vw, 1.95rem);
   --step-3: clamp(1.95rem, 1.7rem + 0.8vw, 2.44rem);
   --step-4: clamp(2.44rem, 2rem + 1vw, 3.05rem);
   --step-5: clamp(3.05rem, 2.5rem + 1.2vw, 3.81rem);
   --hero-title-scale: 1;
   --hero-meta-scale: 1;
}

/* =============================================================================
   3. RESET, BASE RESETS & CSS-FIRST BILINGUAL SWITCHER
   ============================================================================= */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

.hidden-language {
    display: none;
}

/* Default state: English visible, Italian hidden */
.lang-it {
    display: none;
}

/* Instantly flips language visibility based on data-lang set in <head> before render */
html[data-lang="it"] .lang-en {
    display: none;
}
html[data-lang="it"] .lang-it {
    display: inline;
}

.language-toggle{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top: 2rem;

    background:none;
    border:none;
    cursor:pointer;

    color:inherit;
    font:inherit;
}

.language-toggle svg{
    width:18px;
    height:18px;
}

html {
   scroll-behavior: smooth;
   background-color: #faf7f3;
   scrollbar-gutter: stable;
}

body {
   font-family: 'Roboto', sans-serif;
   font-weight: 300;
   font-size: var(--step-0);
   line-height: 1.6;
   color: var(--color-dark);
   background: linear-gradient(180deg, #faf7f3 0%, #f7f5f1 100%);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   overflow-x: hidden;
}

body.menu-open {
   overflow: hidden;
   padding-right: 0 !important;
}

/* Central Accent Divider under Hero section */
.page-section::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  border-radius: 5px;
  box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.08);
  height: 50px;
  background: var(--accent);
  z-index: 1000;          /* below mobile nav drawer (1001) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-section.divider-visible::before {
  opacity: 1;
}

/* Per-page accent divider overrides */
#main .page-section::before         { background: var(--accent); }
#about-page .page-section::before   { content: none !important; background: none !important; border: none !important; }
#about-page .story-title::after,
#about-page .technical-title::after { content: none; }
#gallery-page .page-section::before { background: var(--accent); }
#contact-page .page-section::before { background: var(--accent); }

/* Typography Rules */
h1 {
   font-size: var(--step-5);
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   line-height: 1.2;
   margin-bottom: 0.5rem;
   letter-spacing: 0.20em;
   text-align: center;
}

h2 {
   font-size: var(--step-4);
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   text-align: center;
   margin-bottom: 2rem;
}

h2::after {
   content: '';
   display: block;
   width: 140px;
   height: 3px;
   background: var(--accent);
   margin: 0.6rem auto 0;
   transform: scaleX(0.85);
   transform-origin: center;
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

h2:hover::after {
   transform: scaleX(1.1);
}

h3 {
   font-size: var(--step-3);
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
}

h4 {
   font-size: var(--step-2);
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
}

p {
   font-size: var(--step-0);
   line-height: 1.7;
   margin-bottom: 1.5rem;
   font-family: 'Roboto', sans-serif;
   font-weight: 300;
}

small {
   font-size: var(--step--1);
}

/* =============================================================================
   4. LAYOUT CONTAINERS & ACCESSIBILITY SKIP LINK
   ============================================================================= */
.main-container {
   position: relative;
   background: var(--color-middle);
}

.page-section {
   position: relative;
   width: 100vw;
   margin-left: calc(-50vw + 50%);
   padding: 4rem 2rem;
   box-sizing: border-box;
}

.section-content {
   max-width: 1200px;
   margin: 0 auto;
   width: 100%;
}

.skip-link {
   position: absolute;
   left: -999px;
   z-index: 9999;
}

.skip-link:focus {
   left: 1rem;
   top: 1rem;
   background: #fff;
   padding: 0.5rem 1rem;
   border-radius: 6px;
   box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
   font-weight: 600;
}

/* =============================================================================
   5. NAVIGATION SYSTEMS (Desktop Bar & Mobile Drawer)
   ============================================================================= */
.desktop-nav {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   display: none;
   z-index: 1000;
   padding: 1.5rem 0;
   transition: var(--transition-smooth);
}

.desktop-nav .nav-content {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1.5rem;
   max-width: 1200px;
   margin: 0rem auto;
   padding: 0 2rem;
   position: relative;
}

.desktop-nav .language-toggle-container {
   position: absolute;
   top: 50%;
   right: 1.25rem;
   transform: translateY(-50%);
   z-index: 1;
}

.desktop-nav .language-toggle {
   margin-top: 0;
   color: #fff;
}

.desktop-nav .language-toggle svg {
   stroke: #fff;
}

.desktop-nav .nav-link {
   color: var(--color-light);
   font-family: 'Cormorant Garamond', serif;
   font-size: var(--step-0);
   font-weight: 500;
   text-decoration: none;
   padding: 0.5rem 1rem;
   transition: var(--transition-smooth);
   position: relative;
   text-transform: uppercase;
   letter-spacing: 0.1em;
}


.nav-link.active, .mobile-nav .nav-link.active {
  color: var(--accent);
  font-weight: 700;
   border-radius: 10px;
   background: rgba(var(--accent-rgb), 0.1);
}

.desktop-nav .nav-link:hover {
   color: var(--accent);
   transform: translateY(-2px) scale(1.06);
   transition: transform 160ms ease, color 160ms ease;
}

.desktop-nav .nav-link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 2px;
   background: var(--accent);
   transition: width 0.3s ease;
}

.desktop-nav .nav-link:hover::after {
   width: 80%;
}

/* Navigation - Mobile Button (Hamburger):
   The icon button that appears on small screens to open the menu.
   It animates into an 'X' when the menu is open.
*/
.mobile-menu-button {
   position: absolute;
   top: 20px;
   right: 20px;
   background: transparent;
   border: none;
   display: none;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   cursor: pointer;
   z-index: 1002;
   width: 50px;
   height: 50px;
   padding: 0;
}

.mobile-menu-button:hover {
   transform: scale(1.1);
}

.menu-line {
   display: block;
   width: 25px;
   height: 2px;
   background: var(--color-light);
   border-radius: 1.5px;
   transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
   transform-origin: center;
}

.menu-line:first-child {
   margin-bottom: 6px;
}

.mobile-menu-button[aria-expanded="true"] .menu-line:first-child {
   transform: rotate(45deg) translate(3px, 3px);
   background: var(--color-dark);
}

.mobile-menu-button[aria-expanded="true"] .menu-line:last-child {
   transform: rotate(-45deg) translate(3px, -3px);
   background: var(--color-dark);
}

.mobile-menu-button:hover .menu-line {
   background: var(--accent);
}

/* Navigation - Mobile Menu:
   The slide-out menu panel for mobile devices.
   It sits off-screen by default and slides in when the button is clicked.
*/
.mobile-nav {
   position: fixed;
   top: 0;
   right: 0;
   min-width: 240px;
   max-width: 400px;
   width: 75%;
   height: 100vh;
   background: rgba(var(--color-light-rgb), 0.84);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   transform: translateX(100%);
   transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   z-index: 1001;
   overflow-y: auto;
   box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
   pointer-events: none;
}

/* NEW: Isolate the background and blur onto a pseudo-element inside the drawer */
.mobile-nav::before {
   content: "";
   position: absolute;
   inset: 0;
   background: rgba(var(--color-light-rgb), 0.84);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   z-index: -1;
}

.mobile-nav.open {
   transform: translateX(0);
   pointer-events: auto;
}

.embedded-webview .mobile-nav {
   right: 0;
   left: 0;
   width: 100%;
   min-width: auto;
   max-width: none;
   transform: none;
   transition: none;
   display: flex;
   visibility: hidden;
   opacity: 0;
   box-shadow: none;
   background: rgba(var(--color-light-rgb), 0.95);
   pointer-events: none;
   isolation: isolate;
}

.embedded-webview .mobile-nav::before {
   backdrop-filter: none;
   -webkit-backdrop-filter: none;
}

.embedded-webview .mobile-nav.open {
   visibility: visible;
   opacity: 1;
   pointer-events: auto;
}

.embedded-webview .mobile-menu-button:hover {
   transform: none;
}

.embedded-webview .mobile-menu-button:hover .menu-line {
   background: var(--accent);
}

.embedded-webview .mobile-menu-button,
.embedded-webview .mobile-nav .nav-link {
   touch-action: manipulation;
   -webkit-tap-highlight-color: transparent;
}

.embedded-webview .menu-line,
.embedded-webview .hero-content,
.embedded-webview .reveal {
   transition: none;
}

.embedded-webview .hero-content {
   animation: none;
   opacity: 1;
}

.embedded-webview .hero-bg-img {
   transform: none;
}

.embedded-webview .reveal {
   opacity: 1;
   transform: none;
}

@media (min-width: 768px) {
   .embedded-webview .mobile-nav {
      display: none;
   }
}

.embedded-webview body.menu-open {
   overflow: visible;
}

.mobile-nav .nav-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 2rem;
   padding: 2rem;
   width: 80%;
}

.mobile-nav .nav-link {
   color: var(--color-dark);
   font-family: 'Cormorant Garamond', sans-serif;
   text-transform: uppercase;
   font-size: var(--step-1);
   font-weight: 500;
   text-decoration: none;
   padding: 1rem 0.2rem;
   transition: var(--transition-smooth);
   text-align: center;
   border-radius: var(--border-radius);
   width: 100%;
   position: relative;
   overflow: hidden;
}

.mobile-nav .nav-link:hover {
   color: var(--accent);
   transform: translateY(-5px);
   font-weight: 700;
}

/* =============================================================================
   6. HERO SECTION
   ============================================================================= */

/* Define the Hero section animation at load */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  text-align: center;
  position: relative;
  overflow: hidden;
  --bg-scale: 1.2;
}

/* Replaces the ::after pseudo-element background on all screen sizes */
.hero-section > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--bg-scale));
  transform-origin: center center;
}

.hero-section::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: clamp(120px, 18vh, 350px);
   background: linear-gradient(to bottom, rgba(var(--color-dark-rgb), 1) 0%, rgba(var(--color-dark-rgb), 0) 100%);
   z-index: 1;
   pointer-events: none;
   transition: opacity 0.3s ease;
}


.hero-section>* {
   position: relative;
   z-index: 2;
}

.hero-content {
   font-family: 'Roboto', sans-serif;
   position: relative;
   z-index: 2;
   max-width: 800px;
   padding: 0 1rem;
   transform: translateZ(0);
   transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   /*Fade in animation on page load*/
   opacity: 0; /* Start invisible */
   animation: heroFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
   /*animation-delay: 0.2s; /* Optional: short delay to let the background load first */
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 25%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content.fade-out {
   opacity: 0 !important;
   transform: translateY(-50px) scale(0.95) !important;
}

.hero-logo {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-dark);
  box-shadow: -20px -20px 80px 2px var(--color-light);
  object-fit: cover;
  pointer-events: none;
}

.hero-title {
   font-family: 'Cormorant Garamond', serif;
   letter-spacing: 0.20em;
   font-weight: 400;
   margin-bottom: 0.5rem;
   color: var(--color-light);
   text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
   font-size: calc(var(--step-5) * var(--hero-title-scale));
   line-height: 1.05;
}

.hero-subtitle {
   font-family: 'Cormorant Garamond', serif;
   font-style: italic;
   font-weight: 300;
   letter-spacing: 0.03rem;
   font-size: calc(var(--step-1) * var(--hero-meta-scale));
   margin-bottom: 2rem;
   opacity: 0.9;
   color: var(--color-light);
}

.cta-button1 {
   text-decoration: none;
   background: rgba(var(--accent-semidark-rgb), 0.2);
   color: var(--color-dark);
   border: 2px solid var(--color-dark);
   padding: calc(1rem * var(--hero-meta-scale)) calc(1.2rem * var(--hero-meta-scale));
   border-radius: var(--border-radius);
   font-family: 'Inter', sans-serif;
   font-weight: 500;
   font-size: calc(var(--step-0) * var(--hero-meta-scale));
   cursor: pointer;
   transition: var(--transition-smooth);
   display: inline-flex;
   align-items: center;
   gap: 0.75rem;
   margin-top: 1rem;
   opacity: 1;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button1:hover {
   background: rgba(var(--color-semidark-rgb));
   color: var(--color-light);
   border-color: var(--color-dark);
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button2 {
   text-decoration: none;
   background: rgba(var(--accent-rgb), 0.3);
   color: var(--color-dark);
   border: 2px solid var(--color-dark);
   padding: calc(1rem * var(--hero-meta-scale)) calc(1.2rem * var(--hero-meta-scale));
   border-radius: var(--border-radius);
   font-family: 'Inter', sans-serif;
   font-weight: 500;
   font-size: calc(var(--step-0) * var(--hero-meta-scale));
   cursor: pointer;
   transition: var(--transition-smooth);
   display: inline-flex;
   align-items: center;
   gap: 0.75rem;
   margin-top: 1rem;
   opacity: 1;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button2:hover {
   background: rgba(var(--accent-rgb));
   color: var(--color-light);
   border-color: var(--color-semidark);
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.scroll-arrow {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   text-decoration: none;
   transition: var(--transition-smooth);
   margin-top: 1.5rem;
   position: relative;
   padding: 0.25rem;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(8px) scale(1.2); }
}

.scroll-arrow svg {
   width: 24px;
   height: 24px;
   stroke: var(--color-light);
   transition: stroke 0.4s cubic-bezier(0.23, 1, 0.32, 1), stroke-width 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
   animation: arrowBounce 2s ease-in-out infinite;
   position: relative;
   z-index: 2;
}

.scroll-arrow:hover svg {
   stroke: var(--accent);
   stroke-width: 2.5;
}

.scroll-arrow::before {
   content: "";
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%) scale(0.9);
   width: 56px;
   height: 56px;
   border-radius: 50%;
   background: rgba(0, 0, 0, 0.35);
   backdrop-filter: blur(6px);
   -webkit-backdrop-filter: blur(6px);
   opacity: 0;
   transition: opacity 180ms ease, transform 180ms ease;
   z-index: 1;
   pointer-events: none;
}

.scroll-arrow:hover::before {
   opacity: 0.8;
   transform: translate(-50%, -50%) scale(1);
}

/* =============================================================================
   7. HOMEPAGE INTRO & SLIDESHOW CAROUSEL
   ============================================================================= */
.about-section {
   background: linear-gradient(180deg, #faf7f3 0%, #f7f5f1 100%);
   color: var(--color-dark);
   position: relative;
   padding: 4rem 0;
}

.about-section>* {
   position: relative;
   z-index: 2;
}

.intro-container {
   max-width: 1000px;
   margin: 0 auto 4rem;
   padding: 0 1rem;
   text-align: center;
}

.intro-paragraph {
   font-family: 'Cormorant Garamond', sans-serif;
   font-weight: 400;
   font-size: var(--step-0);
   text-align: center;
   padding: 0 2rem;
}

.about-slideshow {
   position: relative;
   width: 100%;
   max-width: min(1200px, calc(80vh * 0.75));
   margin: 0 auto;
   overflow: hidden;
}

.slideshow-container {
   position: relative;
   aspect-ratio: 3/4;
   width: 100%;
   margin: 0 auto;
   overflow: hidden;
   border-radius: 2px;
   box-shadow: var(--shadow-elegant);
   max-width: min(calc(80vh * 0.75), 80vw, 1200px);
   max-height: min(80vh, 1920px);
}

.slide {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   opacity: 0;
   transition: opacity 0.8s ease-in-out;
   display: flex;
   align-items: center;
   justify-content: center;
}

.slide.active {
   opacity: 1;
}

.slide-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
}

.slideshow-nav {
   position: absolute;
   bottom: 1rem;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 0.5rem;
   z-index: 10;
}

.slideshow-dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.7);
   border: 1px solid rgba(255, 255, 255, 0.9);
   cursor: pointer;
   transition: transform 0.3s ease, background-color 0.3s ease;
}

.slideshow-dot.active {
   background: var(--accent);
   transform: scale(1.5);
}

.slideshow-dot:hover {
   transform: translateY(-2px);
}

.slideshow-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(0, 0, 0, 0.3);
   color: white;
   border: none;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: var(--step-1);
   transition: background-color 0.3s ease, transform 0.3s ease;
   z-index: 10;
   -webkit-backdrop-filter: blur(5px);
   backdrop-filter: blur(5px);
}

.slideshow-arrow:hover {
   background: rgba(0, 0, 0, 0.5);
   color: var(--accent);
   transform: translateY(-50%) scale(1.2);
}

.slideshow-prev {
   left: 1rem;
}

.slideshow-next {
   right: 1rem;
}

/* =============================================================================
   8. ABOUT PAGE (Story, Portrait, Sound Design Grid, Photo Swap)
   ============================================================================= */

.about-portrait-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -110px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 5;
}

.about-portrait {
   width: 280px;
   height: 420px;
   object-fit: cover;
   object-position: center top;
   border-radius: 2.5px;
   border: 2px solid var(--color-light);
   opacity: 0;
   transform: translateY(40px);
   transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
               transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-portrait.is-visible {
   opacity: 1;
   transform: translateY(0);
}

.about-content {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 1rem;
}

.story-title {
   font-family: 'Cormorant Garamond', serif;
   letter-spacing: 0.01em;
   font-weight: 100;
   margin-top: 3rem;
   margin-bottom: 2rem;
   color: var(--color-dark);
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
   font-size: var(--step-4);
}

.about-text-content {
   padding: 1rem 0;
   margin: 0 2rem;
}

.about-text-content p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-0);
   font-weight: 400;
   text-align: left;
   margin-bottom: 3rem;
}

.soundboard-photo.reveal, .back-photo.reveal, .rim-photo.reveal, .curves-photo.reveal {
  max-width: 450px;
  width: 100%;
  margin: 2rem auto;
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  margin-top: 2rem;
}

.soundboard-pic .photo-main, .back-pic .photo-main, .rim-pic .photo-main, .curves-pic .photo-main {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  border: none;
  box-shadow: none;
}

.soundboard-pic, .back-pic, .rim-pic, .curves-pic {
   border-radius: 4px;
   overflow: hidden;
   width: 100%;
   aspect-ratio: 3 / 4;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.technical-title {
   font-family: 'Cormorant Garamond', serif;
   letter-spacing: 0.01em;
   font-weight: 100;
   margin-top: 3rem;
   margin-bottom: 3rem;
   color: var(--color-dark);
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
   font-size: var(--step-4);
   text-align: center;
}

.about-technical-soundboard {
   padding: 1rem 0;
   margin: 0 2rem;
}

.about-technical-soundboard p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-weight: 400;
   font-size: var(--step-0);
   text-align: left;
}

.about-technical-back {
   padding: 1rem 0;
   margin: 0 2rem;
}

.about-technical-back p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-0);
   font-weight: 400;
   text-align: left;
}

.about-technical-rim {
   padding: 1rem 0;
   margin: 0 2rem;
}

.about-technical-rim p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-0);
   font-weight: 400;
   text-align: left;
   margin-bottom: 5rem;
}

.about-technical-curves {
   padding: 1rem 0;
   margin: 0 2rem;
}

.about-technical-curves p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-weight: 400;
   font-size: var(--step-0);
   text-align: left;
}

.photo-thumb {
  position: absolute;
  bottom: -35px;
  right: 10px;
  width: 22%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  /*border: 2px solid var(--color-middle);*/
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
   border: 1px solid rgba(var(--color-light-rgb), 1);
  cursor: pointer;
  z-index: 3;
  opacity: 0.84;
  transition: opacity 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-thumb:hover {
  transform: scale(1.06);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.photo-thumb-2 {
  position: absolute;
  bottom: 5%;
  right: -10px;
  width: 22%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  /*border: 2px solid var(--color-middle);*/
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(var(--color-light-rgb), 1);
  cursor: pointer;
  z-index: 3;
  opacity: 0.84;
  transition: opacity 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-thumb-2:hover {
  transform: scale(1.06);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.photo-swap-container.swapping .photo-main,
.photo-swap-container.swapping .photo-thumb,
.photo-swap-container.swapping .photo-thumb-2 {
  opacity: 0;
}


/* =============================================================================
   9. INSTRUMENT GALLERY GRID & HOVER EFFECTS
   ============================================================================= */
.gallery-section {
   background: var(--color-middle);
   color: var(--color-dark);
}

.gallery-page {
  padding-top: 2rem;
}

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
   margin-top: 2rem;
}

.gallery-group {
  margin-bottom: 6rem;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.model-chamber-intro {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-4);
   font-weight: 400;
   text-align: center;
   margin-top: 2rem;
   margin-bottom: 3rem;
}

.model-chamber-description {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-0);
   font-weight: 400;
   text-align: center;
   margin-top: 1rem;
   margin-bottom: 3rem;
   max-width: 800px;
   margin-left: auto;
   margin-right: auto;
}

.gallery-group-title {
   font-family: 'Cormorant Garamond', serif;
   letter-spacing: 0.01em;
   font-weight: 100;
   margin-top: 4rem;
   margin-bottom: 1.5rem;
   color: var(--color-dark);
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
   font-size: var(--step-3);
   text-align: center;
}

.gallery-item {
   position: relative;
   border-radius: 2px;
   overflow: hidden;
   box-shadow: var(--shadow);
   transition: var(--transition-smooth);
   background: white;
   cursor: pointer;
}

.gallery-link {
   display: block;
   position: relative;
   cursor: pointer;
   z-index: 1;
}

.gallery-item::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(45deg, rgba(var(--color-semidark-rgb), 1) 0%, transparent 50%);
   opacity: 0;
   transition: opacity 0.4s ease;
   z-index: 1;
   mix-blend-mode: overlay;
}

.gallery-item:hover {
   transform: translateY(-3px) scale(1.01);
   box-shadow: var(--shadow-elegant);
}

.gallery-item:hover::before {
   opacity: 0.2;
}

.gallery-item img {
   transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
   width: 100%;
   height: 300px;
   object-fit: cover;
   display: block;
   pointer-events: none;
}

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

.gallery-overlay {
   position: absolute;
   inset: 0;
   background: rgba(212, 175, 55, 0.1);
   opacity: 0;
   transition: var(--transition);
   pointer-events: none;
}

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

/* =============================================================================
   10. FULLSCREEN LIGHTBOX MODAL DIALOG
   ============================================================================= */
.lightbox {
   position: fixed;
   inset: 0;
   background: rgba(20, 20, 20, 0.9);
   backdrop-filter: blur(14px);
   -webkit-backdrop-filter: blur(14px);
   display: none;
   align-items: center;
   justify-content: center;
   z-index: 10000;
   opacity: 0;
   transition: opacity 0.28s ease, -webkit-backdrop-filter 0.28s ease, backdrop-filter 0.28s ease;
   pointer-events: none;
}

.lightbox::after {
   content: '';
   position: absolute;
   inset: 0;
   pointer-events: none;
   box-shadow: inset 0 120px 200px rgba(0, 0, 0, 0.35);
}

.lightbox.active {
   display: flex;
   opacity: 1;
   pointer-events: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
   position: absolute;
   background: rgba(0, 0, 0, 0.3);
   color: white;
   border: none;
   cursor: pointer;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background-color 0.3s ease, transform 0.3s ease;
   border-radius: 50%;
   z-index: 10002;
   -webkit-backdrop-filter: blur(5px);
   backdrop-filter: blur(5px);
}

.lightbox-close {
   top: 2rem;
   right: 2rem;
   font-size: var(--step-2);
   font-weight: 300;
   line-height: 1;
}

.lightbox-prev,
.lightbox-next {
   top: 50%;
   transform: translateY(-50%);
   font-size: var(--step-1);
}

.lightbox-prev {
   left: 1rem;
}

.lightbox-next {
   right: 1rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
   background: rgba(0, 0, 0, 0.5);
   color: var(--accent);
   transform: scale(1.2);
}

.lightbox-prev:hover,
.lightbox-next:hover {
   transform: translateY(-50%) scale(1.2);
}

.lightbox-content {
   width: min(calc(96vh * 0.75), 96vw, 1440px);
   max-height: min(96vh, 1920px);
   position: relative;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 0.5rem;
   min-width: 0;  
   overflow: hidden;
}

.lightbox-image {
   object-fit: contain;
   border-radius: 2px;
   transform-origin: center center;
   touch-action: none;
   cursor: default;
   width: min(calc(96vh * 0.75), 96vw, 1440px);
   max-height: min(96vh, 1920px);
   margin-bottom: auto;
   margin-left: auto;
   margin-right: auto;
}

.lightbox-image.zoomed {
   cursor: grab;
}

.lightbox-image.zoomed:active {
   cursor: grabbing;
}

/* =============================================================================
   11. CONTACT SECTION, BUTTONS & ON-DEMAND MAP EMBED
   ============================================================================= */
.contact-section {
   background: var(--color-middle);
   color: var(--color-dark);
}

.contact-header p {
   font-family: 'Cormorant Garamond', sans-serif;
   font-size: var(--step-0);
   font-weight: 400;
   text-align: center;
   max-width: 900px;
   margin: 0 auto 4rem;
   padding: 0 1rem;
}

.contact-button {
   text-decoration: none;
   background: rgba(var(--accent-green-rgb), 0.3);
   color: var(--color-dark);
   border: 2px solid var(--color-dark);
   padding: calc(1rem * var(--hero-meta-scale)) calc(2rem * var(--hero-meta-scale));
   border-radius: var(--border-radius);
   font-family: 'Inter', sans-serif;
   font-weight: 500;
   font-size: calc(var(--step-0) * var(--hero-meta-scale));
   cursor: pointer;
   transition: var(--transition-smooth);
   align-items: center;
   gap: 0.75rem;
   margin: 1rem auto 4rem;
   opacity: 1;
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px; /* Controls the space between the envelope and the text */
}

 .contact-button:hover {
   background: rgba(var(--accent-green-rgb));
   color: var(--color-light);
   border-color: var(--color-dark);
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-map-centered {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   margin: 0 auto;
   width: 100%;
   max-width: 600px;
}

.map-embed {
  width: 100%;
}

.map-embed iframe {
   height: 250px;
   width: 100%;
   border-radius: var(--border-radius);
}

.map-address {
   text-align: center;
   margin-top: 1rem;
}

.map-address a {
   text-decoration: none;
   color: var(--color-dark);
   font-weight: 400;
   font-size: var(--step-0);
   transition: var(--transition);
}

.map-address a:hover {
   color: var(--accent-green);
   text-decoration: underline;
}

/* =============================================================================
   12. SITE FOOTER & SOCIAL MEDIA ICONS
   ============================================================================= */
.site-footer {
   background: linear-gradient(
    to bottom,
    rgba(52, 60, 87, 0.9) 0%,
    rgba(15, 15, 18, 0.97) 100%
  );
   color: var(--color-light);
   padding: 2rem 1rem 1rem;
   text-align: center;
   position: relative;
   overflow: hidden;
}

.footer-content {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   gap: 2rem;
   position: relative;
   z-index: 2;
}

.footer-text {
   margin-bottom: 0.8rem;
   color: var(--color-light);
   font-family: 'Cormorant Garamond', serif;
}

.footer-brand {
   font-size: var(--step-3);
   font-weight: 400;
   font-family: 'Cormorant Garamond', serif;
   letter-spacing: 0.12em;
   margin-bottom: 0.2em;
}

.footer-subtitle {
   font-size: var(--step-0);
   font-weight: 100;
   color: var(--color-light);
   font-family: 'Cormorant Garamond', serif;
   font-style: italic;
   margin-bottom: 0;
}

.footer-address {
   text-decoration: none;
   font-size: var(--step--1);
   opacity: 0.55;
   font-weight: 100;
   color: var(--color-light);
   letter-spacing: -0.04em;
}

.footer-address:hover {
   text-decoration: underline;
}

.footer-copyright {
   font-size: var(--step--2);
   opacity: 0.55;
   font-weight: 100;
   color: var(--color-light);
   margin-top: 4rem;
   margin-bottom: 0rem;
   letter-spacing: -0.04em;
}

.footer-privacy-policy {
   letter-spacing: -0.04em;
   font-size: var(--step--2);
   font-weight: 100;
   opacity: 0.55;
   color: var(--color-light);
   margin-left: 10%;
   margin-right: 10%;
}

.footer-social {
   display: flex;
   justify-content: center;
   gap: 1rem;
   margin-top: 2rem;
   margin-bottom: 0.6rem;
}

.footer-social-link {
   transition: var(--transition);
   padding: 0.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.footer-social-link:hover {
   transform: translateY(-3px);
}

.footer-social-icon {
   width: 24px;
   height: 24px;
   transition: var(--transition);
   filter: brightness(0) invert(1);
}

.footer-social-link:hover .footer-social-icon {
   filter: brightness(0) invert(0.72) sepia(1) saturate(5) hue-rotate(-5deg);
}

.footer-logo {
   width: 80%;
   height: auto;
   max-width: 260px;
   object-fit: cover;
   margin-left: 2rem;
   margin-right: 2rem;
   margin-bottom: 1.5rem;
}

/* =============================================================================
   13. FLOATING BACK-TO-TOP TRIGGER
   ============================================================================= */
.back-to-top {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   width: 50px;
   height: 50px;
   background: rgba(0, 0, 0, 0.2);
   color: #fff;
   border: none;
   opacity: 0;
   border-radius: 50%;
   cursor: pointer;
   visibility: hidden;
   transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
   z-index: 999;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: var(--shadow-elegant);
   font-size: var(--step-1);
   pointer-events: auto;
}

.back-to-top.visible {
   opacity: 1;
   visibility: visible;
}

.back-to-top:hover {
   transform: translateY(-4px) scale(1.06);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
   color: var(--accent);
}

.instagram-link,
.youtube-link {
   color: var(--accent);
   text-decoration: none;
   transition: var(--transition);
}

.instagram-link:hover,
.youtube-link:hover {
   color: var(--accent-green);
   text-decoration: underline;
}

/* Map placeholder & Reveal Button */
.map-placeholder {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.map-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal-map-btn {
  position: absolute;
  top: 85%;
  left: 82%;
  transform: translate(-50%, -50%);
  background: transparent;
  color: var(--color-dark);
  opacity: 1;
  border: 1px solid var(--color-dark);
  padding: calc(0.8rem * var(--hero-meta-scale)) calc(0.8rem * var(--hero-meta-scale));
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: calc(0.8 * var(--step-0) * var(--hero-meta-scale));
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.reveal-map-btn:hover {
  background: var(--color-semidark);
  color: var(--color-light);
  border-color: var(--color-dark);
  opacity: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   14. RESPONSIVE MEDIA QUERIES
   ============================================================================= */

/* Desktop & Tablets (>= 768px) */
@media (min-width: 768px) {
   .hero-bg-img {
      object-position: center 75%;
   }

   .desktop-nav {
      display: flex;
   }

   .mobile-menu-button,
   .mobile-nav {
      display: none;
   }

   /* About / Technical Layout Grid (Side-by-Side) */
   .about-modern {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      width: 100%;
   }

   .technical {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-areas: "photo content";
      gap: 0.5rem 2rem;
      align-items: center;
      margin: 0 auto;
      text-align: left;
   }

   .soundboard-pic, .back-pic, .rim-pic, .curves-pic {
      border-radius: 6px;
   }

   .soundboard-photo.reveal { grid-column:1; grid-row: 1; }
   .about-technical-soundboard { grid-column: 2; grid-row: 1; align-self: start; }
   .back-photo.reveal { grid-column:2; grid-row: 2; }
   .about-technical-back { grid-column: 1; grid-row: 2; }
   .rim-photo.reveal { grid-column:1; grid-row: 3; }
   .about-technical-rim { grid-column: 2; grid-row: 3; }
   .curves-photo.reveal { grid-column:2; grid-row: 4; }
   .about-technical-curves { grid-column: 1; grid-row: 4; }
   .about-portrait-wrapper { margin-top: -110px; margin-bottom: 2rem; }

  .about-portrait {
    width: 280px;
    height: 420px;
  }

   .intro-container,
   .about-slideshow {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      text-align: center;
   }

   .about-slideshow {
      align-self: center;
   }

   .slideshow-container {
      aspect-ratio: 3/4;
      max-height: min(90vh, 1920px);
      width: 100%;
   }

   .contact-map-centered {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      height: fit-content;
      margin: 0 auto;
   }

   .map-embed iframe {
      width: 100%;
      border-radius: var(--border-radius);
   }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
   .hero-section {
      min-height: 500px;
   }

   .mobile-menu-button {
      display: flex;
   }

   .desktop-nav {
      display: none;
   }

   .page-section {
      padding: 3rem 1rem;
   }

   .hero-section::before {
      display: block;
      height: clamp(80px, 22vh, 220px);
      background: linear-gradient(to bottom, rgba(var(--color-dark-rgb), 1) 0%, rgba(var(--color-dark-rgb), 0) 100%);
      z-index: 3;
   }

   .hero-content {
      transition: opacity 0.15s ease-out;
   }

   .about-section {
      padding: 3rem 0;
      background: none;
   }

   .about-section::after {
      content: "";
      position: absolute;
      inset: 0%;
      background: linear-gradient(180deg, #faf7f3 0%, #f7f5f1 100%);
      z-index: 0;
   }

   .about-portrait-wrapper {
    margin-top: -110px;
    margin-bottom: 2rem;
  }

  .about-portrait {
    width: 210px;
    height: 280px;
  }

   .intro-container {
      margin-bottom: 3rem;
      padding: 0 1rem;
   }

   .intro-paragraph {
      font-size: var(--step-0);
   }

   .about-slideshow {
      max-width: 95%;
      margin-bottom: 3rem;
   }

   .slideshow-container {
      aspect-ratio: 3/4;
   }

   .slideshow-arrow {
      width: 35px;
      height: 35px;
      font-size: var(--step-0);
   }

   .slideshow-prev {
      left: 0.5rem;
   }

   .slideshow-next {
      right: 0.5rem;
   }

   .slideshow-dot {
      width: 8px;
      height: 8px;
   }

   .about-content {
      padding: 0 1rem;
   }

   .gallery-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
   }

   .contact-map-centered .map-embed iframe {
      height: 250px;
   }

   .back-to-top {
      bottom: 1rem;
      right: 1rem;
      width: 44px;
      height: 44px;
   }
}

/* Intermediate Small Tablet / Large Phone Grid */
@media (min-width: 500px) and (max-width: 767.98px) {
   .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
   }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
   .about-text-content p {
      font-size: var(--step-0);
      line-height: 1.6;
   }

   .hero-section {
      min-height: 500px;
   }

   .contact-map-centered .map-embed iframe {
      height: 200px;
   }
}

/* Large Screens (>= 1200px) */
@media (min-width: 1200px) {
   .about-slideshow {
      max-width: 1000px;
   }

   .intro-paragraph, .contact-header p {
      font-size: calc(var(--step-0) * 1.1);
   }
}

/* Desktop Extra Large (>= 1400px) */
@media (min-width: 1400px) {
   .hero-logo {
      width: 50px;
      height: 50px;
   }
   
   .about-slideshow {
      max-width: 1100px;
   }

   .hero-bg-img {
      object-position: center 40%;
   }
}

/* Ultrawide Screens (>= 1800px) */
@media (min-width: 1800px) {
   .hero-bg-img {
      object-position: center 0%;
   }
}

/* =============================================================================
   15. CROSS-DOCUMENT VIEW TRANSITIONS & ACCESSIBILITY
   ============================================================================= */
@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 200ms;
  animation-timing-function: ease-out;
}

/* Browser Fallback for older browsers lacking aspect-ratio */
@supports not (aspect-ratio: 3/4) {
   .slideshow-container {
      height: 0;
      padding-bottom: 133.33%;
   }

   @media (min-width: 768px) {
      .slideshow-container {
         padding-bottom: 133.33%;
      }
   }

   .slide {
      height: 100%;
   }
}

/* Accessibility: User Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
   }

   html {
      scroll-behavior: auto;
   }
   
   ::view-transition-group(root) {
     animation-duration: 0.01ms !important;
   }

   .about-portrait {
      transition: none !important;
      opacity: 1;
      transform: none;
   }

   .hero-content {
      opacity: 1;
      animation: none;
   }
}
