/* ============================================
   Rockmont Photo Gallery - Frontend Styles
   ============================================ */

/* ---- Album Grid (Shortcode) ---- */


.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ---- Album Card ---- */
.photo-album-card {
    background: #fff;
    border: 1px solid var(--enfold-header-color-border)  !important;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.photo-album-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border: 1px solid #fbbf24 !important;
}

.photo-album-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.photo-album-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.photo-album-card-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2.5rem;
}

.photo-album-card-body {
    padding: 1rem;
}

.photo-album-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.photo-album-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.photo-album-card-date {
    color: #6b7280;
}

.photo-album-card-count,
.photo-decade-card-count {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* ---- Login Notice ---- */
.photo-gallery-login-notice {

}

.photo-gallery-login-notice p {

}

.photo-gallery-login-notice a {
    color: #3b82f6;
    text-decoration: underline;
}

/* ---- Year Filters ---- */
.photo-gallery-filters {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.photo-gallery-filters .filter-header {
    padding: 1rem;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.photo-gallery-filters .filter-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.photo-gallery-filters .filter-count-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.photo-gallery-filters .filter-toggle-icon {
    color: #6b7280;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.photo-gallery-filters .filter-panel {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.photo-gallery-filters .filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.photo-gallery-filters .filter-checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.photo-gallery-filters .filter-checkbox-label:hover {
    background: #f3f4f6;
}

.photo-gallery-filters .filter-checkbox-label.checked {
    background: #eff6ff;
    border-color: #3b82f6;
}

.photo-gallery-filters .filter-checkbox-label input {
    margin-right: 0.5rem;
}

.photo-gallery-filters .filter-year-name {
    color: #1f2937;
}

.photo-gallery-filters .filter-year-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

.photo-gallery-filters .filter-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.filter-btn {
    padding: 10px 10px 5px 15px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    line-height: 1.2em;
}

.filter-btn-primary {
    background: #3b82f6;
    color: white;
}

.filter-btn-primary:hover {
    background: #2563eb;
}

.filter-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.filter-btn-secondary:hover {
    background: #f9fafb;
}

/* ---- Pagination ---- */
.photo-gallery-pagination {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.photo-gallery-pagination .page-link {
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: #4b2f0b;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.photo-gallery-pagination .page-link:hover {
    background: #4b2f0b;
    border-color: #4b2f0b;
    color: #ffca13 !important;
}

.photo-gallery-pagination .page-link.current:hover {
    color: #4b2f0b !important;
}

.photo-gallery-pagination .page-link.current {
    background: #ffca13;
    color: #fff;
    border-color: #ffca13;
}

.photo-gallery-pagination .page-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #6b7280;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ---- No Results ---- */
.photo-gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.photo-gallery-empty p {
    font-size: 1.1rem;
}

/* ============================================
   Single Album Page
   ============================================ */

.single-album-header {
    margin-bottom: 2rem;
}

.single-album-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.single-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.single-album-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.single-album-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.single-album-tax-link {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

.single-album-tax-link:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.single-album-description {
    margin-bottom: 2rem;
    color: #374151;
    line-height: 1.6;
}

/* ---- View Toggle ---- */
.rpg-view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rpg-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0;
    background: #e8dcc8;
    color: #4b2f0b;
    font-family: bushcraft, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.rpg-view-btn:hover {
    background: #f0c14b;
    color: #4b2f0b;
}

.rpg-view-btn.active {
    background: #fbbf24;
    color: #4b2f0b;
    border: none;
}

.rpg-view-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---- Photo Grid (Single Album) ---- */
.single-album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.single-album-photo-item {
    position: relative;
}

.single-album-photo-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    background: #f3f4f6;
}

.single-album-photo-thumb:hover {
    opacity: 0.85;
}

/* ---- Lightbox ---- */
body.rpg-lightbox-open #header,
body.rpg-lightbox-open #wpadminbar,
body.rpg-lightbox-open #socket,
body.rpg-lightbox-open #scroll-top-link {
    display: none !important;
}

.rpg-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.rpg-lightbox-overlay.active {
    display: flex;
}

.rpg-lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpg-lightbox-img {
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.rpg-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    z-index: 1000000;
    line-height: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    opacity: 0.9;
}

.rpg-lightbox-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.rpg-lightbox-prev,
.rpg-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100000;
    padding: 1rem;
    opacity: 0.7;
    line-height: 1;
}

.rpg-lightbox-prev:hover,
.rpg-lightbox-next:hover {
    opacity: 1;
}

.rpg-lightbox-prev {
    left: 0.5rem;
}

.rpg-lightbox-next {
    right: 0.5rem;
}

.rpg-lightbox-caption {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    max-width: 80vw;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.rpg-lightbox-tags {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    max-width: 80vw;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 4px;
}

.rpg-lightbox-tags-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.rpg-lightbox-tags a {
    color: #93c5fd;
    text-decoration: none;
}

.rpg-lightbox-tags a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   Profile Photos Section
   ============================================ */

.profile-photos-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.profile-photos-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
}

.profile-photos-heading .photo-count {
    font-weight: 400;
    color: #6b7280;
    font-size: 1rem;
}

.profile-photos-album-group {
    margin-bottom: 1.5rem;
}

.profile-photos-album-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.profile-photos-album-title a {
    color: #3b82f6;
    text-decoration: none;
}

.profile-photos-album-title a:hover {
    text-decoration: underline;
}

.profile-photos-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-photos-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .single-album-photos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .single-album-title {
        font-size: 1.5rem;
    }

    .single-album-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rpg-lightbox-prev,
    .rpg-lightbox-next {
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .profile-photos-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }

    .single-album-photos {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .photo-gallery-filters .filter-checkboxes {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.photo-gallery-login-notice p {

}

.photo-gallery-login-notice .flex_column {
    padding:150px 30px 80px 30px;
    background:url(/wp-content/uploads/2026/01/textured-CTA-box-2.png) 50% 50% no-repeat scroll ;
}


#top #wrap_all .photo-gallery-login-notice .avia-button{
    background-color:#ffca13;
    border-color:#ffca13;
    color:#4b2f0b;
    border-style:none;
    border-radius:0 0 0 0;
    transition:all 0.4s ease-in-out;
    padding:10px 10px 5px 15px;
}
#top #wrap_all .photo-gallery-login-notice .avia-button:hover{
    background-color:#4b2f0b;
    color:#ffca13;
    transition:all 0.4s ease-in-out;
}
#top #wrap_all .photo-gallery-login-notice .avia-button:hover .avia_button_background{
    border-radius:0 0 0 0;
}
#top #wrap_all .photo-gallery-login-notice .avia-button .avia-svg-icon svg:first-child{
    fill:#4b2f0b;
    stroke:#4b2f0b;
}
#top #wrap_all .photo-gallery-login-notice .avia-button:hover .avia-svg-icon svg:first-child{
    fill:#ffca13;
    stroke:#ffca13;
}