/* Base Wrapper */
.anuk-image-box-wrapper {
	display: flex;
	gap: 20px;
}

/* Image Position: Left (Default) */
.anuk-image-position-left- .anuk-image-box-wrapper {
	flex-direction: row;
}

/* Image Position: Right */
.anuk-image-position-right- .anuk-image-box-wrapper {
	flex-direction: row-reverse;
}

/* Image Position: Top */
.anuk-image-position-top- .anuk-image-box-wrapper {
	flex-direction: column;
}

/* Image Position: Bottom */
.anuk-image-position-bottom- .anuk-image-box-wrapper {
	flex-direction: column-reverse;
}


/* Responsive Image Position: Tablet */
@media (max-width: 1024px) {
    .anuk-image-position-tablet-left- .anuk-image-box-wrapper { flex-direction: row; }
    .anuk-image-position-tablet-right- .anuk-image-box-wrapper { flex-direction: row-reverse; }
    .anuk-image-position-tablet-top- .anuk-image-box-wrapper { flex-direction: column; }
    .anuk-image-position-tablet-bottom- .anuk-image-box-wrapper { flex-direction: column-reverse; }
}

/* Responsive Image Position: Mobile */
@media (max-width: 767px) {
    .anuk-image-position-mobile-left- .anuk-image-box-wrapper { flex-direction: row; }
    .anuk-image-position-mobile-right- .anuk-image-box-wrapper { flex-direction: row-reverse; }
    .anuk-image-position-mobile-top- .anuk-image-box-wrapper { flex-direction: column; }
    .anuk-image-position-mobile-bottom- .anuk-image-box-wrapper { flex-direction: column-reverse; }
}

/* Image Wrap & Image */
.anuk-image-box-image-wrap {
    /* flex property is now managed via elementor control selectors dynamically for responsiveness */
    display: flex;
    justify-content: center;
}

.anuk-image-box-image-wrap img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Content Wrap */
.anuk-image-box-content-wrap {
	display: flex;
	flex-direction: column;
	gap: 15px;
	flex: 1 1 auto;
}

/* Content Elements */
.anuk-image-box-title {
	margin: 0;
	padding: 0;
}

.anuk-image-box-description {
	margin: 0;
	padding: 0;
}

.anuk-image-box-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #000;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
}

/* Flex alignment handling for button based on content-wrap alignment */
.anuk-image-box-content-wrap[style*="align-items: center"] .anuk-image-box-button { align-self: center; }
.anuk-image-box-content-wrap[style*="align-items: flex-end"] .anuk-image-box-button { align-self: flex-end; }
.anuk-image-box-content-wrap[style*="align-items: flex-start"] .anuk-image-box-button { align-self: flex-start; }
