/* =========================
   1. GLOBAL / RESET / LAYOUT
========================= */
/* Global reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  --site-background-color: #f5eee2; /* pulled from booking site */
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--site-background-color);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size-adjust: 0.52;
  color: #333333;
}

/* Layout container – matches their 1280px cap */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  border: none;
}

/* =========================
   2. HEADER & NAVIGATION
========================= */
/* Header + nav */
.site-header {
  /* Keep the header a reasonable height (it was blowing up too tall) */
  min-height: 240px;
  overflow: hidden;

  padding: 1rem 0 0.75rem;
  background-color: #c2c2c2;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);

  /* Center the header content within the fixed header area */
  display: flex;
  align-items: center;
}

/* Header background image moved to HTML for better LCP discovery */
.site-header .header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(194, 194, 194, 0.6);
  z-index: 1;
}

.site-header .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.site-title {
  font-size: 2.8rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #4a8a89;
  letter-spacing: 0.02em;
}

.site-title,
.hero-content h2,
.services-hero {
  line-height: 1.1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.35rem;
}

/* Header Logo Styling */
.header-brand {
  display: inline-block;
}

.header-logo {
  width: 95px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.main-nav a {
  margin: 0 0.6rem;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 500;
  color: #4a8a89; /* placeholder teal */
  font-size: 1.1rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a[aria-current="page"] {
  color: #4a8a89;
  font-weight: 600;
  text-decoration: underline;
}

/* Page panel (white box inside gray background) */
.page {
  border-left: none;
  border-right: none;
  padding: 2rem 0 3rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================
   3. HERO SECTION
========================= */

.hero {
  position: relative;
  width: 100%;
  height: 520px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);

  /* Small fade-in on page load */
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeIn 700ms ease-out forwards;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  max-width: 550px;
  color: #ffffff;
  left: 3rem;
  bottom: 3rem;
}

.hero-content h2 {
  margin: 0 0 0.75rem;
  font-size: 2.2rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #f4f4f4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.hero .btn-primary {
  background-color: #7fb7b6;
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.hero .btn-primary:hover {
  background-color: #4a8a89;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 380px;
    border-radius: 0;
  }

  .hero-image {
    border-radius: 0;
  }

  .hero-content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero .btn-primary {
    width: auto;
  }
}

/* =========================
   4. INTRO SECTION
========================= */
/* Intro section spacing */
.intro {
  max-width: 1100px;
  margin: 0 auto 2rem;        /* center the hero horizontally */
  display: flex;
  align-items: center;        /* vertically center text + logo, like Earth’s Edge layout */
  justify-content: space-between;
  gap: 3rem;
}

/* Optional grid-based intro layout (used on some pages like kelley.html / tori.html) */
.intro--grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Keeps paragraphs from stretching too wide */
.intro-content {
  max-width: 720px;
}

.intro h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.intro-text {
  flex: 1 1 0;
}

/* Hero logo to the right of intro text */
.intro-hero-logo {
  float: none;
  flex-shrink: 0;
  padding-top: 0;   /* let flexbox center it vertically with the text, like the Earth’s Edge hero */
}

.intro-hero-logo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Groomer profile photo on detail pages */
.profile-photo {
  max-width: 260px;
  margin: 0 auto 1.5rem;
  padding: 4px; /* creates a visible frame around the image */
  background-color: #4a8a89; /* on‑brand teal frame */
  border-radius: 24px; /* soften corners of the frame */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); /* subtle lift for separation */
}

.profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Heading block on groomer pages */
.intro-heading {
  text-align: center;
  margin-bottom: 1rem;
}

.intro-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.intro-title {
  margin-top: 0.35rem;
  font-size: 1.1rem;
  color: #4a8a89;
}

/* Text block on groomer detail pages */
.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Intro highlight list under hero */
.intro-highlights {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.intro-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.intro-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #4a8a89;
  font-weight: 700;
}

/* SEO text section under hero */
.seo-section {
  max-width: 1100px;
  margin: 2rem auto 1.5rem;
  padding: 1.25rem 0;
  border-left: 4px solid #4a8a89;
  padding-left: 1.25rem;
}

.seo-section h2 {
  font-size: 1.4rem;
  color: #2f5f5e;
  margin-bottom: 0.75rem;
}

.seo-section p {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 900px;
  margin-bottom: 0.75rem;
}

/* Why Choose Us section */
.why-choose-us {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  /* lock a reasonable image column and give text the rest */
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.why-text {
  width: 100%;
  max-width: none;
}

.why-choose-us h2 {
  margin: 0 0 1rem;
  font-size: 2.15rem;
  line-height: 1.15;
}

.why-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  justify-self: start;
}

.why-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0 0;
}

