/* Essential Tailwind CSS classes for the project layout */

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }

/* Additional Grid Utilities */
.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.opacity-0 { opacity: 0; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Responsive Grid - Target exact HTML classes */
.grid.grid-cols-1 {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 2rem !important;
}

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

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

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.min-h-screen { min-height: 100vh; }

/* Spacing */
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.bottom-8 { bottom: 2rem; }
.left-8 { left: 2rem; }
.right-8 { right: 2rem; }

/* Colors */
.bg-white { background-color: rgb(255 255 255); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-black { background-color: rgb(0 0 0); }
.text-white { color: rgb(255 255 255); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-900 { color: rgb(17 24 39); }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }

/* Borders */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadows */
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* Object fit */
.object-cover { object-fit: cover; }

/* Gallery images - no padding between images */
.bg-gray-100 img {
  display: block;
  margin: 0;
  padding: 0;
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Opacity */
.opacity-0 { opacity: 0; }

/* Transitions */
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Animations */
.animate-bounce { animation: bounce 1s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* Responsive */
@media (min-width: 1024px) {
  .lg\\:w-2\\/5 { width: 40%; }
  .lg\\:w-3\\/5 { width: 60%; }
  .lg\\:p-16 { padding: 4rem; }
  .lg\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\\:flex-row { flex-direction: row; }
}

/* Removed scroll snap to prevent auto-scroll behavior */

/* Ensure smooth transitions and prevent layout shifts */
.gallery-image {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Preload optimization */
img[loading="eager"] {
  fetchpriority: high;
}

/* Backdrop blur and transparency */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-opacity-20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-opacity-30 { background-color: rgba(255, 255, 255, 0.3); }
.border-opacity-30 { border-color: rgba(255, 255, 255, 0.3); }
.hover\\:bg-opacity-30:hover { background-color: rgba(255, 255, 255, 0.3); }

/* Loader styles */
.animate-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Back button visibility */
.back-button { transition: opacity 0.3s ease; }
.back-button.visible { opacity: 1; }

/* Make left column fixed only when in split section */
.left-column-fixed { transition: all 0.3s ease; }
.left-column-fixed.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 40% !important;
  height: 100vh !important;
  overflow-y: auto !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
}

.left-column-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* Mobile: single column layout */
@media (max-width: 1023px) {
  .left-column-fixed.sticky {
    position: static !important;
    width: 100% !important;
    height: auto !important;
  }
}
