/* style.css */
:root {
    --bulma-skeleton-radius: 0;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.navbar-burger {
    color: var(--bulma-black);
}

main {
    flex: 1;
}

#image-grid.columns {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

#image-grid .column {
    padding: 0.25rem;
}

.image-wrapper {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding-top: 100%;
    transition: transform 0.2s;
    overflow: hidden;

    &:hover {
        transform: scale(1.05);

        .play-icon,
        .magnifier-icon {
            opacity: 1;
        }
    }

    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    &.is-skeleton {
        background: #f0f0f0;
    }
}

.icon-overlay {
    position: absolute;
    width: 32px;
    height: 32px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;

    &.center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    &.bottom-right {
        bottom: 8px;
        right: 8px;
    }
    &.hidden {
        display: none;
    }
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;

    figure {
        margin: 0;
    }
    img {
        max-width: 100%;
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}

.tags {
    &.invisible {
        visibility: hidden;
    }
}

.tag {
    cursor: pointer;
    user-select: none;
}

.grid {
    &.invisible {
        visibility: hidden;
    }
}

.footer {
    padding: 1rem 0;
}
