/* ===== PHOTO MODERN CSS - RODA ===== */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Photo Layout Grid */
.photo-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.photo-main {
    min-height: 400px;
}

.photo-sidebar {
    min-height: 400px;
}

/* Sidebar Styles */
.posts-sm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.entry {
    margin-bottom: 20px;
}

.entry-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.entry-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.entry-image:hover img {
    transform: scale(1.05);
}

.entry-text {
    flex: 1;
}

.entry-title h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.3;
}

.entry-title a {
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #9333ea;
}

.entry-meta ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #64748b;
}

.no-galleries,
.no-images {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
}

/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-title-content h1 {
    color: #FFFFFF !important;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 2;
}

/* Content Section */
.content-wrap {
    background: #f8fafc;
    min-height: 100vh;
}


.container {
    position: relative;
    z-index: 2;
}

/* Main Content Layout */
.row.gutter-40 {
    margin: 0 -20px;
}

.postcontent {
    padding: 0 20px;
}

.sidebar {
    padding: 0 20px;
}

/* Masonry Grid */
.masonry-thumbs {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    justify-content: flex-start;
    align-items: flex-start;
}

.grid-item {
    margin: 0 10px 20px 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    width: calc(33.333% - 20px);
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Overlay Effect - removed */

/* Sidebar */
.sidebar-widgets-wrap {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 30px;
    min-height: 400px;
    overflow: visible;
}

.widget h4 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #7c3aed;
    font-family: 'Poppins', sans-serif;
}

/* Gallery Items */
.entry {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: visible;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 100px;
}

.entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.grid-inner {
    display: flex;
    align-items: center;
    padding: 0;
}

.entry-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.entry:hover .entry-image img {
    transform: scale(1.1);
}

.entry-title {
    padding: 15px 20px;
    flex: 1;
}

.entry-title h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Poppins', sans-serif;
}

.entry-title h4 a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.entry-title h4 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Override any global link styles */
.sidebar a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.sidebar a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

.sidebar h4 a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.sidebar h4 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Force override all link styles in sidebar */
#post-list-sidebar a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

#post-list-sidebar a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

#post-list-sidebar h4 a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

#post-list-sidebar h4 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Ensure all sidebar content is visible */
#post-list-sidebar {
    overflow: visible !important;
    max-height: none !important;
}

.sidebar {
    overflow: visible !important;
    max-height: none !important;
}

/* Override global sanja-changing.css styles */
.sidebar .entry-title h4 a:hover,
.sidebar .entry-title h3 a:hover,
.sidebar .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Even more specific override */
#post-list-sidebar .entry-title h4 a:hover,
#post-list-sidebar .entry-title h3 a:hover,
#post-list-sidebar .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Maximum specificity override for global styles */
.sidebar-widgets-wrap .entry-title h4 a:hover,
.sidebar-widgets-wrap .entry-title h3 a:hover,
.sidebar-widgets-wrap .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Override roda sanja-changing.css specifically */
body .sidebar-widgets-wrap .entry-title h4 a:hover,
body .sidebar-widgets-wrap .entry-title h3 a:hover,
body .sidebar-widgets-wrap .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Ultimate specificity for roda theme */
html body .sidebar-widgets-wrap .entry-title h4 a:hover,
html body .sidebar-widgets-wrap .entry-title h3 a:hover,
html body .sidebar-widgets-wrap .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Override SANJA-RODA theme styles */
html body .sidebar .entry-title h4 a:hover,
html body .sidebar .entry-title h3 a:hover,
html body .sidebar .entry-title h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

/* Nuclear option - override everything */
.sidebar a:hover,
.sidebar h4 a:hover,
.sidebar h3 a:hover,
.sidebar h2 a:hover,
#post-list-sidebar a:hover,
#post-list-sidebar h4 a:hover,
#post-list-sidebar h3 a:hover,
#post-list-sidebar h2 a:hover {
    color: #7c3aed !important;
    text-decoration: none !important;
}

.entry-meta {
    margin: 0;
}

.entry-meta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.entry-meta li {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

        /* Responsive Design */
/* Large desktops - 3 columns */
@media (min-width: 1201px) {
    .grid-item {
        flex: 0 0 calc(33.333% - 20px) !important;
        max-width: calc(33.333% - 20px) !important;
        width: calc(33.333% - 20px) !important;
    }
}

/* Large tablets and small desktops - 3 columns */
@media (max-width: 1200px) and (min-width: 993px) {
    .grid-item {
        flex: 0 0 calc(33.333% - 15px) !important;
        max-width: calc(33.333% - 15px) !important;
        width: calc(33.333% - 15px) !important;
    }
}

/* Tablets - 2 columns */
@media (max-width: 992px) and (min-width: 769px) {
    .masonry-thumbs {
        margin: 0 -5px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    
    .grid-item {
        margin: 0 0 15px 0 !important;
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }
    
    .grid-item img {
        height: 200px !important;
        object-fit: cover !important;
    }
}

/* Small tablets - 2 columns */
@media (max-width: 768px) and (min-width: 481px) {
    .masonry-thumbs {
        margin: 0 -5px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    
    .grid-item {
        margin: 0 0 15px 0 !important;
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }
    
    .grid-item img {
        height: 180px !important;
        object-fit: cover !important;
    }
    
    .sidebar-widgets-wrap {
        margin-top: 40px;
        position: static;
    }
    
    .entry-image {
        width: 60px;
        height: 60px;
    }
    
    .entry-title {
        padding: 10px 15px;
    }
    
    /* Tablet responsive for photo layout */
    .photo-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .entry-content {
        gap: 15px;
    }
    
    .entry-image {
        width: 70px;
        height: 70px;
    }
}

/* Mobile phones - 1 column */
@media (max-width: 480px) {
    .page-title {
        padding: 60px 0;
    }
    
    .page-title-content h1 {
        font-size: 1.75rem;
    }
    
    .masonry-thumbs {
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .grid-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
    
    .grid-item img {
        height: 250px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .entry-image {
        width: 50px;
        height: 50px;
    }
    
    /* Mobile responsive fixes for photo page */
    .photo-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photo-main {
        min-height: auto;
    }
    
    .photo-sidebar {
        min-height: auto;
    }
    
    .entry-content {
        gap: 12px;
    }
    
    .entry-image {
        width: 60px;
        height: 60px;
    }
    
    .entry-title h4 {
        font-size: 0.9rem;
    }
    
    .entry-meta ul {
        font-size: 0.8rem;
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 360px) {
    .content-wrap {
        padding: 15px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .grid-item img {
        height: 200px !important;
    }
    
    .col-auto {
        width: 60px;
        flex: 0 0 60px;
    }
    
    .entry-image {
        width: 40px;
        height: 40px;
    }
    
    .entry-title h4 {
        font-size: 0.9rem;
    }
    
    .entry-meta ul {
        font-size: 0.8rem;
    }
}

/* Animation for gallery items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeInUp 0.6s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
.grid-item:nth-child(7) { animation-delay: 0.7s; }
.grid-item:nth-child(8) { animation-delay: 0.8s; }
.grid-item:nth-child(9) { animation-delay: 0.9s; }
.grid-item:nth-child(10) { animation-delay: 1.0s; }

/* Lightbox improvements */
.grid-item[data-lightbox="gallery-item"] {
    cursor: pointer;
}

.grid-item[data-lightbox="gallery-item"]:hover {
    cursor: pointer;
}

/* Custom scrollbar for sidebar */
.sidebar-widgets-wrap::-webkit-scrollbar {
    width: 6px;
}

.sidebar-widgets-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar-widgets-wrap::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}

.sidebar-widgets-wrap::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}
