/* =========================================
   SPACE1993
   ASTRO GALLERY
   RIDING MILL BASELINE
   ========================================= */


/* =========================================
   TITLE
   ========================================= */

.astro-title {

    position: absolute;

    top: 58px;

    left: 50%;

    transform: translateX(-50%);

    width: 72%;

    max-width: 1100px;

    color: #383834;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 24px;

    font-weight: normal;

    line-height: 1;

    text-align: center;

    z-index: 5;

}


.astro-title span {

    display: inline;

}


.astro-back {

    position: absolute;

    left: 0;

    top: -4px;

    color: #383834;

    text-decoration: none;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 28px;

    font-weight: normal;

    line-height: 1;

    z-index: 6;

}


.astro-back:hover {

    color: #33332d;

}


/* =========================================
   DESCRIPTION
   ========================================= */

.astro-description {

    position: absolute;

    top: 92px;

    left: 50%;

    transform: translateX(-50%);

    width: 72%;

    max-width: 1100px;

    color: #080908;

    font-family:
        "Blue Screen",
        monospace;

    font-size: 16px;

    line-height: 1.6;

    letter-spacing: .4px;

    text-align: center;

    z-index: 5;

}


.astro-description p {

    margin: 0;

}


.standard-font {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


/* =========================================
   GALLERY
   ========================================= */

.astro-gallery {

    position: absolute;

    top: 165px;

    left: 50%;

    transform: translateX(-50%);

    width: 90%;

    max-width: 1100px;

    height: calc(100% - 185px);

    padding: 10px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 180px;

    gap: 10px;

    overflow-y: auto;

    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color:
        #080908
        transparent;

    z-index: 5;

}


/* =========================================
   GALLERY PIECES
   ========================================= */

.astro-piece {

    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    padding: 0;

    margin: 0;

    border: none;

    background: transparent;

    overflow: hidden;

    cursor: pointer;

    z-index: 6;

    -webkit-tap-highlight-color:
        transparent;

    touch-action: manipulation;

}


.astro-piece img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 1;

    filter: none;

    pointer-events: none;

    transition:
        transform .2s ease;

}


.astro-piece:hover img {

    transform:
        scale(1.025);

}


/* =========================================
   LIGHTBOX
   ========================================= */

.astro-lightbox {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px;

    background:
        rgba(8, 9, 8, .96);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;

}


.astro-lightbox.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


.astro-lightbox-image-container {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 90vw;

    height: 90vh;

    overflow: hidden;

    touch-action: none;

    cursor: zoom-in;

}


.astro-lightbox-image {

    display: block;

    max-width: 90vw;

    max-height: 90vh;

    width: auto;

    height: auto;

    object-fit: contain;

    transform:
        translate3d(0, 0, 0)
        scale(1);

    transform-origin:
        center center;

    transition: none;

    user-select: none;

    -webkit-user-drag: none;

    pointer-events: none;

    will-change: transform;

    backface-visibility: hidden;

}


/* =========================================
   LIGHTBOX BUTTONS
   ========================================= */

.astro-lightbox button {

    position: absolute;

    border: none;

    background: none;

    color: #d0d0cc;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    z-index: 2;

    -webkit-tap-highlight-color:
        transparent;

}


.astro-lightbox button:hover {

    color: white;

}


.astro-lightbox-close {

    top: 25px;

    right: 30px;

    font-size: 34px !important;

}


.astro-lightbox-previous {

    left: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


.astro-lightbox-next {

    right: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


/* =========================================
   MOBILE
   ========================================= */

@media screen and (max-width: 600px) {


    .astro-title {

        top: 58px;

        width: 88%;

        font-size: 20px;

    }


    .astro-back {

        top: -3px;

        font-size: 24px;

    }


    .astro-description {

        top: 90px;

        width: 88%;

        font-size: 14px;

        line-height: 1.6;

    }


    .astro-gallery {

        top: 175px;

        width: 94%;

        height: calc(100% - 193px);

        padding: 5px;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows:
            max-content;

        gap: 7px;

        align-content: start;

    }


    .astro-piece {

        position: relative;

        display: block;

        width: 100%;

        height: 0 !important;

        padding:
            0 0 100% 0 !important;

        margin: 0;

        overflow: hidden;

    }


    .astro-piece img {

        position: absolute;

        top: 0;

        left: 0;

        display: block;

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    .astro-lightbox {

        padding: 25px;

    }


    .astro-lightbox-image-container {

        width: 94vw;

        height: 84vh;

    }


    .astro-lightbox-image {

        max-width: 94vw;

        max-height: 82vh;

    }


    .astro-lightbox-close {

        top: 18px;

        right: 20px;

    }


    .astro-lightbox-previous {

        left: 12px;

    }


    .astro-lightbox-next {

        right: 12px;

    }

}


/* =========================================
   SMALL PHONES
   ========================================= */

@media screen and (max-width: 380px) {


    .astro-title {

        top: 58px;

        width: 90%;

        font-size: 18px;

    }


    .astro-back {

        top: -2px;

        font-size: 22px;

    }


    .astro-description {

        top: 86px;

        width: 90%;

        font-size: 13px;

    }


    .astro-gallery {

        top: 165px;

        height: calc(100% - 183px);

        width: 96%;

        padding: 4px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows:
            max-content;

        gap: 6px;

        align-content: start;

    }


    .astro-piece {

        width: 100%;

        height: 0 !important;

        padding:
            0 0 100% 0 !important;

    }


    .astro-piece img {

        position: absolute;

        top: 0;

        left: 0;

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    .astro-lightbox button {

        font-size: 22px;

    }


    .astro-lightbox-close {

        font-size: 30px !important;

    }

}