/* ────────────────────────────────────────────────────────────
   RAPTURE Photography — style.css
   ────────────────────────────────────────────────────────────

   HOW TO CUSTOMIZE:
   - Colors:     Edit the --color-* variables in the :root block below
   - Fonts:      Change --font-* variables (also update the Google Fonts
                 link in index.html if you switch typefaces)
   - Spacing:    Adjust --space-* variables for tighter or looser layout
   - Nav height: Change --nav-height

   TABLE OF CONTENTS
   1. Variables & Reset
   2. Base Styles
   3. Navigation
   4. Mobile Menu
   5. Hero Section
   6. Polaroid Photos
   7. Dividers
   8. Gallery Sections
   9. Behind the Camera
   10. Footer
   11. Fade-in Animation
   12. Responsive (mobile)
──────────────────────────────────────────────────────────── */


/* ── 1. VARIABLES & RESET ─────────────────────────────────── */

:root {
  /* Background */
  --bg-top:    #EDF5FD;
  --bg-bottom: #EDF5FD;

  /* Text colors — dark gray, never pure black */
  --color-text:        #1e2329;   /* headings and primary text   */
  --color-text-light:  #5a6472;   /* body paragraphs, captions   */
  --color-text-muted:  #8e99a6;   /* footer, small labels        */

  /* Accent — a single restrained blue used only for
     interactive/hover states, never for decoration */
  --color-accent: #4a7fb5;

  /* Divider lines */
  --color-divider: #d6e4f0;

  /* Polaroid */
  --color-polaroid-bg: #ffffff;

  /* Fonts — Century Gothic first (system font on Windows),
     then Futura (macOS equivalent), then Nunito (web fallback
     loaded from Google Fonts), then generic sans-serif */
  --font-main: 'Century Gothic', 'Futura', 'Gill Sans', 'Gill Sans MT', 'Nunito', sans-serif;

  /* Navigation height */
  --nav-height: 64px;

  /* Maximum content width */
  --max-width: 1200px;

  /* Section vertical padding */
  --section-padding: 6rem;

  /* Gallery gap between photos */
  --gallery-gap: 1.25rem;
}

/* Box-sizing reset — makes sizing predictable for every element */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove default list styling */
ul { list-style: none; }

/* Remove default button styling */
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Make images flexible and block-level by default */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Smooth scrolling for anchor navigation */
html {
  scroll-behavior: smooth;
}


/* ── 2. BASE STYLES ───────────────────────────────────────── */

body {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);

  background: #EDF5FD;

  min-height: 100vh;
  background-attachment: fixed;
}

/* Shared container — centers content with side padding */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}


/* ── 3. NAVIGATION ────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--nav-height);
  padding-inline: 2.5rem;

  /* Very soft blur — the nav feels like frosted glass
     without being distracting */
  background-color: #EDF5FD;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--color-divider);
}

/* Logo / wordmark */
.nav__logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: var(--color-text);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__logo-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-text-light);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav__search-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.nav__search-toggle:hover,
.nav__search-toggle:focus-visible,
.nav__search-toggle[aria-expanded="true"] {
  color: var(--color-accent);
}

.nav__search-toggle:focus-visible {
  outline: 2px solid rgba(74, 127, 181, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.nav__logo:hover {
  color: var(--color-accent);
}

/* Desktop nav links list */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-text-light);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav__hamburger {
  display: none;          /* shown via media query below */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  position: absolute;
  left: 1.5rem;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-text);
  transition: opacity 0.2s ease;
}

.nav__hamburger:hover span {
  background-color: var(--color-accent);
}


/* ── 4. MOBILE MENU ───────────────────────────────────────── */

/* Full-screen overlay that slides in on mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;

  background-color: var(--bg-top);

  /* Hidden by default — revealed with the .is-open class */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 1.5rem;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.mobile-menu__close:hover {
  color: var(--color-accent);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu__link {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--color-text);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}


