/* Tailwind CSS fallbacks - Mobile-first responsive design */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.1/base.css');
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.1/components.css');
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.1/utilities.css');

/* Base styles with Preflight reset */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
}

/* Custom utility classes for mobile-first design */
.min-h-screen {
  min-height: 100vh;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Typography */
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

/* Colors */
.text-gray-600 {
  color: rgb(75 85 99);
}

.text-gray-700 {
  color: rgb(55 65 81);
}

.text-gray-900 {
  color: rgb(17 24 39);
}

.text-blue-600 {
  color: rgb(37 99 235);
}

.bg-white {
  background-color: rgb(255 255 255);
}

.bg-gray-100 {
  background-color: rgb(243 244 246);
}

/* Grid system - Mobile first */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

/* Flexbox */
.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

/* Interactive elements */
.hover\:text-blue-600:hover {
  color: rgb(37 99 235);
}

.hover\:text-gray-900:hover {
  color: rgb(17 24 39);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Borders */
.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-gray-200 {
  border-color: rgb(229 231 235);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

/* Layout utilities */
.block {
  display: block;
}

.hidden {
  display: none;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .sm\:flex {
    display: flex;
  }
  
  .sm\:hidden {
    display: none;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:items-start {
    align-items: flex-start;
  }
  
  .sm\:justify-between {
    justify-content: space-between;
  }
  
  .sm\:mb-0 {
    margin-bottom: 0;
  }
  
  .space-x-6 > * + * {
    margin-left: 1.5rem;
  }
  
  .space-x-8 > * + * {
    margin-left: 2rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Full-Span 3-Column Gallery Layout */
.gallery-container {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 120px); /* Account for nav height */
}

.gallery-info-item {
  aspect-ratio: 4 / 3;
  background: rgb(249 250 251);
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gallery-info-content {
  width: 100%;
  text-align: center;
}

.gallery-info-title {
  font-size: 4rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-bottom: 0.75rem;
  text-align: center;
  width: 100%;
}

.gallery-info-description {
  font-size: 0.875rem;
  color: rgb(75 85 99);
  line-height: 1.5;
  text-align: left;
  padding-left: 0.5ch;
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
}

/* Photo container with same aspect ratio */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
  width: 100%;
}

/* Responsive adjustments - Full span at all sizes */
@media (max-width: 1024px) {
  .gallery-container {
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;
  }
  
  .gallery-info-item {
    padding: 1rem;
  }
  
  .gallery-info-title {
    font-size: 3rem;
  }
  
  .gallery-info-description {
    font-size: 0.8125rem;
  }
  
  .homepage-title {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  
  .gallery-info-item {
    padding: 1rem;
  }
  
  .gallery-info-title {
    font-size: 2.5rem;
  }
  
  .gallery-info-description {
    font-size: 0.75rem;
  }
  
  .homepage-title {
    font-size: 2.5rem;
  }
  
  /* Mobile portrait navigation spacing */
  nav a {
    padding: 0.5rem;
  }
  
  nav .flex > a {
    margin-left: 0 !important;
  }
  
  nav .flex > a + a {
    margin-left: 1rem !important;
  }
}

/* Simple Content Page Styles */
.content-description {
  color: rgb(107 114 128);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.simple-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-content-item {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.simple-content-item::before {
  content: "•";
  color: rgb(107 114 128);
  margin-right: 0.75rem;
}

.content-link {
  color: rgb(17 24 39);
  text-decoration: none;
  margin-right: 0.5rem;
}

.content-link:hover {
  color: rgb(37 99 235);
}

.content-duration {
  color: rgb(107 114 128);
  font-size: 0.875rem;
}

.flex-1 {
  flex: 1 1 0%;
}

/* Homepage title styling */
.homepage-title {
  font-size: 4rem;
  font-weight: 700;
  color: rgb(17 24 39);
  text-align: left;
  margin-bottom: 2rem;
}

/* Additional mobile optimizations */
.group {
  position: relative;
}

.cursor-pointer {
  cursor: pointer;
}

.leading-relaxed {
  line-height: 1.625;
}

.self-start {
  align-self: flex-start;
}

.inline-block {
  display: inline-block;
}

.italic {
  font-style: italic;
}

/* Focus styles for accessibility */
a:focus {
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
}

/* Image loading states */
img {
  height: auto;
  max-width: 100%;
}