/* Givia Targeting Image System */

.givia-targeting-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.givia-targeting-image-inner {
    position: relative;
    width: 100%;
    min-height: 300px; /* Default height */
}

.givia-targeting-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    z-index: 1;
}

.givia-targeting-item.is-active {
    opacity: 1;
    z-index: 2;
}

.givia-targeting-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Action pointer if lightbox/modal */
.givia-targeting-item[data-action="lightbox"],
.givia-targeting-item[data-action="modal"] {
    cursor: pointer;
}

.givia-targeting-item[data-action="lightbox"]:hover img,
.givia-targeting-item[data-action="modal"]:hover img {
    filter: brightness(0.9);
}

/* Trigger elements style */
[data-givia-targeting-id] {
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-givia-targeting-id].is-active {
    outline: none !important;
    box-shadow: none !important;
}

/* Action pointer if link/lightbox/modal */
.givia-targeting-item[data-action="link"],
.givia-targeting-item[data-action="lightbox"],
.givia-targeting-item[data-action="modal"] {
    cursor: pointer;
}

/* Action Button Styles */
.givia-targeting-button-wrapper {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to the link wrapper */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.givia-targeting-item.is-active .givia-targeting-button-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.givia-targeting-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #2271b1;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
    transition: all 0.3s ease;
}

.givia-targeting-item:hover .givia-targeting-btn {
    background: #135e96;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.givia-targeting-link {
    text-decoration: none !important;
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .givia-targeting-image-inner {
        min-height: 200px;
    }
}
