/* Responsive Image Gallery Styles */
#description_product ul{
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
.responsive-image-gallery {
    display: grid;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.responsive-image-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.responsive-image-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* 1 Image per Row - Full width, 6:7 aspect ratio */
.responsive-image-gallery.gallery-1-per-row {
    grid-template-columns: 1fr;
}

.responsive-image-gallery.gallery-1-per-row .gallery-item img {
    aspect-ratio: 7/6;
}
.aspect-11-7 {
    aspect-ratio: 11/7 !important;
}


/* 2 Images per Row - Full width, 6:7 aspect ratio */
.responsive-image-gallery.gallery-2-per-row {
    grid-template-columns: repeat(2, 1fr);
}

.responsive-image-gallery.gallery-2-per-row .gallery-item img {
    aspect-ratio: 7/6;
}

/* 3 Images per Row - Full width, 1:1 aspect ratio */
.responsive-image-gallery.gallery-3-per-row {
    grid-template-columns: repeat(3, 1fr);
}

.responsive-image-gallery.gallery-3-per-row .gallery-item img {
    aspect-ratio: 1/1;
}

/* 4 Images per Row - Full width, 1:1 aspect ratio */
.responsive-image-gallery.gallery-4-per-row {
    grid-template-columns: repeat(4, 1fr);
}

.responsive-image-gallery.gallery-4-per-row .gallery-item img {
    aspect-ratio: 1/1;
}

/* Mobile Responsive Behavior */
@media (max-width: 768px) {
    .responsive-image-gallery.gallery-3-per-row,
    .responsive-image-gallery.gallery-4-per-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .responsive-image-gallery.gallery-2-per-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .responsive-image-gallery.gallery-2-per-row,
    .responsive-image-gallery.gallery-3-per-row,
    .responsive-image-gallery.gallery-4-per-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive Image Gallery with Descriptions Styles */
.responsive-image-gallery-with-desc {
    display: grid;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.responsive-image-gallery-with-desc .gallery-item-desc {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 75px;
}

.responsive-image-gallery-with-desc .gallery-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.responsive-image-gallery-with-desc .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.responsive-image-gallery-with-desc .gallery-item-desc:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-description{
    align-content: center;
}


.gallery-description p{
    margin-bottom: 0;
}

.responsive-image-gallery-with-desc .gallery-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 16px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    height: 75px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.responsive-image-gallery-with-desc .gallery-item-desc:hover .gallery-description {
    background-color: rgba(0, 0, 0, 0.9);
    display: block;
    height: auto;
    min-height: 75px;
    line-clamp: unset;
}

.responsive-image-gallery-with-desc .gallery-description:empty::before {
    content: "Add your photo description here...";
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* 1 Image with Description per Row - Full width, 6:7 aspect ratio */
.responsive-image-gallery-with-desc.gallery-1-per-row-desc {
    grid-template-columns: 1fr;
}

.responsive-image-gallery-with-desc.gallery-1-per-row-desc .gallery-image {
    aspect-ratio: 7/6;
}

/* 2 Images with Descriptions per Row - Full width, 6:7 aspect ratio */
.responsive-image-gallery-with-desc.gallery-2-per-row-desc {
    grid-template-columns: repeat(2, 1fr);
}

.responsive-image-gallery-with-desc.gallery-2-per-row-desc .gallery-image {
    aspect-ratio: 7/6;
}

/* 3 Images with Descriptions per Row - Full width, 1:1 aspect ratio */
.responsive-image-gallery-with-desc.gallery-3-per-row-desc {
    grid-template-columns: repeat(3, 1fr);
}

.responsive-image-gallery-with-desc.gallery-3-per-row-desc .gallery-image {
    aspect-ratio: 7/6;
}

/* 4 Images with Descriptions per Row - Full width, 1:1 aspect ratio */
.responsive-image-gallery-with-desc.gallery-4-per-row-desc {
    grid-template-columns: repeat(4, 1fr);
}

.responsive-image-gallery-with-desc.gallery-4-per-row-desc .gallery-image {
    aspect-ratio: 1/1;
}

/* Mobile Responsive Behavior for Gallery with Descriptions */
@media (max-width: 768px) {
    .responsive-image-gallery-with-desc.gallery-3-per-row-desc,
    .responsive-image-gallery-with-desc.gallery-4-per-row-desc {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .responsive-image-gallery-with-desc.gallery-2-per-row-desc {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .responsive-image-gallery-with-desc.gallery-2-per-row-desc,
    .responsive-image-gallery-with-desc.gallery-3-per-row-desc,
    .responsive-image-gallery-with-desc.gallery-4-per-row-desc {
        grid-template-columns: 1fr;
    }
    
    .responsive-image-gallery-with-desc.gallery-2-per-row-desc .gallery-image,
    .responsive-image-gallery-with-desc.gallery-3-per-row-desc .gallery-image,
    .responsive-image-gallery-with-desc.gallery-4-per-row-desc .gallery-image {
        aspect-ratio: 7/6;
    }
}

/* Highlighted Text Block Styles */
.highlighted-text-block {
    background-color: #e3e3e3ce;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #f8ab36;
    border-radius: 4px;
    font-style: italic;
    position: relative;
}

/* .highlighted-text-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 123, 255, 0.05) 100%);
    pointer-events: none;
} */

.highlighted-text-block p {
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .highlighted-text-block {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Block 1: Image with Text Right Layout */
.image-text-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.image-text-block .image-section {
    max-width: 50%;
}

.image-text-block .image-section .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    min-height: 150px;
    background-color: #f8f9fa;
}

.image-text-block .image-section .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-text-block .image-section .gallery-item:hover img {
    transform: scale(1.05);
}

.image-text-block .text-section h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.image-text-block .text-section p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Reverse layout - text left, image right */
.image-text-block.image-text-block-reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.image-text-block.image-text-block-reverse .image-section {
    max-width: 50%;
}

@media (max-width: 768px) {
    .image-text-block,
    .image-text-block.image-text-block-reverse {
        flex-direction: column;
        gap: 15px;
    }
}

/* Block 2: Three Column Layout */
.three-column-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.three-column-block .column-item {
    text-align: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.three-column-block .column-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.three-column-block .column-item .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    aspect-ratio: 1/1;
}

.three-column-block .column-item .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.three-column-block .column-item .gallery-item:hover img {
    transform: scale(1.05);
}

.three-column-block .column-item h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #8B5CF6;
}

.three-column-block .column-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .three-column-block {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
}