/* =============================================
   Photo Gallery Showcase - Frontend CSS
   ============================================= */

.pgs-wrapper {
    font-family: Helvetica, 'Helvetica', Arial, sans-serif !important;
    background: #f0f2f5;
    padding: 40px 0 30px;
    overflow: hidden;
    position: relative;
}

/* ---- Header ---- */
.pgs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 40px 28px;
    max-width: 100%;
}

.pgs-header-left {
    flex: 1;
    max-width: 500px;
}

.pgs-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pgs-label-icon {
    font-size: 14px;
}

.pgs-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.2;
   font-family: Helvetica, 'Helvetica', Arial, sans-serif !important; /* এই line add করো */
}

.pgs-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}

/* Nav buttons */
.pgs-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
    flex-shrink: 0;
}

.pgs-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    outline: none;
}

.pgs-nav:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pgs-nav.pgs-next-active,
.pgs-nav.pgs-nav-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pgs-nav.pgs-next-active:hover,
.pgs-nav.pgs-nav-active:hover {
    background: #1d4ed8;
}

/* ---- Slider ---- */
.pgs-slider-outer {
    overflow: hidden;
    padding: 0 0 6px;
    cursor: grab;
    user-select: none;
}

.pgs-slider-outer:active {
    cursor: grabbing;
}

.pgs-slider-track {
    display: flex;
    gap: 14px;
    padding: 4px 40px 4px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ---- Cards ---- */
.pgs-card {
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    height: 320px;
}

.pgs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.pgs-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1e293b;
}

.pgs-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pgs-card:hover img {
    transform: scale(1.04);
}

.pgs-no-image {
    width: 100%;
    height: 100%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* Gradient overlay */
.pgs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
    transition: background 0.25s ease;
}

.pgs-card:hover .pgs-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.05) 30%,
        rgba(0,0,0,0.65) 100%
    );
}

/* Category badge */
.pgs-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    line-height: 1.4;
}

.pgs-badge-icon {
    font-size: 13px;
}

/* Card number */
.pgs-card-number {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.2s ease;
}

.pgs-card:hover .pgs-card-number {
    opacity: 1;
    transform: scale(1);
}

/* Bottom info */
.pgs-card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px 14px;
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.pgs-card:hover .pgs-card-bottom {
    transform: translateY(0);
}

.pgs-card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 4px;
    line-height: 1.3;
}

.pgs-card-action {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease 0.05s;
}

.pgs-card:hover .pgs-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* Camera icon button */
.pgs-camera-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.pgs-card:hover .pgs-camera-btn {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox trigger overlay */
.pgs-lightbox-trigger {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
}

/* ---- Footer ---- */
.pgs-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 40px 0;
    font-size: 13px;
    color: #9ca3af;
}

.pgs-footer-icon {
    font-size: 14px;
}

.pgs-footer-count {
    color: #6b7280;
    font-weight: 500;
}

.pgs-footer-sep {
    margin: 0 2px;
}

/* ---- Lightbox ---- */
.pgs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.pgs-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}

.pgs-lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pgs-lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgs-lightbox-img {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    display: block;
}

.pgs-lightbox-close,
.pgs-lightbox-prev,
.pgs-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    z-index: 2;
}

.pgs-lightbox-close {
    top: -52px;
    right: 0;
}

.pgs-lightbox-prev {
    left: -56px;
    top: 50%;
    transform: translateY(-50%);
}

.pgs-lightbox-next {
    right: -56px;
    top: 50%;
    transform: translateY(-50%);
}

.pgs-lightbox-close:hover,
.pgs-lightbox-prev:hover,
.pgs-lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.pgs-lightbox-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.pgs-lightbox-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.pgs-lightbox-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pgs-header {
        padding: 0 20px 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .pgs-slider-track {
        padding: 4px 20px 4px;
        gap: 10px;
    }

    .pgs-card {
        height: 240px;
    }

    .pgs-footer {
        padding: 14px 20px 0;
    }

    .pgs-lightbox-prev { left: -42px; }
    .pgs-lightbox-next { right: -42px; }

    .pgs-lightbox-prev,
    .pgs-lightbox-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .pgs-lightbox-prev { left: 8px; }
    .pgs-lightbox-next { right: 8px; }
}
