.catalog-entries {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.catalog-entry {
    margin-bottom: 2rem;
}
.interstitial {
    text-align: center;
    padding: 1rem 2rem 0;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}
.interstitial p {
    margin: 0;
}
.catalog-entry:has(+ .interstitial:not([hidden])) {
    margin-bottom: 0;
}
.catalog-entry h2 {
    margin-bottom: 0.5rem;
    user-select: none;
}
.entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.entry-select {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.media-wrapper {
    border-radius: 4px;
    overflow: hidden;
}
.cover-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.cover-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.cover-slideshow img.active {
    opacity: 1;
}
.video-container {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-container video {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-container {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.gallery-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
}
.gallery-controls button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.gallery-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}
.gallery-counter {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    flex: 1;
    text-align: center;
}
.video-close, .gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.video-close:hover, .gallery-close:hover {
    background: rgba(0, 0, 0, 0.8);
}
.site-intro {
    max-width: 1180px;
    margin: 0 auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}
.intro-tagline {
    flex: 3;
}
.intro-tagline p {
    margin: 0;
    font-size: 15px;
}
.intro-links {
    text-align: right;
    flex: 2;
}
.intro-links p {
    margin: 0;
    font-size: 15px;
}
.link-sep { display: none; }
.link-br { display: block; }
.filter-nav {
    max-width: 1180px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 9999 1 auto;
}
.filter-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}
#catalog-filter {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 4px 28px 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}
#filter-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}
#filter-clear:hover {
    color: #333;
}
#catalog-sort {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.entry-tags {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
}
.entry-tag {
    font-size: 13px;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
.entry-tag:hover {
    color: #333;
}
.entry-exclusive {
    margin: 0.5rem 0;
    font-size: 14px;
}
.entry-login-prompt {
    margin: 0.5rem 0;
    font-size: 14px;
    display: none;
}
html.auth-no:not(.full-access) .entry-login-prompt { display: block; }
html.full-access .entry-exclusive { display: none; }
.entry-login-prompt a {
    font-weight: 700;
    text-decoration: none;
}
.guest-banner {
    max-width: 1180px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    display: none;
    text-align: center;
}
html.auth-no:not(.full-access) .guest-banner { display: block; }
.guest-banner-pill {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: #e7f8ed;
    border: 1px solid #b7e4c4;
    color: #1f6b3a;
    font-size: 15px;
    margin: 0;
}
.guest-banner-pill a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}
#tag-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
#tag-autocomplete li {
    padding: 6px 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
}
#tag-autocomplete li:hover,
#tag-autocomplete li.active {
    background: #f5f5f5;
}
@media (max-width: 640px) {
    .site-intro {
        flex-direction: column;
        gap: 1rem;
    }
    .intro-links {
        text-align: left;
    }
    .link-sep { display: inline; }
    .link-br { display: none; }
    .controls-wrapper {
        width: 100%;
    }
}
.entry-desc-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 10px;
    padding: 0 0 0 0.4em;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.15s, color 0.15s;
    line-height: 1;
    user-select: none;
}
.entry-desc-btn.open {
    transform: rotate(90deg);
    color: #bbb;
}
.entry-description {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    margin: 0.25rem 0 0.75rem;
}
.entry-description.visible {
    display: block;
}
