/* ==========================================================
   GALLERY PAGE — Kajhi Trans
   Stylesheet for app/Views/gallery.php
   ========================================================== */

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.gallery-hero {
    background: linear-gradient(rgba(10, 14, 26, 0.75), rgba(10, 14, 26, 0.75)), url('../img/banner1.png') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid var(--glass-border);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.gallery-hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.gallery-container {
    padding: 80px 0;
}

/* Grid Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gallery-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

.gallery-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.2) 60%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 0.95;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.gallery-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.gallery-card:hover .gallery-desc {
    opacity: 1;
    max-height: 80px;
    margin-top: 8px;
}

/* Modal Image Lightbox */
.lightbox-modal .modal-content {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
}

.lightbox-img-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 18px;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}
