<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* RPGMapShare Gallery Styles */

/* Gallery Container */
.rpg-gallery-automatic {
    margin: 20px 0;
}

/* Search Shortcode UI */
.rpg-gallery-search {
    max-width: 550px;
    margin: 0 auto 24px auto;
    display: flex;
    gap: 10px;
    align-items: center;
}
.rpg-gallery-search input[type="text"] {
    min-width: 320px;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}
.rpg-gallery-search button {
    padding: 10px 20px;
    font-size: 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.rpg-gallery-search button:hover {
    background: #135e96;
}

#rpg-clear-latest-date-btn {
    padding: 8px 14px;
    font-size: 15px;
    background: #eee;
    color: #333;
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
#rpg-clear-latest-date-btn:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Filter and Sort Controls */
.rpg-filter-controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}
.rpg-filter-controls label {
    margin-right: 10px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}
.rpg-filter-controls input,
.rpg-filter-controls select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s ease;
    min-width: 150px;
}
.rpg-filter-controls input {
    cursor: text;
    padding-right: 30px; /* Space for clear button */
}
.rpg-filter-controls select:focus,
.rpg-filter-controls input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}
.rpg-filter-search-wrapper {
    position: relative;
    display: inline-block;
}
.rpg-clear-filter {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.rpg-filter-search-wrapper:hover .rpg-clear-filter,
.rpg-clear-filter.visible {
    display: block;
}
.rpg-clear-filter:hover {
    background: #ddd;
    color: #333;
}

/* Last Login Display */
.rpg-last-login {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    text-align: center;
}
.rpg-last-login span {
    font-weight: bold;
}

/* Grid View Styles (center justify, fixed size columns) */
.rpg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px);
    gap: 15px;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
}
.rpg-gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    position: relative;
} 

