/* TkN-specific documentation styles.
 *
 * Keep project overrides separate from the vendored Doxygen Awesome files so
 * updating the upstream theme cannot silently remove TkN features.
 */

/* Gallery */

.tkn-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--spacing-large);
    width: 100%;
}

.tkn-gallery__column {
    min-width: 0;
}

.tkn-gallery__item {
    position: relative;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
    border-radius: var(--border-radius-small);
    box-shadow: var(--box-shadow);
}

.tkn-gallery__image,
.tkn-gallery__separator {
    display: block;
    width: 100%;
    height: auto;
}

.tkn-gallery__separator {
    margin-top: 8px;
}

.tkn-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--spacing-large);
    opacity: 0;
    transition: opacity .25s ease;
    background-color: var(--note-color);
    color: var(--note-color-darker);
}

.tkn-gallery__item:hover .tkn-gallery__overlay,
.tkn-gallery__item:focus-within .tkn-gallery__overlay {
    opacity: .94;
}

.tkn-gallery__text {
    max-width: 34rem;
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .tkn-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (hover: none) {
    .tkn-gallery__overlay {
        position: static;
        min-height: 5rem;
        opacity: 1;
    }
}

/* Legacy project styling for Doxygen example blocks. */

dl.example {
    padding: var(--spacing-medium);
    margin: var(--spacing-medium) 0;
    border-left: 8px solid var(--note-color-dark);
    border-radius: var(--border-radius-small);
    background: var(--note-color);
    color: var(--note-color-darker);
}

dl.example dt,
dl.example dt a {
    color: var(--note-color-dark) !important;
    font-weight: bold !important;
}

dl.example dd {
    margin-inline-start: 0;
}
