  /* Main */

body {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 1000px;
    background-color: #19191f;  background-image: url("https://zconsta.neocities.org/Images/background-pattern.png");
    color: #e4e9ef;
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Main frame */

.site {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #24232b;
    border: 1px solid #5c627e;
    padding: 15px;
}

/* Top banner */

.banner {
    padding: 0;
    margin-bottom: 12px;
    border: 2px solid #696896;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Marquee */
.marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-item {
    animation-duration: 40s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Navigation */

.navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 4px;
    background-color: #181721;
    border: 1px solid #696896;
}

.navigation a {
    display: inline-block;
    padding: 4px 12px;
    color: #ffffff;
    text-decoration: none;
    z-index: 3;
}

.navigation a:hover {
    background-color: #565c8e;
}

/* Main grid */

.layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: flex-start;
}

/* Content panels */

.panel {
    background-color: #2d2e39;
    border: 1px solid #5c627e;
    padding: 12px;
    margin-bottom: 7px;
}

.panel h2 {
    color: #d8e7ff;
    font-size: 18px;
    margin-top: 0;
    border-bottom: 1px dashed #707596;
    padding-bottom: 6px;
}

/* About */

.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-panel {
    width: 450px;
    flex-shrink: 0;
}

.about-portrait {
    width: 370px;
    flex-shrink: 0;
    position: relative;
    order: 1;
}

.about-portrait img {
    position: absolute;
    top: -30px;
    left: -25px;
    display: block;
    width: 450px;
    height: auto;
    max-width: none;
    z-index: 2;
}

.about-columns {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.about-left {
    display: flex;
    flex-direction: column;
    flex: 0 0 476px;
}

.about-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 0;
    order: 2;
}

.about-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex-shrink: 0;
}

.about-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 476px;
    gap: 16px;
}

.about-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 9px;
    width: max-content;
    margin: 0;
    margin-bottom: 7px;
    z-index: 3;
}

.about-buttons a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.about-buttons img {
    display: block;
    width: 88px;
    height: 31px;
    border: 0;
}

.about-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
}

/* Links */

a {
    color: #b8ddff;
}

a:hover {
    color: #ffffff;
}

/* Gallery */

.gallery-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: flex-start;
}

.gallery-home a {
    display: block;
    min-width: 0;
    padding: 6px;
    background-color: #23212d;
    border: 1px solid #707796;
    text-decoration: none;
}

.gallery-home img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-home span {
    display: block;
    margin-top: 8px;
}

.gallery-home a:hover {
    border-color: #707796;
    background: #313141;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: flex-start;
}

.gallery a {
    display: block;
    min-width: 0;
    padding: 6px;
    background-color: #313141;
    border: 1px solid #707796;
    text-decoration: none;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery span {
    display: block;
    margin-top: 8px;
}

/* Year gallery */

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

.year-gallery a {
    color: #b8ddff;
}

.year-gallery a:hover {
    color: #ffffff;
}

.year-gallery h2 {
    color: #7ab7df;
    border-bottom: 1px dashed #707596;
    padding-bottom: 8px;
}

/* Carousel layout */

.carousel {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
    align-items: center;
}

.carousel-viewport {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.3s ease;
}

.carousel-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;

    align-content: flex-start;
}

.carousel-counter {
    margin: 10px 0 0;
    text-align: center;
    color: #afb3cb;
    font-size: 12px;
}

/* Artwork cards */

.art-card {
    display: block;
    min-width: 0;
    padding: 6px;
    background: #23212d;
    border: 1px solid #707796;
    color: #e9e4ef;
    text-decoration: none;
}

.art-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #191b21;
}

.art-card span {
    display: block;
    margin-top: 6px;
    overflow-wrap: normal;
}

.art-card:hover {
    border-color: #707796;
    background: #2d2e39;
}

/* Navigation arrows */

.carousel-arrow {
    width: 32px;
    height: 42px;
    padding: 0;
    background: #191b21;
    border: 1px solid #707796;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.carousel-arrow:hover:not(:disabled) {
    background: #56638e;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Page counter */

.carousel-counter {
    margin: 10px 0 0;
    text-align: center;
    color: #afbbcb;
    font-size: 12px;
}

/* Mobile layout */

@media (max-width: 600px) {
    .carousel-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .art-card img {
        height: 120px;
    }
}

/* Images */

.img {
    cursor: pointer;
    object-fit: contain;
}

.art {
    height: 240px;
    width: auto;
    min-width: 170px;
    max-width: 440px;
}

/* Updates */
.updates-frame {
    display: block;
    width: 100%;
    height: 130px;
    border: none;
    background: #2d2e39;
}

/* Bottom */

footer {
    margin-top: 10px;
    padding: 15px;
    text-align: center;
    border-top: 2px dashed #707696;
    color: #afb9cb;
    font-size: 12px;
}


/* ===== LIGHTBOX TO VIEW DRAWINGS===== */

dialog.lightbox {
    width: 95vw;
    max-width: 1200px;
    max-height: 95vh;
    padding: 0;

    color: #eee8f5;
    background: #191b21;
    border: 2px solid #707696;
    box-sizing: border-box;
}

dialog.lightbox::backdrop {
    background: rgba(10, 8, 15, 0.88);
}

.lightbox-content {
    position: relative;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;

    padding: 48px 16px 16px;
}

.lightbox-figure {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.lightbox-image {
    display: block;

    max-width: 100%;
    max-height: calc(95vh - 120px);
    width: auto;
    height: auto;

    object-fit: contain;
    margin: 0 auto;
}

.lightbox-caption {
    margin-top: 10px;
    overflow-wrap: normal;
    text-align: center;
}

.lightbox-close,
.lightbox-arrow {
    color: #eee8f5;
    background: #191b21;
    border: 1px solid #707796;
    font: inherit;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: #56638e;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 36px;
    height: 36px;
    font-size: 26px;
    line-height: 1;
}

.lightbox-arrow {
    width: 40px;
    min-height: 48px;
    font-size: 24px;
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
    outline: 2px solid #eee8f5;
    outline-offset: 3px;
}

.lightbox-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Mobile */

@media (max-width: 600px) {
    dialog.lightbox {
        width: 96vw;
        max-height: 92vh;
    }

    .lightbox-content {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 5px;
        padding: 44px 6px 10px;
    }

    .lightbox-image {
        max-height: calc(92vh - 110px);
    }

    .lightbox-arrow {
        width: 32px;
        min-height: 42px;
        font-size: 20px;
    }
}
