/*
 * vims.css
 * Page-specific styles for the VIMS Volunteer page.
 * Loaded AFTER mv-main.css and btns.css.
 * Uses existing City classes/variables wherever possible.
 * Only defines what is not already available in mv-main.css or btns.css.
 *
 * Existing classes used from mv-main.css / btns.css:
 *   Layout:       .container, .row, .column/.columns, .one-half.column,
 *                 .two-thirds.column, .one-third.column, .eight.columns,
 *                 .four.columns, .twelve.columns
 *   Backgrounds:  .bk-blue, .bk-lt-gray, .bk-dark-gray, .bk-white
 *   Text colors:  .color-white, .color-blue
 *   Typography:   .text-uppercase, .semi-bold, .dept-title, .largish
 *   Components:   .card, .card-title, .contact-box, .gray-box, .well,
 *                 .service-card, .services-grid, .contact-item, .contact-info,
 *                 .commitment-section, .box-shadow, .block-heading,
 *                 .round-corners-sm
 *   Buttons:      .btn, .btn--l, .btn--white, .btn--blue, .btn-primary,
 *                 .btn--full
 *   Utilities:    .txt-center, .pad-top-bottom, .page-padding, .box-padding,
 *                 .margin-add-top, .margin-add-bottom, .border-light,
 *                 .u-full-width, .semi-bold, .smallish, .footer,
 *                 .head-foot, .copyright, .sr-only
 */

/* ==========================================================================
   CSS VARIABLE OVERRIDES
   Map our VIMS-specific aliases to the City's brand tokens from mv-main.css.
   No new color values — everything points back to :root variables.
   ========================================================================== */
:root {
  /* VIMS semantic aliases → City brand tokens */
  --vims-primary:      #1a3a6b;
  --vims-primary-dark: #1e4277;                    /* darker shade of brand-blue */
  --vims-accent:       #f5a800;       
  --vims-accent-dark:  var(--brand-dark-orange);    /* #AF3802 */
  --vims-surface:      var(--neutral-gray-light);   /* #F1F1F2 */
  --vims-text-muted:   var(--neutral-gray-dark);    /* #4D515F */
  --vims-white:        var(--neutral-white);        /* #ffffff */

  /* Spacing */
  --vims-section-pad:  4rem 0;
  --vims-card-radius:  10px;

  /* Shadows (not defined in main) */
  --vims-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --vims-shadow-md: 0 6px 20px rgba(0,0,0,0.13);
  --vims-shadow-lg: 0 12px 36px rgba(0,0,0,0.17);

  /* Transition */
  --vims-transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  /* Fonts (main uses Lato; we add a condensed display option) */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

.color-accent {
	color: var(--vims-accent);
}

/* ==========================================================================
   TOP BAR  (uses .top-bar from mv-main.css for bg; adds inner layout)
   ========================================================================== */

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 3px solid var(--vims-accent);
}

.topbar-city {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.topbar-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-links a:hover { color: var(--vims-accent); text-decoration: none; }

@media (max-width: 768px) {
  .topbar-links { display: none; }
}


/* ==========================================================================
   HERO BANNER
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  background-color: var(--vims-primary);
  border-top: 3px solid var(--vims-accent);
}

.hero-bg {
	background-image: url('../img/volunteer-hero.jpeg');
  	background-repeat: no-repeat;
 	background-attachment: fixed;
  	background-position: right;
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 25%;
	/* filter: brightness(0.45) saturate(0.8); */
}


/* The diagonal dark blue overlay */
.hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 30, 70, 0.65),
    rgba(14, 30, 70, 0.95)
  );
  clip-path: polygon(0% 0%,0% 100%,50% 100%,35% 0% );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 3.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-logo {
  height: 150px;
  width: auto;
  margin: 2rem 0 2rem -1.5rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
  align-self: flex-start;
}

/* Hero headline — extends .dept-title from mv-main.css */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--vims-white);
  margin: 2rem 0 0 0;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vims-accent);
  margin: 0.6rem 0 0;
  opacity: 0.9;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

@media (max-width: 768px) {
  .hero { min-height: 320px; }
  .hero-logo { height: 65px; }
}


/* ==========================================================================
   STAT BAR  (uses .bk-blue from mv-main.css for bg)
   ========================================================================== */

.stat-bar {
  padding: 1.25rem 0;
  border-top: 3px solid var(--vims-accent);
  background-color: var(--brand-blue)
}

.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 0.4rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.stat:last-child { border-right: none; }

/* Stat number — extends .huge from mv-main.css */
.stat-num {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  color: var(--vims-accent);
  line-height: 1;
  display: block;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .stat-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat { border-right: none; }
}


