* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
	background: white;
}

body {
	font-family: "Montserrat", sans-serif;
	color: #5f6677;

	min-height: 100vh;
	min-height: 100dvh;

	display: flex;
	flex-direction: column;

	background: #fff;
	position: relative;
}

/* =========================
   HEADER
========================= */

header {
	width: min(960px, calc(100% - 40px));
	margin: 60px auto 20px;

	display: flex;
	align-items: flex-start;
	gap: 35px;
}

.sdm-logo {
	flex: 0 0 205px;
}

.sdm-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.sdm-title {
	margin-top: 5px;
}

.sdm-title h1 {
	font-size: 34px;
	line-height: 1.1;
	font-weight: 500;
	margin-bottom: 8px;
}

.sdm-title .description {
	font-size: 18px;
	line-height: 1.3;
}


/* =========================
   MAIN
========================= */

main {
	width: min(960px, calc(100% - 40px));
	margin: 0 auto;

	flex: 1;

	display: flex;
	align-items: center;
	justify-content: center;
}

.albums-wrapper {
	width: 100%;

	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 34px;
}


/* =========================
   ALBUM TILES
========================= */

.album-tile {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;

	border-radius: 12px;
	overflow: hidden;

	cursor: pointer;

	box-shadow:
		0 2px 3px rgba(0, 0, 0, 0.12),
		0 7px 10px rgba(0, 0, 0, 0.14);
}

/* The actual album image */
.album-tile::before {
	content: "";
	position: absolute;
	inset: 0;

	background-image: var(--album-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;

	/* unify all album covers */
	filter:
		saturate(0.9)
		brightness(0.9);

	transition:
		transform 0.5s ease,
		filter 0.5s ease;
}

/* Zoom only the image */
.album-tile:hover::before {
	transform: scale(1.08);

	filter:
		saturate(0.8)
		brightness(0.8);
}

/* dark gradient behind album title */
.album-tile::after {
	content: "";
	position: absolute;
	inset: 0;

	background: linear-gradient(
		to bottom,
		rgba(31, 31, 31, 0),
		rgba(31, 31, 31, 0) 70%,
		rgba(31, 31, 31, 0.3) 90%,
		rgba(31, 31, 31, 0.5) 100%
	);

	opacity: 0.9;
	transition: opacity 0.4s ease;

	pointer-events: none;
}

.album-tile:hover::after {
	opacity: 1;
}


/* =========================
   ALBUM IMAGES
========================= */

.bieszczadzkie-anioly {
	--album-image: url("../../assets/album-covers/bieszczadzkie-anioly.jpg");
}

.bogiem-a-prawda {
	--album-image: url("../../assets/album-covers/bogiem-a-prawda.jpg");
}

.gdziescie-mi-dzis {
	--album-image: url("../../assets/album-covers/gdziescie-mi-dzis.jpg");
}

.klamka-do-raju {
	--album-image: url("../../assets/album-covers/klamka-do-raju.jpg");
}

.ku-dobru {
	--album-image: url("../../assets/album-covers/ku-dobru.jpg");
}

.schronisko-aniolow {
	--album-image: url("../../assets/album-covers/schronisko-aniolow.jpg");
}

.stachura {
	--album-image: url("../../assets/album-covers/stachura.jpg");
}

.ulica-nowa {
	--album-image: url("../../assets/album-covers/ulica-nowa.jpg");
}


/* =========================
   ALBUM TITLE
========================= */

.album-title {
	position: absolute;
	z-index: 1;

	left: 12px;
	right: 12px;
	bottom: 10px;

	color: #eff3f7;

	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}


/* =========================
   FOOTER
========================= */

footer {
	width: 100%;
	min-height: 75px;

	display: flex;
	justify-content: center;
	align-items: center;

	padding: 25px 20px;
	margin-top: 40px;

	background: #bac0d2;
	color: #fff;

	text-align: center;
}

.contact-info {
	font-size: 16px;
	font-weight: 300;
}

.contact-info a {
	color: inherit;
	text-decoration: none;
}

.contact-info a:hover {
	text-decoration: underline;
}


/* =========================
   BIG SCREENS
========================= */

@media (min-width: 1664px) {

	header, main {
		width: 80%;
		max-width: 2560px;
	}

	footer {
		margin-top: 50px;
	}
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

	header,
	main {
		width: min(680px, calc(100% - 40px));
	}

	header {
		margin-bottom: 50px;
	}

	.albums-wrapper {
		grid-template-columns: repeat(3, 1fr);
		gap: 25px;
	}

	.sdm-title h1 {
		font-size: 30px;
	}
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

	header {
		margin: 35px auto 35px;
		flex-direction: column;
		text-align: center;
		gap: 18px;
		align-items: center;
	}

	.sdm-logo {
		flex: none;
		width: 180px;
	}

	.sdm-title h1 {
		font-size: 27px;
	}

	.sdm-title .description {
		font-size: 16px;
	}

	main {
		margin-bottom: 40px;
	}

	.albums-wrapper {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.album-tile {
		border-radius: 10px;
	}

	.album-title {
		left: 10px;
		bottom: 9px;
		font-size: 13px;
	}
}


/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

	.albums-wrapper {
		grid-template-columns: 1fr;
	}

	main,
	header {
		width: calc(100% - 32px);
	}
}
