:root {
    --bg: #0b1220;
    --card: #0f172a;
    --muted: #000;
    --line: #1e293b;
    --text: #000;
    --primary: #22d3ee;
}

a {
    color: #fff !important;
}

.tag {
    color: #fff !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px
}

.tpl-images-detail .hero {
    display: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home {
    padding: 0 0 40px
}

.hero {
    padding: 28px 0 10px
}

.hero h1 {
    font-size: 28px;
    margin: 0 0 12px;
    color: var(--text)
}

.searchbar {
    height: 50px;
    border: 3px solid #d75138;
    background: rgba(255, 255, 255, .95);
    width: 70%;
    display: flex;
    text-indent: 20px;
    border-radius: 5px;
    font-size: 15px;
    float: left;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, .2);
    padding: 5px 10px;
    margin: auto;
}

.box-logo img {
    max-width: 300px;
}

.searchbar input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #000;
    font-size: 15px
}

.box_form_seach {
    display: flex;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d75138;
    color: #000;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer
}

.btn:hover {
    filter: brightness(1.08)
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
    padding: 0px 25px;
}

@media (max-width:1024px) {
    .layout {
        grid-template-columns: 1fr
    }
}

.sidebar {
    position: sticky;
    top: 12px;
    height: fit-content
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    color: var(--text)
}

.panel h3 {
    margin: 0 0 10px;
    font-size: 15px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.tag {
    background: #0b1426;
    border: 1px solid #15233a;
    color: #b3cae3;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px
}

.tag:hover {
    border-color: var(--primary);
    color: #c9f3ff
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px
}

@media (max-width:1200px) {
    .grid {
        grid-template-columns: repeat(5, 1fr)
    }
}

@media (max-width:992px) {
    .grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width:768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:520px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.card {
    /* background: var(--card); */
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.thumb {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #ececec 25%, transparent 25%),
        linear-gradient(-45deg, #ececec 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ececec 75%),
        linear-gradient(-45deg, transparent 75%, #ececec 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    aspect-ratio: 1 / 1;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;
}

.thumb picture,
img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block
}

.meta {
    padding: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px
}

.name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sub {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center
}

.badge {
    border: 1px solid #1e2c40;
    border-radius: 6px;
    padding: 2px 6px;
    color: #9cc7ff;
    font-size: 11px
}

.loadmore-wrap {
    text-align: center;
    margin: 18px 0 0
}

.loadmore {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px
}

.loadmore:hover {
    border-color: var(--primary);
    color: #c9f3ff
}

.empty {
    opacity: .7;
    text-align: center;
    padding: 40px 0
}