/* ══════════════════════════════════════════════════════
   Project Gallery Plugin — Frontend Styles
   ══════════════════════════════════════════════════════ */

.pg-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0 auto 24px;
}

/* ── Gallery Grid ────────────────────────────────────── */
.pg-gallery {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    background: #f0f0f0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.pg-main-img {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.pg-main-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.pg-main-img:hover img { transform: scale(1.04); }

.pg-thumbs {
    display: flex;
    flex-direction: column;
    gap: 20px;
	height: 500px;
}

.pg-thumb {
    position: relative;
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    min-height: 0;
}

.pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
}

.pg-thumb:hover img { transform: scale(1.06); }

.pg-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
}

/* ── Features ────────────────────────────────────────── */
.pg-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 14px 16px 4px;
}

.pg-feat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.pg-feat-tag svg {
    color: #666;
    flex-shrink: 0;
}

/* ── CTA Button ──────────────────────────────────────── */
.pg-cta {
    padding: 12px 16px 16px;
    text-align: center;
}

.pg-btn {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
}

.pg-btn:hover {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
}

/* ── Lightbox ────────────────────────────────────────── */
.pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999990;
    align-items: center;
    justify-content: center;
}

.pg-lightbox.pg-lb-open {
    display: flex;
}

.pg-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    cursor: pointer;
}

.pg-lb-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 92vw;
    max-height: 92vh;
}

.pg-lb-img-wrap {
    position: relative;
    max-width: 80vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 200px;
}

.pg-lb-img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 6px;
    display: block;
    opacity: 0;
    transition: opacity .25s;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.pg-lb-img.pg-lb-loaded { opacity: 1; }

.pg-lb-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-lb-loader.pg-hidden { display: none; }

.pg-lb-close,
.pg-lb-prev,
.pg-lb-next {
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: background .2s;
    padding: 0;
}

.pg-lb-close:hover,
.pg-lb-prev:hover,
.pg-lb-next:hover {
    background: rgba(255,255,255,.3);
}

.pg-lb-close {
    position: absolute;
    top: -56px;
    right: 0;
}

.pg-lb-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.65);
    font-size: 13px;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .pg-gallery {
        grid-template-columns: 1fr 100px;
    }
	.pg-main-img img , .pg-thumbs {
		height: 240px;
	}
    .pg-lb-prev,
    .pg-lb-next {
        width: 36px;
        height: 36px;
    }
    .pg-feat-tag { font-size: 12px; }
}