/* ── 5. HERO SECTION ──────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Generous whitespace: let the brand breathe */
  padding-block: 7rem 6rem;
  padding-inline: 2rem;
  text-align: center;
}

/* RAPTURE + Photography title block */
.hero__title-block {
  margin-bottom: 6rem;
  width: 100%;
  text-align: center;
}

.hero__title {
  /* ~20% larger than original for stronger visual hierarchy */
  font-size: clamp(3.3rem, 7.2vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1;
}

.hero__subtitle {
  margin-top: 0.75rem;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

/* Quote beneath the Polaroids */
.hero__quote {
  margin-top: 5.5rem;
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  font-style: italic;
}


/* ── 6. POLAROID PHOTOS ───────────────────────────────────── */

/* Wrapper that positions the two photos so they overlap slightly */
.hero__polaroids {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  /* The negative margin creates the overlap between the two Polaroids.
     Increase the absolute value for more overlap, decrease for less. */
}

/* Shared Polaroid frame styles */
.polaroid {
  background-color: var(--color-polaroid-bg);

  /* Classic Polaroid proportions:
     thin border on the sides and top, much thicker on the bottom */
  padding: 17px 17px 64px 17px;

  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.10),
    0 1px 4px  rgba(0, 0, 0, 0.06);

  /* Slightly rounded corners — just enough to feel physical */
  border-radius: 3px;

  width: clamp(265px, 32vw, 414px);

  /* Remove figure default margin */
  margin: 0;

  /* Smooth transition for any subtle hover interaction */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Left Polaroid: tilts counterclockwise, sits slightly behind */
.polaroid--left {
  transform: rotate(-3deg) translateX(23px);
  z-index: 1;
}

/* Right Polaroid: tilts clockwise, sits on top */
.polaroid--right {
  transform: rotate(2deg) translateX(-23px);
  z-index: 2;
}

/* Desktop hover — gentle lift, barely noticeable */
@media (hover: hover) {
  .polaroid--left:hover {
    transform: rotate(-3deg) translateX(23px) translateY(-8px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.12),
      0 2px 6px  rgba(0, 0, 0, 0.06);
    z-index: 3;
  }

  .polaroid--right:hover {
    transform: rotate(2deg) translateX(-23px) translateY(-8px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.12),
      0 2px 6px  rgba(0, 0, 0, 0.06);
    z-index: 3;
  }
}

/* The photograph inside the frame */
.polaroid__img {
  width: 100%;

  /* Fixed aspect ratio for visual consistency across both Polaroids */
  aspect-ratio: 4 / 5;
  object-fit: cover;

  /* Barely-there rounding inside the frame */
  border-radius: 1px;
}

/* Caption area — empty space below the photo (classic Polaroid white space).
   You can add text inside .polaroid__caption if you'd like labels. */
.polaroid__caption {
  display: block;
  height: 4px;
}


/* ── 7. DIVIDERS ──────────────────────────────────────────── */

/* Thin, quiet horizontal rule that separates sections */
.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  max-width: var(--max-width);
  margin-inline: auto;
  margin-block: 0;
}


/* ── 8. GALLERY SECTIONS ──────────────────────────────────── */

.gallery-section {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-padding) 2rem;
}

/* Section heading — thin and understated */
.section-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 2.75rem;
}

/* Gallery section titles (Nature, Behind Glass, City, Specific Locations)
   are ~8% larger to strengthen hierarchy. Behind the Camera is left
   unchanged because it reads as a personal epilogue, not a gallery label. */
.gallery-section .section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

/* ── Four-column grid (Nature & City) ── */
.gallery--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gallery-gap);
}

/* ── Locations grid ── (2 columns, landscape orientation)
   Each photo is wider, giving a more cinematic, sweeping feel. */
.gallery--locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gallery-gap);
}

