/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
/* Apply box-sizing border-box to all elements for easier sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML Base */
html {
  scroll-behavior: smooth;
  /* Smooth scrolling for anchor links */
}

/* 
   CSS Custom Properties (Variables) 
   - Centralizes colors and effects for consistency
*/
:root {
  --shadow-glow: 0 0 20px rgba(28, 128, 171, 0.4);
  --shadow-card-hover: 0 10px 30px rgba(28, 128, 171, 0.15);
  --transition-base: 0.3s ease;
  --color-primary: #1c80ab;
}

/* =========================================
   2. ACCESSIBILITY
   ========================================= */
/* 
   Skip Link
   - Allows keyboard users to bypass navigation and jump to main content
   - Hidden by default, visible on focus
*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1c80ab;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* 
   Screen Reader Only Class (.sr-only)
   - Hides text visually but keeps it available for screen readers
*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 
   Focus Indicators
   - Ensures interactive elements have a visible outline when focused
   - Uses theme color for consistency
*/
a:focus,
button:focus,
input:focus,
[tabindex]:focus {
  outline: 3px solid #1c80ab;
  outline-offset: 2px;
}

/* Use :focus-visible to show outline only when navigating with keyboard */
:focus-visible {
  outline: 3px solid #1c80ab;
  outline-offset: 2px;
}

/* Hide outline for mouse users if :focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* 
   Body Base Styles
   - Sets default font stack and readability settings
*/
body {
  font-family: 'Avenir', 'Avenir Next', 'Segoe UI', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
/* 
   Sticky Header 
   - Stays at the top of the viewport
   - Supports glassmorphism effect via .scrolled class
*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
  /* Initial state: no blur */
}

/* 
   Scrolled State
   - Triggered by JS when user scrolls down
   - Adds blur and adjusts padding/shadow for a compact look
*/
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Safari support */
  padding: 0.3rem 2rem;
  /* Shrink height */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Stronger shadow */
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1c80ab;
}

.logo img {
  height: 3rem;
  margin-right: 1rem;
}

/* Navigation Container */
.nav {
  display: flex;
  gap: 1.5rem;
}

/* Hide legacy mobile menu inputs */
#menu-toggle,
.burger {
  display: none;
}

/* 
   Mobile Toggle Button (Hamburger)
   - Hidden on desktop, shown on mobile
*/
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

/* Hamburger Lines */
.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* 
   Hamburger Animation (to 'X')
   - Rotates top and bottom lines, hides middle line
*/
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-toggle.active span {
  background-color: #1c80ab;
  /* Change color when active */
}

/* 
   Mobile Navigation Styles 
   - Active below 768px width
*/
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2vw;
    gap: 0;
  }

  /* Show nav when toggle is checked (legacy fallback or JS toggle) */
  #menu-toggle:checked~.nav {
    display: flex;
  }

  .nav a {
    padding: 4vw 6vw;
    font-size: 4vw;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  /* Show the toggle button */
  .mobile-toggle {
    display: block;
  }
}

/* Navigation Links */
.nav a {
  text-decoration: none;
  color: #1c80ab;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all var(--transition-base);
  position: relative;
}

/* Hover Effect for Nav Links */
.nav a:hover {
  background-color: rgba(28, 128, 171, 0.1);
  text-decoration: none;
  box-shadow: 0 0 10px rgba(28, 128, 171, 0.2);
  transform: translateY(-1px);
}

/* 
   Glow Link Component 
   - Used for CTA buttons/links that need emphasis
   - Blue pill shape with glow effect on hover
*/
.glow-link {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(28, 128, 171, 0.1);
  border-radius: 20px;
  transition: all var(--transition-base);
  font-weight: 600;
}

.glow-link:hover {
  background: var(--color-primary);
  color: white !important;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =========================================
   4. HERO & LAYOUT
   ========================================= */
/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section Styles */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #e6f3ff 0%, #ffffff 90%);
  /* Light blue fade */
}

/* Hero Typography */
.hero-section h1 {
  font-size: 5rem;
  color: #1c80ab;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-section h2 {
  font-size: 3rem;
  color: #6d6d6d;
  margin-bottom: 1rem;
  font-weight: 200;
}

.hero-section h3 {
  font-size: 2rem;
  color: #1c80ab;
  margin-bottom: 1rem;
  font-weight: 200;
}

