.triva-gallery-wrapper-012ebec6 {
    background-color: #1E1A17;
    padding: 80px 40px;
    font-family: 'Poppins', sans-serif;
}

.triva-gallery-header-012ebec6 {
    text-align: center;
    margin-bottom: 50px;
}

.triva-gallery-heading-012ebec6 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #F5F1E8;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.triva-gallery-divider-012ebec6 {
    width: 60px;
    height: 2px;
    background-color: #C8A86B;
    margin: 0 auto;
}

/* Base Grid Styles for Asymmetrical Masonry Layout */
.triva-gallery-grid-012ebec6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Grid Cell Definitions */
.triva-card-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.triva-card-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.triva-card-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.triva-card-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.triva-card-5 {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
}

/* Card Styling */
.triva-card-012ebec6 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #2D2A28;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.triva-card-image-wrapper-012ebec6 {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Enforcing Strict Proportions (Aspect Ratios) */
.triva-card-1 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 16/10; }
.triva-card-2 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 3/4; }
.triva-card-3 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 1/1; }
.triva-card-4 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 1/1; }
.triva-card-5 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 21/9; }

.triva-card-img-012ebec6 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.triva-placeholder-bg-012ebec6 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D2A28 0%, #1A1816 100%);
    min-height: 250px;
}

/* Overlay & Labels */
.triva-card-overlay-012ebec6 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(30, 26, 23, 0.9) 0%, rgba(30, 26, 23, 0) 100%);
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.triva-gallery-label-012ebec6 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #C8A86B;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    transform: translateY(5px);
    transition: transform 0.4s ease, color 0.4s ease;
}

/* Hover Interactions */
.triva-card-012ebec6:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
}

.triva-card-012ebec6:hover .triva-card-img-012ebec6 {
    transform: scale(1.08);
}

.triva-card-012ebec6:hover .triva-gallery-label-012ebec6 {
    transform: translateY(0);
}

/* Responsive Scaling: Tablet */
@media (max-width: 1024px) {
    .triva-gallery-wrapper-012ebec6 {
        padding: 60px 24px;
    }
    
    .triva-gallery-grid-012ebec6 {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px;
    }

    .triva-card-1 { grid-column: 1 / 3; }
    .triva-card-2 { grid-column: 1 / 2; grid-row: auto; }
    .triva-card-3 { grid-column: 2 / 3; grid-row: auto; }
    .triva-card-4 { grid-column: 1 / 2; grid-row: auto; }
    .triva-card-5 { grid-column: 2 / 3; grid-row: auto; }

    .triva-card-2 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 1/1; }
    .triva-card-5 .triva-card-image-wrapper-012ebec6 { aspect-ratio: 1/1; }
}

/* Responsive Scaling: Mobile */
@media (max-width: 767px) {
    .triva-gallery-wrapper-012ebec6 {
        padding: 50px 16px;
    }
    
    .triva-gallery-grid-012ebec6 {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    .triva-card-1, .triva-card-2, .triva-card-3, .triva-card-4, .triva-card-5 {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .triva-card-012ebec6 .triva-card-image-wrapper-012ebec6 {
        aspect-ratio: 16/10 !important;
    }
}
