:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-bg: #f5f7fa;
  --dark-bg: #343a40;
  --text-color: #333;
  --light-text: #f8f9fa;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--light-text);
  padding: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 20px;
  flex: 1;
  width: 100%;
}

.content-area {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 10px;
}

.photo-container {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.photo-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.photo-container img {
  width: 100%;
  vertical-align: middle;
  transition: var(--transition);
  border-radius: 10px;
  display: block;
}

.photo-container:hover img {
  transform: scale(1.03);
}

.caption {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  margin: 10px 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.button:active {
  transform: translateY(0);
}

ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

li {
  margin: 10px;
}

h1, h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: inherit;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 10px auto;
}

p {
  text-align: center;
  margin-bottom: 20px;
}

/* Album specific styles */
.albums-container {
  text-align: center;
  padding: 20px 0;
}

.album-list {
  margin: 20px auto;
  justify-content: center;
}

.album-controls {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Loading indicator */
.loading {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: var(--secondary-color);
}

.loading:after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animation for image loading */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-container {
  animation: fadeIn 0.5s ease-in;
}

footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

/* Responsive layout */
@media screen and (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media screen and (max-width: 992px) {
  .column {
    flex: 33.33%;
    max-width: 33.33%;
  }
}

@media screen and (max-width: 768px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
  
  .content-area {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .content-area {
    padding: 1rem;
  }
}