/* ============================================
   Personal Website - Main Stylesheet
   Minimalist, Modern Design with Theme Support
   ============================================ */

/* Root Variables - Dynamically Updated by Theme Manager */
:root {
  --primary-color: #a0714f;
  --secondary-color: #8b5a3c;
  --accent-color: #d9a5a0;
  --tertiary-color: #cf9caa;
  --pale-accent: #f7ffe0;
  --text-dark: #3e3a38;
  --text-light: #8b8b8b;
  --bg-light: #fef5f1;
  --bg-white: #ffffff;
  --border-color: #e8d5cc;
  --success-color: #b8956a;
  --warning-color: #c9977a;
  
  --font-serif-title: 'Garamond', 'Georgia', serif;
  --font-serif-body: 'Lora', 'Georgia', serif;
  
  --navbar-bg: linear-gradient(90deg, rgba(160, 113, 79, 0.08) 0%, rgba(217, 165, 160, 0.08) 100%), #ffffff;
  --footer-bg: linear-gradient(90deg, rgba(160, 113, 79, 0.06) 0%, rgba(62, 58, 56, 1) 100%);
  --body-bg: #fef5f1;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif-body);
  color: var(--text-dark);
  background-color: var(--body-bg);
  background: var(--body-bg);
  line-height: 1.6;
  font-size: 16px;
}

main {
  transition: background 300ms ease;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: var(--font-serif-title);
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  color: var(--text-dark);
  font-family: var(--font-serif-title);
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: var(--font-serif-title);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-family: var(--font-serif-title);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.0625rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ============================================
   Navigation Bar
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Theme Selector Icon Button */
.theme-selector-wrapper {
  display: flex !important;
  align-items: center;
  margin-left: auto;
}

.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.theme-toggle-btn:hover {
  background-color: rgba(160, 113, 79, 0.1);
  transform: scale(1.1);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .theme-selector-wrapper {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .theme-toggle-btn {
    font-size: 1.25rem;
    padding: 0.4rem;
  }
}

/* ============================================
   Main Content
   ============================================ */

main {
  margin-top: 60px;
}

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

.section {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ============================================
   Hero / Landing Section
   ============================================ */

.hero {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  text-align: center;
  margin-top: 0;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ============================================
   Slideshow Component
   ============================================ */

.slideshow {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-light);
}

.slide {
  display: none;
  width: 100%;
  height: 400px;
  object-fit: cover;
  animation: fadeIn 0.5s;
}

.slide[src*="youtube.com"] {
  object-fit: contain;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slide-dot.active {
  background-color: var(--primary-color);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.slide-arrow.prev {
  left: 1rem;
}

.slide-arrow.next {
  right: 1rem;
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-card {
  display: block;
  overflow: hidden;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.article-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 180px;
}

.article-card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.article-card-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.15rem;
  line-height: 1.3;
}

.article-card-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.article-card-description {
  color: var(--text-light);
  margin: 0;
  flex: 1;
}

.article-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.65rem 1rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.article-card-button:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .article-card img {
    height: 160px;
  }
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  padding: 2rem 0 2rem 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.timeline-content h4 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   Social Icons Grid
   ============================================ */

.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
  justify-items: center;
}

.social-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.social-icon-item img {
  width: 100px;
  height: 100px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.social-icon-item img:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.social-icon-item p {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .social-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .social-icons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   Collapsible Sections
   ============================================ */

.collapsible {
  background-color: var(--bg-light);
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: 1px solid var(--border-color);
  text-align: left;
  outline: none;
  transition: var(--transition);
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.collapsible:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

.collapsible::after {
  content: '\002B';
  float: right;
  transition: var(--transition);
}

.collapsible.active::after {
  content: '\2212';
}

.collapsible-content {
  display: none;
  padding: 1rem;
  background-color: var(--bg-white);
  border-left: 3px solid var(--primary-color);
  margin-bottom: 1rem;
}

.collapsible-content.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

/* ============================================
   Photo Gallery
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ============================================
   Video Grid
   ============================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: var(--bg-light);
  overflow: hidden;
}

.video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 1rem;
  background-color: var(--bg-white);
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   Tags
   ============================================ */

.tag {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--footer-bg);
  color: white;
  padding: 3rem 2rem;
  margin-top: 0;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-section {
  padding: 1rem 0;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0;
  display: inline;
}

.social-links a,
.quick-links a {
  color: var(--accent-color);
  transition: var(--transition);
  font-weight: 500;
}

.social-links a:hover,
.quick-links a:hover {
  color: white;
  text-decoration: underline;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  color: white;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

  .hero .tagline {
    font-size: 1.25rem;
  }

  .social-links {
    justify-content: center;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -1.5rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.text-muted {
  color: var(--text-light);
}

.text-primary {
  color: var(--primary-color);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.theme-switcher label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  cursor: pointer;
}

.theme-switcher select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms ease;
  font-family: var(--font-serif-body);
}

.theme-switcher select:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switcher.language-switcher {
  max-width: 260px;
}

.theme-switcher select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive: Hide theme switcher on very small screens */
@media (max-width: 600px) {
  .theme-switcher {
    bottom: 10px;
    right: 10px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .theme-switcher select {
    min-width: 150px;
  }
}
/* ============================================
   CSS Photo Gallery
   ============================================ */

.css-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-row {
  display: flex;
  gap: 1.5rem;
  height: 300px;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  background-color: var(--bg-light);
}

.gallery-item.large {
  flex: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-row {
    height: 250px;
  }

  .gallery-item {
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  .css-gallery {
    gap: 1rem;
  }

  .gallery-row {
    flex-direction: column;
    height: auto;
    min-height: 250px;
  }

  .gallery-row:nth-child(2) {
    flex-direction: column;
  }

  .gallery-column {
    flex-direction: row;
    height: 200px;
  }

  .gallery-item.large {
    flex: 1;
  }

  .gallery-item {
    min-height: 200px;
    border-radius: 6px;
  }

  .gallery-caption {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .css-gallery {
    gap: 0.8rem;
  }

  .gallery-row {
    height: auto;
    min-height: 200px;
  }

  .gallery-column {
    height: 150px;
  }

  .gallery-item {
    min-height: 150px;
    border-radius: 4px;
  }

  .gallery-item img {
    border-radius: 4px;
  }

  .gallery-caption {
    font-size: 0.9rem;
  }
}