.chapter-listing {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--white);
    padding-top: 24px;
}

.chapter-listing-filters {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
}

.chapter-listing-filter-searchbox-wrapper {
    width: 100%;
}

.chapter-listing-filter-searchbox {
    background: transparent !important;
    border: none !important;
    padding: 0px !important;
    padding-left: 40px !important;
    font-size: 24px !important;
    color: var(--white) !important;
}

.chapter-listing-filter-searchbox::placeholder {
    color: var(--white);
}

.chapter-listing-filter-tabs-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--white);
    border-radius: 12px;
    flex: 1;
}

.chapter-listing-filter-tab {
    font-weight: 400;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px;
    border-radius: 8px;
    flex: 1;
}

.chapter-listing-filter-tab:hover {
    background: var(--pale-black);
}

.chapter-listing-filter-tab.active {
    background: var(--white);
    color: var(--black);
}

.chapter-listing-results-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.chapter-listing-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    padding: 24px;
    background: var(--pale-black);
    border-radius: 12px;
}

.chapter-listing-item:hover {
    background: var(--white);
    color: var(--black)
}

.chapter-listing-item * {
    margin: 0;
    padding: 0;
}

.chapter-listing-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-listing-tag {
    padding: 4px 12px;
    margin: 0;
    border: 1px solid var(--white);
    font-size: 14px;
    border-radius: 9999px;
}

.chapter-listing-item:hover .chapter-listing-tag {
    border: 1px solid var(--black);
}

.chapter-listing-image-wrapper {
    height: 135px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.chapter-listing-image-wrapper img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.chapter-listing-details {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
}

.chapter-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chapter-modal-content {
    background-color: #fff;
    padding: 80px;
    border: none;
    max-width: 880px;
    width: 100%;
    border-radius: 12px;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    align-items: flex-start;
    height: 90%;
    overflow-x: auto;
}

.chapter-modal-content p {
    margin: 0;
}

.chapter-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
}

.chapter-modal-tag {
    padding: 4px 12px;
    margin: 0;
    border: 1px solid var(--coral);
    font-size: 14px;
    border-radius: 9999px;
    color: var(--coral)
}
.chapter-modal-location {
    color: var(--Greyish-Black, #6C6C6C);
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 160% */
}

.chapter-modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter-modal-cta-wrapper {
    display: flex;
    gap: 24px;
} 


.chapter-modal-hosts-list {
    display: flex;
    gap: 24px;
    flex-direction: row;
    width: 100%;
}

.chapter-modal-hosts-item {
    display: flex;
    padding: 16px 24px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--Light-Grey, #D4D4D4);
    max-width: 50%;
}

.chapter-modal-hosts-avatar {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 5px;
}

.chapter-modal-hosts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter-modal-hosts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 26px;
    width: 100%;
}
.chapter-modal-hosts-info {
    display: flex;
    flex-direction: column;
}

.chapter-modal-hosts-name {
    font-weight: bold;
}
.chapter-modal-hosts-role {
    font-size: 12px;
}

.chapter-modal-gallery-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.chapter-modal-gallery-list img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
}


@media only screen and (max-width: 1024px) {
    .chapter-listing-results-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .chapter-listing-filter-searchbox {
        font-size: 16px !important;
    }
    
    .chapter-listing-results-list {
        grid-template-columns: 1fr;
    }
}