.hero-section h4 {
  font-size: 3rem;
  color: #1c80ab;
  margin-bottom: 1rem;
  font-weight: 200;
}

.hero-section h2 a{
  font-size: 3rem;
  color: #1c80ab;
  margin-bottom: 1rem;
  font-weight: 200;
  text-decoration: none;
}

.hero-section p {
  font-size: 1.2rem;
  color: #6d6d6d;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.hero-section p a {
  font-size: 1.2rem;
  color: #1c80ab;
  text-decoration: none;
}

/* =========================================
   5. HERO SLIDER COMPONENT
   ========================================= */
/* 
   Slider Container
   - Full-width panel breaking out of container
   - Uses calculation to center itself relative to viewport
*/
.slider-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 60vh;
  background-color: black;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Slider Track */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 
   Individual Slide
   - Absolute positioning to stack slides
   - Hidden by default (opacity: 0)
   - Transitions opacity for fade effect
*/
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Active Slide (Visible) */
.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide Image */
.slide img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 
   Slide Overlay (Caption)
   - Semi-transparent black background
   - Positioned at bottom of slide
*/
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0rem 0rem;
  background: rgba(0, 0, 0, 0.8);
  color: #a8a8a8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 0;
}

.slide-overlay h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #a8a8a8;
}

.slide-overlay p {
  font-size: 1rem;
  max-width: 800px;
  color: #a8a8a8;
}

/* 
   Slider Navigation Arrows 
   - Circular buttons
   - Hover effects for interactivity
*/
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: #1c80ab;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.1);
}

/* Positioning for Arrows */
.slider-nav.prev {
  left: 10px;
}

.slider-nav.next {
  right: 10px;
}

/* 
   Slider Dots Indicator 
   - Shows current slide
   - Centered at bottom
*/
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* =========================================
   6. CONTENT & CARD STUCTURES
   ========================================= */
/* Generic Content Section */
.content-section {
  padding: 3rem 0;
  margin: auto;
}

.content-section h2 {
  color: #1c80ab;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-section h2 a {
  color: #1c80ab;
  text-decoration: none;
}

/* Grid Layout for Research Items */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 
   Shared Card Styles
   - Used for Research, Teams, News, About profiles
   - Includes shadow, radius, and hover transition base
*/
.research-card,
.research-profile,
.team-profile,
.news-profile,
.about-profile,
.about-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid transparent;
}

/* 
   Card Hover Effects
   - Lifts the card up
   - Adds a stronger, colored glow shadow
*/
.research-card:hover,
.research-profile:hover,
.team-profile:hover,
.news-profile:hover,
.about-profile:hover,
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(28, 128, 171, 0.3);
}

.research-card h3 {
  color: #1c80ab;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* 
   Scroll Animations
   - .fade-in-section: Base state (invisible, shifted down)
   - .is-visible: Active state (visible, original position)
   - Triggered by IntersectionObserver in JS
*/
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

.research-card h3 a {
  color: #1c80ab;
  text-decoration: none;
}

.research-card p {
  color: #666;
  line-height: 1.6;
}

/* =========================================
   7. FOOTER STYLES
   ========================================= */
/* Footer Container */
.footer {
  background-color: #1c80ab;
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

/* 
   Footer Grid Layout
   - Responsive grid that adjusts columns automatically
   - minmax(250px, 1fr) ensures columns don't get too narrow
*/
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  place-content: center;
}

.footer-section {
  text-align: left;
}

/* Footer Headings */
.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #b3d9ff;
  text-decoration: none;
}

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

/* 
   Copyright Section
   - Separated by a top border
   - Slightly transparent opacity
*/
.footer-bottom {
  text-align: left;
  margin-top: 2rem;
  padding-left: 7%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom p {
  margin: 0;
  color: #b3d9ff;
}

/* =========================================
   8. UTILITIES & SPECIFIC PAGE STYLES
   ========================================= */
/* Utility classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* 
   About Page Layout
   - Specific styles for the "About Us" page profiles
*/
.about-profile img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0;
  display: block;
}

.about-content {
  flex: 1;
  max-width: 800px;
}

