.fw-black { font-weight: 900; }

.media-page-wrapper {
    background: radial-gradient(circle at top right, #1a1a1a 0%, #000 100%);
    overflow-x: hidden;
}

/* Glassmorphism Filter Pill */
.filter-glass-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-pill {
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 10px 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-pill.active, .btn-pill:hover {
    background: #ffc107;
    color: #000;
    transform: scale(1.05);
}

/* Card Variations for Modern Grid */
.card-tall { height: 500px; }
.card-short { height: 400px; }

.media-card {
    position: relative;
    background: #111;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.media-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Overlay */
.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.4) 40%, 
        transparent 80%);
    opacity: 0;
    transition: all 0.4s ease;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.media-card:hover img {
    transform: scale(1.15) rotate(1deg);
}

.media-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 193, 7, 0.5) !important;
}

/* Slide-up text animation */
.media-overlay h4, .media-overlay p, .media-overlay .btn, .media-overlay .badge {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.media-card:hover .media-overlay h4,
.media-card:hover .media-overlay p,
.media-card:hover .media-overlay .btn,
.media-card:hover .media-overlay .badge {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered transition delays for text */
.media-card:hover .media-overlay .badge { transition-delay: 0.1s; }
.media-card:hover .media-overlay h4 { transition-delay: 0.15s; }
.media-card:hover .media-overlay p { transition-delay: 0.2s; }
.media-card:hover .media-overlay .btn { transition-delay: 0.25s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-tall, .card-short { height: 350px; }
    .mt-lg-4 { margin-top: 0 !important; }
}

.gcontainer {
    backdrop-filter: blur(10px);
}

/* Customizes the dimmed background color */
.goverlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Makes the image corners rounded in the modal to match your card UI */
.gslide-image img {
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}