.why-list li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .why-choose-us {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .why-image {
    max-width: 100%;
    width: 100%;
    justify-self: center;
  }

  .why-choose-us h2 {
    font-size: 1.9rem;
  }
}

/* =========================
   5. INFO CARDS & CONTACT
========================= */
/* Extra spacing on primary button */
.btn-primary {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: #7fb7b6; /* placeholder teal */
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #4a8a89; /* darker teal */
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.info-card {
  border: 2px solid #7fb7b6;  /* teal border lighter */
  background-color: #e5f4f4; /* light teal background placeholder */
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
}
.info-card {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

/* Utility modifiers for spacing & alignment */
.info-card--spaced {
  margin-top: 1.5rem;
}

/* Extra spacing when Services follows another info card (after Our Team) */
#services.info-card {
  margin-top: 1.5rem;
}

.info-card--center {
  text-align: center;
}

/* Business hours styling inside contact card */
#contact h4 {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #4a8a89;
}

.business-hours {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0 1rem;
  border-top: 1px solid #c3d9d8;
  padding-top: 0.5rem;
}

.business-hours li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.info-grid .info-card {
  min-height: 225px;
  display: flex;
  flex-direction: column;
}

.info-grid > .info-card > .contact-cta,
.info-grid > .info-card > .map-buttons {
  margin-top: auto;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: #4a8a89;
}

.contact-cta {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.small-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Features CTA button container */
.features-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
}

/* Map embed and buttons */
.map-iframe {
  width: 80%;
  max-width: 500px;
  height: 150px;
  border: 0;
  border-radius: 4px;
  margin: 0.75rem auto;
  display: block;
}

.small-map-iframe {
  border-radius: 8px;
}

.map-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.map-btn {
  flex: 0 0 auto;
  min-width: 0;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.map-btn-google {
  background-color: #7fb7b6;
}

.map-btn-apple {
  background-color: #7fb7b6;
}

.map-seo-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* Anchor scroll offset for sections linked from nav or other pages */
#our-team,
#services,
#contact,
#reviews,
#faq {
  scroll-margin-top: 120px; /* prevents header from covering the section */
}

#our-team {
  scroll-margin-top: 90px; /* slightly smaller offset so the section appears better under the header */
}

/* =========================
   REVIEWS CAROUSEL
========================= */
#reviews {
  max-width: 900px;
  margin: 2rem auto 3rem;
}

#reviews h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.reviews-slider {
  position: relative;
  min-height: 140px;
}

.review-slide {
  display: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.review-slide.is-active {
  display: block;
  opacity: 1;
}

.review-slide p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.review-slide strong {
  font-size: 1rem;
  color: #333;
}

.review-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.review-stars {
  color: #f5b301;        /* gold-ish star color */
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin: 0.15rem 0 0.35rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #c3d9d8;
  cursor: pointer;
  padding: 0;
}

.review-dot.is-active {
  background-color: #4a8a89;
}

.review-dot:focus-visible {
  outline: 2px solid #4a8a89;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #reviews {
    margin: 1.5rem 1rem 2.5rem;
  }
}