/* Individual photo wrapper */
.gallery__item {
  overflow: hidden;

  /* Slightly rounded corners — enough to feel intentional,
     not enough to draw attention away from the photo */
  border-radius: 4px;
}

/* The photo itself */
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* Subtle zoom transition on hover (desktop only — see @media below) */
  transition: transform 0.5s ease;
}

/* Quiet, non-breaking state for an Airtable gallery with no matching photos. */
.catalog-empty {
  grid-column: 1 / -1;
  min-height: 12rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
  opacity: 0.55;
  text-align: center;
}

/* A photograph whose image failed to load becomes a quiet
   "No photograph available" tile — never a broken-image icon,
   never an outside substitute. Loaded photographs are unaffected. */
.gallery__item.catalog-photo-unavailable,
.gallery-section__item.catalog-photo-unavailable {
  display: grid;
  place-items: center;
  padding: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
  opacity: 0.55;
  text-align: center;
  text-decoration: none;
  cursor: default;
}

.gallery[data-catalog-rotation] {
  transition: opacity 0.45s ease;
}

.gallery[data-catalog-rotation].catalog-is-fading {
  opacity: 0;
}

/* Hover: extremely gentle zoom — the photo breathes, not jumps */
@media (hover: hover) {
  .gallery__item:hover img {
    transform: scale(1.03);
  }
}

/* Aspect ratios — keep all photos in a section the same shape */
.gallery--four .gallery__item {
  aspect-ratio: 4 / 5;  /* portrait */
}

.gallery--locations .gallery__item {
  aspect-ratio: 3 / 2;  /* landscape / cinematic */
}


/* ── 9. FULL PORTFOLIO — PHOTOGRAPHER BLOCKS ─────────────── */

/* Each photographer occupies its own block within the section.
   Extra top margin creates breathing room below the section title
   and between the two photographer grids. */
.portfolio__photographer {
  margin-top: 3.5rem;
}

/* Photographer name — personal and understated.
   Slightly smaller than .section-title, no uppercase transformation,
   so it reads as a name rather than a category label. */
