/* Imports */
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900');

/* Resets */
* {
	margin: 0px;
	padding: 0px;
	
	box-sizing: border-box;
	
	-webkit-font-smoothing: antialiased;
}
a {
	text-decoration: none;
}
input,
select {
	outline: none;
}

/* Defaults */
.wrapper {
	max-width: 1100px;
	padding: 0px 20px;
	margin: auto;
}
.wrapper--flex {
	display: flex;
	align-items: center;
}
.wrapper-720 {
	max-width: 720px;
}

/* Typography */
body {
	font-family: 'Lato', sans-serif;
}
h1,
h2,
h3,
h4 {
	text-transform: uppercase;
}
h1 {
	font-weight: 900;
	font-size: 21px;
	color: #2048B7;
	letter-spacing: 2px;
	margin-bottom: 10px;
}
h2 {
	font-size: 18px;
	color: #2048B7;
	letter-spacing: 2px;
	margin-bottom: 20px;
}
h3 {
	font-size: 15px;
	color: #414141;
	letter-spacing: 2px;
	margin-bottom: 20px;
}
h4 {
	font-weight: 900;
	font-size: 15px;
	color: #FFFFFF;
}
p {
	font-size: 16px;
	color: rgba(0,0,0,.5);
	line-height: 24px;
	margin-bottom: 24px;
}

/* Header */
.header {
	padding: 20px 0px;
	background: #31498d;
/* 	background-image: linear-gradient(198deg, #437EDC, #2048B7); */
}
.header__logo {
	flex: 8;
	display: flex;
	align-items: center;
}
.header__img {
	display: inline-block;
	margin-right: 20px;
}
.header__cart,
.header__profile {
	position: relative;
	padding: 0px 10px;
}
.header__cart-amount {
	display: flex;
	background: #fadd00;
	border-radius: 50%;
	height: 16px;
	width: 16px;
	color: #32498d;
	position: absolute;
	font-size: 11px;
	font-weight: bold;
	display: flex;
	align-items: center;
	padding: 4px;
	justify-content: center;
	bottom: -5px;
	right: 3px;
}
.header__site-name {
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 2px;
	display: none;
}

/* Navigation */

