:root {
  /* Core Colors - Warm Theme */
  --bg-color: #0f0505;
  --modal-bg: #1a0808;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-color: #f8fafc;
  --text-dim: #94a3b8;

  /* Brand Colors */
  --primary: #e11d48;
  /* Rose 600 */
  --primary-glow: rgba(225, 29, 72, 0.3);
  --secondary: #9f1239;
  /* Rose 900 */
  --accent: #facc15;
  /* Gold */

  /* Status Colors */
  --online-glow: #e1be6d;
  --offline-glow: #475569;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-main: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection and blue outlines on interactive elements */
button,
.card,
.social-btn,
.social-icon,
.rating-star,
.modal-close,
.nav-btn {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  user-select: none;
}

/* Background Animation */
.background-globes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #2d0a0a 0%, var(--bg-color) 100%);
}

.globe {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 25s infinite ease-in-out alternate;
}

.globe-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -150px;
  left: -150px;
}

.globe-2 {
  width: 700px;
  height: 700px;
  background: var(--secondary);
  bottom: -250px;
  right: -250px;
  animation-delay: -7s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, 60px) scale(1.1);
  }
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem 4rem 2rem;
  /* Reduced top padding from 4rem to 1rem */
  max-width: 1200px;
  margin: 0 auto;
}

.main-header {
  margin-bottom: 2rem;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -1rem;
  padding: 0 55px;
  /* Added horizontal padding */
}

.main-logo {
  max-width: 225px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(225, 29, 72, 0.2));
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem 0.75rem 2rem 0.75rem;
    /* Reduced top padding further for mobile */
  }
}

/* Card Clickable Style */
.card {
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  padding: 12px;
}

/* Glow and Internal Color based on status */
.card.is-online {
  background: linear-gradient(135deg, rgba(225, 190, 109, 0.1) 0%, rgba(225, 190, 109, 0.02) 100%);
  box-shadow: 0 0 40px -5px rgba(225, 190, 109, 0.25);
  border: 3.5px solid #e1be6d;
}

.card.is-offline {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.15) 0%, rgba(71, 85, 105, 0.05) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  border-color: rgba(71, 85, 105, 0.2);
  filter: grayscale(1) opacity(0.7);
}

.card:hover {
  transform: translateY(-10px);
}

.card.is-online:hover {
  box-shadow: 0 0 50px -5px rgba(225, 190, 109, 0.4);
  border-color: #f7d794;
  /* Slightly lighter gold on hover */
}

/* Status Panel */
.status-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  margin: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.is-online .status-dot {
  background-color: var(--online-glow);
  box-shadow: 0 0 10px var(--online-glow);
  animation: pulse 2s infinite;
}

/* About Section Styles */
.about-content-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.about-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.about-social-link {
  width: 63px;
  height: 63px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-social-link:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px -10px var(--primary-glow);
}

.about-social-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.about-text {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 300;
}

.is-online .status-text {
  color: var(--online-glow);
}

.is-offline .status-dot {
  background-color: var(--offline-glow);
}

.is-offline .status-text {
  color: var(--offline-glow);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.card:active {
  transform: scale(0.98) translateY(-5px);
  transition: transform 0.1s;
}

/* Social Media Panel (Responsive) */
.social-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  margin: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: nowrap;
}

.social-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 1;
  min-width: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  transform: scale(1.2) translateY(-2px);
  filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Carousel Container */
.carousel-container {
  width: 100%;
  margin: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  background: #000;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Visual Nav Icons (Non-functional) */
.visual-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.6);
  color: white;
  border: none;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  z-index: 10;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  pointer-events: none;
  /* Passes clicks to the card */
  transition: all 0.3s;
}

.prev {
  left: 8px;
}

.next {
  right: 8px;
}

/* Info Section */
.card-info {
  padding: 0.3rem 1rem 0.1rem 1rem;
  /* Reduced bottom padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer {
  margin: 0.2rem -12px -12px -12px;
  /* Reduced top margin */
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.is-online .card-footer {
  background: linear-gradient(to right, rgba(225, 190, 109, 0.15), rgba(225, 190, 109, 0.05));
  border-top: 1px solid rgba(225, 190, 109, 0.3);
}

.footer-cta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-color);
}

.footer-arrow {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.card:hover .footer-arrow {
  transform: translateX(4px);
  color: #fff;
}

.card.is-online:hover .card-footer {
  background: linear-gradient(to right, rgba(225, 190, 109, 0.25), rgba(225, 190, 109, 0.15));
}

.info-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  container-type: inline-size;
}