.portfolio__name {
  font-size: clamp(0.9rem, 1.6vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* The name itself links to the photographer's full portfolio page —
   it looks identical to plain text (same color, no underline) with
   only a gentle fade on hover, matching the site's quiet style. */
.portfolio__name-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.portfolio__name-link:hover,
.portfolio__name-link:focus-visible {
  opacity: 0.6;
}

/* Thin rule that separates Antonio and Luis within the section —
   quieter than the full-width section .divider */
.portfolio__rule {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin-block: 4.5rem 0;
}

/* ── GLOBAL PORTFOLIO SEARCH ───────────────────────────────── */

.portfolio-search-panel[hidden] {
  display: none;
}

.portfolio-search-panel {
  position: fixed;
  top: var(--nav-height);
  left: 50%;
  z-index: 150;
  width: min(calc(100% - 3rem), 1100px);
  max-height: calc(100vh - var(--nav-height) - 1.5rem);
  overflow-y: auto;
  transform: translateX(-50%);
  background: #EDF5FD;
  border: 1px solid var(--color-divider);
  box-shadow: 0 12px 30px rgba(30, 35, 41, 0.08);
}

.portfolio-search {
  padding: 1.5rem 2rem 2rem;
}

.portfolio-search__form {
  width: 100%;
}

.portfolio-search__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-search__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.portfolio-search__close {
  color: var(--color-text-light);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.portfolio-search__close:hover,
.portfolio-search__close:focus-visible {
  color: var(--color-accent);
}

.portfolio-search__close:focus-visible {
  outline: 2px solid rgba(74, 127, 181, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.portfolio-search__controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.portfolio-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-divider);
  border-radius: 3px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.portfolio-search__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.portfolio-search__input:focus-visible {
  outline: 2px solid rgba(74, 127, 181, 0.35);
  outline-offset: 2px;
}

.portfolio-search__clear {
  padding-inline: 1rem;
  border: 1px solid var(--color-divider);
  border-radius: 3px;
  color: var(--color-text-light);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portfolio-search__clear:hover,
.portfolio-search__clear:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.portfolio-search__status {
  min-height: 1.75rem;
  margin-top: 1.25rem;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.portfolio-search__results {
  display: none;
  margin-top: 1.5rem;
}

.portfolio-search__results.is-visible {
  display: grid;
}

.portfolio-search__result {
  height: auto;
  color: inherit;
}

.portfolio-search__result img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portfolio-search__result-details {
  padding: 0.85rem 0.25rem 0.25rem;
}

.portfolio-search__result-title {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.portfolio-search__result-meta {
  margin-top: 0.35rem;
  color: var(--color-text-light);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.portfolio-search__empty {
  grid-column: 1 / -1;
  padding-block: 1rem;
  color: var(--color-text-light);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-align: center;
}


/* ── 10. SPECIFIC LOCATIONS LIST ─────────────────────────── */

/* Vertical stack of elegant text links */
.location-list {
  display: flex;
  flex-direction: column;

  /* Centered block, same max-width as the rest of the site */
  max-width: 700px;
  margin-inline: auto;

  /* Generous top breathing room below the section title */
  margin-top: 2.5rem;
}

/* Each location link */
.location-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  /* Large, readable, but not so large all 7 fit on one screen */
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-family: 'Century Gothic', 'Futura', 'Nunito', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;

  color: var(--color-text);
  text-decoration: none;

  /* Generous, even spacing between each item */
  padding-block: 1.4rem;

  /* Thin separator line between items */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  /* Smooth transitions for hover/tap effects */
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

/* Top border on the very first item */
.location-list__item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* The → arrow — subtler than the main text */
.location-list__arrow {
  font-size: 0.85em;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

/* Desktop hover — gentle color shift and arrow nudge */
@media (hover: hover) {
  .location-list__item:hover {
    color: #5a8abf;
    letter-spacing: 0.07em;
  }

  .location-list__item:hover .location-list__arrow {
    opacity: 0.9;
    transform: translateX(5px);
  }
}

/* Mobile tap feedback */
.location-list__item:active {
  color: #5a8abf;
  opacity: 0.7;
}


/* ── 10. MORE SCROLL INDICATOR ────────────────────────────── */

/* "MORE →" indicator — centered between sections, navigates to
   the Highlights page when clicked or tapped */
.scroll-more {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-block: 3.5rem;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

/* Keyboard focus — a soft, visible outline so keyboard users
   can always see which MORE → indicator is selected */
.scroll-more:focus-visible {
  outline: 2px solid #4a7fb5;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Desktop hover — gentle dim, never dramatic */
@media (hover: hover) {
  .scroll-more:hover {
    opacity: 0.65;
  }

  /* Arrow nudges right on hover — mirrors the location list arrow */
  .scroll-more:hover .scroll-more__arrow {
    transform: translateX(4px);
    opacity: 0.85;
  }
}

/* Mobile tap feedback */
.scroll-more:active {
  opacity: 0.45;
}

/* "MORE" — ~20% larger than original for better readability;
   slightly darker for contrast while still remaining quiet */
.scroll-more__word {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

/* Right-pointing arrow — matches the style of location list arrows */
.scroll-more__arrow {
  font-size: 0.72rem;
  color: var(--color-text-light);
  opacity: 0.55;
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Page fade-out (before navigating to a location page) ── */
body.page-fade-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}


/* ── 11. BEHIND THE CAMERA ─────────────────────────────────── */

.about {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--section-padding) 2rem;
}

/* Personal message — no card, no box, just text and whitespace */
.about__text {
  /* Constrain the text width so lines stay comfortably readable */
  max-width: 600px;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;   /* generous breathing room between paragraphs */
}

.about__text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text-light);
}

/* Signature — slightly darker and italic to feel personal */
.about__signature {
  font-style: italic;
  color: var(--color-text) !important;
  margin-top: 0.25rem;
}


/* ── 12. FOOTER ───────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: 2.5rem;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* Footer links — Digital Download License, Privacy Policy, Contact */
.footer__links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer__links a {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--color-accent); }

.footer-verse {
  max-width: 48rem;
  margin: 1.75rem auto 0;
  padding-inline: 1.5rem;
}

.footer-verse p {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.footer-verse p + p {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-style: normal;
}


/* ── 13. FADE-IN ANIMATION ────────────────────────────────── */

/* Elements start invisible and slightly shifted down.
   script.js adds .is-visible when they enter the viewport. */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 14. RESPONSIVE — MOBILE ──────────────────────────────── */

/* Mid widths (laptops ~1081–1440px): gently tighten link spacing
   so all nine links stay on one clean line without wrapping. */
@media (max-width: 1440px) {
  .nav__links {
    gap: 1.5rem;
  }

  .nav__link {
    letter-spacing: 0.04em;
    white-space: nowrap;   /* keep multi-word links on one line */
  }
}

/* Below ~1200px the links no longer fit comfortably on one line,
   so switch to the existing hamburger + overlay menu earlier.
   All other mobile styles still kick in at 768px below. */
@media (max-width: 1200px) {

  /* Navigation — hamburger left, centered logo, search right */
  .nav {
    justify-content: center;   /* center the logo */
    position: relative;
  }

  .nav__logo-area {
    display: contents;
  }

  .nav__search-toggle {
    position: absolute;
    right: 1.5rem;
  }

  .nav__hamburger {
    display: flex;             /* show the hamburger */
  }

  .nav__links {
    display: none;             /* hide desktop links */
  }
}

@media (max-width: 768px) {

  /* Hero — tighten the vertical rhythm on small screens */
  .hero {
    padding-block: 4.5rem 4rem;
  }

  /* Polaroids — ~27% larger than before on mobile too */
  .polaroid {
    width: clamp(190px, 47vw, 265px);
    padding: 12px 12px 50px 12px;
  }

  /* Keep overlap proportional to the new size */
  .polaroid--left  { transform: rotate(-3deg) translateX(13px); }
  .polaroid--right { transform: rotate(2deg)  translateX(-13px); }

  /* Nature / City: 2 columns instead of 4 */
  .gallery--four {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Locations: single column on mobile */
  .gallery--locations {
    grid-template-columns: 1fr;
  }

  /* Tighten section padding on small screens */
  .gallery-section,
  .about {
    padding-block: 4rem;
  }

  /* Reduce gallery gap slightly */
  :root {
    --gallery-gap: 0.875rem;
  }

  .portfolio-search-panel {
    width: calc(100% - 1.5rem);
    max-height: calc(100vh - var(--nav-height) - 0.75rem);
  }

  .portfolio-search {
    padding: 1.25rem 1rem 1.5rem;
  }

  .portfolio-search__controls {
    gap: 0.5rem;
  }

  .portfolio-search__clear {
    padding-inline: 0.75rem;
  }
}


/* ── IMAGE PROTECTION ─────────────────────────────────────────
   Discourages casual copying of the photographs without changing
   how they look: blocks drag-to-desktop and long-press saving on
   mobile. Right-click and drag events are also handled by
   /image-protection.js. */
img {
  -webkit-user-drag: none;      /* Safari/Chrome: no dragging   */
  user-select: none;            /* no accidental selection      */
  -webkit-user-select: none;
  -webkit-touch-callout: none;  /* iOS: no long-press save menu */
}


/* ── 13. CATALOG PHOTO LINKS ─────────────────────────────────
   Gallery items added from photo-catalog.js are links (<a>) to
   each photograph's own purchase page. These rules make linked
   items look identical to the existing photo tiles. */

a.gallery__item {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
