/* Scoped styles for Hover Box 2.1 - d2a63d04 */

.hb-d2a63d04-box {
    position: relative;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    align-items: flex-end; /* vertical alignment default bottom */
    justify-content: flex-start; /* horizontal alignment default left */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    
    /* Default CSS Variables for Gradient Controls */
    --hb-gradient-angle: 180deg;
    --hb-gradient-color-1: rgba(0,0,0,0);
    --hb-gradient-color-1-stop: 0%;
    --hb-gradient-color-2: rgba(0, 0, 0, 0.85);
    --hb-gradient-color-2-stop: 95%;
    
    --hb-gradient-hover-color-1: rgba(0,0,0,0.1);
    --hb-gradient-hover-color-2: rgba(0, 0, 0, 0.95);
}

/* Background layer zooms independently */
.hb-d2a63d04-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    transform: scale(var(--hb-zoom-default, 1));
    transition: transform var(--hb-zoom-duration, 600ms) var(--hb-zoom-timing, cubic-bezier(0.25, 0.46, 0.45, 0.94)),
                background-position var(--hb-zoom-duration, 600ms) ease;
}

.hb-d2a63d04-box:hover .hb-d2a63d04-bg-layer {
    transform: scale(var(--hb-zoom-hover, 1.15)) translate(var(--hb-hover-x, 0), var(--hb-hover-y, 0));
}

/* Color overlay above background */
.hb-d2a63d04-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hb-overlay-color, rgba(0, 0, 0, 0.25));
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.hb-d2a63d04-box:hover .hb-d2a63d04-overlay-layer {
    background-color: var(--hb-overlay-hover-color, rgba(0, 0, 0, 0.4));
}

/* Bottom gradient overlay above color overlay */
.hb-d2a63d04-gradient-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--hb-gradient-height, 60%);
    background-image: linear-gradient(var(--hb-gradient-angle), var(--hb-gradient-color-1) var(--hb-gradient-color-1-stop), var(--hb-gradient-color-2) var(--hb-gradient-color-2-stop));
    z-index: 3;
    pointer-events: none;
    transition: background-image var(--hb-gradient-duration, 400ms) ease,
                height var(--hb-gradient-duration, 400ms) ease;
}

.hb-d2a63d04-box:hover .hb-d2a63d04-gradient-layer {
    background-image: linear-gradient(var(--hb-gradient-angle), var(--hb-gradient-hover-color-1) var(--hb-gradient-color-1-stop), var(--hb-gradient-hover-color-2) var(--hb-gradient-color-2-stop));
    height: var(--hb-gradient-hover-height, var(--hb-gradient-height, 60%));
}

/* Content container above everything else */
.hb-d2a63d04-content-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 4;
    box-sizing: border-box;
    pointer-events: auto;
    transition: transform var(--hb-content-duration, 400ms) ease;
}

.hb-d2a63d04-box.hb-content-animate:hover .hb-d2a63d04-content-wrapper {
    transform: translateY(var(--hb-content-move, -8px));
}

/* Description Hover Effect Controls */
.hb-d2a63d04-desc {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
    overflow: hidden;
    opacity: 1;
}

.hb-d2a63d04-desc-inner {
    min-height: 0;
}

/* Description Hover Switch Styles */
.hb-hover-desc-only .hb-d2a63d04-desc {
    grid-template-rows: 0fr;
    opacity: 0;
    margin-bottom: 0 !important;
}

.hb-hover-desc-only:hover .hb-d2a63d04-desc {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-bottom: var(--hb-desc-margin-bottom, 20px) !important;
}

/* Meta layer placement */
.hb-d2a63d04-meta-layer {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Safe Whole box clickable anchor implementation */
.hb-d2a63d04-stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    outline: none;
}

.hb-d2a63d04-box:hover {
    cursor: pointer;
}

/* Link Button style & effects */
.hb-d2a63d04-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hb-d2a63d04-btn-animate-grow:hover {
    transform: scale(1.05);
}

.hb-d2a63d04-btn-animate-shrink:hover {
    transform: scale(0.95);
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    .hb-d2a63d04-box,
    .hb-d2a63d04-bg-layer,
    .hb-d2a63d04-overlay-layer,
    .hb-d2a63d04-gradient-layer,
    .hb-d2a63d04-content-wrapper,
    .hb-d2a63d04-btn,
    .hb-d2a63d04-desc {
        transition: none !important;
        transform: none !important;
    }
}
