/* ===== General style ===== */

.panel {
    padding: 10px;
    margin: 0;
    display: block;
    height: 100%;
}

.panel .pages-content > div:not(:first-child) {
    margin-top: 16px;
}

.page-body .panel.flex {
    display: flex;
}

.page-body .panel.flex img {
    max-width: 300px;
    border-radius: 8px;
    height: auto;
}

.detail-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px;
}

.topics .user-details {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.flex-col {
    flex-direction: column;
}

/* ===== Row style ===== */

.items-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space);
    max-width: 100% !important;
    justify-content: center;
}

.items-row .panel-container .panel.panel.no_container {
    background-color: transparent;
    padding: 2px;
    border: 0;
    margin: 0;
}

.items-row .panel-container {
    --width: calc((100% / var(--columns)) * var(--column-span) - (var(--space) * (var(--columns) - var(--column-span)) / var(--columns)));
    --min-width: 200px;
    width: var(--width);
    min-width: var(--min-width);
    max-width: max(var(--width), var(--min-width));
    flex-grow: 1;
    border-radius: 7px;
    overflow: hidden;
}

@media not all and (min-width: 768px) {
    .items-row .panel-container {
        max-width: 100%;
    }
}

.items-row .panel-container.primary {
    min-width: 250px;
    padding: 8px;
    background-color: #F9F9F9;
}

.items-row .panel-container.primary img {
    max-height: 160px;
}

.items-row .panel-container.primary a.panel {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.items-row .topics h3 {
    padding-bottom: 0;
}

.items-row .panel-container .topics {
    font-size: 12px;
    list-style: none;
    margin: 0;
}

.items-row .panel-container .topics li {
    border-bottom-color: #ddd;
}

.items-row .panel-container .topics > li:last-child {
    border: 0;
}

.items-row .panel-container .topics a {
    display: block;
    padding: 8px;
    line-height: 1.5;
}

.items-row h3 {
    display: inline-block;
    margin: 6px 0 0;
    font-size: 12px;
    border-color: transparent;
    line-height: 1.5;
    text-transform: none;
}

.items-row .stats-item h3 {
    border-bottom-color: #ddd;
}

.items-row p {
    margin: 0;
    font-size: 12px;
    padding-top: 4px;
}

.items-row .title {
    position: relative;
    border-inline-start: 4px solid #0076B1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin-bottom: 8px;
}

.items-row .title h3 {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.items-row .separator {
    flex-grow: 1;
    padding: 0 8px;
}

.items-row .border-btn .separator {
    border: 0;
    border-top: 1px solid #b1b1b1;
}

.panel.no_container .border-btn .separator {
    border-color: #b1b1b1;
}

.items-row .view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-row .view-all-btn:not(.button2) {
    font-size: 12px;
    font-weight: 600;
}

.items-row .image {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 4px;
}

@media not all and (min-width: 768px) {
    .items-row.topics {
        flex-wrap: wrap; 
        max-width: 100%;
    }
    .items-row .image {
        min-height: 160px;
    }
}

.items-row img {
    height: auto;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.src-container.src-videos img {
    height: 146px;
}

.src-container.src-images img {
    height: 300px;
}

.src-container .panel {
    padding: 8px;
}

.src-container .glightbox {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.src-container .play-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 60%);
    height: 56px;
    width: 56px;
    border-radius: 9999px;
    color: #fff;
    font-size: 18px;
}

/* ===== Stats style ===== */

.stats-item {
    text-align: center;
    padding: 14px;
}

.stats-item .icon {
    font-size: 24px;
}


/* === Custom Section Style === */

#tollywood .title {
    border-color: rgb(123 38 39);
}

#tollywood a, #tollywood h3 {
    color: rgb(123 38 39);
}

#tollywood .panel-container {
    box-shadow: 0 1px 2px rgb(0 0 0 / 15%);
}

#tollywood a.panel {
    background-color: rgb(246 234 213);
    padding: 8px 16px;
}