.content-wrapper--page {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.content-wrapper--page * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
}

.content-wrapper--page .description img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
}

.content-wrapper--page .description table {
    width: 100% !important;
    table-layout: fixed !important;
}

.content-wrapper--page .description pre {
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
}


     /* Gallery Styles */
 .rs-gallery-area {
     background-color: #f8f9fa;
 }

.rs-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rs-gallery-item:hover {
    transform: translateY(-5px);
}

.rs-gallery-thumb {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.rs-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rs-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rs-gallery-item:hover .rs-gallery-overlay {
    opacity: 1;
}

.rs-gallery-item:hover .rs-gallery-thumb img {
    transform: scale(1.1);
}

.rs-gallery-icon {
    color: white;
    font-size: 24px;
}

/* Modal Styles */
.rs-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: modalBackgroundFadeIn 0.3s ease-out;
}

@keyframes modalBackgroundFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rs-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: modalFadeIn 0.4s ease-out;
}

.rs-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.rs-modal-close:hover,
.rs-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

.rs-modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.rs-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.rs-modal-prev,
.rs-modal-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: 0.3s;
}

.rs-modal-prev:hover,
.rs-modal-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.rs-modal-prev {
    border-radius: 3px 0 0 3px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media only screen and (max-width: 700px) {
    .rs-modal-content {
        width: 100%;
    }

    .rs-gallery-thumb {
        height: 200px;
    }
}

