/* Rounded corners for images */
.elegant-image,
.wptb-slider.style16 .wptb-slider--item {
    border-radius: 15px; /* You can adjust this value */
}

/* Positioning for the zoom icon */
.image-with-zoom {
    position: relative;
    display: block; /* or inline-block */
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
    transform: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-with-zoom:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 20px;
}

/* Positioning for the slider zoom icon */
.wptb-slider--item {
    position: relative;
}

.wptb-image-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    left: auto;
    bottom: auto;
    transform: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptb-image-popup i {
    font-size: 20px;
}

/* Instagram Gallery Styles */
.wptb-instagram--gallery {
    width: 100%;
}

.wptb-instagram--gallery .wptb-item--inner {
    display: flex;
    flex-wrap: nowrap; /* Or nowrap if you want a single line */
    width: 100%;
}

.wptb-instagram--gallery .wptb-item {
    flex: 1 1 16.66%; /* This will make 6 items per row */
    height: 300px; /* Or any other fixed height */
    position: relative;
}

.wptb-instagram--gallery .wptb-item--image,
.wptb-instagram--gallery .wptb-item--image a,
.wptb-instagram--gallery .wptb-item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Override border-radius for instagram gallery images */
.wptb-instagram--gallery .elegant-image {
    border-radius: 0;
}

.wptb-instagram--gallery .wptb-item--button {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Elegant Blog Details Section */
.blog-details.elegant-version {
    padding: 120px 0;
    background-color: var(--color-dark-three);
}

.elegant-text-content {
    padding-right: 50px;
}

.elegant-title {
    font-size: var(--fs-48);
    font-weight: var(--fw-bold);
    margin-bottom: 30px;
    color: var(--color-white);
}

.elegant-description {
    font-size: var(--fs-18);
    line-height: 1.8;
    color: var(--color-two);
}

.elegant-image-stack {
    position: relative;
    height: 500px; /* Adjust as needed */
}

.elegant-image-top,
.elegant-image-bottom {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.elegant-image-top {
    width: 70%;
    top: 0;
    left: 0;
    z-index: 1;
}

.elegant-image-bottom {
    width: 60%;
    bottom: 0;
    right: 0;
}

.elegant-image-top img,
.elegant-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}