.netdev-flip-box,
.netdev-flip-box * {
    box-sizing: border-box;
    position: relative;
}

.netdev-flip-box {
    display: block;
    aspect-ratio: 745/525;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.netdev-flip-box :is(.front, .back) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: var(--wp--preset--spacing--30);
    height: 100%;
    opacity: 1;
    transition: 300ms;
}

.netdev-flip-box .back,
.netdev-flip-box :is(.front, .back) img {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    width: 100%;
    aspect-ratio: 745/525;
    object-fit: cover;
}

.netdev-flip-box:not(:hover) .back {
    opacity: 0;
}

.netdev-flip-box :is(h3, p) {
    z-index: 3;
    color: var(--wp--preset--color--light);
    font-size: var(--wp--preset--font-size--h-3);
    font-family: var(--wp--preset--font-family--primary);
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

.netdev-flip-box .back {
    background-color: var(--wp--preset--color--dark);
    z-index: 3;
}

.netdev-flip-box .back img {
    opacity: 0.6;
}

.netdev-flip-box .back p {
    padding-bottom: 16px;
}

.netdev-flip-box .back p:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 6px;
    background: var(--wp--preset--color--primary);
}