/* Section */
.albums,
.single-album,
.cart {
	padding: 40px 0;
}
.albums__filter {
	margin-bottom: 20px;
}
.albums__filter-label {
	display: block;
	font-size: 12px;
	color: rgba(0,0,0,.8);
	padding-right: 10px;
}
.albums__year-filter,
.albums__month-filter {
    background: #f3f3f3;
    border-radius: 2px;
    border: 0px;
    padding: 10px;
    -webkit-appearance: none;
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #9E9E9E;
	letter-spacing: 0;
}
.lightbox {
	padding: 20px;
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background: rgba(0,0,0,.8);
	z-index: 30;
	display: none;
	cursor: pointer;
}
.lightbox--showing {
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox__content {
	max-width: 720px;
	cursor: default;
}
.album,
.photo {
	position: relative;
	margin-bottom: 20px;
	display: block;
	color: inherit;
	border-radius: 2px;
}
.album__information,
.photo__information {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: #fff;
	padding: 10px;
	border: 2px solid #fff;
	width: calc(100% - 40px);
	z-index: 20;
	border-radius: 2px;
}
.album__shadow,
.photo__shadow {
	pointer-events: none;
	position: absolute;
	z-index: 10;
	height: 50%;
	bottom: 0px;
	left: 0px;
	width: 100%;
	opacity: .7;
	background-image: linear-gradient(-180deg, rgba(0,0,0,0.00) 0%, #000000 100%);
}
.album__date {
	font-weight: 700;
	font-size: 11px;
	color: #FFFFFF;
}
.album__photo-amount {
	background: #FADC00;
	padding: 5px;
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-weight: 900;
	font-size: 15px;
	color: #000000;
	border-radius: 2px;
	text-align: center;
}
.album__amount-text {
	display: block;
	font-weight: normal;
	font-size: 11px;
}

.single-album__meta,
.cart__meta {
	margin-bottom: 40px;
}
.single-album__date {
	font-size: 12px;
	color: rgba(0,0,0,.4);
	display: block;
	margin-bottom: 10px;
}
.single-album__back-to-albums,
.cart__back-to-albums {
	font-weight: 700;
	font-size: 12px;
	color: rgba(0,0,0,.6);
}
.single-album__add-collection,
.cart__add-collection {
	display: flex;
	align-items: center;
}
.cart__add-collection {
    padding: 20px 0px;
    border-top: 1px solid #e8e8e8;
    margin-top: 20px;
    border-bottom: 1px solid #e8e8e8;
}
.cart__price {
	font-size: 13px;
	color: #777;
	width: 100%;
}
.cart__price-amount {
	color: green;
	font-weight: bold;
}
.photo__information {
	display: flex;
	justify-content: space-between;
}
.photo__information--add-only {
	width: 32px;
	height: 32px;
	right: 20px;
	left: auto;
	align-items: center;
	justify-content: center;
	padding: 0px;
}
.photo__name {
	display: inline-block;
}
.photo__add {
	transition: .3s;
	cursor: pointer;
	font-size: 15px;
}
.photo__remove {
	position: absolute;
	top: -12px;
	right: -12px;
	cursor: pointer;
	width: 24px;
	height: 24px;
	display: none;;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0px 0px 5px rgba(0,0,0,.1);
	color: red;
	padding: 3px;
}
.photo:hover .photo__remove {
	display: flex;
}
.photo__add:hover {
	transform: scale(1.2);
}

/* Footer */
.footer {
	padding: 40px 0px;
	border-top: 1px solid #ececec;
	text-align: center;
}

/* Utilitys */
.no_scroll {
	overflow: hidden;
}
.icon--white {
	color: #fff;
}
.icon--margin-right {
	display: inline-block;
	margin-right: 5px;
}
img {
	display: block;
	max-width: 100%;
}
.search__field {
	background: #fff;
	border-radius: 2px;
	border: 0px;
	padding: 15px;
	font-size: 12px;
	color: rgba(0,0,0,.3);
	display: block;
	width: calc(100% - 20px);
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
}
.btn {
	border: 0px;
	cursor: pointer;
	display: inline-block;
	padding: 20px;
	background: #ccc;
	font-size: 13px;
	text-align: center;
	color: #333;
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	
	transition: .3s;
}
.btn:before {
	content: "";
	display: block;
	height: 100%;
	width: 0%;
	transform: skewX(30deg);
	background: rgba(255,255,255, .2);
	left: -16px;
	top: 0px;
	position: absolute;
	
	transition: .3s;
}
.btn--primary {
	background: #31498d;
	color: #fff;
}
.btn--primary:hover:before {
	width: calc(100% + 32px);
}
.notification {
    position: fixed;
    background: #f3f3f3;
    color: #000;
    z-index: 40;
    left: 20px;
    bottom: -70px;
    font-size: 13px;
    padding: 15px;
    border-left: 5px solid #000;
    
	animation: show-notification .6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.notification--success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: green;
}
.notification--info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: blue;
}
.notification--warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: orange;
}
.notification--danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: red;
}
.no-results {
    text-align: center;
    display: block;
    flex: 1;
    padding: 40px;
    background: #f3f3f3;
    font-size: 13px;
    color: #777;
    border: 1px dashed #ccc;
}

/* Responsive */
@media(min-width:550px) {
	.header__site-name { 
		display: block;	
	}
	.albums__container,
	.photos__container {
		display: flex;
		flex-wrap: wrap;
	}
	.album,
	.photo {
		width: 48%;
		margin-right: 4%;
	}
	.album:nth-child(even),
	.photo:nth-child(even) {
		margin-right: 0px;	
	}
	.albums__meta,
	.single-album__meta,
	.cart__meta {
		display: flex;
	}
	.albums__collection,
	.single-album__title,
	.cart__title {
		flex: 8;
	}
	.cart__add-collection {
		padding: 0px;
		border: 0px;
	}
	.cart__price {
		margin-right: 20px;
		width: auto;
	}
	.albums__filter {
		flex: 4;
		display: flex;
		justify-content: flex-end;
		position: relative;
		align-items: center;
		bottom: 10px;
		margin-bottom: 0px;
	}
	.albums__selector {
		width: 100%;
	}
	.btn {
		width: auto;
		margin-top: 0px;
	}
}
@media(min-width:768px) { 
	.header__logo {
		flex: 8;
	}
	.header__search {
		flex: 3;
	}
	.header__user {
		flex: 1;
	}
	.album,
	.photo {
		width: 23.5%;
		margin-right: 2%;
	}
	.album,
	.photo,	
	.album:nth-child(even),
	.photo:nth-child(even) {
		margin-right: 2%;
	}
	.album:nth-child(4n),
	.photo:nth-child(4n) {
		margin-right: 0px;	
	}
}

/* Animations */
@keyframes show-notification {
	to {
		bottom: 20px;
	}
}