/* Active/passive v3 photo gallery + portable-style card presentation. Header/footer untouched. */
.bap-page .bap-photo-column{min-width:0;width:100%;display:flex;flex-direction:column;gap:11px}
.bap-page .bap-photo-column .bap-photo-panel{width:100%;height:400px;margin:0}
.bap-page .bap-gallery-thumbs{display:flex;gap:9px;justify-content:center;align-items:center;padding:3px 0 0}
.bap-page .bap-gallery-thumb{width:83px;height:83px;cursor:pointer;flex:0 0 auto;background:white;border:1px solid #dfe5e9;border-radius:5px;padding:5px;transition:border-color .15s,box-shadow .15s}
.bap-page .bap-gallery-thumb img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
.bap-page .bap-gallery-thumb.is-selected,.bap-page .bap-gallery-thumb:hover,.bap-page .bap-gallery-thumb:focus-visible{border-color:#f58220;box-shadow:0 0 0 1px #f5822040;outline:none}

.bap3-card{background:#fff;border:1px solid #e6eaee;border-radius:16px;overflow:hidden;box-shadow:0 10px 26px rgba(21,33,42,.05);display:flex;flex-direction:column;min-width:0;height:100%;transition:transform .18s ease, box-shadow .18s ease,border-color .18s ease}
.bap3-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(21,33,42,.08);border-color:#dfe5ea}
.bap3-card *{box-sizing:border-box}
.bap3-image-wrap{text-decoration:none;display:block;background:#f3f5f6;padding:22px 20px 18px}
.bap3-image-stage{background:#fff;border-radius:10px;min-height:235px;display:flex;align-items:center;justify-content:center;padding:14px 16px}
.bap3-image{display:block;max-width:100%;width:100%;height:100%;max-height:205px;object-fit:contain;transition:transform .2s ease}
.bap3-image-wrap:hover .bap3-image{transform:scale(1.02)}
.bap3-body{padding:18px 16px 20px;display:flex;flex-direction:column;align-items:stretch;text-align:right;direction:rtl;gap:9px;flex:1;background:#fff}
.bap3-accent{width:62px;height:2px;border-radius:999px;background:#f58220;margin:-2px auto 2px}
.bap3-title{margin:0;width:100%;text-align:right;direction:rtl;font-size:15px;line-height:1.9;font-weight:800;color:#1f272d}
.bap3-title a{color:inherit;text-decoration:none}
.bap3-desc{margin:0;min-height:38px;width:100%;text-align:right;direction:rtl;font-size:12px;line-height:1.9;color:#838f98}
.bap3-chips{display:flex;flex-wrap:wrap;justify-content:flex-start;direction:rtl;gap:8px;min-height:30px}
.bap3-chip{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 10px;background:#f1f3f4;border:1px solid #eceff1;border-radius:8px;color:#66737d;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
.bap3-btn{margin-top:auto;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 16px;border:1.5px solid #f58220;border-radius:999px;text-decoration:none;color:#f58220;font-size:13px;font-weight:800;line-height:1.5;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.bap3-btn:hover,.bap3-btn:focus-visible{background:#f58220;color:#fff;outline:none}

@media(max-width:860px){
  .bap3-image-wrap{padding:18px 16px 14px}
  .bap3-image-stage{min-height:205px}
  .bap3-image{max-height:178px}
}
@media(max-width:680px){
  .bap-page .bap-photo-column .bap-photo-panel{height:min(76vw,405px);min-height:270px}
  .bap-page .bap-gallery-thumb{width:70px;height:70px}
  .bap3-card{border-radius:14px}
  .bap3-image-stage{min-height:190px;padding:12px}
  .bap3-image{max-height:166px}
  .bap3-body{padding:16px 14px 18px}
}

/* v3.2: text right alignment; scoped to the four active/passive cards only. */
.bap3-card .bap3-body{text-align:right!important;align-items:stretch!important;direction:rtl!important}
.bap3-card .bap3-title,.bap3-card .bap3-desc{width:100%;text-align:right!important;direction:rtl!important}
.bap3-card .bap3-chips{width:100%;justify-content:flex-start!important;direction:rtl!important}
.bap3-card .bap3-btn{text-align:center;justify-content:center}
