/* About Page Modern Design */
:root {
  --primary-green: #90c863;
  --primary-green-dark: #7bb356;
  --primary-green-light: rgba(144, 200, 99, 0.1);
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #9ca3af;
  --bg-light: #f8f9fa;
  --bg-gray: #f3f4f6;
  --white: #ffffff;
  --border-light: #e5e7eb;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

/* General Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section */
.about-hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.about-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="60" cy="40" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-green);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.2;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0;
  font-weight: 300;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Story Section */
.story-section {
  padding: 120px 0;
  background: var(--white);
}

.story-content {
  padding-right: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.story-image {
  position: relative;
}

.story-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-heavy);
  width: 100%;
  height: auto;
  max-width: 100%;
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

/* Activities Section */
.activities-section {
  padding: 120px 0;
  background: var(--bg-light);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.activity-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.activity-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.activity-card:hover:before {
  transform: scaleX(1);
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.activity-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
  font-size: 2rem;
}

.activity-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.activity-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.activity-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.activity-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Values Section */
.values-section {
  padding: 120px 0;
  background: var(--white);
}

.values-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-heavy);
}

.values-content {
  padding-left: 2rem;
}

.values-list {
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.value-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-medium);
  transform: translateX(10px);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.value-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.value-content p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Team Gallery Section */
.team-gallery-section {
  padding: 120px 0;
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
  height: 100%;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover .image-container img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .image-overlay {
  opacity: 1;
}

.view-btn {
  background: var(--white);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
  transform: scale(0.8);
}

.gallery-card:hover .view-btn {
  transform: scale(1);
}

.view-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-2px);
}

/* Load More Button */
.load-more-section {
  margin-top: 40px;
}

.load-more-btn {
  background: var(--primary-green);
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.load-more-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.lightbox-modal.show {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 2;
  animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}

.lightbox-close:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

.lightbox-image-container {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.lightbox-image-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: -60px;
  right: -60px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.nav-btn {
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
  font-size: 1.25rem;
}

.nav-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1300px;
    margin: 3rem auto 0 auto;
    justify-items: center;
    align-items: start;
  }
}

/* Medium Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: start;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

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

  .story-content,
  .values-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .story-content,
  .values-content {
    padding-left: 0;
    padding-right: 0;
    margin-top: 2rem;
  }

  .story-image {
    text-align: center;
    margin-top: 2rem;
  }

  .story-image img {
    max-height: 400px;
    width: auto !important;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

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

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

  .activity-card {
    padding: 2rem;
  }

  .values-image {
    text-align: center;
    margin-bottom: 2rem;
  }

  .values-image img {
    max-height: 400px;
    width: auto;
  }

  .value-item {
    padding: 1.25rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

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

@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }

  .story-section,
  .activities-section,
  .values-section,
  .team-gallery-section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    padding: 0 1rem;
  }

  .section-description {
    font-size: 1rem;
    text-align: justify;
    padding: 0 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .activity-card {
    padding: 1.5rem;
    text-align: center;
  }

  .activity-icon {
    margin: 0 auto 1rem auto;
  }

  .activity-title {
    font-size: 1.25rem;
  }

  .activity-description {
    font-size: 0.95rem;
    text-align: center;
  }

  .value-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .value-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .value-content h4 {
    font-size: 1.1rem;
  }

  .value-content p {
    font-size: 0.9rem;
  }

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

  .cta-section {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .cta-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
  }

  /* Lightbox mobile fixes */
  .lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    margin: 0 1rem;
  }

  .lightbox-close {
    top: -35px;
    right: 0;
    width: 35px;
    height: 35px;
  }

  .lightbox-nav {
    left: -45px;
    right: -45px;
  }

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

  .lightbox-image-container img {
    max-height: 70vh;
  }
}

@media (max-width: 576px) {
  .about-hero {
    padding: 40px 0;
  }

  .story-section,
  .activities-section,
  .values-section,
  .team-gallery-section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .story-image img {
    max-height: 300px;
  }

  .activity-card {
    padding: 1rem;
  }

  .activity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .activity-title {
    font-size: 1.1rem;
  }

  .value-item {
    padding: 0.75rem;
  }

  .value-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

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

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 0.95rem;
  }

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

  /* Enhanced mobile lightbox */
  .lightbox-content {
    max-width: 98vw;
    max-height: 95vh;
    margin: 0 0.5rem;
  }

  .lightbox-close {
    top: -30px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .lightbox-nav {
    display: none; /* Hide nav on very small screens */
  }

  .lightbox-image-container img {
    max-height: 60vh;
  }

  /* Container padding fix for very small screens */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .story-image img {
    max-height: 250px;
  }

  .activity-card {
    padding: 0.75rem;
  }

  .value-item {
    padding: 0.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .gallery-card:hover .image-overlay {
    opacity: 0;
  }

  .gallery-card .image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
  }

  .value-item:hover {
    transform: none;
  }

  .activity-card:hover {
    transform: none;
  }

  .stat-item:hover {
    transform: none;
  }
}

/* Landscape phone optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .about-hero {
    padding: 30px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .lightbox-image-container img {
    max-height: 50vh;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  .lightbox-close {
    top: -35px;
    right: 0;
  }

  .lightbox-nav {
    display: none;
  }
}

/* iPhone 14 Pro and similar devices */
@media only screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3),
  /* iPhone 13 Pro,
  12 Pro */ only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3),
  /* iPhone 14,
  13,
  12 */ only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 2),
  /* General iOS devices */ only screen and (max-width: 428px) and (-webkit-min-device-pixel-ratio: 2) {
  .gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
  }

  .gallery-item {
    display: block !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .gallery-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .image-container {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    position: relative !important;
  }

  .image-container img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Loading States */
.gallery-item.loading {
  opacity: 0.6;
}

.gallery-item.loading .gallery-card {
  pointer-events: none;
}

.gallery-item.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Custom Scrollbar */
.filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.filter-tabs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filter-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 10px;
}

.filter-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}

/* Mobile specific optimizations */
.mobile-device .activity-card:hover,
.mobile-device .value-item:hover,
.mobile-device .gallery-card:hover {
  transform: none;
  box-shadow: var(--shadow-light);
}

.mobile-device .stat-item:hover {
  transform: none;
}

/* Prevent zoom on input focus on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="color"] {
    font-size: 16px !important;
  }
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

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

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.view-btn:focus,
.lightbox-close:focus,
.nav-btn:focus,
.btn:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .image-overlay {
    background: rgba(0, 0, 0, 0.9);
  }

  .activity-card,
  .value-item,
  .gallery-card {
    border: 1px solid var(--text-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gallery-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
