.charter-gallery-section { direction: rtl; }
.charter-gallery-intro { margin: -10px 0 24px; color: #64748b; font-size: 14px; }
.charter-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.charter-image-card {
    position: relative;
    display: grid;
    min-height: 300px;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe5d8;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8faf5, #eef4e9);
    box-shadow: 0 8px 26px rgba(20, 70, 42, .1);
    color: #315a3b;
    cursor: zoom-in;
    font: inherit;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.charter-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20, 70, 42, .17);
}
.charter-image-card:focus-visible { outline: 3px solid #3c7c4a; outline-offset: 3px; }
.charter-image-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: #f7f8f3;
    opacity: 0;
    transition: opacity .2s ease;
}
.charter-image-card.has-image img { opacity: 1; }
.charter-image-placeholder {
    display: flex;
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px;
    color: #315a3b;
    font-size: 19px;
    font-weight: 700;
}
.charter-image-placeholder small { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.8; }
.charter-placeholder-icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 1px dashed #7b9b79;
    border-radius: 18px;
    color: #47764c;
    font-size: 38px;
}
.charter-image-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(24, 58, 36, .82);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s ease;
}
.charter-image-card.has-image:hover .charter-image-zoom,
.charter-image-card.has-image:focus-visible .charter-image-zoom { opacity: 1; }
.charter-lightbox[hidden] { display: none !important; }
.charter-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 18, 12, .88);
    backdrop-filter: blur(5px);
}
.charter-lightbox-panel {
    display: flex;
    width: min(1100px, 100%);
    max-height: 92vh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    background: #101914;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.charter-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    color: #fff;
}
.charter-lightbox-toolbar h3 { margin: 0; color: inherit; font-size: 16px; }
.charter-lightbox-close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}
.charter-lightbox-close:hover { background: #fff; color: #183a24; }
.charter-lightbox-image {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: calc(92vh - 62px);
    object-fit: contain;
    background: #080c09;
}
body.charter-lightbox-open { overflow: hidden; }
@media (max-width: 767px) {
    .charter-gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .charter-image-card { min-height: 240px; }
    .charter-image-placeholder { font-size: 17px; }
    .charter-lightbox { padding: 10px; }
    .charter-lightbox-panel { max-height: 95vh; }
    .charter-lightbox-image { max-height: calc(95vh - 62px); }
    .charter-lightbox-toolbar h3 { font-size: 14px; }
}
