/* ========================================
   REVIEW POOL GALLERY - FSPORT CLUB
   Grid siêu sát, lightbox với nút X sát ảnh
   ======================================== */

.photo-gallery-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;               /* Xóa padding để ảnh sát mép */
    font-family: 'Poppins', system-ui, sans-serif;
    background: #0b0c10;
    margin-top: 0px;
}

/* Header chỉ còn brand, không có SEE ALL */
.gallery-header-fsport {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.6);
    margin-bottom: 0px;
}
.brand-fsport {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #0099ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

/* GRID CỐ ĐỊNH 8 CỘT - SIÊU SÁT */
.review-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;                /* Khoảng cách siêu nhỏ */
    background-color: #0b0c10;
}

/* Mỗi item chỉ có ảnh, không có info */
.review-item {
    cursor: pointer;
    overflow: hidden;
    background: #000;
}
.review-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}
.review-item:hover .review-img {
    transform: scale(1.02);
}

/* ========== LIGHTBOX ========== */
.lightbox-fsport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.lightbox-fsport.active {
    visibility: visible;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    background: #111;
    border-radius: 12px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;          /* Xóa padding để nút X sát ảnh */
}
.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 12px 12px 0 0;
}
.lightbox-details {
    padding: 16px 20px 20px;
    width: 100%;
    background: #111;
    color: white;
    text-align: left;
    border-top: 1px solid #333;
}
.lightbox-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 8px;
}
.lightbox-review {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ddd;
}

/* Nút X - đặt trực tiếp trong .lightbox-content, góc trên cùng bên phải của ảnh */
.close-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: 0.2s;
    z-index: 20001;
    backdrop-filter: blur(4px);
}
.close-lightbox:hover {
    background: #ff4444;
    transform: rotate(90deg);
}

/* Responsive: vẫn giữ 8 cột */
@media (max-width: 1024px) {
    .review-grid {
        gap: 1px;
    }
}
@media (max-width: 768px) {
    .review-grid {
        gap: 1px;
    }
}
@media (max-width: 480px) {
    .review-grid {
        gap: 1px;
    }
}
