/* ── Grid ── */
.ops-grid {
    display: grid;
    gap: 28px;
    padding: 10px 0;
}
.ops-cols-1 { grid-template-columns: 1fr; }
.ops-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ops-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ops-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .ops-cols-3, .ops-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ops-grid { grid-template-columns: 1fr !important; }
}

/* ── Card ── */
.ops-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.ops-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.15);
}

/* ── Thumbnail ── */
.ops-thumb {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
}

/* ── Card Body ── */
.ops-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ops-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a2e;
    line-height: 1.4;
}
.ops-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 18px;
}

/* ── Blur Color Button ── */
.ops-btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    align-self: flex-start;
    /* Blur glow effect */
    box-shadow: 0 4px 18px -2px var(--btn-glow, rgba(79,70,229,0.55));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ops-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}
.ops-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 26px -2px var(--btn-glow, rgba(79,70,229,0.7));
}

/* ── Modal Overlay ── */
.ops-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,30,0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ops-fadein .2s ease;
}
@keyframes ops-fadein {
    from { opacity:0; }
    to   { opacity:1; }
}

/* ── Modal Box ── */
.ops-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: ops-slideup .25s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
@keyframes ops-slideup {
    from { transform: translateY(30px); opacity:0; }
    to   { transform: translateY(0);    opacity:1; }
}

.ops-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f1f1;
    border: none;
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
.ops-modal-close:hover { background: #e0e0e0; }

.ops-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a2e;
    padding-right: 40px;
}

/* ── Modal Image Gallery (2x2 grid) ── */
.ops-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.ops-modal-gallery img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform .2s;
    cursor: zoom-in;
}
.ops-modal-gallery img:hover { transform: scale(1.03); }

.ops-modal-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

/* ── Lightbox ── */
#ops-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#ops-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,.6);
}
#ops-lightbox-close {
    position: absolute;
    top:18px; right:22px;
    color:#fff; font-size:36px;
    cursor:pointer; line-height:1;
    background: none; border: none;
}

@media (max-width: 560px) {
    .ops-modal-box { padding: 20px; }
    .ops-modal-gallery { grid-template-columns: 1fr; }
}