/* Gallery Item */
.rpg-gallery-item {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    height: 150px; /* Ensures square */
    min-width: 0;
    position: relative;
}
.rpg-gallery-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.rpg-gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.rpg-gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay (title + stars) for thumbnails */
.rpg-grid-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.40);
    color: #ffe370;
    padding: 6px 4px 4px 4px;
    font-size: 12px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
}
.rpg-overlay-title {
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}
.rpg-overlay-stars {
    display: flex;
    align-items: center;
    gap: 1px;
}
.rpg-overlay-stars .rpg-star {
    font-size: 13px;
    color: #ffe370;
    margin: 0 0.5px;
    opacity: 0.93;
}
.rpg-overlay-stars .rpg-star.half {
    color: #fafafa;
    background: linear-gradient(90deg, #ffe370 50%, #fafafa 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rpg-overlay-stars .rpg-star:not(.filled):not(.half) {
    color: #bbb;
    opacity: 0.65;
}
.rpg-grid-rating-label {
    color: #fff;
    font-size: 11px;
    margin-left: 2px;
    opacity: 0.7;
}

/* Pagination Styles */
.rpg-gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px 0;
    flex-wrap: wrap;
    font-size: 16px;
}
.rpg-gallery-pagination a.rpg-page-link {
    color: #2271b1;
    background: #f5f5f5;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.rpg-gallery-pagination a.rpg-page-link:hover,
.rpg-gallery-pagination a.rpg-page-link:focus {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    outline: none;
}
.rpg-gallery-pagination .rpg-page-current {
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    border: 1px solid #2271b1;
    font-weight: bold;
    padding: 6px 16px;
}

/* Single Image View Styles */
.rpg-single-image-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 10px;
}
.rpg-image-header {
    text-align: center;
    margin-bottom: 20px;
}
.rpg-image-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 28px;
}
.rpg-image-meta {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}
.rpg-image-navigation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.rpg-main-image {
    flex: 1;
    max-width: 80%;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.rpg-main-image img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Thumbnails */
.rpg-nav-thumb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rpg-nav-thumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
}
.rpg-nav-thumb:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: #fff;
}
.rpg-nav-thumb-img,
.rpg-nav-thumb img.rpg-nav-thumb-img {
    width: 80px;
    height: 80px;
    object-fit: contain !important;
    object-position: center center !important;
    background: white;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: none;
}
.rpg-nav-title {
    font-size: 12px;
    color: #333;
    text-align: center;
    margin-top: 5px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rpg-nav-arrow {
    font-size: 18px;
    color: #0073aa;
    font-weight: bold;
}

/* Description and Links below Image - tighten up spacing */
.rpg-image-description {
    max-width: 800px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 0 20px;
    line-height: 1.6;
    color: #444;
    font-size: 16px;
}
.rpg-image-actions,
.rpg-parent-gallery-link,
.rpg-back-to-gallery {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Parent Gallery Link */
.rpg-parent-gallery-link {
    font-size: 16px;
}
.rpg-parent-gallery-link .rpg-gallery-link {
    color: #2271b1;
    text-decoration: underline;
    font-weight: bold;
}
.rpg-parent-gallery-link .rpg-gallery-link:hover {
    color: #135e96;
    text-decoration: none;
}

/* Download Button */
.rpg-image-actions {
    margin: 8px 0 0 0;
}
.rpg-download-button {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.rpg-download-button:hover {
    background: #135e96;
}

/* Loading &amp; Error States */
.rpg-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 18px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rpg-error {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rpg-loading:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Back to Gallery Link */
.rpg-back-to-gallery {
    text-align: center;
    margin-top: 8px;
}
.rpg-back-to-gallery a {
    display: inline-block;
    text-decoration: none;
    color: #0073aa;
    font-size: 16px;
    padding: 8px 20px;
    border: 1px solid #0073aa;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s ease;
}
.rpg-back-to-gallery a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Album Grid */
.rpg-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
}
.rpg-album-grid .gallery-item-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0;
}
.rpg-album-grid .gallery-item {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1.5px solid #888;
    overflow: hidden;
}
.rpg-album-grid .gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.album-thumbnail-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.rpg-album-thumb-uncropped {
    display: block;
    width: 85%;
    height: 85%;
    max-width: 170px;
    max-height: 170px;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto;
    z-index: 1;
}

.gallery-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 8px 4px 8px;   /* Horizontal padding for wrapped lines */
    background: rgba(255,255,255,0.55); /* More translucent */
    color: #222;
    text-align: center;
    z-index: 2;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    box-sizing: border-box;
    pointer-events: none; /* Allows click-through */
    /* Wrapping and dynamic height: */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    min-height: 36px; /* Optional: minimum for short titles */
    max-height: none;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.gallery-title-main {
    display: block;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(255,255,255,0.7);
    /* Wrapping: */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding: 0;
    word-break: break-word;
}
.gallery-image-count {
    display: block;
    font-weight: normal;
    font-size: 13px;
    color: #333;
    opacity: 0.82;
    margin-top: 0px;
}

.rpg-album-grid .gallery-item img,
.rpg-album-grid .rpg-album-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    transition: transform 0.3s ease;
    position: static !important;
}
.rpg-album-grid .gallery-item:hover img {
    transform: scale(1.05);
}
.rpg-album-grid .gallery-title {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rpg-virtual-gallery {
    margin-top: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .rpg-gallery-grid {
        gap: 10px;
        grid-template-columns: repeat(auto-fit, 110px);
    }
    .rpg-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
    }
    .rpg-main-image {
        max-width: 85%;
    }
    .rpg-gallery-item-wrapper,
    .rpg-gallery-item {
        width: 110px;
        height: 110px;
    }
}
@media (max-width: 900px) {
    .rpg-gallery-grid {
        gap: 8px;
        grid-template-columns: repeat(auto-fit, 100px);
    }
    .rpg-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 160px));
    }
    .rpg-main-image {
        max-width: 90%;
    }
    .rpg-gallery-item-wrapper,
    .rpg-gallery-item {
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 768px) {
    .rpg-gallery-grid {
        gap: 6px;
        grid-template-columns: repeat(auto-fit, 90px);
    }
    .rpg-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    }
    .rpg-image-navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .rpg-main-image {
        max-width: 100%;
        width: auto;
        order: -1;
        margin-bottom: 20px;
        min-height: 40vh;
    }
    .rpg-nav-thumb-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .rpg-nav-thumb {
        display: flex;
        flex-direction: row;
        width: auto;
        margin: 10px 0;
    }
    .rpg-nav-title {
        margin: 0 10px;
    }
    .rpg-nav-arrow {
        margin: 0 10px;
    }
    .rpg-filter-controls {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .rpg-filter-controls input,
    .rpg-filter-controls select {
        width: 100%;
        max-width: 300px;
    }
    .rpg-clear-filters-btn {
        margin-left: 10px;
        padding: 7px 16px;
        font-size: 14px;
        background: #f0f0f0;
        color: #333;
        border: 1px solid #bbb;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .rpg-clear-filters-btn:hover {
        background: #0073aa;
        color: #fff;
        border-color: #0073aa;
    }
    .rpg-gallery-item-wrapper,
    .rpg-gallery-item {
        width: 90px;
        height: 90px;
    }
}
@media (max-width: 600px) {
    .rpg-gallery-grid {
        gap: 4px;
        grid-template-columns: repeat(auto-fit, 80px);
    }
    .rpg-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 120px));
    }
    .rpg-main-image img {
        max-height: 70vh;
    }
    .rpg-nav-thumb {
        width: 70px;
    }
    .rpg-nav-thumb img {
        width: 60px;
        height: 60px;
    }
    .rpg-gallery-item-wrapper,
    .rpg-gallery-item {
        width: 80px;
        height: 80px;
    }
}
@media (max-width: 400px) {
    .rpg-gallery-grid {
        grid-template-columns: 1fr;
    }
    .rpg-album-grid {
        grid-template-columns: 1fr;
    }
    .rpg-image-header h2 {
        font-size: 24px;
    }
    .rpg-gallery-item-wrapper,
    .rpg-gallery-item {
        width: 100%;
        height: auto;
    }
}

