.innerpage-ar-block.blackie-bg, 
.innerpage-ar-block.blackie-bg h2, 
.innerpage-ar-block.blackie-bg h3, 
.innerpage-ar-block.blackie-bg h4, 
.innerpage-ar-block.blackie-bg h5, 
.innerpage-ar-block.blackie-bg h6 {
    color: #fff;
}

.ar-preview-media {
    position: relative;
    width: 100%;
}

.ar-preview {
    cursor: pointer;
    position: relative;
    display: flex;
    width: 100%;
}

.ar-preview-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
}

.ar-preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 165px;
    height: 105px;
    pointer-events: none;
    background: none;
}

.ar-viewer {
    display: none;
}

/* Prevent AR iframe from overlapping text on smaller and medium screens */
@media screen and (max-width: 1499px) {
    .ar-viewer {
        transform: none;
        margin-top: 20px;
    }
}

/* Apply offset only on very large screens where layout is side-by-side */
@media screen and (min-width: 1500px) {
    .ar-viewer {
        transform: translateY(-25%);
    }
}

@media (min-width: 1200px) {
    .half-ar-block-content .col-lg-5 {
        width: 41.666666666666664% !important;
    }
    .half-ar-block-content .col-lg-7 {
        width: 58.333333333333336% !important;
    }
}

.ar-buttons {
    display: flex;
    flex-direction: column;
    margin: 0 0 30px;
    flex-wrap: wrap;
}

.ar-buttons a {
    width: 275px;
}

a.btn.btn-secondary.btn-place-space {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 275px;
    padding: 0px;
    background: #fff;
    margin-right: 0;
}

a.btn.btn-secondary.btn-place-space:hover {
    background: #dcdcdc;
}

a.btn.btn-secondary.btn-place-space img {
    margin: 0 20px 0 0;
}

@media screen and (min-width: 768px) {
    .ar-buttons {
        flex-direction: row;
    }

    .ar-buttons a {
        height: 100%;
    }

    .btn.btn-secondary.btn-place-space {
        margin-top: 0 !important;
    }

   a.btn.btn-secondary.btn-place-space {
        width: 310px;
    } 
}

@media screen and (min-width: 1025px) {
   a.btn.btn-secondary.btn-place-space {
        width: 320px;
    } 
}

@media screen and (min-width: 1200px) {
    .ar-buttons {
        margin-top: -25px;
    }
    .ar-buttons a {
        width: 250px;
    }
    a.btn.btn-secondary.btn-place-space {
        margin-top: 25px !important;
    } 
}

a.btn.share-btn {
    margin-top: 0 !important;
    background: none;
    padding: 0;
    font-weight: 600;
}

a.btn.share-btn::before {
    content: '';
    background: url(https://stage.print-us.fujifilm.com/wp-content/uploads/2025/12/share-icon.svg);
    height: 25px;
    width: 21px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    top: 7px;
}

a.btn.share-btn:hover {
    color: #01916d;
}

/* Layout */

section.innerpage.innerpage-ar-block.blackie-bg {
    padding: 0;
}

.half-ar-block-content {
    display: flex;
    flex-direction: column;
}

.half-ar-block-content .half-text {
    padding: 45px 28px 0px;
}

@media screen and (min-width: 768px) {
    .half-ar-block-content .half-text {
        padding: 65px 32px 0px;
    }
}

@media screen and (min-width: 1200px) {
    .half-ar-block-content .half-text {
        padding: 100px 77px 0px;
    }
}

@media screen and (min-width: 1500px) {
    .half-ar-block-content {
        flex-direction: row !important;
        align-items: flex-end;
    }

    .half-ar-block-content .half-text {
        padding: 100px 77px;
        width: 48% !important;
    }

    .half-ar {
        width: 52%;
    }

    .ar-preview-img {
        max-height: 800px;
    }
}

/* QR Popup Styles */
.qr-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.qr-popup-modal {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-popup-overlay.active .qr-popup-modal {
    transform: scale(1);
}

.qr-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.qr-popup-close:hover {
    color: #01916d;
}

.qr-popup-content {
    display: block;
    text-align: center;
    min-width: 250px;
}

.qr-popup-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #353538 !important;
}

.qr-popup-image {
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.qr-popup-text {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 400px;
    color: #353538;
}

@media screen and (max-width: 767px) {
    .qr-popup-modal {
        padding: 20px;
        max-width: 95%;
    }
    
    .qr-popup-close {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }
    
    .qr-popup-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .qr-popup-text {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Share Popup Styles */
.share-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.share-popup-modal {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 90%;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-popup-overlay.active .share-popup-modal {
    transform: scale(1);
}

.share-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.share-popup-close:hover {
    color: #01916d;
}

.share-popup-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.share-popup-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #353538 !important;
}

.share-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.share-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    min-width: 0;
}

.share-url-input:focus {
    outline: none;
    border-color: #01916d;
    background: #fff;
}

.share-copy-btn {
    padding: 12px 24px;
    background: #01916d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.share-copy-btn:hover {
    background: #017a5a;
}

.share-copy-btn:active {
    background: #015d45;
}

.share-copy-message {
    margin: 0;
    font-size: 14px;
    color: #01916d;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-copy-message.show {
    opacity: 1;
}

@media screen and (max-width: 767px) {
    .share-popup-modal {
        padding: 20px;
        max-width: 95%;
    }
    
    .share-popup-close {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }
    
    .share-popup-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .share-url-container {
        flex-direction: column;
    }
    
    .share-copy-btn {
        width: 100%;
    }
}

