/* Hide Featured Image in Single Post */
.single .post-thumbnail {
    display: none !important;
}

/* Main Image Container */
.fas-main-image-container {
    max-width: 1000px !important;
    margin: 40px auto !important;
    text-align: center;
}

/* Main Image - FORCED STYLES */
.fas-main-image {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 80% !important;  /* Force 80% max width */
    width: auto !important;       /* Let browser calculate width based on max-width */
    height: auto !important;
    border-radius: 8px !important;
}

/* Gallery Container - FORCED STYLES */
.fas-gallery {
    margin-top: 30px !important;
}

.fas-gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Force centering */
    gap: 15px !important;
    width: 100% !important;             /* Force full width */
}

/* Gallery Images */
.fas-gallery-image {
    width: 300px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: transform 0.3s;
}

.fas-gallery-image:hover {
    transform: scale(1.03);
}

/* Lightbox */
.fas-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
}

.fas-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    text-align: center;
}

.fas-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

.fas-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}