/* --- Enhanced description box and info panel for single image --- */
.rpg-single-image-view-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 8px;
}
.rpg-image-navcol {
    min-width: 140px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.rpg-image-navcol .rpg-nav-thumb {
    margin-bottom: 10px;
}
.rpg-image-navcol .rpg-back-to-gallery,
.rpg-image-navcol .rpg-parent-gallery-link {
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
}
.rpg-image-maincol {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.rpg-image-maincol img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.rpg-image-infocol {
    min-width: 180px;
    max-width: 260px;
    font-size: 0.93em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.rpg-image-title {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 8px;
}
.rpg-desc-box {
    border: 1px solid #bbb;
    border-radius: 6px;
    margin-bottom: 12px;
    margin-top: 2px;
    background: #fcfcfc;
    position: relative;
    padding: 18px 16px 12px 16px;
}
.rpg-desc-label {
    position: absolute;
    top: -12px;
    left: 18px;
    background: #fcfcfc;
    color: #666;
    font-size: 0.97em;
    padding: 0 7px;
    border-radius: 4px;
    border: 1px solid #bbb;
    border-bottom: none;
    font-weight: bold;
    pointer-events: none;
}
.rpg-desc-content {
    font-size: 0.97em;
    color: #333;
    min-height: 24px;
}
.rpg-meta-row {
    margin-bottom: 7px;
    font-size: 0.97em;
    color: #222;
}
.rpg-meta-row a {
    color: #2271b1;
    text-decoration: underline;
}
.rpg-meta-row a:hover {
    color: #135e96;
    text-decoration: none;
}
.rpg-image-actions {
    margin-top: 10px;
    width: 100%;
}
.rpg-download-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 1em;
}
.rpg-image-meta {
    font-size: 0.92em;
    margin-top: 4px;
    color: #666;
}

/* Admin-only edit link at bottom of info sidebar */
.rpg-admin-edit-link {
    margin-top: 10px;
    width: 100%;
    text-align: right;
}
.rpg-admin-edit-link a {
    color: #c7254e;
    font-size: 0.95em;
    text-decoration: underline;
    font-weight: bold;
}
.rpg-admin-edit-link a:hover {
    color: #a94442;
}

@media (max-width: 900px) {
    .rpg-single-image-view-flex {
        flex-direction: column;
        gap: 24px;
        padding: 14px 2px;
    }
    .rpg-image-navcol,
    .rpg-image-infocol {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        align-items: center;
    }
    .rpg-image-infocol {
        align-items: flex-start;
    }
    .rpg-download-button {
        width: 100%;
    }
}

/* FINAL OVERRIDE: Always display nav thumbs fully contained, never cropped */
.rpg-nav-thumb img,
.rpg-nav-thumb-img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: white !important;
    border: 1px solid #eee !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    display: block !important;
    padding: 0 !important;
}</pre></body></html>