/* ==========================================================================
   SECTION LAYOUT  (sections use .bk-lt-gray / .bk-white / .bk-blue)
   ========================================================================== */

.section { 
	padding: 4rem 0 4rem 0;
}

section.section-req {
	padding: 4rem 0 0 0 0 !important;
}

/* Eyebrow label above headings */
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 2.42rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vims-accent);
  margin-bottom: 0.5rem;
}

/* Section heading — leverages brand-blue from mv-main.css */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 3vw, 3.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-blue);
  margin: 0 0 1.2rem;
  line-height: 1.1;
}

/* On dark backgrounds (.bk-blue), heading goes white */
.bk-blue .section-title,
.bk-dark-gray .section-title { color: var(--neutral-white); }

.bk-blue .section-eyebrow { color: var(--vims-accent); }


/* ==========================================================================
   SIDEBAR BOXES  (extend .contact-box and .well from mv-main.css)
   ========================================================================== */
.row {
	display: flex;
	align-items: center;
}

aside.four.columns {
	margin-left: 12rem;
}
/* Blue-topped sidebar box — extends .contact-box */
.sidebar-box {
  border-radius: var(--vims-card-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--vims-shadow-sm);
	display: flex;
	flex-direction: column;
}

.sidebar-box-head {
  padding: 0.9rem 1.3rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sidebar-box-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--vims-accent);
	text-align: center;
}

/* Orange-accented variant for CTA box */
.sidebar-box-head--orange {
  background-color: var(--brand-orange);
}

.sidebar-box-head--orange .sidebar-box-title {
  color: var(--neutral-white);
}


/* ==========================================================================
   VOLUNTEER PATH CARDS  (extend .card and .service-card from mv-style.css)
   ========================================================================== */

.path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--vims-card-radius);
  border-top: 4px solid var(--brand-blue);
  transition: box-shadow var(--vims-transition), transform var(--vims-transition);
}

.path-card--orange { border-top-color: var(--vims-accent); }

.path-card:hover {
  box-shadow: var(--vims-shadow-lg);
  transform: translateY(-4px);
}

.path-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.75rem;
  flex-shrink: 0;
  align-self: center;
  margin: 2.2rem 0;
  text-align: center;
}

.path-card-icon--blue {
  background: rgba(46,90,147,0.1);
  color: var(--brand-blue);
}

.path-card-icon--orange {
  background: rgba(255,110,0,0.1);
  color: var(--vims-accent);
}

.path-card-body {
  padding: 0 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.path-card-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  margin: 0 0 0.6rem;
}

.path-card-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  transition: gap var(--vims-transition), color var(--vims-transition);
  text-decoration: none;
}

.path-card--orange .path-card-link { color: var(--vims-accent); }
.path-card-link:hover { gap: 0.6rem; text-decoration: none; }


/* ==========================================================================
   DEPARTMENT OPPORTUNITY CARDS  (extend .service-card from mv-style.css)
   ========================================================================== */

/* .services-grid from mv-style.css handles the 3-col responsive grid */
/* We just augment .service-card with left-border hover effect */

.service-card {
  border-left: 4px solid transparent;
  transition: border-color var(--vims-transition), transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-left-color: var(--brand-blue);
}

.service-card .dept-icon {
  line-height: 1;
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1.5rem;

}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 3vw, 3.4rem);
  font-weight: 400;
}

/* ==========================================================================
   HOW TO APPLY — NUMBERED STEPS
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Each step extends .box-shadow from mv-main.css */
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-radius: var(--vims-card-radius);
  padding: 1.4rem;
  transition: box-shadow var(--vims-transition);
}

.step:hover { box-shadow: var(--vims-shadow-md); }

.step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  color: var(--neutral-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(46,90,147,0.3);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  margin: 0 0 0.3rem;
}

.step-desc {
  font-size: 1.4rem;
  color: var(--neutral-gray-dark);
  margin: 0;
  line-height: 1.6;
}


/* ==========================================================================
   REQUIREMENTS CHECKLIST  (used inside .bk-blue section)
   ========================================================================== */

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.req-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: rgba(255,255,255,0.88);
  font-size: 1.7rem;
  line-height: 1.6;
}

.req-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--vims-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* Disclaimer callout — extends .well from mv-main.css */
.req-note {
  width: 100%;
  margin: 6rem 0 0 0;
  padding: 2.1rem 0;
  background: rgba(255,255,255,0.08);
  border-top: 4px solid var(--vims-accent);
  border-radius: 0 4px 4px 0;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  text-align: center;
}


