/* =============================================
   gallery wrapper
   ============================================= */

.gallery {
    display: flex;
    gap: 20px;
}

/* =============================================
   sidebar
   ============================================= */


.gsb-year {
    margin-bottom: 12px;
}

.gsb-year-heading {
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.gsb-months {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 6px;
}

.gsb-month {
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    padding: 6px 6px;
    margin: 0px -6px;

    &.gsb-month-active {
        font-weight: 900;
        background: #fff2;
        border-radius: 90px;
    }
}


/* =============================================
   pictures area
   ============================================= */

/* =============================================
   rows
   ============================================= */

.gallery-row {
    display: flex;
    gap: 20px;
    --modifier: calc((10rem - 100%) * 999);
}

/* =============================================
   items
   ============================================= */

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    flex-basis: max(var(--modifier), 0px);
    flex-grow: calc(var(--ratio));
    aspect-ratio: var(--ratio);
    outline: 1px solid #0001;
    transition: all 0.2s ease;
    &:hover {
        transform: scale(1.01) translateY(-5px);
        outline: 1px solid #fff4;
    }

    .gallery-img-big {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.gallery-card-img {
    position: absolute;
    inset: 0;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.1s ease;

    &.loaded {
        opacity: 1;
    }
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to bottom, #0000, #000a);
}


.gallery-card-creator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    img {
        border-radius: 90px;
        height: 32px;
    }
    p {
        text-shadow: 0px 2px 6px #000a;
        color: white;
    }
}

.gallery-card-name {
    font-size: 20px;
    color: white;
}

.gallery-card-date {
    font-size: 12px;
    color: white;
    opacity: 0.7;
}


.gallery-outer {
    margin: calc(var(--padding) * 2);
    border-radius: var(--border-radius);
    background: color-mix(in srgb, var(--col-d1), transparent 50%);
    backdrop-filter: blur(60px);
    display: flex;

    .gallery-sidebar {
        @media (max-width: 800px) {
            display: none;
        }
        flex: 1;
        max-width: 400px;
        width: 140px;
        flex-shrink: 0;
        position: sticky;
        top: 0px;
        height: 100vh;
        padding: 40px;
        padding-right: 20px;
        overflow-y: auto;
    }

    .gallery-grid {
        padding: 40px;
        padding-left: 20px;
        padding-top: 10px;
        flex: 1;

        display: flex;
        flex-direction: column;
        gap: 20px;

        @media (max-width: 800px) {
            padding: 30px !important;
            padding-top: 15px !important;
        }
    }
}

.cool-header {
    height: 400px;
    margin-bottom: -200px;
    background-image: linear-gradient(to top, #0000, #000a), url("https://i1.anthera.art/u/1/item/1306/image/1282/small.jpg?time=1778520409");
    z-index: 0;

    > div {
        display: flex;
        align-items: center;
        justify-content: space-between;

        a {
            img {
                height: 50px;
                border-radius: 90px;
            }

            display: flex;
            align-items: center;
            gap: 15px;
            padding: 8px;
            padding-right: 30px;
            border-radius: 900px;
            background: color-mix(in srgb, var(--col-d1), transparent 50%);
            backdrop-filter: blur(20px);
            z-index: 92;
            color: white;
        }
    }
}

.gallery-year-header {
    font-size: 32px;
    font-weight: 900;
    width: 100%;
    margin-top: 20px;
}

.gallery-row-single-portrait {
    width: 40%;
}

/*# sourceMappingURL=gallery.css.map*/