.about-content2 {
  flex: 1;
  max-width: 1000px;
  text-align: justify;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.about-profile {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background-color: #f9f9f9;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.about-container h1,
.about-container h2 {
  color: #1c80ab;
  margin-bottom: 1rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section a {
  color: #1c80ab;
  text-decoration: none;
}

/* =========================================
   9. RESPONSIVE DESIGN (GLOBAL)
   ========================================= */
/* Tablet and Mobile adjustments */
@media (max-width: 768px) {

  /* Header adjustments for smaller screens */
  .header {
    flex-direction: row;
    justify-content: space-between;
    gap: 1vw;
    padding: 1rem;
    position: sticky;
    /* Keep sticky */
  }

  .burger {
    display: flex;
  }

  .logo {
    font-size: 0.9rem;
    /* Smaller font to fit "Group of Astrophysical Plasmas" */
    flex: 1;
    /* Allow text to take available space */
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo img {
    height: 2rem;
    /* Slightly smaller logo */
    margin-right: 0.5rem;
  }

  /* 
     Mobile Navigation (Expand-style)
     - Absolute positioning relative to header
     - Slides down from bottom of header
     - Glassmorphism effect
  */
  .nav {
    display: flex;
    /* Always display, hide via opacity/transform */
    flex-direction: column;
    position: absolute;
    top: 100%;
    /* Position directly below header */
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Separator */

    /* Animation State: Hidden */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    /* Ensure it is ON TOP of everything */
  }

  /* Active State (Toggled by JS) */
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Links Styling */
  .nav a {
    padding: 0.5rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    display: block;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  /* Hero Section Mobile Scaling */
  .hero-section {
    padding: 4rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .slider-container {
    height: 40vh;
  }

  .slide-overlay {
    padding: 2rem;
  }

  .slide-overlay h3 {
    font-size: 1.5rem;
  }

  .slide-overlay p {
    font-size: 1rem;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .research-card {
    padding: 1.5rem;
  }

  .footer {
    padding: 3rem 1.5rem;
  }

  .about-profile {
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 0 2rem 0;
  }

  .about-profile img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* =========================================
   10. COMPONENT STYLES
   ========================================= */
/* Justified Text Block */
.justified-text {
  max-width: 90%;
  margin: 1.6rem auto;
  /* center the block horizontally */
  font-size: 1.1rem;
  color: #666;
  text-align: justify;
}

.justified-text p {
  margin-bottom: 1.2rem;
  text-indent: 1.5rem;
}

.justified-text ul {
  margin-top: 1em;
  margin-bottom: 1.2em;
  margin-left: 1em;
}

/* Image Gallery (Horizontal Scroll) */
.image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background-color: #ffffff;
  overflow-x: auto;
}

.image-gallery img {
  width: 10rem;
  height: auto;
  object-fit: contain;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: none;
}


/* 
   Apply Card (Job/Opportunity)
   - Featured card with gradient top border
   - Checkmark list styles
*/
.apply-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(28, 128, 171, 0.15);
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  /* Fix for Safari border-radius clipping */
}

/* Top Gradient Line */
.apply-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #1c80ab, #66c2ff);
}

.apply-card h3 {
  color: #1c80ab;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.apply-card ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}

.apply-card li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: #4a4a4a;
  font-size: 1.1rem;
}

/* Custom Checkmark Bullet */
.apply-card li::before {
  content: "✓";
  color: #1c80ab;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Deadline Pill */
.apply-card .deadline {
  background-color: #e6f3ff;
  color: #1c80ab;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(28, 128, 171, 0.1);
}

.apply-card .cta-text {
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
}

.apply-card a {
  color: #1c80ab;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}


/* 
   Project List Styles
   - Used for lists of publications or projects
   - Interactive hover states with arrow revealing
*/
.project-list {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0;
  list-style: none;
}

.project-list li {
  margin-bottom: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eee;
}

.project-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(28, 128, 171, 0.15);
  border-color: #b3d9ff;
}

.project-list a {
  display: block;
  padding: 1.5rem 2rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Arrow that appears/slides on hover */
.project-list a::after {
  content: "→";
  color: #1c80ab;
  font-weight: bold;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
}

.project-list li:hover a {
  color: #1c80ab;
}

.project-list li:hover a::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   11. LIGHTBOX MODAL
   ========================================= */
/* 
   Lightbox Overlay
   - Full screen, dark background with blur
   - Hidden by default
*/
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Active State */
.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

/* Lightbox Image */
.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Close Button (X) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all 0.3s ease;
  z-index: 2001;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}