/* =========================
   6. VIDEO SECTION
========================= */
/* Video embed */
.video-container {
  position: relative;
  width: 100%;
  max-width: 450px;      /* half of 900px */
  margin: 1rem auto 0;
  padding-top: 28.125%;  /* half of 56.25% */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Team buttons */
.team-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* =========================
   7. SERVICES / ACCORDION
========================= */
/* Services / Accordion styling */
.services-section {
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.services-intro {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.services-intro-text {
  flex: 1 1 0;
}

.services-intro-text .services-hero {
  text-align: left;
  margin-bottom: 0.75rem;
}

.services-intro-text .services-subtext {
  text-align: left;
  margin: 0;
}

.services-hero {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #4a8a89;
}


.services-subtext {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-visual img {
  width: 220px;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.accordion {
  border-top: 1px solid #cbd8d8;
  background-color: #f7fbfb;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #cbd8d8;
}

.accordion-header {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a8a89;
  cursor: pointer;
}

.accordion-header:hover {
  background-color: #e5f4f4;
}

.accordion-icon {
  font-size: 1.2rem;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.25rem;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.service-list li {
  margin-bottom: 0.75rem;
}

.service-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
}

.service-name {
  flex: 1 1 auto;
}

.service-price {
  white-space: nowrap;
}

.service-note {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   8. GALLERY
========================= */
/* Groomer gallery */
.gallery-section {
  margin-top: 2rem;
}

.gallery-section h3 {
  margin-bottom: 1rem;
  color: #4a8a89;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05));
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-grid a::after {
  content: attr(data-title);
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.6rem;
  color: #fdfdfd;
  font-size: 0.85rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-grid a:hover::before,
.gallery-grid a:focus-visible::before {
  opacity: 1;
}

.gallery-grid a:hover::after,
.gallery-grid a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid a:focus-visible {
  outline: 2px solid #4a8a89;
  outline-offset: 2px;
}

/* Soft divider between sections */
.section-divider {
  border: none;
  border-top: 2px solid #cbd8d8;
  margin: 2rem 0;
}

/* Gallery responsiveness */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   9. RESPONSIVE (MOBILE / TABLET)
========================= */
/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .site-header {
    padding: 1.5rem 0 0.75rem;
    min-height: 220px;
  }

  .site-title {
    color: #4a8a89;
    font-size: 2.8rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.75rem;
  }

  .main-nav a {
    margin: 0;
    font-size: 1.05rem;
  }

  .page {
    padding: 1.5rem 0 2.5rem;
    margin-top: 0;
    margin-bottom: 0;
  }

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

  .info-card {
    margin-bottom: 0.75rem;
  }

  .btn-primary {
    width: 100%;
    max-width: 16rem;
    text-align: center;
  }

  /* Make embedded video larger and full-width on mobile */
  .video-container {
    max-width: 100%;
    padding-top: 56.25%; /* standard 16:9 on mobile */
  }

  /* Mobile: Move logo above intro text */
  .intro {
    max-width: 100%;
    margin: 0 auto 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

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

  .intro-hero-logo {
    order: -1;
    margin: 0 auto;
  }

  .intro-hero-logo img {
    width: 160px;
    height: 160px;
  }

  /* Mobile tweaks for services / accordion */
  .services-section {
    max-width: 100%;
    margin: 0 auto 1.75rem;
    padding: 0 1rem;
  }

  .services-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem; /* reduce space between image and text */
    margin-bottom: 1.25rem;
  }

  .services-intro-text .services-hero,
  .services-intro-text .services-subtext {
    text-align: center;
  }

  .service-visual img {
    width: 180px;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 0.4rem;
  }

  .accordion {
    border-radius: 6px;
  }

  .accordion-header {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .accordion-panel {
    padding: 0 1rem;
  }

  .service-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .service-price {
    font-weight: 600;
  }

  .service-note {
    font-size: 0.85rem;
  }

  .intro--grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo img {
    margin: 0 auto;
  }

  /* Mobile layout for Why Choose Us */
  .why-choose-us {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .why-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
}

/* Tablet responsiveness (768px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header {
    padding: 1.75rem 0 1rem;
  }

  .site-title {
    color: #4a8a89;
    font-size: 2.8rem;
  }

  .main-nav a {
    font-size: 1.15rem;
    margin: 0 0.7rem;
  }

  .page {
    padding: 2rem 0 3rem;
    margin-top: 0;
    margin-bottom: 0;
  }

  .intro {
    max-width: 95%;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .info-card {
    padding: 1.5rem 1.75rem;
  }

  .btn-primary {
    max-width: 14rem;
  }
}

/* =========================
   10. FOOTER
========================= */
/* Footer layout */
.site-footer {
  background-color: #dcdcdc;
  padding: 1.5rem 0;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.footer-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer a {
  color: #4a8a89;
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile: stack footer nicely */
@media (max-width: 600px) {
  .site-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* =========================
   11. SITE CREDIT
========================= */
.site-credit {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.75rem;
}

.site-credit a {
  color: #4a8a89;
  text-decoration: none;
  font-weight: 500;
}

.site-credit a:hover {
  text-decoration: underline;
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

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

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: #f5f5f5;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
}

/* Close button stays anchored to the lightbox content */
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
}

/* Prev/Next arrows are fixed to the viewport so they don't shift
   when the image width changes between slides */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 600px) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
  }
}

/* Prevent body scroll while lightbox is open */
body.lightbox-open {
  overflow: hidden;
}