/* ================================================================
   GLT GALLERY - ELITE SMOOTH 3-COLUMN GRID
   ================================================================ */

.glt-gallery-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.glt-gallery-card {
    position: relative;
    background: #0f172a;
    border-radius: 20px; /* Softer, modern radius */
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    /* The Secret to Smooth: Custom Bezier Curve */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
}

/* Image behavior */
.glt-card-media {
    width: 100%;
    height: 100%;
}

.glt-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slower zoom for a "cinematic" feel */
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Technical Badge Styling */
.glt-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    color: #0f172a;
    padding: 6px 14px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Smooth Gradient Overlay */
.glt-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(15, 23, 42, 0.2) 60%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

/* Content Slide-up Animation */
.glt-card-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.glt-card-content h5 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.glt-card-content p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

/* The View Button (Floating Action) */
.glt-view-btn {
    width: 50px;
    height: 50px;
    background: #0ea5e9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px; /* Squircle */
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    /* Springy interaction */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

/* ================================================================
   THE HOVER LOGIC
   ================================================================ */

.glt-gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.2);
    border-color: #0ea5e9;
}

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

.glt-gallery-card:hover .glt-card-overlay {
    opacity: 1;
    backdrop-filter: blur(5px);
}

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

.glt-view-btn:hover {
    background: #000; /* Contrast shift */
    transform: scale(1.1) rotate(90deg);
}

/* Mobile Smoothing */
@media (max-width: 1024px) {
    .glt-gallery-grid-pro { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 600px) {
    .glt-gallery-grid-pro { grid-template-columns: 1fr; }
}