/* PP Photo Tag - Frontend Styles */

.pppt-block {
    margin: 0 0 28px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    /* Constrain to content width — never wider than the post column */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.pppt-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* Default: full content width, max 700px tall to avoid giant banners */
    max-height: 500px;
    box-sizing: border-box;
}

.pppt-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    /* Default fit: cover so it crops nicely rather than stretching */
    object-fit: cover;
    /* Smooth loading */
    transition: opacity 0.3s ease;
}

/* When a fixed height is set via inline style, make image fill the box */
.pppt-image-wrap[style*="height"] .pppt-image {
    height: 100%;
    object-fit: cover;
}

.pppt-meta {
    padding: 12px 16px;
}

.pppt-caption {
    margin: 0 0 8px;
    font-style: italic;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.pppt-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.pppt-keyword {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive — on mobile, never taller than 280px */
@media (max-width: 600px) {
    .pppt-image-wrap {
        max-height: 280px;
    }
}
