/**
 * TP Frame Image Widget Styles
 */

.tp-frame-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

/* Frame overlay using ::before pseudo-element */
.tp-frame-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../frame.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.tp-frame-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.tp-frame-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Link wrapper */
.tp-frame-image-inner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tp-frame-image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .tp-frame-image-container {
        height: 250px;
    }
}