.name {
  font-weight: 700;
  font-size: clamp(0.8rem, 11cqw, 1.2rem);
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
}

.location-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  padding: 4px 18px;
  border-radius: 0 0 16px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.location-badge span {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.location-badge::before {
  content: '📍';
  font-size: 0.8rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.info-right {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 100px;
}

.rating {
  font-weight: 700;
  font-size: 0.9rem;
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--modal-bg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow-y: auto;
  animation: modalSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

@keyframes modalSlide {
  from {
    transform: translateY(30px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1010;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-title {
  text-align: center;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modal Gallery */
.modal-gallery-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.gallery-container {
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
}

.modal-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.modal-gallery-item {
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  min-width: calc(50% - 6px) !important;
  aspect-ratio: 1 / 1.4;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-gallery-item:hover {
  transform: scale(1.02);
}

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

/* Sections */
.modal-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.bio-text {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
  white-space: pre-wrap;
  /* \n */
}

/* Social Buttons */
.modal-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 16px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.social-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 16px;
  border-left: 3px solid var(--primary);
}

.comment-user {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Comment Form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-name-input,
.comment-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s;
}

.comment-name-input:focus,
.comment-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
}

.comment-input {
  resize: none;
  min-height: 80px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Star Rating System */
.star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.star-rating .rating-star {
  font-size: 1.8rem;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}

.star-rating .rating-star.active {
  color: var(--accent);
}

.modal-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.modal-title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.modal-rating .star {
  font-size: 0.9em;
}

.modal-location {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-dim);
  margin-top: -15px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.modal-location::before {
  content: '📍';
  font-size: 0.9rem;
}

/* Comment Item Header */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-rating {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.modal-nav-btn.prev {
  left: -18px;
}

.modal-nav-btn.next {
  right: -18px;
}

@media (max-width: 480px) {
  .modal-socials {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
  }
}

/* Custom Alert Styles */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.alert-overlay.active {
  opacity: 1;
  visibility: visible;
}

.alert-content {
  background: var(--modal-bg);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 350px;
  width: 90%;
  transform: scale(0.98);
  /* Changed from 0.9 for a larger start */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.alert-overlay.active .alert-content {
  transform: scale(1);
}

.alert-message {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.alert-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.alert-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Footer Styles */
.main-footer {
  padding: 0.5rem 0 2rem 0;
  /* Reduced from 2rem top and 4rem bottom */
  text-align: center;
  width: 100%;
}

.footer-line {
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
  margin: 0 auto 1rem auto;
  /* Reduced margin-bottom from 2rem to 1rem */
}

.footer-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

.therapist-section {
  margin-bottom: 2rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1rem;
  padding: 0 10px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--direction, right), transparent, var(--primary), transparent);
}

.divider-line:first-child {
  --direction: left;
}

.divider-text {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  text-shadow: 0 0 15px var(--primary-glow);
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

.loader {
  color: var(--text-dim);
  font-size: 1.1rem;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.lightbox-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 20px;
}

.lightbox-close {
  position: relative;
  align-self: flex-end;
  /* Pivot to right edge of content */
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 60px;
  /* Increased from 50px */
  height: 60px;
  /* Increased from 50px */
  border-radius: 50%;
  font-size: 2.5rem;
  /* Increased from 2rem */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3010;
  transition: all 0.3s;
}

/* Adjust wrapper max-width based on image max-width */
.lightbox-content-wrapper {
  max-width: 85vw;
  margin: 0 auto;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-container {
  width: 100%;
  height: 70vh;
  /* Match image max-height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.lightbox-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-back-btn {
  position: relative;
  align-self: center;
  /* Centered instead of flex-end */
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 3010;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lightbox-back-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3010;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

/* Increase clickable area with pseudo-element */
.lightbox-nav-btn::before {
  content: '';
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: -20px;
  right: -20px;
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: -70px;
}

/* Pull out from center */
.lightbox-nav-btn.next {
  right: -70px;
}

@media (max-width: 1024px) {
  .lightbox-content-wrapper {
    max-width: 90vw;
  }

  .lightbox-nav-btn.prev {
    left: 10px;
  }

  .lightbox-nav-btn.next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .lightbox-container {
    height: 60vh;
  }

  .lightbox-close {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .lightbox-back-btn {
    align-self: center;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Even larger touch area for mobile */
  .lightbox-nav-btn::before {
    top: -30px;
    bottom: -30px;
    left: -20px;
    right: -20px;
  }
}