/* PDF Thumbnail Create - Frontend Styles */

.ptc-pdf-figure {
    display: block;
    margin: 1em 0;
}

.ptc-pdf-link {
    display: inline-block;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.ptc-pdf-link:hover .ptc-pdf-thumbnail {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.ptc-pdf-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: opacity 0.2s ease;
}

/* モーダルオーバーレイ */
#ptc-pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.ptc-modal-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.ptc-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptc-modal-close:hover {
    background: rgba(0,0,0,0.85);
}

#ptc-modal-iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}
