/*
  Author: Rylan Closs
  Course: ITWP-1050 Basic Web Design
  Assignment: Project 3 - Responsive Photo Gallery
*/

:root {
  --main-font: 'Lora', serif;
  --primary-color: #222;
  --background-image: url('images/background.jpg');
  --heading-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

@font-face {
  font-family: 'Lora';
  src: url('webfonts/Lora-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background-image) no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #333;
}

.intro {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  font-family: var(--main-font);
  text-align: center;
  text-shadow: var(--heading-shadow);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 2px 4px 8px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.3);
}

footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9em;
}

footer a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

footer a:link {
  color: #fff;
}

footer a:visited {
  color: #ccc;
}

footer a:hover {
  text-decoration: underline;
}

footer a:active {
  color: #ff0;
}

footer a:focus {
  outline: 2px solid #fff;
}

/* Responsive Text Classes */
.responsive-text-small {
  font-size: 0.8rem;
}

.responsive-text-medium {
  font-size: 1rem;
}

.responsive-text-large {
  font-size: 1.2rem;
}

/* Media Query */
@media (max-width: 600px) {
  .responsive-text-small,
  .responsive-text-medium,
  .responsive-text-large {
    font-size: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
