.columns {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.content {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.sidebar {
    flex: 0 0 280px;
    box-sizing: border-box;
}

.post_box {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    box-sizing: border-box;
}

.headline_area {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.headline {
    font-size: 2.4rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.byline {
    font-size: 0.85rem;
    color: rgba(232, 232, 232, 0.6);
}

.byline .post_author {
    color: var(--secondary-color);
}

.post_content {
    box-sizing: border-box;
}

.post_content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.prev_next {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.prev_next p {
    margin: 0;
}

.prev_next a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.prev_next a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.ppas-collections-gallery-grid {
    column-count: 2;
    column-gap: 12px;
}

.ppas-collections-gallery-card {
    background-color: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    break-inside: avoid;
    border: 1px solid var(--border-light);
    display: inline-block;
    width: 100%;
}

.ppas-collections-gallery-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 8px 15px rgba(204, 0, 0, 0.15);
}

.ppas-collections-gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ppas-collections-gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.ppas-collections-gallery-img:hover {
    opacity: 0.9;
}

.ppas-collections-gallery-info {
    padding: 1rem 0.8rem 0.8rem;
    background-color: transparent;
    text-align: center;
}

.ppas-collections-gallery-title {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    background: rgba(204, 0, 0, 0.1);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 2px;
    border: 1px solid var(--border-light);
}

.ppas-collections-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.ppas-collections-item {
    background-color: var(--card-bg);
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex: 0 1 auto;
    text-align: center;
    border: 1px solid var(--border-light);
}

.ppas-collections-item:hover {
    background-color: #ccc;
    border-color: var(--border-medium);
}

.ppas-collections-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
    font-size: 0.95rem;
    transition: var(--transition);
}

.ppas-collections-link:hover {
    color: var(--hover-color);
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 1.9rem;
    margin: 2.2rem 0 1.5rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: -0.3px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.4;
}

@media (max-width: 991px) {
    .columns {
        flex-direction: column;
        gap: 1rem;
        padding: 0 10px;
    }

    .content {
        width: 100%;
        flex: none;
        float: none;
        border: 0;
        padding: 0;
    }

    .sidebar {
        flex: none;
        width: 100%;
        float: none;
        border-top: 3px double #dddddd;
        padding: 20px 0;
        margin-top: 10px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .ppas-collections-gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }

    h1 {
        font-size: 2rem;
        text-align: left;
    }

    h2 {
        font-size: 1.6rem;
        text-align: left;
    }

    h2::after {
        left: 0;
        transform: none;
    }

    .post_box {
        padding: 1.2rem;
    }

    .headline {
        font-size: 1.8rem;
    }

    .post_content p {
        font-size: 0.95rem;
    }

    .prev_next {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .columns {
        padding: 0 5px;
        gap: 0.5rem;
    }

    .ppas-collections-gallery-grid {
        column-count: 2;
        column-gap: 6px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .headline {
        font-size: 1.5rem;
    }

    .post_box {
        padding: 0.8rem;
    }

    .post_content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .ppas-collections-gallery-title {
        font-size: 0.8rem;
        padding: 0.15rem 0.6rem;
        white-space: normal;
        word-break: break-word;
    }

    .ppas-collections-item {
        padding: 0.3rem 0.6rem;
    }

    .ppas-collections-link {
        font-size: 0.8rem;
    }

    .ppas-collections-grid {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ppas-collections-gallery-grid {
        column-count: 1;
        column-gap: 0;
    }

    .ppas-collections-gallery-card {
        margin-bottom: 6px;
    }

    h1 {
        font-size: 1.4rem;
        text-align: left;
    }

    h2 {
        font-size: 1.2rem;
        text-align: left;
    }

    h2::after {
        left: 0;
        transform: none;
    }

    .headline {
        font-size: 1.3rem;
    }

    .post_box {
        padding: 0.6rem;
    }

    .post_content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .byline {
        font-size: 0.7rem;
    }

    .ppas-collections-gallery-title {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .ppas-collections-item {
        padding: 0.2rem 0.5rem;
    }

    .ppas-collections-link {
        font-size: 0.7rem;
    }

    .prev_next p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .x-pool-profile-card {
        padding: 1.5rem;
    }
    .x-pool-profile-card h3 {
        font-size: 1.5rem;
    }
    .x-pool-profile-card ul {
        grid-template-columns: 1fr;
    }
    .x-pool-profile-card .site-info {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
    }
    .x-pool-profile-card .site-info p {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .slider-close {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
    .slider-prev {
        left: 10px;
    }
    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .x-pool-profile-card {
        padding: 1.2rem;
    }
    .x-pool-profile-card li {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .slider-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .slider-counter {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}