/* ==========================================================================
   VOLUNTEER BANNER 
   ========================================================================== */

.cta-banner {
  padding: 3.5rem 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: 'VOLUNTEER';
  position: absolute;
  font-family: var(--font-display);
  font-size: 25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(0,0,0,0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--neutral-white);
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.cta-sub {
  font-size: 2.1rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 2rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.margin-large {
	margin-top: 150px;
}
/* ==========================================================================
   CONTACT INFO  (extends .contact-item from mv-style.css)
   ========================================================================== */

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-list .contact-item {
  align-items: flex-start;
  margin-bottom: 0;
}

.contact-info-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--neutral-gray-dark);
  margin-bottom: 0.1rem;
}


/* ==========================================================================
   ACCESS VIMS (sidebar)
   ========================================================================== */

.access-card{
	text-align: center;
	flex-direction: column;
	display: flex;
	align-items: center;
}

.access-card-blue{
	text-align: center;
	flex-direction: column;
	display: flex;
	align-items: center;
	background-color: darkblue;
}

.access-card a {
	margin-top: 5px;
}

.access-card img {
	width: 100%;
}

.align-left {
	text-align: center;
}

/* ==========================================================================
   ANIMATIONS  (supplement mv-style.css #no-flash fadein)
   ========================================================================== */

@keyframes vimsSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { animation: vimsSlideUp 0.6s ease both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }
.anim-d3 { animation-delay: 0.34s; }
.anim-d4 { animation-delay: 0.46s; }


/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  :root { --vims-section-pad: 2.5rem 0; }

  .cta-banner::before { font-size: 4.5rem; }
}

@media (max-width: 670px) {
  /* Stack path cards */
  .path-row .column { margin-left: 0; width: 100%; margin-bottom: 1.5rem; }
  /* Stack sidebar */
  .content-col .column { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   PHOTO GALLERY + LIGHTBOX
   Markup: <section class="gallery-section"> ... <div class="gallery-grid">
             <div class="photo-card"><img ...></div> ... </div>
           <div class="lightbox" id="lightbox">...</div>
   Behavior wired by js/gallery.js (uses .is-open on .lightbox).
   ========================================================================== */

.gallery-section {
  padding: var(--vims-section-pad);
  background: var(--vims-white);
}

.gallery-header {
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.gallery-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vims-accent);
  margin: 0 0 0.6rem;
}

.gallery-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--vims-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.gallery-title span {
  color: var(--vims-accent);
}

.gallery-rule {
  height: 4px;
  width: 72px;
  background: var(--vims-primary);
  margin-top: 1rem;
}

.gallery-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--vims-text-muted);
  margin: 0;
  max-width: 42ch;
  justify-self: end;
}

.gallery-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--vims-card-radius);
  box-shadow: var(--vims-shadow-sm);
  cursor: pointer;
  background: #ddd;
  transition: transform var(--vims-transition), box-shadow var(--vims-transition);
}
.photo-card:hover,
.photo-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--vims-shadow-md);
  outline: none;
}
.photo-card:focus-visible {
  box-shadow: var(--vims-shadow-md), 0 0 0 3px var(--vims-accent);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photo-card:hover img { transform: scale(1.05); }

/* Soft overlay cue on hover */
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity var(--vims-transition);
  pointer-events: none;
}
.photo-card:hover::after { opacity: 1; }

/* Masonry-ish rhythm — a few cards span 2 rows/cols for visual interest */
.photo-card[data-index="0"]  { grid-row: span 2; }
.photo-card[data-index="4"]  { grid-column: span 2; }
.photo-card[data-index="7"]  { grid-row: span 2; }
.photo-card[data-index="10"] { grid-column: span 2; }

/* Tablet */
@media (max-width: 960px) {
  .gallery-header { grid-template-columns: 1fr; }
  .gallery-subtitle { justify-self: start; }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
  .photo-card[data-index="4"],
  .photo-card[data-index="10"] { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .photo-card[data-index="0"],
  .photo-card[data-index="7"] { grid-row: auto; }
  .photo-card[data-index="4"],
  .photo-card[data-index="10"] { grid-column: span 2; }
}

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--vims-transition);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
  animation: vims-lb-fade 0.2s ease-out;
}
@keyframes vims-lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  user-select: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--vims-transition), transform var(--vims-transition);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--vims-accent);
  border-color: var(--vims-accent);
  transform: scale(1.05);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--vims-accent);
  outline-offset: 3px;
}

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav.next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .lightbox { padding: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .lightbox-nav, .lightbox-close { width: 40px; height: 40px; }
}
