/* === NASA CLASSIC STYLE === */

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: "JetBrains Mono", monospace;
}

/* HEADER */
.nasa-header {
    text-align: center;
    padding: 25px 0;
    border-bottom: 1px solid #333;
}

.nasa-title {
    font-size: 32px;
    letter-spacing: 4px;
    color: #4da6ff;
}

.nasa-subtitle {
    font-size: 16px;
    margin-top: 5px;
    color: #ccc;
}

/* CONTENT WRAPPER */
.content {
    padding: 20px;
}

/* === DATE LIST === */

.date-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.date-item {
    display: block;
    padding: 14px 20px;
    background: #0a0a0a;
    border: 1px solid #222;
    color: #4da6ff;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: 0.2s;
}

.date-item:hover {
    border-color: #4da6ff;
    background: #111;
    transform: translateX(5px);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4da6ff;
    text-decoration: none;
    font-size: 18px;
}

/* === GALLERY GRID === */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.gallery-item:hover {
    border-color: #4da6ff;
    transform: scale(1.02);
}

.thumb {
    width: 100%;
    display: block;
    border: 1px solid #333;
}

/* CAPTION */
.caption {
    margin-top: 10px;
    text-align: center;
}

.sat {
    font-size: 18px;
    color: #4da6ff;
}

.datetime {
    font-size: 14px;
    color: #aaa;
}

/* === LIGHTBOX (FULLSCREEN OVERLAY) === */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Картинка в лайтбоксе */
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #4da6ff;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

/* Зум */
.lightbox img.zoomed { }

/* === MOBILE ADAPTATION (max-width: 600px) === */
@media (max-width: 600px) {

    /* Две колонки */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Убираем min-width от minmax(260px) */
    .gallery-grid > * {
        min-width: 0 !important;
    }

    .gallery-item {
        padding: 6px !important;
    }

    .thumb {
        border-width: 1px !important;
    }

    .sat, .datetime {
        font-size: 18px !important;
    }

    .date-item {
        font-size: 22px !important;
        padding: 18px 22px !important;
    }

    .nasa-title {
        font-size: 26px !important;
    }

    .nasa-subtitle {
        font-size: 14px !important;
    }
}