* {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
	max-width: 1000px;
	margin: 0 auto !important;
}

.nav {
	position: relative;
}

.slide_bg {
	z-index: 1;
}

input:focus {
	/*background-color: #ff9600;*/
}

button:focus {
	/*background-color: #ff9600;*/
}

.fs-10 {font-size: 10px !important;}
.fs-11 {font-size: 11px !important;}
.fs-12 {font-size: 12px !important;}
.fs-13 {font-size: 13px !important;}
.fs-14 {font-size: 14px !important;}
.fs-15 {font-size: 15px !important;}
.fs-16 {font-size: 16px !important;}
.fs-17 {font-size: 17px !important;}
.fs-18 {font-size: 18px !important;}
.fs-19 {font-size: 19px !important;}
.fs-20 {font-size: 20px !important;}

.w-30 {width: 30% !important;}
.w-35 {width: 35% !important;}
.w-40 {width: 40% !important;}
.w-45 {width: 45% !important;}
.w-55 {width: 55% !important;}
.w-60 {width: 60% !important;}
.w-65 {width: 65% !important;}
.w-70 {width: 70% !important;}

.thumbnail-wrapper {
	width: 100%;
}

.thumbnail {
	position: relative;
	overflow: hidden;
}

.thumbnail.r1 {
	padding-top: 100%; /* 1:1 ratio */
}

.thumbnail.r2 {
	padding-top: 75%; /* 4:3 ratio */
}

.thumbnail.r3 {
	padding-top: 50%; /* 2:1; ratio */
}

.thumbnail.r4 {
	padding-top: 56.25%; /* 16:9; ratio */
}

.thumbnail .centered {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-transform: translate(50%,50%);
	-ms-transform: translate(50%,50%);
	transform: translate(50%,50%);
}

.thumbnail .centered img {
	position: absolute;
	top: 0;
	left: 0;
	max-width: 100%;
	height: auto;
	-webkit-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

img.portrait {
	width: 100% !important;
	height: auto !important;
}

img.landscape {
	width: auto !important;
	height: 100% !important;
}

.crop-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*margin: 10px;*/
    position: relative;
}
.crop-img img {
    position: absolute;
    margin: auto;
    min-height: 100%;
    min-width: 100%;

    /* For the following settings we set 100%, but it can be higher if needed
    See the answer's update */
    left: -100%;
    right: -100%;
    top: -100%;
    bottom: -100%;
}