/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ======= END OF RESET ======= */

/* ======= LAYOUT ======= */
*, *::before, *::after {
  box-sizing: border-box;
}
main, header, footer {
	width: 90%;
	margin: 0 auto;
}

/* ======= TYPOGRAPHY & COLOUR ======= */
body {
	font-family: "Lato", Verdana, Geneva, sans-serif;
	font-size: 1.0em;
	color: #1a1a1a;
}
header, footer {
	text-align: center;
}
footer {
	font-size: 0.8em;
	color: #178ec0;
	padding-top: 2.0em;
	border-top: 1px solid #bbb;
	margin-top: 3.5em;
	margin-bottom: 2.5em;
}
h1 {
	font-family: "Berkshire Swash", Georgia, Times, cursive;
	font-size: 3.4em;
	color: #116c92;
	width: 65%;
	padding-bottom: 0.1em;
	border-bottom: 5px double #82d2f3;
	margin: 0.6em auto 0.8em;
}

/* ======= GALLERY STYLING ======= */
figure {
	background-color: #f6f6f6;
	padding: 5% 5% 3.5%;
	margin-top: 1.5em;
	box-shadow: 3px 3px 3px rgba(50, 50, 50, 0.4);
}
figure img {
	width: 100%;
	height: auto;
	border: 1px solid #bbb;
}
figcaption {
	min-height: 3.6em;
	line-height: 1.45;
	padding-top: 0.5em;
}


/* The styling above is the default, "mobile first" styling, using one column of images.

Your responsive style should have three breakpoints, one for a two-column layout, a second for a three-column layout and a third for a four-column layout. CSS Grid Layout is probably the most appropriate technique for this task.

Do not edit the HTML file. Do not edit the CSS above - you need only add media queries. */


/* ======= RESPONSIVE STYLING ======= */



/* TOP TIPS
1. Start with Mobile First CSS (no breakpoints required for this).
2. Use the min-width property as a conditional for your breakpoints.
3. Start with the narrowest breakpoint and increase, step-by-step.
4. Always arrange your media queries with narrowest first and widest last (assuming you are using min-width).
5. Use the cascade to minimise code. E.g. if a condition is true for all breakpoints, you only need to declare it for the first (narrowest) media query because the rest will inherit it (again, assuming you are using min-width). */


/* ======= RESPONSIVE STYLING ======= */

/* 2 columns */
@media (min-width: 640px) {
  main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }

/* 3 columns */
@media (min-width: 960px) {
	main {
		grid-template-columns: repeat(3, 1fr)

	}

/* 4 columns */
@media (min-width: 1200px) {
	main {
		grid-template-columns: repeat(4, 1fr);
	}
}