/* GENERIC LAYOUT */
.myie-column-flex {
    display: flex;
    flex-direction: column;
}
.myie-row-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
@media screen and (max-width: 959px) {
	.myie-responsive-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
	}
}
@media screen and (min-width: 960px) {
	.myie-responsive-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
	}
}
.myie-flex-end {
    justify-content: flex-end;
}

/* LISTS */
.myie-headings {
    font-weight: bold;
    background-color: lightgrey;
}
.myie-list-item  {
    display: grid;
    grid-gap: 0.5rem;
}
.myie-list-item:nth-child(2n+3) {
    background-color: rgb(224,224,224);
}
.myie-user-item {
    grid-template-columns: 3fr 1fr;
}
@media screen and (min-width: 960px) {
	.myie-order-item {
			grid-template-columns: 1fr 4fr 4fr 2fr 2fr;
	}
}
@media screen and (max-width: 959px) {
	.myie-list-item :nth-child(3),
	.myie-list-item :nth-child(4),
	.myie-list-item :nth-child(5) {
		display:none;
	}
	.myie-order-item {
			grid-template-columns: 1fr 5fr;
	}
}
.myie-item-focus {
    cursor: pointer;
}
.myie-item-focus:hover,
.myie-item-focus:focus {
    background-color: whitesmoke;
}

/* IMAGE LAYOUT */
@media screen and (max-width: 959px) {
	.myie-mobile-full-width {
			position: relative;
			left: 50%;
			margin-left: -50vw;
			width: 100vw;
	}
	.myie-image-grid {
			display: grid;
			grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr));
			grid-auto-rows: 6.6rem;
	}
}
@media screen and (min-width: 960px) {
    .myie-image-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(14.6rem, 1fr));
        grid-auto-rows: 14.6rem;
        grid-gap: 0.2rem;
    }
}
.myie-order-info {
    background-color: #e0e0e0;
    padding: .5rem;
    margin: 1rem 0 0;
}
.myie-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}
.myie-lightbox {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.8);
}
.myie-lightbox-child {
	margin: 0.5rem 1rem;
}
.myie-image-full {
    height: calc(100vh - 6.9rem);
    overflow-y: scroll;
}
.myie-full-width {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
}
.myie-full-height {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.myie-icon-wrapper {
	width: 30%;
}
.myie-icon-filename {
    text-align: center;
    font-size: calc(40% + 1vw);
    padding: 2%;
}
.myie-image-caption {
		height: 2rem;
		background: white;
		padding: .2rem;
		border-radius: .2rem;
}

/* WIDGETS */
.myie-uploader-container,
.myie-icon-container {
    box-sizing: border-box;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    border: 4px solid lightgrey;
    background-color: white;
}
.myie-icon-container {
		flex-direction: column;
		position: relative;
		overflow: hidden;
		justify-content: space-evenly;
		padding: 5%;
}
.myie-input-full-width {
    width: 100%;
}
.myie-uploader-label {
    font-size: 5rem;
}
.myie-uploader-input {
    display: none;
}
.myie-img-focus:hover,
.myie-img-focus:focus {
    transform: scale(1.02);
    transition-duration: 0.2s;
}
.myie-thumb-caption {
    position: absolute;
    left: 2%;
    top: 2%;
    width: 92%;
    padding: 2%;
    background: rgba(0,0,0,.2);
    color: white;
		white-space: nowrap; 
		overflow: hidden;
		text-overflow: ellipsis;
}
.myie-image-trash {
    position: absolute;
    right: 2%;
    bottom: 2%;
    padding: 2%;
    background: rgba(0,0,0,.2);
    color: white;
}
.myie-image-trash:hover,
.myie-image-trash:focus {
		color: black;
    background: rgba(255,255,255,.8);
}
.field-element[readonly] {
    background-color: e0e0e0;
}
/* BUTTONS */
.myie-button-container {
	display: flex;
	flex-direction: row;
}
.myie-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 3rem;
    border: 4px solid lightgrey;
    border-radius: 1.5rem;
    background-color: white;    
}
.myie-button i {
    display: inline-block;
}
.myie-round-button {
    width: 3rem;
}
.myie-button-label {
	padding: 0.5rem;
	margin: 0.4rem 0;
}

/* PROGRESS */
.progress {
    width: 6rem;
}
.progress svg {
	display: block;
}

.fa-spinner:before {
    display: block;
    animation: spin linear 3s infinite;
}

@keyframes spin {
	0% {
		transform: rotate(-60deg);
	}
	100% {
		transform: rotate(300deg);
	}
}
