.details {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;

    font-family: 'Varela Round', 'Chiron GoRound TC', sans-serif;
    font-size: 1.2rem;
    color: #363643;
}

/* background overlay */
.details-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}
.details.is-active .details-bg {
    opacity: 1;
    pointer-events: auto;
}

/* main grid */
.details-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;

    box-sizing: border-box;
    height: 100vh;

    padding: 1.5rem;

    transform: translateX(100%);
    transition: transform 0.35s ease;
}
.details.is-active .details-content {
    transform: translateX(0);
}

@media screen and (max-width: 800px) {
    .details-content { flex-direction: column; }
}

/* left - metadata */
.details-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    pointer-events: auto;

    flex: 0 0 auto;

    padding: 1.5rem;

    border-radius: 2rem;
    background-color: rgba(255, 244, 233, 0.9);
    box-shadow: 0 1px 1rem rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.details-panel-event {
    margin: 1rem 0 2rem;

    a {
        font-size: inherit;
        text-decoration: none;

        padding: 0.75rem 1rem;

        background-color: #ea7b7b;
        color: #363643;

        border-radius: 1rem;
    }
}

.details-panel-artist {
    font-size: 1.35rem;
    font-weight: 500;
}

.details-panel-title {
    font-size: 1.6rem;
    font-weight: 800;
    padding: 1rem 1rem 1rem 0;
}

.details-panel-filename {
    align-self: stretch;

    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-bottom: 0.5rem;
}

.details-panel-dims {
    margin-bottom: 0.5rem;
}

.details-panel-time {
    align-self: stretch;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.details-panel label {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem;
}

.details-panel-comment {
    margin-bottom: 1.5rem;
    color: #505063;
}

.details-panel-delete {
    font-family: inherit;
    font-size: 1.2rem;

    height: auto;
    width: fit-content;

    text-align: center;
    text-decoration: none;

    padding: 0.75rem 2rem;

    border-radius: 0.5rem;
    border: 4px solid #ea7b7b;

    background-color: transparent;
    color: #ea7b7b;

    &:hover {
        background-color: #ea7b7b;
        color: #e1e1e1;
    }
}

/* right - image */
.details-image {
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;

    flex: 0 1 auto;
    border-radius: 2rem;

    pointer-events: auto;
}
