/* Hernandez Handy — hernandezhandy.com
   Self-contained stylesheet. No external fonts or assets. */

:root {
  --navy: #0e1c2e;
  --navy-deep: #081420;
  --navy-mid: #1a334d;
  --navy-soft: #243b55;
  --orange: #e87b2a;
  --orange-hover: #cf6a1e;
  --orange-deep: #b85a16;
  --orange-soft: #fde8d4;
  --orange-wash: #fff4ea;
  --cream: #f6f1ea;
  --cream-dark: #ebe3d6;
  --white: #ffffff;
  --text: #16202b;
  --text-muted: #5a6570;
  --text-on-navy: #d7dde4;
  --border: #e4dbd0;
  --shadow: 0 10px 30px rgba(14, 28, 46, 0.08);
  --shadow-lg: 0 18px 48px rgba(14, 28, 46, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
  color: var(--navy-deep);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 28, 46, 0.96);
  backdrop-filter: blur(12px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.logo-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  color: var(--text-on-navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(232, 123, 42, 0.28);
}

.btn:hover,
.btn:focus-visible {
  background: #f08a3d;
  color: var(--navy-deep);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-header {
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1.05rem;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 85% 10%, rgba(232, 123, 42, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 80%, rgba(36, 59, 85, 0.7), transparent 50%),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(to bottom right, transparent 49.5%, var(--cream) 50.5%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.75rem 0 6.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 750;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-on-navy);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 0.25rem;
  color: var(--text-on-navy);
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-panel h2 {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-on-navy);
  font-size: 0.98rem;
}

.hero-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.75rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head p,
.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Services ---------- */

#services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 1px 0 rgba(14, 28, 46, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8cbb8;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-wash);
  color: var(--orange-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Why us ---------- */

#why-us {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--border);
}

.why-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.why-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- How it works ---------- */

#how-it-works {
  background: var(--cream);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

#contact {
  background: var(--navy);
  color: var(--white);
  position: relative;
}

#contact .eyebrow {
  color: var(--orange);
}

#contact h2 {
  color: var(--white);
}

#contact .lede {
  color: var(--text-on-navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.1rem;
}

.detail {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
}

.detail dt {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.detail dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--white);
}

.detail a {
  color: var(--white);
  text-decoration: none;
}

.detail a:hover {
  color: var(--orange-soft);
}

.note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-on-navy);
  line-height: 1.55;
}

.contact-form {
  background: var(--white);
  color: var(--text);
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.form-intro {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--navy);
}

.req {
  color: var(--orange-deep);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid var(--orange-soft);
  border-color: var(--orange);
  background: var(--white);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 0.35rem;
}

.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--navy-mid);
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-navy);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--orange-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-panel {
    max-width: 32rem;
  }

  .hero-inner {
    padding: 3.25rem 0 5.25rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 68px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 0 1.15rem;
    gap: 0.15rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .btn-header {
    margin-top: 0.6rem;
    width: 100%;
  }

  .steps,
  .form-row,
  .why-points {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.6rem, var(--max));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 1.25rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .btn {
    transition: none;
  }
}

/* Header actions: estimate CTA + click-to-call on mobile */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.btn-call {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.58rem 0.95rem;
  font-size: 0.88rem;
}

.btn-call:hover,
.btn-call:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-meta a {
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
}

.hero-meta a:hover {
  color: var(--orange-soft);
  text-decoration: underline;
}

.area-section {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.area-section .wrap {
  max-width: 44rem;
  text-align: center;
  margin-inline: auto;
}

.area-section h2 {
  margin: 0 0 0.75rem;
}

@media (min-width: 761px) {
  .header-actions {
    margin-left: 0;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-actions {
    margin-left: auto;
  }

  .btn-header-desktop {
    display: none;
  }

  .btn-call {
    background: var(--orange);
    color: var(--navy-deep);
    border-color: var(--orange);
    box-shadow: 0 4px 14px rgba(232, 123, 42, 0.28);
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .btn-call:hover,
  .btn-call:focus-visible {
    background: #f08a3d;
    color: var(--navy-deep);
  }

  .site-nav .btn-header {
    margin-top: 0.6rem;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .call-number {
    display: none;
  }

  .btn-call::after {
    content: "Call";
  }
}

.btn-header-mobile {
  display: none;
}

@media (min-width: 761px) {
  .logo {
    order: 1;
  }

  .site-nav {
    order: 2;
    flex: 1;
    justify-content: flex-end;
    padding-right: 0.35rem;
  }

  .header-actions {
    order: 3;
    margin-left: 0.5rem;
  }
}

@media (max-width: 760px) {
  .btn-header-mobile {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .call-number {
    display: none;
  }

  .btn-call::after {
    content: none;
  }
}


/* ---------- Hero photo ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 20, 32, 0.88) 0%, rgba(8, 20, 32, 0.72) 48%, rgba(8, 20, 32, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 20, 32, 0.35), rgba(8, 20, 32, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero::after {
  z-index: 2;
}

/* ---------- Recent work ---------- */

#recent-work {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.project {
  margin-bottom: 2.5rem;
}

.project h3,
.gallery-subhead {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.project-lead {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
}

.gallery-subhead {
  margin: 0 0 1.15rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}

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

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

.gallery-item {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(14, 28, 46, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--navy);
  text-decoration: none;
}

.gallery-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-mid);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-caption {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.step-label {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

/* ---------- Lightbox ---------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 20, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 2.5rem;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #111;
}

.lightbox-figure figcaption {
  margin: 0.85rem 0 0;
  color: #f6f1ea;
  font-size: 0.98rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
}

.lightbox-prev { left: 0.85rem; }
.lightbox-next { right: 0.85rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--orange);
  color: var(--navy-deep);
  border-color: var(--orange);
}

@media (max-width: 980px) {
  .gallery-sequence,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-sequence,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .gallery-caption {
    font-size: 0.8rem;
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .lightbox {
    padding: 4rem 0.6rem 1.5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    transition: none;
  }
}
