#SobiPro div[id^="field_image_gallery"].controls{
    width: auto;
}

#SobiPro [id^="st_gal_list"].ui-sortable * {
	box-sizing: border-box !important;
	-webkit-box-sizing: border-box !important;
	-moz-box-sizing: border-box !important;
}
.st-gallery {
    transition: box-shadow 500ms ease-out;
    -webkit-transition: box-shadow 500ms ease-out;
    -moz-transition: box-shadow 500ms ease-out;
    -o-transition: box-shadow 500ms ease-out;
    background: white;
    overflow: hidden;
    float: none;
    width: 100%;
    position: relative;
    cursor: s-resize;
    margin-top: 15px;
    margin-left: 0;
	box-shadow: inset 0px 0px 7px -5px #000;
	border: 1px solid #DDD;
    padding: 10px 0 0;
}
.st-gallery:hover, .st-gallery:focus {
    box-shadow: inset 0 0 12px -5px #000;
}
.st-gallery .st-img-wrap {
    width: 124px;
	height: 93px;
	line-height: 90px;
    margin-left: auto;
	margin-right: auto;
	margin-bottom: 10px;
    float: none;
	text-align:center;
	position:relative;
}
.st-gallery .st-img-thumb {
	display: inline-block;
    float: none !important;
    margin: 0;
	max-width: 100% !important;
	max-height: 100% !important;
	box-shadow: 0px 0px 7px -2px #000;
}
.st-gallery .st-controls-wrapper {
    text-align: left;
    float: left;
	padding-right: 20px;
	margin: 0 0 10px 10px;
	min-width: 210px;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.st-gallery .st-label {
	display: block;
	text-align: left;
	width: 100%;
	margin: 0;
}
.st-gallery .st-input,
.st-gallery .st-textarea {
	width: 100% !important;
	display: inline-block !important;
	float: none !important;
	margin-bottom: 5px !important;
	padding: 6px 12px !important;
	min-height: 30px;
}
.st-gallery .st-textarea {
    resize: vertical;
    margin: 0 !important;
}
.st-gallery .st-position-wrapper {
	position: absolute;
    bottom: 153px;
	right: 10px;
}
.st-gallery .st-entry-position {
    text-align: center;
    padding: 5px 0 !important;
    width: 30px !important;
	max-width: 30px !important;
	margin-bottom: 0 !important;
	min-height: 35px;
}
.st-gallery .st-img-move {
	position: absolute;
	top: 40px;
	right: 18px;
	opacity: 0.6;
}
.st-gallery:focus,
.st-gallery.ui-sortable-helper {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: alpha(opacity=50);
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
    opacity: 0.5;
}
.st-gallery .st-icon-remove {
	cursor: pointer;
	background: none;
	font-size: 20px;
	color: #FF6464;
	padding: 5px 7px;
	right: 10px;
	top: 5px;
	position: absolute;
}
.st-gallery .st-icon-remove:hover {
    color: red;
}
@media screen and (min-width: 520px) {
	#SobiPro div[id^="field_image_gallery"].controls {
		width: 70%;
	}
	.st-gallery .st-controls-wrapper {
		margin-right: -144px !important; /* -(.st-img-wrapper( width + margin-left) + .st-controls-wrapper(margin-left)) */
		padding-right: 196px !important; /* we need to give back what we've taken above + right side element width + margin-left-right */
		/* max-width: 650px; /* Where is your limit? */
	}
	.st-gallery .st-label {
		display: inline-block !important;
		text-align: right;
		width: 75px !important;
		margin-right: 5px !important;
	}
	.st-gallery .st-img-wrap {
		float: left;
		margin-left: 10px;
	}
	.st-gallery .st-position-wrapper {
		bottom: 10px;
	}
	.st-gallery .st-control {
		padding-right: 84px !important; /* .st-label( width + margin-right ) + 4px(display: inline-block space issue fix) */
	}
	.st-gallery .st-input,
	.st-gallery .st-textarea {
		width: 100% !important;
		margin-right: -84px !important; /* -.st-label( width + margin-right ) - 4px  */
	}
}