/* Gallery Post Custom Styles - Override theme styles */

/* Allow header and footer to render normally like other pages */
/* Remove the old rules that hid everything except the gallery container */

.gallery-content-box {
    position: relative;
}
/* Reset any theme styles */
.gallery-post-container * {
    box-sizing: border-box;
}

.gallery-post-container img {
    max-width: 100%;
    height: auto;
}

/* Breadcrumb Styles */
.gallery-breadcrumb {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
}

.gallery-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Main Gallery Section */
.gallery-main-section {
    background-color: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.gallery-main-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Column - Featured Image */
.gallery-left-column {
    position: sticky;
    top: 20px;
}

.featured-image-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-gallery-image {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
    object-fit: cover;
    display: block !important;
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0 !important;
}

.gallery-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.gallery-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Right Column - Content */
.gallery-right-column {
    padding: 20px 0;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.gallery-description {
    margin-bottom: 24px;
}

.gallery-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
}

.gallery-full-content {
    margin-bottom: 30px;
}

.gallery-full-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.gallery-read-more {
    margin-top: 30px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    color: #ffffff;
}

/* Gallery Slider Section */
.gallery-slider-section {
    background: #ffffff;
    padding: 30px 0;
}

.gallery-slider-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-nav {
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-nav:hover {
    border-color: #007bff;
    background: #007bff;
    color: #ffffff;
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}


/* Responsive Design */
@media (max-width: 992px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-left-column {
        position: static;
        order: 1;
    }
    
    .gallery-right-column {
        order: 2;
    }
    
    .gallery-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .gallery-main-section {
        padding: 20px 0;
    }
    
    .gallery-main-section .container,
    .gallery-slider-section .container,
    .gallery-breadcrumb .container {
        padding: 0 15px;
    }
    
    .gallery-layout {
        gap: 20px;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-actions {
        top: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .gallery-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
    }
    
    .slider-item {
        width: 100px;
        height: 100px;
    }
    
    .gallery-slider-container {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-main-section {
        padding: 15px 0;
    }
    
    .gallery-title {
        font-size: 22px;
    }
    
    .gallery-description p,
    .gallery-full-content p {
        font-size: 15px;
    }
    
    .slider-item {
        width: 80px;
        height: 80px;
    }
    
    .slider-track {
        gap: 12px;
    }
    
    .gallery-slider-container {
        gap: 12px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Loading Animation */
.main-gallery-image {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.read-more-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .gallery-actions,
    .gallery-slider-section {
        display: none;
    }
    
    .gallery-post-container {
        background: white;
    }
    
    .main-gallery-image {
        max-height: 400px;
        object-fit: contain;
    }
}