/* ==========================================================
   Image Gallery — Tekcom
   ========================================================== */

/* ── Wrapper ──────────────────────────────────────────────── */
.timg-wrapper {
    width: 100%;
}

/* ── Grid: flex columns so each column is independent ─────── */
.timg-grid {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ── Each column wrapper (created by JS) ──────────────────── */
.timg-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Each item ────────────────────────────────────────────── */
.timg-item {
    display: block;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Hidden items (shown after "See More") */
.timg-item--hidden {
    display: none;
}

/* ── Images ───────────────────────────────────────────────── */
.timg-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ── Overlay on hover ─────────────────────────────────────── */
.timg-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.timg-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(25, 50, 80, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.timg-link:hover::after {
    background: rgba(25, 50, 80, 0.25);
}

.timg-link:hover img {
    transform: scale(1.04);
}

/* ── Reveal animation for newly shown items ───────────────── */
.timg-item--reveal {
    display: block;
    animation: timg-fade-in 0.4s ease both;
}

@keyframes timg-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── See More button ──────────────────────────────────────── */
.timg-see-more-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.timg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #193250;
    background-color: transparent;
    border: 1px solid #193250;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.timg-btn:hover {
    background-color: #193250;
    color: #ffffff;
    border-color: #193250;
}

/* ── Responsive (column count handled by JS) ──────────────── */
@media (max-width: 767px) {
    .timg-col {
        flex: 1 1 100%;
    }
}
