.flipbook {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--aspect-ratio);
    box-shadow: 8px 8px 0 rgba(17,40,114,1);
    background-color: gray;
}

.flipbook .flipbook-content {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    opacity:0;
    pointer-events:none;
    transition: opacity 0.3s ease;
}

.flipbook .flipbook-content.active {
    opacity:1;
    pointer-events:auto;
}

.flipbook .flipbook-content img {
    width:100%; height:100%;
    object-fit:cover;
}

.flipbook .flipbook-nav-vertical {
    position:absolute;
    right:10px; top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:4px;
}

/* styling for base button currently unused because no icons*/
.flipbook .flipbook-btn {
    width:32px;
    height:32px;
    border:none;
    cursor:pointer;
    display:flex;
    font-size: 16px;
    align-items:center;
    justify-content:center;
    overflow: hidden;
    padding: 0;
    background:transparent;
    color:white;
    border-radius:5px;
    outline: none;
    font-weight:bold;
    filter: drop-shadow(1px 1px 2px rgba(0 0 0 / 0.5))
}

.flipbook .flipbook-btn.active {
    background:#007bff;
    color:white;
}

.flipbook .flipbook-btn.active:hover{
    background: initial;
    transition: initial;
}

.flipbook .flipbook-btn:hover {
    background:#f0f0f0;
    color:#007bff;
}

/*overrides for fallback button*/
.flipbook .flipbook-btn {
    width: 100%;
        min-width: 20px;
        height: 10px;
        border-width: 2px;
        border-color: white;
        border-style: solid;
        margin: auto;
        margin-top: 2px;
        margin-bottom: 2px;
        transition: height 0.2s ease-in;
}

.flipbook .flipbook-btn:hover {
    background: white;
    transition: background-color 0.2s ease-out, height 0.2s ease-in;
}

.flipbook .flipbook-btn.active {
    height: 20px;
    border-style: none;
    transition: height 0.2s ease-in;
}

.flipbook .flipbook-btn.active:hover{
    background: #007bff;
    transition: background-color 0s, height 0.2s ease-in;
}
