.interest-diary-grid {
    display: block;
}

.interest-diary-main {
    overflow: visible;
    min-width: 0;
}

.interest-listing-page {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.diary-main.is-interest-listing .interest-listing {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.diary-main.is-interest-listing .interest-listing-page {
    overflow-y: auto;
}

.interest-listing-page .gallery-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100%, 900px);
    margin: 20px auto 30px;
}

.interest-listing-page .gallery-item {
    width: 100%;
    height: auto;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    border: 1.5px solid var(--border-accent);
    border-radius: 0;
    overflow: visible;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.interest-listing-page .gallery-item:hover {
    transform: none;
    border-color: red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.interest-listing-page .gallery-entry-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.interest-listing-page .gallery-thumb {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--border-accent);
    flex-shrink: 0;
}

.interest-listing-page .gallery-info {
    padding: 0;
}

.interest-listing-page .gallery-desc {
    display: block;
}

@media (max-width: 600px) {
    .interest-listing-page .gallery-entry-content {
        flex-direction: column;
    }

    .interest-listing-page .gallery-thumb {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
}
