/* Universe page: dark space theme for astrophotography gallery */

html,
body {
    background: #000 !important;
    background-size: auto !important;
    animation: none !important;
    min-height: 100%;
}

body .container {
    background: #000;
}

.universe-main {
    background: #000;
    flex: 1;
    padding: 20px 0 40px;
}

.universe-intro-section,
.universe-gallery-section {
    max-width: 900px;
    margin: 0 auto 30px;
}

.universe-intro-card,
.universe-gallery-card {
    background: #000;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.universe-intro-content {
    margin-top: 20px;
}

.universe-intro-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 1rem;
}

.universe-gallery-content {
    margin-top: 20px;
}

.gallery-dates {
    margin-bottom: 30px;
}

.date-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.date-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #21ecbe;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.date-photos {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

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

.photo-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 236, 190, 0.2);
}

.photo-image {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-image:hover {
    transform: scale(1.05);
}

.photo-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.photo-time {
    color: #21ecbe;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.photo-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.no-photos {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.95rem;
}

.gallery-info {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-info h4 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #21ecbe;
    margin-bottom: 10px;
    margin-top: 20px;
}

.gallery-info h4:first-child {
    margin-top: 0;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.nav-menu li a.active {
    color: #21ecbe;
}

.footer .last-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Modal/Lightbox styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(33, 236, 190, 0.3);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    color: #21ecbe;
}

.loading-gallery {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-text {
    font-size: 1.1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .universe-intro-section,
    .universe-gallery-section {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .universe-intro-card,
    .universe-gallery-card {
        padding: 20px;
    }
    
    .date-title {
        font-size: 1.2rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}
