/*
item-overlay is the target for HoverOverlayManager.js.
To improve would be to alter HoverOverlayManager to add a class to the component instead of targetting the component
*/

item-overlay {
    display: block;
    position: fixed;
    z-index: 1000;
    pointer-events: none; /* important for initial state */
    transition: opacity 0.25s ease-in-out,
                transform 0.25s ease-in-out,
                visibility 0s linear .25s;

    opacity: 0;
    visibility: hidden;
    transform: scale(0.05);
    transform-origin: center center;
    will-change: transform, opacity;
}

item-overlay.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto; /* make interactive only when visible */

    transition: opacity 0.25s ease-in-out,
                transform 0.25s ease-in-out,
                visibility 0s linear 0s;
}

/* Ensure the overlay content is clickable */
item-overlay .overlay-content {
    pointer-events: auto;
}

/* Add a subtle shadow to make the overlay stand out */
item-overlay .item-overlay {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Add a smooth transition for the overlay appearance */
item-overlay .item-overlay {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure the overlay doesn't interfere with other elements */
item-overlay {
    will-change: transform, opacity;
} 

.screen-filling {
    /* max-width: 100%; */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: unset;
    border-radius: 0; /*remove for fullscreen*/
    /* height: 75vh; */
    height: 100%;
    z-index: 1000;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .screen-filling {
        align-items: center;
    }
}