/* ========================================
   nexUS Observatories - Layout Components
   Grid Systems, Responsive Design, Spacing
   ======================================== */

/* =============================================================================
   ALLSKY CONTENT LAYOUT - Updated for 3-Box Layout (2+1)
   ============================================================================= */

.allsky-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns for top row */
    grid-template-rows: auto auto; /* Two rows: top sections, then full-width gallery */
    gap: 2rem;
    margin-top: 2rem;
}

/* Top row items (Latest Sky Image and Timelapse Archive) */
.allsky-live {
    grid-column: 1;
    grid-row: 1;
}

.allsky-archive {
    grid-column: 2;
    grid-row: 1;
}

/* Bottom row - Cosmic Symphony Gallery spans full width */
.cosmic-symphony-gallery {
    grid-column: 1 / -1; /* Span all columns (full width) */
    grid-row: 2;
    margin-top: 0; /* Remove extra margin since grid handles spacing */
}

/* Responsive design */
@media (max-width: 768px) {
    /* Mobile layout - stack vertically */
    .allsky-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-template-rows: auto auto auto; /* Three rows */
        gap: 1.5rem;
    }

    .allsky-live {
        grid-column: 1;
        grid-row: 1;
    }

    .allsky-archive {
        grid-column: 1;
        grid-row: 2;
    }

    .cosmic-symphony-gallery {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    .allsky-content {
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .allsky-content {
        gap: 2.5rem;
        margin-top: 2.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}